| | |
| | | //鏇存柊涓昏〃 |
| | | oCn.RunProc("UpDate Gy_ICBomBillMain set " + |
| | | " HBillNo='" + omodel.HBillNo + "'" + |
| | | ",HDate='" + omodel.HDate + "'" + |
| | | ",HYear='" + omodel.HYear.ToString() + "'" + |
| | | ",HPeriod='" + omodel.HPeriod.ToString() + "'" + |
| | | //",HDate='" + omodel.HDate + "'" + |
| | | //",HYear='" + omodel.HYear.ToString() + "'" + |
| | | //",HPeriod='" + omodel.HPeriod.ToString() + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HUpDater='" + omodel.HUpDater + "'" + |
| | | ",HUpDateDate='" + omodel.HUpDateDate + "'" + |
| | |
| | | ",HProdRate=" + omodel.HProdRate.ToString() + |
| | | ",HQty=" + omodel.HQty.ToString() + |
| | | ",HJump='" + omodel.HJump + "'" + |
| | | ",HBomType='" + omodel.HBomType + "'" + |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //鍒犻櫎鍏宠仈 |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | |
| | | "(HBillType,HInterID,HBillNo,HDate" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate,HMaterTypeID,HStatus" + |
| | | ",HMaterID,HParentID,HVersion,HPicNo,HPropertyID" + |
| | | ",HUnitID,HQty,HProdRate,HJump" + |
| | | ",HUnitID,HQty,HProdRate,HJump,HBomType" + |
| | | ") " + |
| | | " values('" + this.BillType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate(),'" + omodel.HMaterTypeID.ToString() + "','" + omodel.HStatus + |
| | | "','" + omodel.HMaterID.ToString() + "'," + omodel.HParentID.ToString() + ",'" + omodel.HVersion + "','" + omodel.HPicNo + "'," +omodel.HPropertyID.ToString() + |
| | | ","+omodel.HUnitID.ToString()+","+omodel.HQty.ToString()+","+omodel.HProdRate.ToString()+",'"+omodel.HJump +"'"+ |
| | | ","+omodel.HUnitID.ToString()+","+omodel.HQty.ToString()+","+omodel.HProdRate.ToString()+",'"+omodel.HJump +"','"+omodel.HBomType + "'"+ |
| | | ") "); |
| | | //鎻掑叆瀛愯〃 |
| | | foreach (Model.ClsGy_ICBomBillSub oSub in DetailColl) |