| | |
| | | ",'" + omodel.HDeptID + "'" + |
| | | ") "); |
| | | //插入子表 |
| | | //foreach (Models.ClsSc_MouldMaintainBillSub oSub in DetailColl) |
| | | //{ |
| | | // oCn.RunProc("Insert into Sc_MouldMaintainBillSub " + |
| | | // " (HInterID,HEntryID,HMaterID" + |
| | | // ",HQty,HUnitID" + |
| | | // ",HQtyMust,HManagerID,HClaim" + |
| | | // ",HCloseMan,HCloseType,HRemark" + |
| | | // ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | // ") values(" |
| | | // + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HMaterID.ToString() + |
| | | // "," + oSub.HQty.ToString() + "," + oSub.HUnitID.ToString() + |
| | | // "," + oSub.HQtyMust.ToString() + "," + oSub.HManagerID.ToString() + ",'" + oSub.HClaim + "'" + |
| | | // ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | // "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | // ") "); |
| | | //} |
| | | foreach (Models.ClsSc_MouldMaintainBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldMaintainBillSub " + |
| | | " (HInterID,HEntryID,HMaterID" + |
| | | ",HQty,HUnitID" + |
| | | ",HQtyMust,HManagerID,HClaim" + |
| | | oCn.RunProc("Insert into Sc_MouldMaintainBillSub_Item " + |
| | | " (HInterID,HEntryID,HMaintainItemID" + |
| | | ",HMaintainItem,HMaintainPart" + |
| | | ",HManagerID,HClaim" + |
| | | ",HCloseMan,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HMaterID.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HUnitID.ToString() + |
| | | "," + oSub.HQtyMust.ToString() + "," + oSub.HManagerID.ToString() + ",'" + oSub.HClaim + "'" + |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HMaintainItemID.ToString() + |
| | | ",'" + oSub.HMaintainItem.ToString() + "','" + oSub.HMaintainPart.ToString() + |
| | | "'," + oSub.HManagerID.ToString() + ",'" + oSub.HClaim + "'" + |
| | | ",'" + oSub.HCloseMan + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | ") "); |