⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qfdview.cpp

📁 QFD是一种十分有效的质量管理工具
💻 CPP
📖 第 1 页 / 共 5 页
字号:
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	
	if(!m_pRecordset->BOF)
	{
		m_pRecordset->MoveFirst();
	}
    int w=0;
	while(!m_pRecordset->adoEOF)
	{
		str2=VariantToCString(m_pRecordset->GetCollect("比较对象"));
		textout(pDC,x0+x2,y0+x3+x4*num_xuqiu+x5+x4+x4*w,10,5,str2,RGB(255,0,0));
		w++;
		m_pRecordset->MoveNext();
	}

   //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

///////////////////////////////////////////////////////////////////////////////////////////////
	CString str3;



	 CString strSQL6;
	strSQL6="select 需求重要度 from 顾客需求";
	
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL6))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	
	if(!m_pRecordset->BOF)
	{
		m_pRecordset->MoveFirst();
	}
    int e=0;
	while(!m_pRecordset->adoEOF)
	{
		str3=VariantToCString(m_pRecordset->GetCollect("需求重要度"));
		textout(pDC,x0+x1-x4,y0+x3+x4*e,10,5,str3,RGB(255,0,0));
		e++;
		m_pRecordset->MoveNext();
	}

   //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////输出竖着的固定标题//////////////////////////////////////////////////////////////////////////////////////////////
textout2(pDC,x0+x1-x4,y0+50,5,30,"重要度",RGB(255,0,0));
textout2(pDC,x0,y0+x3+x4*num_xuqiu+x5+x4,5,5,"技术竞争能力",RGB(255,0,0));
textout2(pDC,x0+x1+x2*num_gongcheng+x2,y0+x3+x4*num_xuqiu+x5+x4,5,5,"技术竞争指数T",RGB(255,0,0));
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
     CString str4;

	 CString strSQL7;
	strSQL7="select 工程措施 from 工程措施";
	
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL7))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	
	if(!m_pRecordset->BOF)
	{
		m_pRecordset->MoveFirst();
	}
    int r=0;
	while(!m_pRecordset->adoEOF)
	{
		str4=VariantToCString(m_pRecordset->GetCollect("工程措施"));
		textout2(pDC,x0+x1+x2*r,y0,5,5,str4,RGB(255,0,0));
		r++;
		m_pRecordset->MoveNext();
	}

   //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 CString str5;

	 CString strSQL8;
	strSQL8="select 技术指标 from 工程措施";
	
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL8))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	
	if(!m_pRecordset->BOF)
	{
		m_pRecordset->MoveFirst();
	}
    int s=0;
	while(!m_pRecordset->adoEOF)
	{
		str5=VariantToCString(m_pRecordset->GetCollect("技术指标"));
		textout2(pDC,x0+x1+x2*s,y0+x3+x4*num_xuqiu,5,5,str5,RGB(255,0,0));
		s++;
		m_pRecordset->MoveNext();
	}

   //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	CString str6;

	 CString strSQL9;
	strSQL9="select 比较对象 from 比较对象";
	
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL9))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	
	if(!m_pRecordset->BOF)
	{
		m_pRecordset->MoveFirst();
	}
    int z=0;
	while(!m_pRecordset->adoEOF)
	{
		str6=VariantToCString(m_pRecordset->GetCollect("比较对象"));
		textout2(pDC,x0+x1+x2*num_gongcheng+x2*z,y0+x4,5,5,str6,RGB(255,0,0));
		z++;
		m_pRecordset->MoveNext();
	}

   //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////////////////////////////////////

    CString str7;
    CString strSQL10;
	CString mm;
	int v;
	if(num_xuqiu==1)
	{
	for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select a from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("a"));
	array1[0][v-1]=atoi(str7);
		textout(pDC,x0+x1+x2*(v-1),y0+x3,5,5,str7,RGB(255,0,0));

    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}

	}
	///////////////////////////////////////////////////////////////////////////
	///////////////////////////////////////////////////////////////////////////
	else if(num_xuqiu==2)
	{
       for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select a from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("a"));
	array1[0][v-1]=atoi(str7);
		textout(pDC,x0+x1+x2*(v-1),y0+x3,5,5,str7,RGB(255,0,0));

    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}


	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select b from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("b"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4,5,5,str7,RGB(255,0,0));
 array1[1][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}
	}


///////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////

	else if(num_xuqiu==3)
	{
       for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select a from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("a"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3,5,5,str7,RGB(255,0,0));
array1[0][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}


	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select b from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("b"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4,5,5,str7,RGB(255,0,0));
array1[1][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}


	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select c from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("c"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4*2,5,5,str7,RGB(255,0,0));
array1[2][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}
	}

////////////////////////////////////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////////////////////
	else if(num_xuqiu==4)
	{
       for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select a from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("a"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3,5,5,str7,RGB(255,0,0));
array1[0][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}


	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select b from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("b"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4,5,5,str7,RGB(255,0,0));
array1[1][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}


	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select c from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("c"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4*2,5,5,str7,RGB(255,0,0));
array1[2][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}
	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select d from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("d"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4*3,5,5,str7,RGB(255,0,0));
array1[3][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}
	}
///////////////////////////////////////////////////////////////////////////////////////////////

	///////////////////////////////////////////////////////////////////////

else if(num_xuqiu==5)
	{
       for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select a from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("a"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3,5,5,str7,RGB(255,0,0));
array1[0][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}


	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select b from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("b"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4,5,5,str7,RGB(255,0,0));
array1[1][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}


	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select c from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("c"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4*2,5,5,str7,RGB(255,0,0));
array1[2][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}
	   for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select d from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("d"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4*3,5,5,str7,RGB(255,0,0));
array1[3][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}

	    for(v=1;v<=num_gongcheng;v++)
	{
		mm.Format("%d",v);
	strSQL10.Format("select e from 需求和措施关系表 where ID='%s' \
	",\
		mm
		);
	//打开记录集 选择表名
	if(!OpenRecordSet(m_pRecordset,strSQL10))
	{
		AfxMessageBox("没有成功打开数据表");
		return;
	}	

	str7=VariantToCString(m_pRecordset->GetCollect("e"));
		textout(pDC,x0+x1+x2*(v-1),y0+x3+x4*4,5,5,str7,RGB(255,0,0));
array1[4][v-1]=atoi(str7);
    //关闭
	m_pRecordset->Close();
	m_pRecordset=NULL;

	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -