Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-API
| | |
| | | { |
| | | DetailColl = null; |
| | | } |
| | | |
| | | |
| | | #endregion èªå®ä¹æ¹æ³ |
| | | |
| | | //ä¿ååæ§å¶ |
| | | public bool BeforeSave(Int64 HInterID, string HBillNo, Int64 HSecManagerID, Int64 HKeeperID, Int64 HSupID, Int64 OperationType, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | DataSet Ds = oCn.RunProcReturn("Exec h_p_Sc_MouldProdMoveBill_BeforeSaveCtrl " + HInterID.ToString() + ",'" + HBillNo + "'," + HSecManagerID.ToString() + "," + HKeeperID.ToString() + "," + HSupID.ToString() + "," + OperationType.ToString(), "h_p_Sc_MouldProdMoveBill_BeforeSaveCtrl"); |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | else |
| | | { |
| | | if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HBack"]) == 1) |
| | | { |
| | | sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | //ä¿ååæ§å¶ |
| | | public bool AfterSave(Int64 HInterID, string HBillNo, Int64 OperationType, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | DataSet Ds = oCn.RunProcReturn("Exec h_p_Sc_MouldProdMoveBill_AfterSaveCtrl " + HInterID.ToString() + ",'" + HBillNo + "'," + OperationType.ToString(), "h_p_Sc_MouldProdMoveBill_AfterSaveCtrl"); |
| | | if (Ds == null || Ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | sReturn = "ä¿ååå¤æå¤±è´¥ï¼"; |
| | | return false; |
| | | } |
| | | else |
| | | { |
| | | if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HBack"]) == 1) |
| | | { |
| | | sReturn = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]); |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | //ä¿®æ¹åæ® |
| | | public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | |
| | | { |
| | | // |
| | | oCn.BeginTran(); |
| | | //ä¿ååæ§å¶ |
| | | if (!BeforeSave(lngBillKey, omodel.HBillNo, omodel.HSecManagerID, omodel.HKeeperID, omodel.HSupID, 2, ref sReturn)) |
| | | { |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | //æ´æ°ä¸»è¡¨ |
| | | oCn.RunProc("UpDate Sc_MouldStockBillMain set " + |
| | | " HBillNo='" + omodel.HBillNo + "'" + //åºå®èµå¼=============== |
| | |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HSupID=" + omodel.HSupID.ToString() + |
| | | ",HWHID=" + omodel.HWHID.ToString() + |
| | | ",HSCWHID=" + omodel.HSCWHID.ToString() + |
| | | ",HSupTypeID=" + omodel.HSupTypeID.ToString() + |
| | | ",HEmpID=" + omodel.HEmpID.ToString() + |
| | | ",HManagerID=" + omodel.HManagerID.ToString() + |
| | | ",HSecManagerID=" + omodel.HSecManagerID.ToString() + |
| | | ",HKeeperID=" + omodel.HKeeperID.ToString() + |
| | | ",HDeptID=" + omodel.HDeptID.ToString() + |
| | | ",HWHID=" + omodel.HWHID.ToString() + |
| | | ",HSCWHID=" + omodel.HSCWHID.ToString() + |
| | | ",HExplanation='" + omodel.HExplanation + "'" + |
| | | ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + |
| | | ",HInnerBillNo='" + omodel.HInnerBillNo + "'" + |
| | | ",HRedBlueFlag=" + DBUtility.ClsPub.BoolToString(omodel.HRedBlueFlag) + |
| | | ",HStockOrgID=" + omodel.HSTOCKORGID.ToString() + |
| | | ",HStockStyle='" + omodel.HStockStyle + "'" + |
| | | ",HStockInOrgID=" + omodel.HStockInOrgID.ToString() + |
| | | ",HStockOutOrgID=" + omodel.HStockOutOrgID.ToString() + |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //å é¤å
³è |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | |
| | | foreach (Model.ClsSc_MouldProdMoveBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldStockBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HPropertyID,HSecUnitID,HSecUnitRate,HUnitID,HQtyMust" + |
| | | ",HQty,HPrice,HMoney,HWHID,HSCWHID,HSPID" + |
| | | ",HDesignLife,HLeaveLife,HUseLife" + |
| | | ",HSCSPID,HSPGroupID,HBatchNo" + |
| | | " (HInterID,HEntryID,HRemark,HRelationQty,HRelationMoney" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | ",HMaterID,HPropertyID,HSecUnitID,HSecUnitRate,HUnitID,HBatchNo" + |
| | | ",HQtyMust,HQtyRel,HQty,HPrice,HMoney,HDesignLife" + |
| | | ",HLeaveLife,HUseLife,HUseLifeQty,HNewLifeQty,HWHID,HSCWHID" + |
| | | ",HSPID,HSCSPID,HSPGroupID,HBarCode,HCorrespondentTypeID,HCorrespondentID" + |
| | | ",HPOOrderInterID,HPOOrderEntryID,HPOOrderBillNo,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + |
| | | ",HStockOrgID,HOWNERID,HOtherOrgID,HOWNERTYPEID" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HPropertyID.ToString() + "," + oSub.HSecUnitID.ToString() + "," + oSub.HSecUnitRate.ToString() + "," + oSub.HUnitID.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + "," + oSub.HSPID.ToString() + |
| | | "," + oSub.HDesignLife.ToString() + "," + oSub.HLeaveLife.ToString() + "," + oSub.HUseLife.ToString() + |
| | | "," + oSub.HSCSPID.ToString() + "," + oSub.HSPGroupID.ToString() + ",'" + oSub.HBatchNo + "'" + |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HRemark + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'" + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HPropertyID.ToString() + "," + oSub.HSecUnitID.ToString() + "," + oSub.HSecUnitRate.ToString() + "," + oSub.HUnitID.ToString() + ",'" + oSub.HBatchNo + "'" + |
| | | "," + oSub.HQtyMust.ToString() + "," + oSub.HQtyRel.ToString() + "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HDesignLife.ToString() + |
| | | "," + oSub.HLeaveLife.ToString() + "," + oSub.HUseLife.ToString() + "," + oSub.HUseLifeQty.ToString() + "," + oSub.HNewLifeQty.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + |
| | | "," + oSub.HSPID.ToString() + "," + oSub.HSCSPID.ToString() + "," + oSub.HSPGroupID.ToString() + ",'" + oSub.HBarCode + "'," + oSub.HCorrespondentTypeID.ToString() + "," + oSub.HCorrespondentID.ToString() + |
| | | "," + oSub.HPOOrderInterID.ToString() + "," + oSub.HPOOrderEntryID.ToString() + ",'" + oSub.HPOOrderBillNo + "'," + oSub.HSeOrderInterID.ToString() + "," + oSub.HSeOrderEntryID.ToString() + ",'" + oSub.HSeOrderBillNo + "'" + |
| | | "," + oSub.HStockOrgID.ToString() + "," + oSub.HOWNERID.ToString() + "," + oSub.HOtherOrgID.ToString() + ",'" + oSub.HOWNERTYPEID + "'" + |
| | | ") "); |
| | | } |
| | | sReturn = "ä¿®æ¹åæ®æåï¼"; |
| | | //ä¿ååæ§å¶ |
| | | if (!AfterSave(lngBillKey, omodel.HBillNo, 2, ref sReturn)) |
| | | { |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | sReturn = "åæ®å·ï¼" + omodel.HBillNo + " ä¿®æ¹æåï¼"; |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | |
| | | { |
| | | try |
| | | { |
| | | //è·åç³»ç»åæ° |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | if (oSystemParameter.ShowBillByOrgID(omodel.HSTOCKORGID, ref sReturn) == false) |
| | | { |
| | | sReturn = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sReturn; |
| | | return false; |
| | | } |
| | | //å¾å°mainid |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //è¥MAINDIéå¤åéæ°è·å |
| | | if (omodel.HInterID == 0) |
| | | { |
| | | omodel.HInterID = DBUtility.ClsPub.CreateBillID_Prod(BillType, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | //ä¿ååæ§å¶ |
| | | if (!BeforeSave(omodel.HInterID, omodel.HBillNo, omodel.HSecManagerID, omodel.HKeeperID, omodel.HSupID, 1, ref sReturn)) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | oCn.BeginTran(); |
| | | //主表 |
| | | oCn.RunProc("Insert Into Sc_MouldStockBillMain " + |
| | | "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + |
| | | ",HSupID,HWHID,HSCWHID,HEmpID,HManagerID,HSecManagerID" + |
| | | ",HKeeperID,HDeptID,HExplanation,HInnerBillNo,HRedBlueFlag" + |
| | | ",HSupID,HSupTypeID,HEmpID,HManagerID,HSecManagerID" + |
| | | ",HKeeperID,HDeptID,HWHID,HSCWHID,HRedBlueFlag" + |
| | | ",HExplanation,HInnerBillNo,HStockOrgID,HStockStyle,HStockInOrgID,HStockOutOrgID" + |
| | | ") " + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," +omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate + "'" + |
| | | " values('" + this.BillType + "','" + this.HBillSubType + "'," + omodel.HInterID.ToString() + ",'" + omodel.HBillNo + "','" + omodel.HDate.ToShortDateString() + "'" + |
| | | ", " + omodel.HYear.ToString() + "," + omodel.HPeriod.ToString() + ",'" + omodel.HRemark + "','" + DBUtility.ClsPub.CurUserName + "',getdate()" + |
| | | ", " + omodel.HSupID.ToString() + "," + omodel.HWHID.ToString() + "," + omodel.HSCWHID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString() + |
| | | ", " + omodel.HKeeperID.ToString() + "," + omodel.HDeptID.ToString() + ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + DBUtility.ClsPub.BoolToString(omodel.HRedBlueFlag) + |
| | | ", " + omodel.HSupID.ToString() + "," + omodel.HSupTypeID.ToString() + "," + omodel.HEmpID.ToString() + "," + omodel.HManagerID.ToString() + "," + omodel.HSecManagerID.ToString() + |
| | | ", " + omodel.HKeeperID.ToString() + "," + omodel.HDeptID.ToString() + "," + omodel.HWHID.ToString() + "," + omodel.HSCWHID.ToString() + "," + DBUtility.ClsPub.BoolToString(omodel.HRedBlueFlag) + |
| | | ",'" + omodel.HExplanation + "','" + omodel.HInnerBillNo + "'," + omodel.HSTOCKORGID.ToString() + ",'" + omodel.HStockStyle + "'," + omodel.HStockInOrgID.ToString() + "," + omodel.HStockOutOrgID.ToString() + |
| | | ") "); |
| | | //æå
¥å表 |
| | | foreach (Model.ClsSc_MouldProdMoveBillSub oSub in DetailColl) |
| | | { |
| | | oCn.RunProc("Insert into Sc_MouldStockBillSub " + |
| | | " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HPropertyID,HSecUnitID,HSecUnitRate,HUnitID,HQtyMust" + |
| | | ",HQty,HPrice,HMoney,HWHID,HSCWHID,HSPID" + |
| | | ",HDesignLife,HLeaveLife,HUseLife" + |
| | | ",HSCSPID,HSPGroupID,HBatchNo" + |
| | | " (HInterID,HEntryID,HRemark,HRelationQty,HRelationMoney" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | ",HMaterID,HPropertyID,HSecUnitID,HSecUnitRate,HUnitID,HBatchNo" + |
| | | ",HQtyMust,HQtyRel,HQty,HPrice,HMoney,HDesignLife" + |
| | | ",HLeaveLife,HUseLife,HUseLifeQty,HNewLifeQty,HWHID,HSCWHID" + |
| | | ",HSPID,HSCSPID,HSPGroupID,HBarCode,HCorrespondentTypeID,HCorrespondentID" + |
| | | ",HPOOrderInterID,HPOOrderEntryID,HPOOrderBillNo,HSeOrderInterID,HSeOrderEntryID,HSeOrderBillNo" + |
| | | ",HStockOrgID,HOWNERID,HOtherOrgID,HOWNERTYPEID" + |
| | | ") values(" |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "','" + oSub.HEntryCloseDate.ToShortDateString() + "'," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'" + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HPropertyID.ToString() + "," + oSub.HSecUnitID.ToString() + "," + oSub.HSecUnitRate.ToString() + "," + oSub.HUnitID.ToString() + "," + oSub.HQtyMust.ToString() + |
| | | "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + "," + oSub.HSPID.ToString() + |
| | | "," + oSub.HDesignLife.ToString() + "," + oSub.HLeaveLife.ToString() + "," + oSub.HUseLife.ToString() + |
| | | "," + oSub.HSCSPID.ToString() + "," + oSub.HSPGroupID.ToString() + ",'" + oSub.HBatchNo + "'" + |
| | | + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HRemark + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + |
| | | "," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'" + |
| | | "," + oSub.HMaterID.ToString() + "," + oSub.HPropertyID.ToString() + "," + oSub.HSecUnitID.ToString() + "," + oSub.HSecUnitRate.ToString() + "," + oSub.HUnitID.ToString() + ",'" + oSub.HBatchNo + "'" + |
| | | "," + oSub.HQtyMust.ToString() + "," + oSub.HQtyRel.ToString() + "," + oSub.HQty.ToString() + "," + oSub.HPrice.ToString() + "," + oSub.HMoney.ToString() + "," + oSub.HDesignLife.ToString() + |
| | | "," + oSub.HLeaveLife.ToString() + "," + oSub.HUseLife.ToString() + "," + oSub.HUseLifeQty.ToString() + "," + oSub.HNewLifeQty.ToString() + "," + oSub.HWHID.ToString() + "," + oSub.HSCWHID.ToString() + |
| | | "," + oSub.HSPID.ToString() + "," + oSub.HSCSPID.ToString() + "," + oSub.HSPGroupID.ToString() + ",'" + oSub.HBarCode + "'," + oSub.HCorrespondentTypeID.ToString() + "," + oSub.HCorrespondentID.ToString() + |
| | | "," + oSub.HPOOrderInterID.ToString() + "," + oSub.HPOOrderEntryID.ToString() + ",'" + oSub.HPOOrderBillNo + "'," + oSub.HSeOrderInterID.ToString() + "," + oSub.HSeOrderEntryID.ToString() + ",'" + oSub.HSeOrderBillNo + "'" + |
| | | "," + oSub.HStockOrgID.ToString() + "," + oSub.HOWNERID.ToString() + "," + oSub.HOtherOrgID.ToString() + ",'" + oSub.HOWNERTYPEID + "'" + |
| | | ") "); |
| | | } |
| | | sReturn = "æ°å¢åæ®æåï¼"; |
| | | //ä¿ååæ§å¶ |
| | | if (!AfterSave(omodel.HInterID, omodel.HBillNo, 1, ref sReturn)) |
| | | { |
| | | oCn.RollBack(); |
| | | return false; |
| | | } |
| | | |
| | | if (oSystemParameter.omodel.Sc_MouldProdMoveBill_AutoCheck.ToUpper() == "Y") //ç³»ç»åæ° èªå¨å®¡æ ¸ |
| | | { |
| | | //å®¡æ ¸åæ® |
| | | oCn.RunProc("Update Sc_MouldStockBillMain Set HChecker='" + DBUtility.ClsPub.CurUserName + "',HCheckDate=getdate(),HBillStatus=2 where HInterID= " + omodel.HInterID.ToString()); |
| | | sReturn = "åæ®å·ï¼" + omodel.HBillNo + " æ°å¢å®¡æ ¸æåï¼"; |
| | | } |
| | | else |
| | | { |
| | | sReturn = "åæ®å·ï¼" + omodel.HBillNo + " æ°å¢æåï¼"; |
| | | } |
| | | oCn.Commit(); |
| | | return true; |
| | | } |
| | |
| | | public class ClsSc_MouldProdMoveBillMain : DBUtility.ClsXt_BaseBillMain |
| | | { |
| | | public Int64 HSupID;// int --ä¾åºå |
| | | public Int64 HSupTypeID;// int --徿¥ç±»å |
| | | public Int64 HWHID;// int --ä»åº |
| | | public Int64 HSCWHID;// int --è°åºä»åº |
| | | public Int64 HEmpID;// int --ä¸å¡å |
| | |
| | | public string HInnerBillNo;// varchar(50) --å
é¨åæ®å· |
| | | public string HRemark; //å å·¥è¦æ± |
| | | public bool HRedBlueFlag;// bit --红èå |
| | | public string HStockStyle;// |
| | | public string HStockStyle; // varchar(100) //è°æ¨ç±»å |
| | | public int HStockInOrgID; // int //è°å
¥ç»ç»ID |
| | | public int HStockOutOrgID; // int //è°åºç»ç»ID |
| | | } |
| | | } |
| | |
| | | namespace Model |
| | | { |
| | | public class ClsSc_MouldProdMoveBillSub : DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | public DateTime HEntryCloseDate;// datetime --è¡å
³é (é»è®¤ä¸º'') new |
| | | public string HRemark;// varchar(200) --夿³¨ |
| | | public Int64 HMaterID;// int --ç©æID |
| | | public Int64 HPropertyID;// int --è¾
å©å±æ§ |
| | | public Int64 HSecUnitID;// int --è¾
å©è®¡éåä½ |
| | | public Single HSecUnitRate;// money --æ¢ç®ç |
| | | public Int64 HUnitID;// int --计éåä½ |
| | | public double HDesignLife;// dec(18,8) --è®¾è®¡å¯¿å½ |
| | | public double HLeaveLife;// dec(18,8) --å©ä½å¯¿å½ |
| | | public double HUseLife;// dec(18,8) --使ç¨å¯¿å½ |
| | | public double HQtyMust;// dec(18,8) --åºæ¶æ°é |
| | | public double HQty;// dec(18,8) --宿¶æ°é |
| | | public double HPrice;// dec(18,8) --åä»· |
| | | public double HMoney;// dec(18,8) --éé¢ |
| | | public Int64 HWHID;// int --æ¶æä»åº |
| | | public Int64 HSCWHID;// int --è°åºä»åºID |
| | | public Int64 HSPID;// int --ä»ä½ID |
| | | public Int64 HSCSPID;// int --è°åºä»ä½ID |
| | | public Int64 HSPGroupID;// int --ä»ä½ç»ID(ä»åºéæ©å®èªå¨å¸¦åº) |
| | | public string HBatchNo;// varchar(50) --æ¹æ¬¡ |
| | | { |
| | | public long HMaterID; // int --ç©æID |
| | | public long HPropertyID; // int --è¾
å©å±æ§ |
| | | public long HSecUnitID; // int --è¾
å©è®¡éåä½ |
| | | public Single HSecUnitRate; // money --æ¢ç®ç |
| | | public long HUnitID; // int --计éåä½ |
| | | public string HBatchNo; // varchar(50) --æ¹æ¬¡ |
| | | public double HQtyMust; // --è´¦åæ°é |
| | | public double HQtyRel; // --å®åæ°é |
| | | public double HQty; // --çäºæ°é |
| | | public double HPrice; // --åä»· |
| | | public double HMoney; // --çäºéé¢ |
| | | public double HDesignLife; // money --è®¾è®¡å¯¿å½ |
| | | public double HLeaveLife; // money --å©ä½å¯¿å½ |
| | | public double HUseLife; // money --使ç¨å¯¿å½ |
| | | public long HWHID; // int --æ¶æä»åº |
| | | public long HSCWHID; // int --è°åºä»åºID çé¢ä¸ä¸éè¦æ¾ç¤ºï¼å0è¿å» |
| | | public long HSPID; // int --ä»ä½ID |
| | | public long HSCSPID; // int --è°åºä»ä½ID çé¢ä¸ä¸éè¦æ¾ç¤ºï¼å0è¿å» |
| | | public long HSPGroupID; // int --ä»ä½ç»ID çé¢ä¸ä¸éè¦æ¾ç¤ºï¼å0è¿å» |
| | | public string HBarCode; |
| | | public double HUseLifeQty; |
| | | public string HNowModel; |
| | | public double HNowLife; |
| | | public Int64 HMouldType; |
| | | public string HInitModel; |
| | | public Single HInitDesignLife; |
| | | public Int64 HLifeUnitID; |
| | | public string HNewModel; |
| | | public string HWallThickness; |
| | | public string HHardness; |
| | | public string HLastProdModel; |
| | | public string HDiameter; |
| | | public string HBackFlag; |
| | | public double HNewLifeQty; |
| | | public Int64 HPOOrderInterID; // int --éè´è®¢å主å
ç |
| | | public Int64 HPOOrderEntryID; // int --éè´è®¢ååå
ç |
| | | public string HPOOrderBillNo; // varchar(50) --éè´è®¢åå· |
| | | public Int64 HSeOrderInterID; // int --éå®è®¢å主å
ç |
| | | public Int64 HSeOrderEntryID; // int --éå®è®¢ååå
ç |
| | | public string HSeOrderBillNo; // varchar(50) --éå®è®¢åå· |
| | | public Int64 HCorrespondentTypeID; // int --徿¥åä½ç±»åï¼1 ä¾åºåã2 客æ·ã 3 车é´é¨é¨ï¼ |
| | | public Int64 HCorrespondentID; // int --徿¥åä½å
ç |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | omodel.Sc_MouldProdInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·é¢ç¨åºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldProdOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdOutBill_SaveAutoAddnew") |
| | | { |
| | |
| | | { |
| | | omodel.Sc_MouldProdBackBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdBackBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdBackBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¹å¶åºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldRepairOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldRepairOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¹å¶å
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldRepairInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldRepairInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·å
¶ä»å
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldOtherInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldOtherInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·å
¶ä»åºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldOtherOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldOtherOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æåå
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldBorrowInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldBorrowInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æååºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldBorrowOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldBorrowOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¥åºå
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldScrapInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldScrapInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¥åºåºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldScrapOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldScrapOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·ç´æ¥è°æ¨å |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdMoveBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldProdMoveBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdMoveBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdMoveBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·åæ¥è°åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·åæ¥è°å
¥å |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·çç¹å |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdCheckStockBill_AutoCheck") |
| | |
| | | { |
| | | omodel.Sc_MouldProdInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·é¢ç¨åºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldProdOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdOutBill_SaveAutoAddnew") |
| | | { |
| | |
| | | { |
| | | omodel.Sc_MouldProdBackBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdBackBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdBackBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¹å¶åºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldRepairOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldRepairOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¹å¶å
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldRepairInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldRepairInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldRepairInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·å
¶ä»å
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldOtherInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldOtherInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·å
¶ä»åºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldOtherOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldOtherOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldOtherOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æåå
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldBorrowInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldBorrowInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æååºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldBorrowOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldBorrowOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldBorrowOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¥åºå
¥åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldScrapInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldScrapInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·æ¥åºåºåºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldScrapOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldScrapOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldScrapOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·ç´æ¥è°æ¨å |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdMoveBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldProdMoveBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdMoveBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldProdMoveBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·åæ¥è°åºå |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepOutBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepOutBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepOutBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepOutBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·åæ¥è°å
¥å |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepInBill_AutoCheck") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepInBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldMoveStockStepInBill_BarCodeQty") |
| | | { |
| | | omodel.Sc_MouldMoveStockStepInBill_BarCodeQty = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //===========å¨å
·çç¹å |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MouldProdCheckStockBill_AutoCheck") |
| | |
| | | { |
| | | omodel.Sc_MESBeginWorkBill_AutoCheck = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //å·å¡éªè¯ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MESBeginWorkBill_SwipeCardStart") |
| | | { |
| | | omodel.Sc_MESBeginWorkBill_SwipeCardStart = ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HValue"]); |
| | | } |
| | | //==========è¿å·¥å |
| | | //èªå¨å®¡æ ¸ |
| | | if (ClsPub.isStrNull(DsSub.Tables[0].Rows[i]["HKey"]) == "Sc_MESReturnWorkBill_AutoCheck") |
| | |
| | | //====================================================å¨å
·ç®¡çEAM |
| | | |
| | | //å¨å
·éè´å
¥åºå |
| | | public string Sc_MouldProdInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdInBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·é¢ç¨åºåºå |
| | | public string Sc_MouldProdOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdOutBill_SaveAutoAddnew; //ä¿ååå为æ°å¢ç¶æ |
| | | public string Sc_MouldProdOutBill_DeleterAndMakerMustSame; //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | public string Sc_MouldProdOutBill_MouldLifeCtrl; //ä¿åæ¶å¨å
·å¯¿å½æ§å¶ ï¼Y æ§å¶ï¼ N 䏿§å¶ å½å¨å
·é¢è®¡å¯¿å½æè
å½å寿å½ä¸è¶³æ¶ï¼ä¸å
许é¢ç¨ï¼ |
| | | public string Sc_MouldProdOutBill_MouldLifeCtrlType; //ä¿åæ¶å¨å
·å¯¿å½æ§å¶ç±»å ï¼Y å¼ºå¶æ§å¶ï¼ N ä»
æç¤ºï¼ |
| | | public string Sc_MouldProdOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdOutBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | public string Sc_MouldProdOutBill_SaveAutoAddnew; //ä¿ååå为æ°å¢ç¶æ |
| | | public string Sc_MouldProdOutBill_DeleterAndMakerMustSame; //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | public string Sc_MouldProdOutBill_MouldLifeCtrl; //ä¿åæ¶å¨å
·å¯¿å½æ§å¶ ï¼Y æ§å¶ï¼ N 䏿§å¶ å½å¨å
·é¢è®¡å¯¿å½æè
å½å寿å½ä¸è¶³æ¶ï¼ä¸å
许é¢ç¨ï¼ |
| | | public string Sc_MouldProdOutBill_MouldLifeCtrlType; //ä¿åæ¶å¨å
·å¯¿å½æ§å¶ç±»å ï¼Y å¼ºå¶æ§å¶ï¼ N ä»
æç¤ºï¼ |
| | | |
| | | //å¨å
·é¢ç¨éåºå |
| | | public string Sc_MouldProdBackBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdBackBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdBackBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·æ¹å¶åºåºå |
| | | public string Sc_MouldRepairOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldRepairOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldRepairOutBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·æ¹å¶å
¥åºå |
| | | public string Sc_MouldRepairInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldRepairInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldRepairInBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·å
¶ä»å
¥åºå |
| | | public string Sc_MouldOtherInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldOtherInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldOtherInBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·å
¶ä»åºåºå |
| | | public string Sc_MouldOtherOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldOtherOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldOtherOutBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·æåå
¥åºå |
| | | public string Sc_MouldBorrowInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldBorrowInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldBorrowInBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·æååºåºå |
| | | public string Sc_MouldBorrowOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldBorrowOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldBorrowOutBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·æ¥åºå
¥åºå |
| | | public string Sc_MouldScrapInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldScrapInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldScrapInBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·æ¥åºåºåºå |
| | | public string Sc_MouldScrapOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldScrapOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldScrapOutBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·ç´æ¥è°æ¨å |
| | | public string Sc_MouldProdMoveBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdMoveBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdMoveBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·åæ¥è°åºå |
| | | public string Sc_MouldMoveStockStepOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldMoveStockStepOutBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldMoveStockStepOutBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·åæ¥è°å
¥å |
| | | public string Sc_MouldMoveStockStepInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldMoveStockStepInBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldMoveStockStepInBill_BarCodeQty; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | //å¨å
·çç¹å |
| | | public string Sc_MouldProdCheckStockBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MouldProdCheckStockBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | |
| | | |
| | | //====================================================å·¥åºæµè½¬WIP |
| | |
| | | public string Sc_MESBeginWorkBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MESBeginWorkBill_SaveAutoAddnew; //ä¿ååå为æ°å¢ç¶æ |
| | | public string Sc_MESBeginWorkBill_DeleterAndMakerMustSame; //å é¤äººå¿
é¡»æ¯å¶å人 |
| | | public string Sc_MESBeginWorkBill_SwipeCardStart; //å¼å·¥åéè¦å·å¡éªè¯ |
| | | //è¿å·¥å |
| | | public string Sc_MESReturnWorkBill_AutoCheck; //ä¿å忝å¦èªå¨å®¡æ ¸ |
| | | public string Sc_MESReturnWorkBill_SaveAutoAddnew; //ä¿ååå为æ°å¢ç¶æ |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region æ¥å·¥å¹³å°å¼å·¥åä¿ååç³»ç»éªè¯ |
| | | [Route("Sc_MESBeginWorkBill/Xt_AllowLoadData")] |
| | | [HttpGet] |
| | | public object Xt_AllowLoadData(string HKey) |
| | | { |
| | | try |
| | | { |
| | | ClsXt_SystemParameter oClsXt_SystemParameter = new ClsXt_SystemParameter(); |
| | | string Key = "N"; |
| | | string sCapName = oClsXt_SystemParameter.GetSingleSystemParameter("WMS_CampanyName", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (sCapName.Contains("æå·æ¯è«å°")) |
| | | { |
| | | Key = oClsXt_SystemParameter.GetSingleSystemParameter(HKey, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = ""; |
| | | objJsonResult.data = null; |
| | | objJsonResult.Verify = Key; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = e.Message; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region æ¥å·¥å¹³å°å¼å·¥åæµæ°´å·å车è·åæ¡ç ä¿¡æ¯ |
| | | [Route("Sc_MESBeginWorkBill/txtHBarCode_KeyDown")] |
| | | [HttpGet] |
| | | public object txtHBarCode_KeyDown(string HBarCode, string HSourceInterID) |
| | | { |
| | | try |
| | | { |
| | | if (HBarCode == null || HBarCode.Equals("")) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "空ç½ç ,æ¡å½¢ç ä¸è½ä¸ºç©ºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("exec h_p_Sc_MESBeginWorkBill_AllowLoadData '"+ HBarCode + "',"+ HSourceInterID, "h_p_Sc_MESBeginWorkBill_AllowLoadData"); |
| | | |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æªæ¥è¯¢å°æ¡ç ä¿¡æ¯ï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | else if (ds.Tables[0].Rows.Count ==1) |
| | | { |
| | | objJsonResult.code = ds.Tables[0].Rows[0][0].ToString(); |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = ds.Tables[0].Rows[0][1].ToString(); |
| | | objJsonResult.data = ds; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = ds.Tables[0].Rows[0][0].ToString(); |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = ds.Tables[0].Rows[0][1].ToString(); |
| | | objJsonResult.data = ds; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region æ¥å·¥å¹³å°å¼å·¥åä¿å/ç¼è¾ |
| | | /// <summary> |
| | | /// å¼å·¥å |
| | |
| | | public DataSet ds = new DataSet(); |
| | | private json objJsonResult = new json(); |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | |
| | | |
| | | #region å¨å
·æ«ç 模åè°ç¨æ¹æ³ |
| | |
| | | /// <returns></returns> |
| | | [Route("MouldController/Get_CheckTypeByMouldBarCode_Json")] |
| | | [HttpGet] |
| | | public object Get_CheckTypeByMouldBarCode_Json(string sBarCode, Int64 HInterID, string HBillType, string HBillNo, string HMaker, Int64 HWhID, Int64 HSPID, Int64 HSCWhID, Int64 HSCSPID, bool HRedBlueFlag, string HSourceBillNo, string HSourceBillType, Int64 HStockOrgID) |
| | | public object Get_CheckTypeByMouldBarCode_Json(string sBarCode, Int64 HInterID, string HBillType, string HBillNo, string HMaker, Int64 HWhID, Int64 HSPID, Int64 HSCWhID, Int64 HSCSPID, bool HRedBlueFlag, string HSourceBillNo, string HSourceBillType, Int64 HStockOrgID, Int64 HStockOutOrgID) |
| | | { |
| | | Int64 HBarCodeQty = 0; //å
è®¸æ«ææ¡ç 个æ°ï¼0ã1ã2ã3.....ï¼å
¶ä¸0ä¸ºä¸æ§å¶ï¼ |
| | | |
| | | #region è·åç³»ç»åæ° |
| | | string sErrMsg = ""; |
| | | if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == true) |
| | | { |
| | | //å¨å
·éè´å
¥åºå |
| | | if (HBillType == "3801") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldProdInBill_BarCodeQty); |
| | | } |
| | | //å¨å
·é¢ç¨åºåºå |
| | | else if (HBillType == "3802") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldProdOutBill_BarCodeQty); |
| | | } |
| | | //å¨å
·é¢ç¨éåºå |
| | | else if (HBillType == "3803") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldProdBackBill_BarCodeQty); |
| | | } |
| | | //å¨å
·æ¹å¶åºåºå |
| | | else if (HBillType == "3825") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldRepairOutBill_BarCodeQty); |
| | | } |
| | | //å¨å
·æ¹å¶å
¥åºå |
| | | else if (HBillType == "3826") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldRepairInBill_BarCodeQty); |
| | | } |
| | | //å¨å
·å
¶ä»å
¥åºå |
| | | else if (HBillType == "3827") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldOtherInBill_BarCodeQty); |
| | | } |
| | | //å¨å
·å
¶ä»åºåºå |
| | | else if (HBillType == "3828") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldOtherOutBill_BarCodeQty); |
| | | } |
| | | //å¨å
·æåå
¥åºå |
| | | else if (HBillType == "3829") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldBorrowInBill_BarCodeQty); |
| | | } |
| | | //å¨å
·æååºåºå |
| | | else if (HBillType == "3830") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldBorrowOutBill_BarCodeQty); |
| | | } |
| | | //å¨å
·æ¥åºå
¥åºå |
| | | else if (HBillType == "3831") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldScrapInBill_BarCodeQty); |
| | | } |
| | | //å¨å
·æ¥åºåºåºå |
| | | else if (HBillType == "3832") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldScrapOutBill_BarCodeQty); |
| | | } |
| | | //å¨å
·ç´æ¥è°æ¨å |
| | | else if (HBillType == "3814") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldProdMoveBill_BarCodeQty); |
| | | } |
| | | //å¨å
·åæ¥è°åºå |
| | | else if (HBillType == "3840") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldMoveStockStepOutBill_BarCodeQty); |
| | | } |
| | | //å¨å
·åæ¥è°å
¥å |
| | | else if (HBillType == "3841") |
| | | { |
| | | HBarCodeQty = DBUtility.ClsPub.isLong(oSystemParameter.omodel.Sc_MouldMoveStockStepInBill_BarCodeQty); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "è·åç³»ç»åæ°å¤±è´¥ï¼ " + sErrMsg; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | try |
| | | { |
| | | ds = oCn.RunProcReturn("exec h_p_WMS_AddMouldBarCode_New '" + sBarCode + "'," + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "'," + HWhID.ToString() + "," + HSPID.ToString() + "," + HSCWhID.ToString() + "," + HSCSPID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "','" + HRedBlueFlag + "','" + HMaker + "'," + HStockOrgID.ToString(), "h_p_WMS_AddMouldBarCode_New"); |
| | | ds = oCn.RunProcReturn("exec h_p_WMS_CheckMouldBarCode_Add '" + sBarCode + "'," + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "'," + HWhID.ToString() + "," + HSPID.ToString() + "," + HSCWhID.ToString() + "," + HSCSPID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "','" + HRedBlueFlag + "','" + HMaker + "'," + HStockOrgID.ToString() + "," + HStockOutOrgID.ToString() + "," + HBarCodeQty.ToString(), "h_p_WMS_CheckMouldBarCode_Add"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 模å
·è°æ¨å ä¸ä¼ çå |
| | | |
| | | /// <summary> |
| | | /// 模å
·è°æ¨åæ°å¢ä¸ä¼ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("MouldController/set_SaveMouldProdMoveBill_Json")] |
| | | [HttpPost] |
| | | public object set_SaveMouldProdMoveBill_Json([FromBody] JObject oMain) |
| | | { |
| | | BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; |
| | | DAL.ClsSc_MouldProdMoveBill BillNew = new DAL.ClsSc_MouldProdMoveBill(); |
| | | var _value = oMain["oMain"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | try |
| | | { |
| | | string sMainStr = "[" + msg1.ToString() + "]"; |
| | | List<Model.ClsSc_MouldProdMoveBillMain> mainList = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsSc_MouldProdMoveBillMain>>(sMainStr); |
| | | |
| | | //忮巿¯å¦éå¤ |
| | | if (BillNew.IsExistBillNo(ref ClsPub.sExeReturnInfo, mainList[0].HBillNo, BillStatus, mainList[0].HInterID)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å
许ä¿åï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //夿ä¼è®¡ææ¯å¦åç |
| | | string s = ""; |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(mainList[0].HDate, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = s; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //åºå®èµå¼================================= |
| | | BillNew.omodel.HYear = sYear; |
| | | BillNew.omodel.HPeriod = sPeriod; |
| | | BillNew.omodel.HBillType = "3814"; |
| | | BillNew.omodel.HInterID = mainList[0].HInterID; |
| | | BillNew.omodel.HBillNo = mainList[0].HBillNo; |
| | | BillNew.omodel.HDate = mainList[0].HDate; |
| | | BillNew.omodel.HRemark = mainList[0].HRemark; |
| | | BillNew.omodel.HMaker = mainList[0].HMaker; |
| | | BillNew.omodel.HSTOCKORGID = mainList[0].HSTOCKORGID; |
| | | DBUtility.ClsPub.CurUserName = mainList[0].HMaker; |
| | | //==================================================== |
| | | BillNew.omodel.HSupID = mainList[0].HSupID; |
| | | BillNew.omodel.HSupTypeID = mainList[0].HSupTypeID; |
| | | BillNew.omodel.HEmpID = mainList[0].HEmpID; |
| | | BillNew.omodel.HManagerID = mainList[0].HManagerID; |
| | | BillNew.omodel.HSecManagerID = mainList[0].HSecManagerID; |
| | | BillNew.omodel.HKeeperID = mainList[0].HKeeperID; |
| | | BillNew.omodel.HDeptID = mainList[0].HDeptID; |
| | | BillNew.omodel.HWHID = mainList[0].HWHID; |
| | | BillNew.omodel.HSCWHID = mainList[0].HSCWHID; |
| | | BillNew.omodel.HExplanation = mainList[0].HExplanation; |
| | | BillNew.omodel.HInnerBillNo = mainList[0].HInnerBillNo; |
| | | BillNew.omodel.HRedBlueFlag = mainList[0].HRedBlueFlag; |
| | | BillNew.omodel.HStockStyle = mainList[0].HStockStyle; |
| | | BillNew.omodel.HStockInOrgID = mainList[0].HStockInOrgID; |
| | | BillNew.omodel.HStockOutOrgID = mainList[0].HStockOutOrgID; |
| | | //å表èµå¼ |
| | | ds = oCn.RunProcReturn("exec h_p_Sc_GetMouldStockBill_Temp " + BillNew.omodel.HInterID.ToString() + ",'" + BillNew.omodel.HBillType + "'", "h_p_Sc_GetMouldStockBill_Temp"); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ 误ååæäº¤ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | for (int i = 0; i <= ds.Tables[0].Rows.Count - 1; i++) |
| | | { |
| | | Model.ClsSc_MouldProdMoveBillSub oSub = new Model.ClsSc_MouldProdMoveBillSub(); |
| | | //åºå®èµå¼======================================== |
| | | oSub.HEntryID = i + 1; |
| | | oSub.HRemark = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HRemark"]); |
| | | oSub.HSourceInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceInterID"]); |
| | | oSub.HSourceEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSourceEntryID"]); |
| | | oSub.HSourceBillType = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillType"]); |
| | | oSub.HSourceBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSourceBillNo"]); |
| | | oSub.HRelationQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationQty"]); |
| | | oSub.HRelationMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HRelationMoney"]); |
| | | //============================= |
| | | oSub.HMaterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HMaterID"]); |
| | | oSub.HPropertyID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HAuxPropID"]); |
| | | oSub.HSecUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSecUnitID"]); |
| | | oSub.HSecUnitRate = DBUtility.ClsPub.isSingle(ds.Tables[0].Rows[i]["HSecUnitRate"]); |
| | | oSub.HUnitID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HUnitID"]); |
| | | oSub.HBatchNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBatchNo"]); |
| | | oSub.HQtyMust = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyMust"]); |
| | | oSub.HQtyRel = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQtyRel"]); |
| | | oSub.HQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HQty"]); |
| | | oSub.HPrice = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HPrice"]); |
| | | oSub.HMoney = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HMoney"]); |
| | | oSub.HDesignLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HDesignLife"]); |
| | | oSub.HLeaveLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HLeaveLife"]); |
| | | oSub.HUseLife = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLife"]); |
| | | oSub.HUseLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HUseLifeQty"]); |
| | | oSub.HNewLifeQty = DBUtility.ClsPub.isDoule(ds.Tables[0].Rows[i]["HNewLifeQty"]); |
| | | oSub.HWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HWHID"]); |
| | | oSub.HSCWHID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCWHID"]); |
| | | oSub.HSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPID"]); |
| | | oSub.HSCSPID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSCSPID"]); |
| | | oSub.HSPGroupID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSPGroupID"]); |
| | | oSub.HBarCode = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HBarCode"]); |
| | | oSub.HCorrespondentTypeID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentTypeID"]); |
| | | oSub.HCorrespondentID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HCorrespondentID"]); |
| | | oSub.HPOOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderInterID"]); |
| | | oSub.HPOOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HPOOrderEntryID"]); |
| | | oSub.HPOOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HPOOrderBillNo"]); |
| | | oSub.HSeOrderInterID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderInterID"]); |
| | | oSub.HSeOrderEntryID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HSeOrderEntryID"]); |
| | | oSub.HSeOrderBillNo = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HSeOrderBillNo"]); |
| | | oSub.HStockOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HStockOrgID"]); |
| | | oSub.HOWNERID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOWNERID"]); |
| | | oSub.HOtherOrgID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[i]["HOtherOrgID"]); |
| | | oSub.HOWNERTYPEID = DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HOWNERTYPEID"]); |
| | | BillNew.DetailColl.Add(oSub); |
| | | } |
| | | } |
| | | //ä¿å |
| | | bool bResult; |
| | | bResult = BillNew.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); |
| | | |
| | | if (bResult) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = DBUtility.ClsPub.sExeReturnInfo; //æåï¼ |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "模å
·è°æ¨åä¸ä¼ 失败ï¼" + e.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #endregion |
| | |
| | | <publishTime>12/20/2021 13:19:56</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/Reference.map"> |
| | | <publishTime>04/28/2024 17:32:35</publishTime> |
| | | <publishTime>05/13/2024 10:26:00</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/WebService1.disco"> |
| | | <publishTime>12/20/2021 13:19:56</publishTime> |
| | |
| | | <WebStackScaffolding_IsAsyncSelected>False</WebStackScaffolding_IsAsyncSelected> |
| | | <NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\Git\houduan\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\æºäºè¿æ\MES\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>E:\æºäºmes\mes\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | |
| | | //} |
| | | BCol = 7; |
| | | //è·å卿å
容 ï¼æ°éä¿¡æ¯ï¼ |
| | | for (int row = 0; row <= grdMain.RowCount - 1; row++) |
| | | { |
| | | for (int col = BCol; col <= grdMain.ColumnCount - 1; col++) |
| | | { |
| | | //HDeptID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HDeptID")].Value); |
| | | //HMaterID = DBUtility.ClsPub.isLong(grdMain.Columns[col].Tag); |
| | | //HEmpID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HEmpID")].Value); |
| | | //HProcID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HProcID")].Value); |
| | | DsQty = SubCn.RunProcReturn("exec h_p_CCBB", "Gy_Czygl"); |
| | | if (DsQty != null && DsQty.Tables[0].Rows.Count > 0) |
| | | { |
| | | //grdMain.Rows[row].Cells[col].Value = DBUtility.ClsPub.isDoule(DsQty.Tables[0].Rows[0]["HQty"], 2); |
| | | } |
| | | } |
| | | } |
| | | //for (int row = 0; row <= grdMain.RowCount - 1; row++) |
| | | //{ |
| | | // for (int col = BCol; col <= grdMain.ColumnCount - 1; col++) |
| | | // { |
| | | // //HDeptID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HDeptID")].Value); |
| | | // //HMaterID = DBUtility.ClsPub.isLong(grdMain.Columns[col].Tag); |
| | | // //HEmpID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HEmpID")].Value); |
| | | // //HProcID = DBUtility.ClsPub.isLong(grdMain.Rows[row].Cells[Fun_GetCol("HProcID")].Value); |
| | | // DsQty = SubCn.RunProcReturn("exec h_p_CCBB", "Gy_Czygl"); |
| | | // if (DsQty != null && DsQty.Tables[0].Rows.Count > 0) |
| | | // { |
| | | // //grdMain.Rows[row].Cells[col].Value = DBUtility.ClsPub.isDoule(DsQty.Tables[0].Rows[0]["HQty"], 2); |
| | | // } |
| | | // } |
| | | //} |
| | | |
| | | //设置å计å |
| | | string sTotalCol = ""; |