| | |
| | | oCn.BeginTran(); |
| | | //鏇存柊涓昏〃 |
| | | oCn.RunProc("UpDate Gy_RoutingBillMain set " + |
| | | " HPRDORGID=" + omodel.HPRDORGID.ToString() + |
| | | " HPRDORGID=" + omodel.HORGID.ToString() + |
| | | ",HName='" + omodel.HName + "'" + |
| | | ",HBillNo='" + omodel.HBillNo + "'" + |
| | | ",HMaterTypeID=" + omodel.HMaterTypeID.ToString() + |
| | |
| | | ",HDate='" + omodel.HDate + "'" + |
| | | ",HYear=" + omodel.HYear.ToString() + "" + |
| | | ",HPeriod=" + omodel.HPeriod.ToString() + "" + |
| | | ",HUpDater='" + omodel.HUpDater + "'" + |
| | | ",HUpDateDate='" + omodel.HUpDateDate + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + |
| | | ",HUpDateDate=getdate()" + |
| | | |
| | | ",HMainGroupID=" + omodel.HMainGroupID.ToString() + |
| | | ",HMainProcID=" + omodel.HMainProcID.ToString() + |
| | | ",HMainCenterID=" + omodel.HMainCenterID.ToString() + |
| | | ",HMainTimeUnit='" + omodel.HMainTimeUnit.ToString() + "'" + |
| | | ",HMainTimeUnit='" + omodel.HMainTimeUnit + "'" + |
| | | ",HMainUnitTime=" + omodel.HMainUnitTime.ToString() + |
| | | ",HMainWorkQty=" + omodel.HMainWorkQty.ToString() + |
| | | ",HMainPrice=" + omodel.HMainPrice.ToString() + |
| | | ",HStdSourceQty=" + omodel.HStdSourceQty.ToString() + |
| | | ",HAddSourceRate=" + omodel.HAddSourceRate.ToString() + |
| | | ",HDelSourceRate=" + omodel.HDelSourceRate.ToString() + |
| | | ",HPicNumVer='" + omodel.HPicNumVer.ToString() + "'" + |
| | | ",HPicNumAssemble='" + omodel.HPicNumAssemble.ToString() + "'" + |
| | | ",HMaterTexture='" + omodel.HMaterTexture.ToString() + "'" + |
| | | ",HProductNum='" + omodel.HProductNum.ToString() + "'" + |
| | | ",HVerNum='" + omodel.HVerNum.ToString() + "'" + |
| | | ",HPicNumVer='" + omodel.HPicNumVer + "'" + |
| | | ",HPicNumAssemble='" + omodel.HPicNumAssemble + "'" + |
| | | ",HMaterTexture='" + omodel.HMaterTexture + "'" + |
| | | ",HProductNum='" + omodel.HProductNum + "'" + |
| | | ",HVerNum='" + omodel.HVerNum + "'" + |
| | | ",HORGID=" + omodel.HORGID.ToString() + |
| | | |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //鍒犻櫎鍏宠仈 |
| | |
| | | ",HRoutingGroupID,HUnitID,HMaterNumber,HUnitNumber,HStandard" + |
| | | ",HMainGroupID,HMainProcID,HMainCenterID,HMainTimeUnit,HMainUnitTime,HMainWorkQty" + |
| | | ",HMainPrice,HStdSourceQty,HAddSourceRate,HDelSourceRate" + |
| | | ",HPicNumVer,HPicNumAssemble,HMaterTexture,HProductNum,HPRDORGID,HVerNum" + |
| | | ",HPicNumVer,HPicNumAssemble,HMaterTexture,HProductNum,HPRDORGID,HORGID,HVerNum" + |
| | | ") " + |
| | | " values('" + this.BillType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | "," + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()," + omodel.HMaterID.ToString() + ",'" + omodel.HName + "'," + omodel.HMaterTypeID.ToString() + |
| | | ",'" + omodel.HRoutingGroupID.ToString() + "'," + omodel.HUnitID.ToString() + ",'" + omodel.HMaterNumber + "','" + omodel.HUnitNumber + "'," + DBUtility.ClsPub.BoolToString(omodel.HStandard) + |
| | | "," + omodel.HMainGroupID.ToString() + "," + omodel.HMainProcID.ToString() + "," + omodel.HMainCenterID.ToString() + ",'" + omodel.HMainTimeUnit + "'," + omodel.HMainUnitTime.ToString() + "," + omodel.HMainWorkQty.ToString() + |
| | | "," + omodel.HMainPrice.ToString() + "," + omodel.HStdSourceQty.ToString() + "," + omodel.HAddSourceRate + "," + omodel.HDelSourceRate.ToString() + |
| | | ",'" + omodel.HPicNumVer.ToString() + "','" + omodel.HPicNumAssemble.ToString() + "','" + omodel.HMaterTexture.ToString() + "','" + omodel.HProductNum.ToString() + "','" + DBUtility.ClsPub.HOrgID + "','" + omodel.HVerNum.ToString() + "'" + |
| | | ",'" + omodel.HPicNumVer + "','" + omodel.HPicNumAssemble + "','" + omodel.HMaterTexture + "','" + omodel.HProductNum + "'," + omodel.HORGID.ToString() + "," + omodel.HORGID.ToString() + ",'" + omodel.HVerNum + "'" + |
| | | ") "); |
| | | //鎻掑叆瀛愯〃 |
| | | foreach (Model.ClsGy_RoutingBillSub oSub in DetailColl) |
| | |
| | | omodel.HMaterTexture = Ds.Tables[0].Rows[0]["HMaterTexture"].ToString().Trim(); |
| | | omodel.HProductNum = Ds.Tables[0].Rows[0]["HProductNum"].ToString().Trim(); |
| | | omodel.HVerNum = Ds.Tables[0].Rows[0]["HVerNum"].ToString().Trim(); |
| | | omodel.HPRDORGID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HOrgID"].ToString()); |
| | | omodel.HPRDORGID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPRDORGID"].ToString()); |
| | | omodel.HORGID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HORGID"].ToString()); |
| | | //寰幆 |
| | | DataSet DsSub ; |
| | | DsSub = oCn.RunProcReturn("Select * from Gy_RoutingBillSub Where HInterID=" + lngBillKey.ToString() + " Order by HEntryID ", "Gy_RoutingBillSub"); |