| | |
| | | |
| | | for (int i = 0; i < ds.Tables.Count; i++) |
| | | { |
| | | //修改是在哪个设备上进行的数据采集 b.HInspectInstruMentID=1 三坐标1 轮廓仪2 |
| | | //修改 是在哪个设备上进行的数据采集 b.HInspectInstruMentID=1 三坐标1 轮廓仪2 |
| | | //查询当前流转卡 以及 工序 对应的检验方案是否存在 |
| | | DataSet dataSet = oCN.RunProcReturn(@"select b.HInspectInstruMentID,a.HInterID HQCSchemeID,b.HQCCheckItemID, ch.HNumber HQCCheckItemNumber,m.HNumber,HUpLimit,HDownLimit,HTargetVal |
| | | from Sc_ProcessExchangeBillMain pr with(nolock) |
| | | inner join Gy_QCCheckProjectMain a with(nolock) on pr.HMaterID=a.HMaterID |
| | |
| | | long HInterID = oCN.CreateBillID_Prod(BillType, ref sExeReturnInfo); |
| | | string HBillNo = oCN.CreateBillCode(BillType, ref sExeReturnInfo, true); |
| | | |
| | | //判断当前流转卡 当前工序 是否已经派过工 |
| | | DataSet ds = oCN.RunProcReturn(@"select staus.HSourceID,a.HICMOInterID,a.HICMOEntryID,a.HICMOBillNo,a.HPlanQty,a.HInterID HProcExchInterID, |
| | | staus.HSourceEntryID HProcExchEntryID,a.HBillNo HProcExchBillNo,a.HQty,a.HMaterID |
| | | from Sc_ProcessExchangeBillMain a with(nolock) |
| | |
| | | long HInterID = oCN.CreateBillID_Prod(BillType, ref sExeReturnInfo); |
| | | string HBillNo = oCN.CreateBillCode(BillType, ref sExeReturnInfo, true); |
| | | |
| | | // 判断当前流转卡 当前工序 是否已经派过工 |
| | | DataSet ds = oCN.RunProcReturn(@"select staus.HSourceID,a.HICMOInterID,a.HICMOEntryID,a.HICMOBillNo,a.HPlanQty,a.HInterID HProcExchInterID, |
| | | staus.HSourceEntryID HProcExchEntryID,a.HBillNo HProcExchBillNo,a.HQty,a.HMaterID |
| | | from Sc_ProcessExchangeBillMain a with(nolock) |
| | |
| | | long HInterID = oCN.CreateBillID_Prod(BillType, ref sExeReturnInfo); |
| | | string HBillNo = oCN.CreateBillCode(BillType, ref sExeReturnInfo, true); |
| | | |
| | | // 判断当前流转卡 当前工序 是否已经派过工 |
| | | DataSet ds = oCN.RunProcReturn(@"select staus.HSourceID,a.HICMOInterID,a.HICMOEntryID,a.HICMOBillNo,a.HPlanQty,a.HInterID HProcExchInterID, |
| | | staus.HSourceEntryID HProcExchEntryID,a.HBillNo HProcExchBillNo,a.HQty,a.HMaterID,staus.HProcID |
| | | from Sc_ProcessExchangeBillMain a with(nolock) |
| | |
| | | { |
| | | string cmbPro = this.cmbPro.SelectedValue.ToString(); |
| | | |
| | | //查询取样单数据 |
| | | DataSet ds = oCN.RunProcReturn("select * from h_v_QC_TakeSampleCheckBillList where 单据号='" + HBillNo + "' and HProcID='" + cmbPro + "'", "h_v_QC_TakeSampleCheckBillList"); |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |