| | |
| | | } |
| | | } |
| | | DBHelper.CustomWriteLog("Insert into QC_ProcessCheckBillSub " + |
| | | " (HInterID,HBillNo_bak,HEntryID,HCloseMan" + |
| | | " (HInterID,HBillNo_bak,HEntryID,HSNO,HCloseMan" + |
| | | ",HEntryCloseDate,HCloseType,HRemark,HSourceInterID" + |
| | | ",HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult" + |
| | |
| | | ",HRejectQty,HSampleUnRightQty,HStatus,HUnitID,HInspectVal,HTargetVal" + |
| | | ",HUpLimit,HDownLimit,HUpOffSet,HDownOffSet,HKeyInspect,HAnalysisMethod,HInspectInstruMentID,HInspectResult" + |
| | | ",HQCNote) values(" |
| | | + HInterID + ",'" + HBillNo + "'," + num + ",''" + |
| | | + HInterID + ",'" + HBillNo + "'," + num + "," + (k -10) + "''" + |
| | | ",getdate(),0,''," + HProcExchInterID + |
| | | "," + HProcExchEntryID + ",'" + HProcExchBillNo + "','',0,0" + |
| | | ",0," + dataSet.Tables[0].Rows[i]["HQCCheckItemID"].ToString() + ",'" + dataSet.Tables[0].Rows[i]["HTargetVal"].ToString() + "','','" + HInSpectResult + "'" + |
| | |
| | | num += 1; |
| | | |
| | | oCN.RunProc("Insert into QC_ProcessCheckBillSub " + |
| | | " (HInterID,HBillNo_bak,HEntryID,HCloseMan" + |
| | | " (HInterID,HBillNo_bak,HEntryID,HSNO,HCloseMan" + |
| | | ",HEntryCloseDate,HCloseType,HRemark,HSourceInterID" + |
| | | ",HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HQCCheckClassID,HQCCheckItemID,HQCStd,HQCRelValue,HResult" + |
| | |
| | | ",HRejectQty,HSampleUnRightQty,HStatus,HUnitID,HInspectVal,HTargetVal" + |
| | | ",HUpLimit,HDownLimit,HUpOffSet,HDownOffSet,HKeyInspect,HAnalysisMethod,HInspectInstruMentID,HInspectResult" + |
| | | ",HQCNote) values(" |
| | | + HInterID + ",'" + HBillNo + "'," + num + ",''" + |
| | | + HInterID + ",'" + HBillNo + "'," + num + "," + (k - 10) + ",''" + |
| | | ",getdate(),0,''," + HProcExchInterID + |
| | | "," + HProcExchEntryID + ",'" + HProcExchBillNo + "','',0,0" + |
| | | ",0," + dataSet.Tables[0].Rows[i]["HQCCheckItemID"].ToString() + ",'" + dataSet.Tables[0].Rows[i]["HTargetVal"].ToString() + "','','" + HInSpectResult + "'" + |