物料标准包装模块;送货单添加保存前后存储过程控制;
| | |
| | | </Reference> |
| | | <Reference Include="SQLHelper, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86"> |
| | | <SpecificVersion>False</SpecificVersion> |
| | | <HintPath>..\DLL\SQLHelper.dll</HintPath> |
| | | <HintPath>..\..\..\..\ç½ç«åå¸\ä¾åºåå¹³å°\SRMAPI\bin\SQLHelper.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="System" /> |
| | | <Reference Include="System.Data" /> |
| | |
| | | <Compile Include="SCM\ClsSup_AskPriceBill.cs" /> |
| | | <Compile Include="SCM\ClsSup_EvaluateBill.cs" /> |
| | | <Compile Include="SCM\ClsSup_EvaluateSchemeBill.cs" /> |
| | | <Compile Include="SCM\ClsSupMaterPackBill.cs" /> |
| | | <Compile Include="SCM\ClsSup_QuotePriceBill.cs" /> |
| | | <Compile Include="SCM\ClsSup_SampleRequestBill.cs" /> |
| | | <Compile Include="SCM\ClsSup_SampleTestBill.cs" /> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using System.Data; |
| | | |
| | | namespace DAL |
| | | { |
| | | public class ClsSupMaterPackBill : DBUtility.ClsXt_BaseBill |
| | | { |
| | | public Model.ClsSupMaterPackBillMain omodel = new Model.ClsSupMaterPackBillMain(); |
| | | public List<Model.ClsSupMaterPackBillSub> DetailColl = new List<Model.ClsSupMaterPackBillSub>(); |
| | | public List<Model.ClsSupMaterPackBillSub> DetailColl_Source = new List<Model.ClsSupMaterPackBillSub>(); |
| | | |
| | | public ClsSupMaterPackBill() |
| | | { |
| | | base.MvarItemKeyForWeb = "h_v_SRM_SupMaterPackMain_ForWeb"; |
| | | base.MvarItemKeySubForWeb = "h_v_SRM_SupMaterPackSub_ForWeb"; |
| | | base.MvarItemKeySub = "SRM_SupMaterPackSub"; |
| | | base.MvarItemKeySub2 = ""; |
| | | base.MvarItemKeySub3 = ""; |
| | | base.MvarItemKeySub4 = ""; |
| | | base.MvarItemKey="SRM_SupMaterPackMain"; |
| | | base.MvarReportTitle="ç©ææå°å
è£
"; |
| | | base.BillType= "10001"; |
| | | base.HBillSubType = "10001"; |
| | | } |
| | | |
| | | #region åºå®ä»£ç |
| | | |
| | | ~ClsSupMaterPackBill() |
| | | { |
| | | DetailColl = null; |
| | | } |
| | | |
| | | #endregion èªå®ä¹æ¹æ³ |
| | | //ä¿®æ¹åæ® |
| | | public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | // |
| | | oCn.BeginTran(); |
| | | //æ´æ°ä¸»è¡¨ |
| | | oCn.RunProc("UpDate SRM_SupMaterPackMain set " + |
| | | "HRemark='" + omodel.HRemark + "'" + |
| | | ",HModifyEmp='" + DBUtility.ClsPub.CurUserName + "'" + |
| | | ",HModifyTime=getdate()" + |
| | | //======================================== |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //å é¤å
³è |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | | //å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | foreach (Model.ClsSupMaterPackBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into SRM_SupMaterPackSub " + |
| | | " (HInterID,HEntryID,HRemark,HMaterID,HMinPackQty,HInBoxPackQty,HOutBoxPackQty,HPriority" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HRemark + "'," + oSub.HMaterID + "," + oSub.HMinPackQty + "," + oSub.HInBoxPackQty + "," + oSub.HOutBoxPackQty + "," + oSub.HPriority + |
| | | ") "); |
| | | } |
| | | |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | //æ°å¢åæ® |
| | | public override bool AddBill(ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into SRM_SupMaterPackMain " + |
| | | "(HInterID,HMakeTime,HMakeEmp,HRemark,HUSEORGID,HCREATEORGID,HSupID,HBeginDate,HEndDate" + |
| | | ") values(" + omodel.HInterID.ToString() + ",getdate(),'" + omodel.HMakeEmp + "','" + omodel.HRemark + "'," + omodel.HUSEORGID + "," + omodel.HCREATEORGID + "," + omodel.HSupID + ",'" + omodel.HBeginDate + "','" + omodel.HEndDate + "'" + |
| | | ") "); |
| | | //æå
¥å表 |
| | | foreach (Model.ClsSupMaterPackBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into SRM_SupMaterPackSub " + |
| | | " (HInterID,HEntryID,HRemark,HMaterID,HMinPackQty,HInBoxPackQty,HOutBoxPackQty,HPriority" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HRemark + "'," + oSub.HMaterID + "," + oSub.HMinPackQty + "," + oSub.HInBoxPackQty + "," + oSub.HOutBoxPackQty + "," + oSub.HPriority + |
| | | ") "); |
| | | } |
| | | |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | oCn.RollBack(); |
| | | throw (e); |
| | | } |
| | | } |
| | | //æ¾ç¤ºåæ® |
| | | public override bool ShowBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | //æ¥è¯¢ä¸»è¡¨ |
| | | DataSet Ds ; |
| | | Ds = oCn.RunProcReturn("Select * from SRM_SupMaterPackMain Where HInterID=" + lngBillKey.ToString(), "SRM_SupMaterPackMain"); |
| | | if(Ds.Tables[0].Rows.Count==0) |
| | | { |
| | | sReturn = "åæ®æªæ¾å°ï¼"; |
| | | return false; |
| | | } |
| | | //åºå®èµå¼=========================================== |
| | | omodel.HYear = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HYear"]); |
| | | omodel.HPeriod = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HPeriod"]); |
| | | omodel.HBillType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillType"]); |
| | | omodel.HBillSubType = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBillSubType"]); |
| | | omodel.HInterID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HInterID"]); |
| | | omodel.HDate = DBUtility.ClsPub.isDate(Ds.Tables[0].Rows[0]["HDate"]); |
| | | omodel.HBillNo = Ds.Tables[0].Rows[0]["HBillNo"].ToString().Trim(); |
| | | omodel.HBillStatus = DBUtility.ClsPub.isInt(Ds.Tables[0].Rows[0]["HBillStatus"]); |
| | | omodel.HCheckItemNowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNowID"]); |
| | | omodel.HCheckItemNextID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckItemNextID"]); |
| | | omodel.HCheckFlowID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCheckFlowID"]); |
| | | omodel.HRemark = Ds.Tables[0].Rows[0]["HRemark"].ToString().Trim(); |
| | | omodel.HBackDate = Ds.Tables[0].Rows[0]["HBackDate"].ToString().Trim(); |
| | | omodel.HBacker = Ds.Tables[0].Rows[0]["HBacker"].ToString().Trim(); |
| | | omodel.HCheckDate = Ds.Tables[0].Rows[0]["HCheckDate"].ToString().Trim(); |
| | | omodel.HChecker = Ds.Tables[0].Rows[0]["HChecker"].ToString().Trim(); |
| | | omodel.HMaker = Ds.Tables[0].Rows[0]["HMaker"].ToString().Trim(); |
| | | omodel.HMakeDate = Ds.Tables[0].Rows[0]["HMakeDate"].ToString().Trim(); |
| | | omodel.HUpDateDate = Ds.Tables[0].Rows[0]["HUpDateDate"].ToString().Trim(); |
| | | omodel.HUpDater = Ds.Tables[0].Rows[0]["HUpDater"].ToString().Trim(); |
| | | omodel.HCloseDate = Ds.Tables[0].Rows[0]["HCloseDate"].ToString().Trim(); |
| | | omodel.HCloseMan = Ds.Tables[0].Rows[0]["HCloseMan"].ToString().Trim(); |
| | | omodel.HCloseType = DBUtility.ClsPub.isBool(Ds.Tables[0].Rows[0]["HCloseType"]); |
| | | omodel.HDeleteDate = Ds.Tables[0].Rows[0]["HDeleteDate"].ToString().Trim(); |
| | | omodel.HDeleteMan = Ds.Tables[0].Rows[0]["HDeleteMan"].ToString().Trim(); |
| | | //======================================================== |
| | | omodel.HSupID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSupID"]); |
| | | omodel.HBeginDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBeginDate"]); |
| | | omodel.HEndDate = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HEndDate"]); |
| | | |
| | | // |
| | | |
| | | //å¾ªç¯ |
| | | DataSet DsSub ; |
| | | DsSub = oCn.RunProcReturn("Select * from SRM_SupMaterPackSub Where HInterID=" + lngBillKey.ToString() + " order by HEntryID ", "SRM_SupMaterPackSub"); |
| | | DetailColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) |
| | | { |
| | | Model.ClsSupMaterPackBillSub oSub = new Model.ClsSupMaterPackBillSub(); |
| | | // åºå®èµå¼=============================================== |
| | | oSub.HInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HInterID"]); |
| | | oSub.HEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HEntryID"]); |
| | | oSub.HSourceInterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceInterID"]); |
| | | oSub.HSourceEntryID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HSourceEntryID"]); |
| | | oSub.HSourceBillType = DsSub.Tables[0].Rows[i]["HSourceBillType"].ToString().Trim(); |
| | | oSub.HSourceBillNo = DsSub.Tables[0].Rows[i]["HSourceBillNo"].ToString().Trim(); |
| | | oSub.HRelationQty = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationQty"]); |
| | | oSub.HRelationMoney = DBUtility.ClsPub.isDoule(DsSub.Tables[0].Rows[i]["HRelationMoney"]); |
| | | oSub.HCloseMan = DBUtility.ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HCloseMan"]); |
| | | oSub.HCloseType = DBUtility.ClsPub.isBool(DsSub.Tables[0].Rows[i]["HCloseType"]); |
| | | oSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DsSub.Tables[0].Rows[i]["HEntryCloseDate"]); |
| | | oSub.HRemark = DsSub.Tables[0].Rows[i]["HRemark"].ToString().Trim(); |
| | | //=================================================== |
| | | oSub.HMaterID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HMaterID"]); |
| | | oSub.HUnitID = DBUtility.ClsPub.isLong(DsSub.Tables[0].Rows[i]["HUnitID"]); |
| | | |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + |
| | | ",HDeliveryNo='" + omodel.HDeliveryNo + "'" + |
| | | ",HDHDate='" + omodel.HDHDate + "'" + |
| | | ",HExpressSupplier='" + omodel.HExpressSupplier + "'" + |
| | | ",HReceiveGoodsMan='" + omodel.HReceiveGoodsMan + "'" + |
| | | ",HReceiveGoodsLink='" + omodel.HReceiveGoodsLink + "'" + |
| | | ",HSendGoodsMan='" + omodel.HSendGoodsMan + "'" + |
| | | ",HSendGoodsAddr='" + omodel.HSendGoodsAddr + "'" + |
| | | ",HSendGoodsLink='" + omodel.HSendGoodsLink + "'" + |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //å é¤å
³è |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | | //DeleteRelation(ref sReturn, lngBillKey); |
| | | oCn.RunProc("exec H_p_SRM_POInStockBill_UpdateBillRelateData_back " + lngBillKey.ToString()); |
| | | //å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | //DeleteBillSub(lngBillKey); |
| | | oCn.RunProc("delete from Cg_POInStockBillSub where HInterID = " + lngBillKey.ToString()); |
| | | //æå
¥å表 |
| | | omodel.HInterID = lngBillKey; |
| | | omodel.HInterID = lngBillKey; |
| | | //å¯è´å¥ç¹ HSupBatchNoï¼HSupMaterNumber |
| | | foreach (Model.ClsCg_POInStockBillSub oSub in DetailColl) |
| | | { |
| | | |
| | | oCn.RunProc("Insert into Cg_POInStockBillSub " + |
| | | " (HInterID,HEntryID,HMaterID,HUnitID" + |
| | | ",HDate,HKFDate,HKFPeriod,HQty,HCheckQty,HPassQty,HBadQty,HPrice" + |
| | |
| | | ",HPOOrderInterID,HPOOrderEntryID,HPOOrderBillNo,HRelationQty,HRelationMoney" + |
| | | ",HWWOrderInterID,HWWOrderEntryID,HWWOrderBillNo,HWWOrderDetaiLID" + |
| | | ",HPropertyID,HSecUnitID,HSecUnitRate,HTaxPrice,HTaxMoney,HMainSourceInterID,HBatChNo" + |
| | | ",HAuxPropID,HMTONo,HPlanMode,HERPInterID,HERPEntryID,HReturnedQty,HDetailID) values(" |
| | | ",HAuxPropID,HMTONo,HPlanMode,HERPInterID,HERPEntryID,HReturnedQty,HDetailID,F_xbkf_Combo,FSHDD,HExpressNumberSub" + |
| | | ",HExpressSupplierSub,HPlanArrivalDate,HBoxNumber,HSupBatchNo,HSupMaterNumber,HTAXPRICE_T) values("// |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + "," + oSub.HMaterID.ToString() + "," + oSub.HUnitID.ToString() + |
| | | ",'" + oSub.HDate + "','" + oSub.HKFDate + "'," + oSub.HKFPeriod.ToString() + "," + oSub.HQty.ToString() + "," + oSub.HCheckQty.ToString() + "," + oSub.HPassQty.ToString() + "," + oSub.HBadQty.ToString() + "," + oSub.HPrice.ToString() + |
| | | "," + oSub.HMoney.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HStatus + "," + oSub.HSPID.ToString() + ",'','" + oSub.HEntryCloseDate + |
| | | "',0,''," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType.ToString() + |
| | | "',0,'" + oSub.HRemark + "'," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType.ToString() + |
| | | "'," + oSub.HPOOrderInterID.ToString() + "," + oSub.HPOOrderEntryID.ToString() + ",'" + oSub.HPOOrderBillNo + "'," + oSub.HRelationQty + "," + oSub.HRelationMoney + |
| | | "," + oSub.HWWOrderInterID.ToString() + "," + oSub.HWWOrderEntryID.ToString() + ",'" + oSub.HWWOrderBillNo + "'," + oSub.HWWOrderDetaiLID.ToString() + |
| | | "," + oSub.HPropertyID.ToString() + ",0," + oSub.HSecUnitRate.ToString() + "," + oSub.HTaxPrice.ToString() + "," + oSub.HTaxMoney.ToString() + "," + oSub.HMainSourceInterID.ToString() + ",'" + oSub.HBatChNo + |
| | | "'," + oSub.HAuxPropID.ToString() + ",'" + oSub.HMTONo.ToString() + "'," + oSub.HPlanMode + "," + oSub.HERPInterID.ToString() + "," + oSub.HERPEntryID.ToString() + "," + oSub.HReturnedQty.ToString() + "," + oSub.HDetailID.ToString() + |
| | | ") "); |
| | | "'," + oSub.HAuxPropID.ToString() + ",'" + oSub.HMTONo.ToString() + "'," + oSub.HPlanMode + "," + oSub.HERPInterID.ToString() + "," + oSub.HERPEntryID.ToString() + "," + oSub.HReturnedQty.ToString() + "," + oSub.HDetailID.ToString() + ",'" + oSub.F_xbkf_Combo.ToString() + "','" + oSub.FSHDD.ToString() + "','" + oSub.HExpressNumberSub + "','" + oSub.HExpressSupplierSub + "','" + oSub.HPlanArrivalDate + "','" + oSub.HBoxNumber + "','" + oSub.HSupBatchNo + |
| | | "','" + oSub.HSupMaterNumber + "'," + oSub.HTAXPRICE_T + ") ");//ç©æµåå·ä¸ºçä¸çªä½¿ç¨ |
| | | } |
| | | // |
| | | Ds = oCn.RunProcReturn("exec H_p_SRM_POInStockBill_UpdateBillRelateData " + omodel.HInterID.ToString(), "H_p_SRM_POInStockBill_UpdateBillRelateData"); |
| | |
| | | try |
| | | { |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID_SRMProd(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (omodel.HInterID == 0 || omodel.HInterID.ToString() == null || omodel.HInterID.ToString() == "undefined") |
| | | { |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID_SRMProd(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | //omodel.HInterID = DBUtility.ClsPub.CreateBillID_Prod(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | oCn.BeginTran(); |
| | | |
| | | //ä¿ååæ§å¶========================================= |
| | | Ds = oCn.RunProcReturn("Exec h_p_SRM_POInStockBill_BeforeSaveCtrl " + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "',1 ", " h_p_SRM_POInStockBill_BeforeSaveCtrl "); |
| | | if (Ds == null || DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | //主表 |
| | | //å¯è´å¥ç¹: HExpressSupplier,HReceiveGoodsMan,HReceiveGoodsLink |
| | | oCn.RunProc("Insert Into Cg_POInStockBillMain " + |
| | |
| | | ",HMainSourceInterID,HBillStatus,HCheckItemNowID,HCheckItemNextID,HCheckFlowID,HBacker,HBackDate,HExpressSupplier,HReceiveGoodsMan"+ |
| | | ",HReceiveGoodsLink,HSendGoodsAddr,HSendGoodsMan,HSendGoodsLink,HPURCHASEORGID) " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + omodel.HMaker + "',getdate()" + |
| | | ",'" + omodel.HAddress + "'," + omodel.HSupID.ToString() + "," + omodel.HCurID.ToString() + "," + omodel.HWHID.ToString() + "," + omodel.HExRate.ToString() + ",'" + omodel.HDHDate + "'" + |
| | | ", " + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "','" + omodel.HDeliveryNo + "','" + omodel.HMainSourceBillType + "','" + omodel.HMainSourceBillNo + "'," + omodel.HMainSourceInterID + "," + omodel.HMainSourceEntryID + |
| | | "," + omodel.HBillStatus + "," + omodel.HCheckItemNowID + "," + omodel.HCheckItemNextID + "," + omodel.HCheckFlowID + ",'','" + omodel.HBackDate + "','" + omodel.HExpressSupplier + "','" + omodel.HReceiveGoodsMan + "','" + omodel.HReceiveGoodsLink + "','" + omodel.HSendGoodsAddr + "','" + omodel.HSendGoodsMan + "','" + omodel.HSendGoodsLink + "'," + omodel.HPURCHASEORGID + ") "); |
| | |
| | | //oCn.RunProc("exec h_p_IFK3_ToERP_CGPOInStockBill_Check " + omodel.HInterID.ToString() + "," + omodel.HBillerID.ToString()); |
| | | ////æ´æ°åºå |
| | | //oCn.RunProc("exec h_p_IFK3_ToERP_CGPOInStockBill_RelationInfoCtrl " + omodel.HInterID.ToString()); |
| | | |
| | | //ä¿ååæ§å¶========================================= |
| | | Ds = oCn.RunProcReturn("Exec h_p_SRM_POInStockBill_AfterSaveCtrl " + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "',1 ", " h_p_SRM_POInStockBill_AfterSaveCtrl "); |
| | | if (Ds == null || DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //========================================================= |
| | | |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | |
| | | <Compile Include="SCM\ClsSup_EvaluateBillSub.cs" /> |
| | | <Compile Include="SCM\ClsSup_EvaluateSchemeBillMain.cs" /> |
| | | <Compile Include="SCM\ClsSup_EvaluateSchemeBillSub.cs" /> |
| | | <Compile Include="SCM\ClsSupMaterPackBillMain.cs" /> |
| | | <Compile Include="SCM\ClsSup_QuotePriceBillMain.cs" /> |
| | | <Compile Include="SCM\ClsSupMaterPackBillSub.cs" /> |
| | | <Compile Include="SCM\ClsSup_QuotePriceBillSub.cs" /> |
| | | <Compile Include="SCM\ClsSup_SampleRequestBillMain.cs" /> |
| | | <Compile Include="SCM\ClsSup_SampleRequestBillSub.cs" /> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Model |
| | | { |
| | | public class ClsSupMaterPackBillMain : DBUtility.ClsXt_BaseBillMain |
| | | { |
| | | public Int64 HSupID;// int --ä¾åºå |
| | | public string HBeginDate;// datetime --çææ¥æ |
| | | public string HEndDate;// datetime --å¤±ææ¥æ |
| | | public string HMakeEmp;// --å建人 |
| | | public DateTime HMakeTime;// datetime --åå»ºæ¥æ |
| | | public Int64 HUSEORGID;// datetime --使ç¨ç»ç» |
| | | public Int64 HCREATEORGID;// datetime --å建ç»ç» |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Model |
| | | { |
| | | public class ClsSupMaterPackBillSub : DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | |
| | | public Int64 HMaterID;// int --ç©æå
ç (h_v_K3_Material)ï¼æ¯å½ï¼å¯ç¼è¾ï¼å¸¦åºç©æä»£ç ï¼ç©æåç§°ï¼è§æ ¼ï¼åä½ï¼ |
| | | public Int64 HUnitID;// int --åä½å
ç (h_v_K3_Unit)ï¼æ¯å½ï¼å¯ç¼è¾ï¼å¸¦åºåä½ä»£ç ï¼åä½åç§°ï¼ |
| | | public decimal HMinPackQty;// dec(18,2) --æå°å
è£
æ° |
| | | public decimal HInBoxPackQty;// dec(18,2) --å
ç®±å
è£
æ° |
| | | public decimal HOutBoxPackQty;// dec(18,2) --å¤ç®±å
è£
æ° |
| | | public int HPriority;// ä¼å
级 |
| | | } |
| | | } |
| | |
| | | public string HSupBatchNo; //ä¾åºåæ¹æ¬¡ï¼å¯è´ï¼ |
| | | public string HSupMaterNumber; //ä¾åºåæå· ï¼å¯è´ï¼ |
| | | public Int64 HISKFPERIOD; //æ¯å¦å¯ç¨ä¿è´¨æ |
| | | public string HMaterNumber; //ç©æä»£ç |
| | | } |
| | | } |