10个文件已添加
2 文件已重命名
159个文件已修改
1个文件已删除
1 文件已复制
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | using System.Data; |
| | | |
| | | namespace DAL |
| | | { |
| | | public class ClsPay_WayBillPaymentBill : DBUtility.ClsXt_BaseBill |
| | | { |
| | | public Model.ClsPay_WayBillPaymentBillMain omodel = new Model.ClsPay_WayBillPaymentBillMain(); |
| | | public List<Model.ClsPay_WayBillPaymentBillSub> DetailColl = new List<Model.ClsPay_WayBillPaymentBillSub>(); |
| | | |
| | | public ClsPay_WayBillPaymentBill() |
| | | { |
| | | base.MvarItemKeySub = "Pay_WayBillPaymentBillSub"; |
| | | base.MvarItemKeySub2 = ""; |
| | | base.MvarItemKeySub3 = ""; |
| | | base.MvarItemKeySub4 = ""; |
| | | base.MvarItemKey = "Pay_WayBillPaymentBillMain"; |
| | | base.MvarReportTitle = "è¿åè´¹ç¨ç»ç®å"; |
| | | base.BillType = "2102"; |
| | | base.HBillSubType = "2102"; |
| | | |
| | | } |
| | | |
| | | #region åºå®ä»£ç |
| | | |
| | | ~ClsPay_WayBillPaymentBill() |
| | | { |
| | | DetailColl = null; |
| | | } |
| | | |
| | | #endregion èªå®ä¹æ¹æ³ |
| | | //ä¿®æ¹åæ® |
| | | public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) |
| | | { |
| | | try |
| | | { |
| | | // |
| | | oCn.BeginTran(); |
| | | //æ´æ°ä¸»è¡¨ |
| | | oCn.RunProc("UpDate Pay_WayBillPaymentBillMain set " + |
| | | " HBillNo='" + omodel.HBillNo + "'" + //åºå®èµå¼=============== |
| | | ",HDate='" + omodel.HDate + "'" + |
| | | ",HYear='" + omodel.HYear.ToString() + "'" + |
| | | ",HPeriod='" + omodel.HPeriod.ToString() + "'" + |
| | | ",HRemark='" + omodel.HRemark + "'" + |
| | | ",HUpDater='" + DBUtility.ClsPub.CurUserName + "'" + |
| | | ",HUpDateDate=getdate()" + |
| | | //======================================== |
| | | ",HCarrierID=" + omodel.HCarrierID.ToString() + |
| | | ",HCurID=" + omodel.HCurID.ToString() + |
| | | ",HExRate=" + omodel.HExRate.ToString() + |
| | | ",HDeptID=" + omodel.HDeptID.ToString() + |
| | | ",HEmpID=" + omodel.HEmpID.ToString() + |
| | | " where HInterID=" + lngBillKey.ToString()); |
| | | //å é¤å
³è |
| | | DeleteRelation(ref sReturn, lngBillKey); |
| | | //å é¤å表 |
| | | DeleteBillSub(lngBillKey); |
| | | //æå
¥å表 |
| | | foreach (Model.ClsPay_WayBillPaymentBillSub oSub in DetailColl) |
| | | { |
| | | string subSql = "insert into Pay_WayBillPaymentBillSub" + |
| | | "" + |
| | | "" + |
| | | "" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | ",HBeginAddr,HEndAddr,HTransType,HMoney,HRemark) " + |
| | | " values(" + |
| | | "" + lngBillKey.ToString() + |
| | | "," + oSub.HEntryID.ToString() + |
| | | "," + oSub.HSourceInterID + |
| | | "," + oSub.HSourceEntryID + |
| | | ",'" + oSub.HSourceBillNo + |
| | | "','" + oSub.HSourceBillType + |
| | | "','" + oSub.HBeginAddr + |
| | | "','" + oSub.HEndAddr + |
| | | "','" + oSub.HTransType + |
| | | "','" + oSub.HMoney + |
| | | "','" + oSub.HRemark + |
| | | "')"; |
| | | oCn.RunProc(subSql); |
| | | } |
| | | 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 Pay_WayBillPaymentBillMain " + |
| | | "(HBillType,HBillSubType,HInterID,HBillNo,HDate" + |
| | | ",HYear,HPeriod,HRemark,HMaker,HMakeDate" + |
| | | ",HCarrierID,HCurID,HExRate" + |
| | | ",HDeptID,HEmpID,HOrgID" + |
| | | ") " + |
| | | " 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.HCarrierID.ToString() + "," + omodel.HCurID.ToString() + "," + omodel.HExRate.ToString() + |
| | | ", '" + omodel.HDeptID.ToString() + "','" + omodel.HEmpID.ToString()+ "','" + omodel.HOrgID + "'" + |
| | | ") "); |
| | | //æå
¥å表 |
| | | foreach (Model.ClsPay_WayBillPaymentBillSub oSub in DetailColl) |
| | | { |
| | | string subSql = "insert into Pay_WayBillPaymentBillSub" + |
| | | "" + |
| | | "" + |
| | | "" + |
| | | "(HInterID,HEntryID,HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType" + |
| | | ",HBeginAddr,HEndAddr,HTransType,HMoney,HRemark) " + |
| | | " values(" + |
| | | "" + omodel.HInterID.ToString() + |
| | | "," + oSub.HEntryID.ToString() + |
| | | "," + oSub.HSourceInterID + |
| | | "," + oSub.HSourceEntryID + |
| | | ",'" + oSub.HSourceBillNo + |
| | | "','" + oSub.HSourceBillType + |
| | | "','" + oSub.HBeginAddr + |
| | | "','" + oSub.HEndAddr + |
| | | "','" + oSub.HTransType + |
| | | "','" + oSub.HMoney + |
| | | "','" + oSub.HRemark + |
| | | "')"; |
| | | oCn.RunProc(subSql); |
| | | } |
| | | 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 Pay_WayBillPaymentBillMain Where HInterID=" + lngBillKey.ToString(), "Pay_WayBillPaymentBillMain"); |
| | | 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.HCarrierID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCarrierID"]); |
| | | omodel.HCurID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCurID"]); |
| | | omodel.HExRate = DBUtility.ClsPub.isSingle(Ds.Tables[0].Rows[0]["HExRate"]); |
| | | omodel.HDeptID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HDeptID"]); |
| | | omodel.HEmpID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HEmpID"]); |
| | | // |
| | | |
| | | //å¾ªç¯ |
| | | DataSet DsSub; |
| | | DsSub = oCn.RunProcReturn("Select * from Pay_WayBillPaymentBillSub Where HInterID=" + lngBillKey.ToString() + " order by HEntryID ", "Pay_WayBillPaymentBillSub"); |
| | | DetailColl.Clear();//æ¸
空 |
| | | for (int i = 0; i < DsSub.Tables[0].Rows.Count; i++) |
| | | { |
| | | Model.ClsPay_WayBillPaymentBillSub oSub = new Model.ClsPay_WayBillPaymentBillSub(); |
| | | // åºå®èµå¼=============================================== |
| | | 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(); |
| | | //=================================================== |
| | | DetailColl.Add(oSub); |
| | | } |
| | | sReturn = "æ¾ç¤ºåæ®æåï¼"; |
| | | return true; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sReturn = e.Message; |
| | | throw (e); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | <Compile Include="APS\ClsSc_WorkBillMonthSortBill.cs" /> |
| | | <Compile Include="APS\ClsSc_ICMOChangeBill.cs" /> |
| | | <Compile Include="ClsGy_MaterialPackingRelation.cs" /> |
| | | <Compile Include="ClsPay_WayBillPaymentBill.cs" /> |
| | | <Compile Include="ClsWL_YayBillMain.cs" /> |
| | | <Compile Include="MES\ClsSc_MESStopRestoreWorkBill.cs" /> |
| | | <Compile Include="WLGL\ClsCg_CarTrajectoryBill.cs" /> |
| | |
| | | <Compile Include="åºç¡èµæ\åºç¡èµæ\ClsGy_RepairCheckClass_Model.cs" /> |
| | | <Compile Include="ç©æµç®¡ç\ClsCg_CarTrajectoryBillMain.cs" /> |
| | | <Compile Include="ç©æµç®¡ç\ClsCg_CarTrajectoryBillSub.cs" /> |
| | | <Compile Include="ç©æµç®¡ç\ClsPay_WayBillPaymentBillMain.cs" /> |
| | | <Compile Include="ç©æµç®¡ç\ClsPay_WayBillPaymentBillSub.cs" /> |
| | | <Compile Include="ç©æµç®¡ç\ClsWL_YayBillMainBillSub.cs" /> |
| | | <Compile Include="ç©æµç®¡ç\ClsWL_YayBillMainBillMain.cs" /> |
| | | <Compile Include="ç产管ç\ClsSc_ShiftsBeginInfoBillMain.cs" /> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Model |
| | | { |
| | | public class ClsPay_WayBillPaymentBillMain : DBUtility.ClsXt_BaseBillMain |
| | | { |
| | | public DateTime HAccDate;// datetime //æ¶æ¬¾æ¥æ |
| | | public Int64 HCarrierID;// int //ä¾åºåï¼gy_supplierï¼ |
| | | public Int64 HCurID;// int //å¸å« |
| | | public Single HExRate;// money //æ±çï¼éå¸å«å¸¦åºï¼ |
| | | public Int64 HDeptID;// int //é¨é¨ |
| | | public Int64 HEmpID;// int //ç»æäºº |
| | | public Int64 HProjectMoneyID;// int //è´¹ç¨é¡¹ç® |
| | | public string HType;// varchar(20) --å票类å |
| | | public double HMoney;// dec(18,8) //åæ®éé¢ |
| | | public double HTaxRate;// dec(18,8) //ç¨ç |
| | | public double HSumMoney;// dec(18,8) //æ»éé¢ |
| | | public string HExplanation;// varchar(200) --æè¦ |
| | | public string HInnerBillNo;// varchar(100) --å
é¨åæ®å· |
| | | public Int64 HOrgID; //ç»ç» |
| | | } |
| | | } |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Text; |
| | | |
| | | namespace Model |
| | | { |
| | | public class ClsPay_WayBillPaymentBillSub : DBUtility.ClsXt_BaseBillSub |
| | | { |
| | | public DateTime HEntryCloseDate;// datetime --è¡å
³é (é»è®¤ä¸º'') new |
| | | public string HRemark;// varchar(200) --夿³¨ |
| | | public Int64 HProjectMoneyID;// int //è´¹ç¨é¡¹ç® |
| | | public string HTypeSub;// varchar(20) --å票类å |
| | | public double HMoney;// dec(18,8) //åæ®éé¢ |
| | | public double HTaxRate;// dec(18,8) //ç¨ç |
| | | public double HSumMoney;// dec(18,8) //æ»éé¢ |
| | | public int HBeginAddr;// dec(18,8) //æ»éé¢ |
| | | public int HEndAddr;// dec(18,8) //æ»éé¢ |
| | | public string HTransType;// dec(18,8) //æ»éé¢ |
| | | } |
| | | } |
| | |
| | | using gregn6Lib; |
| | | using Pub_Class; |
| | | using System.Threading; |
| | | using System.Text.RegularExpressions; |
| | | |
| | | namespace WarM |
| | | { |
| | |
| | | public const Int16 HBarCodeTypeCol = 16; |
| | | public const Int16 HQtyCol = 17; |
| | | public const Int16 HMinQtyCol = 18; |
| | | public const Int16 HBQtyCol = 19; |
| | | public const Int16 HinitQtyCol = 20; |
| | | public const Int16 HISKFPERIODCol = 21; |
| | | public const Int16 HProduceDateCol = 22; |
| | | public const Int16 HExpiryDateCol = 23; |
| | | public const Int16 HEXPUNITCol = 24; |
| | | public const Int16 HEXPPERIODCol = 25; |
| | | public const Int16 HGiveAwayFlagCol = 26; |
| | | public const Int16 HUnitIDCol = 27; |
| | | public const Int16 HUnitNumberCol = 28; |
| | | public const Int16 HUnitNameCol = 29; |
| | | public const Int16 HWhIDCol = 30; |
| | | public const Int16 HWhNumberCol = 31; |
| | | public const Int16 HWhNameCol = 32; |
| | | public const Int16 HSPIDCol = 33; |
| | | public const Int16 HSPNumberCol = 34; |
| | | public const Int16 HSPNameCol = 35; |
| | | public const Int16 HMTONoCol = 36; |
| | | public const Int16 HRemarkCol = 37; |
| | | public const Int16 HDeptIDCol = 38; |
| | | public const Int16 HDeptNumberCol = 39; |
| | | public const Int16 HDeptNameCol = 40; |
| | | public const Int16 HSourceIDCol = 41; |
| | | public const Int16 HSourceNumberCol = 42; |
| | | public const Int16 HSourceNameCol = 43; |
| | | public const Int16 HSupIDCol = 44; |
| | | public const Int16 HSupNumberCol = 45; |
| | | public const Int16 HSupNameCol = 46; |
| | | public const Int16 HGroupIDCol = 47; |
| | | public const Int16 HGroupNumberCol = 48; |
| | | public const Int16 HGroupNameCol = 49; |
| | | public const Int16 HCusIDCol = 50; |
| | | public const Int16 HCusNumberCol = 51; |
| | | public const Int16 HCusNameCol = 52; |
| | | public const Int16 HCusTypeCol = 53; |
| | | public const Int16 HSeOrderBillNoCol = 54; |
| | | public const Int16 HSeOrderSEQCol = 55; |
| | | public const Int16 HInnerBillNoCol = 56; |
| | | public const Int16 HEndDateCol = 57; |
| | | public const Int16 HSourceBillQtyCol = 58; |
| | | public const Int16 HPinfanCol = 59; |
| | | public const Int16 HPackBarQtyCol = 19; //è§æ ¼æ°éï¼å段å
容为æå¨è¾å
¥ |
| | | public const Int16 HCoilNOCol = 20; //é¢å·å·ï¼å段å
容为æå¨è¾å
¥ |
| | | public const Int16 HFactoryCol = 21; //产å°(åå)ï¼å段å
容为æå¨è¾å
¥ |
| | | public const Int16 HJiaYeCol = 22; //åºä½å· |
| | | public const Int16 HRemarkCol = 23; |
| | | public const Int16 HBQtyCol = 24; |
| | | public const Int16 HinitQtyCol = 25; |
| | | public const Int16 HISKFPERIODCol = 26; |
| | | public const Int16 HProduceDateCol = 27; |
| | | public const Int16 HExpiryDateCol = 28; |
| | | public const Int16 HEXPUNITCol = 29; |
| | | public const Int16 HEXPPERIODCol = 30; |
| | | public const Int16 HGiveAwayFlagCol = 31; |
| | | public const Int16 HUnitIDCol = 32; |
| | | public const Int16 HUnitNumberCol = 33; |
| | | public const Int16 HUnitNameCol = 34; |
| | | public const Int16 HWhIDCol = 35; |
| | | public const Int16 HWhNumberCol = 36; |
| | | public const Int16 HWhNameCol = 37; |
| | | public const Int16 HSPIDCol = 38; |
| | | public const Int16 HSPNumberCol = 39; |
| | | public const Int16 HSPNameCol = 40; |
| | | public const Int16 HMTONoCol = 41; |
| | | public const Int16 HDeptIDCol = 42; |
| | | public const Int16 HDeptNumberCol = 43; |
| | | public const Int16 HDeptNameCol = 44; |
| | | public const Int16 HSourceIDCol = 45; |
| | | public const Int16 HSourceNumberCol = 46; |
| | | public const Int16 HSourceNameCol = 47; |
| | | public const Int16 HSupIDCol = 48; |
| | | public const Int16 HSupNumberCol = 49; |
| | | public const Int16 HSupNameCol = 50; |
| | | public const Int16 HGroupIDCol = 51; |
| | | public const Int16 HGroupNumberCol = 52; |
| | | public const Int16 HGroupNameCol = 53; |
| | | public const Int16 HCusIDCol = 54; |
| | | public const Int16 HCusNumberCol = 55; |
| | | public const Int16 HCusNameCol = 56; |
| | | public const Int16 HCusTypeCol = 57; |
| | | public const Int16 HSeOrderBillNoCol = 58; |
| | | public const Int16 HSeOrderSEQCol = 59; |
| | | public const Int16 HInnerBillNoCol = 60; |
| | | public const Int16 HEndDateCol = 61; |
| | | public const Int16 HSourceBillQtyCol = 62; |
| | | public const Int16 HPinfanCol = 63; |
| | | |
| | | // |
| | | public string ModName = "85"; |
| | |
| | | { |
| | | sHRemark = sHRemark + " 第" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "è¡ï¼ç©æï¼" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " å¯ç¨ä¿è´¨æç®¡çï¼æææè³ä¸è½ä¸ºç©ºï¼"; |
| | | } |
| | | |
| | | // æ£å表达å¼ï¼å¹é
æ´æ°ãæµ®ç¹æ°ãæ£è´å·ãç§å¦è®¡æ°æ³ï¼å¯æ ¹æ®éæ±è°æ´ï¼ |
| | | string numericRegex = @"^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$"; |
| | | if (!Regex.IsMatch(DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HPackBarQtyCol].Value), numericRegex) && DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HPackBarQtyCol].Value) != "") |
| | | { |
| | | sHRemark = sHRemark + " 第" + HSno + "è¡ï¼è§æ ¼æ°éä¸ä¸ºæ°åæ ¼å¼ï¼è¯·è¾å
¥æ£ç¡®çæ°å¼ï¼"; |
| | | } |
| | | } |
| | | } |
| | | if (sHRemark != "") |
| | |
| | | string HMaterModel = ""; //产åè§æ ¼åå· |
| | | string HPinfan = ""; //åçª |
| | | DateTime HEndDate; //计åå®å·¥æ¥æ |
| | | double HPackBarQty = 0; //è§æ ¼æ°é |
| | | string HCoilNO = ""; //é¢å·å· |
| | | string HFactory = ""; //产å°(åå) |
| | | string HJiaYe = ""; //åºä½å· |
| | | |
| | | oCn.BeginTran(); |
| | | Application.DoEvents(); |
| | |
| | | HMaterModel = ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterModelCol].Value); |
| | | HPinfan = ClsPub.isStrNull(grdMain.Rows[j].Cells[HPinfanCol].Value); |
| | | HEndDate = ClsPub.isDate(grdMain.Rows[j].Cells[HEndDateCol].Value); |
| | | HPackBarQty = ClsPub.isDoule(grdMain.Rows[j].Cells[HPackBarQtyCol].Value == "" ? 0 : grdMain.Rows[j].Cells[HPackBarQtyCol].Value); |
| | | HCoilNO = ClsPub.isStrNull(grdMain.Rows[j].Cells[HCoilNOCol].Value); |
| | | HFactory = ClsPub.isStrNull(grdMain.Rows[j].Cells[HFactoryCol].Value); |
| | | HJiaYe = ClsPub.isStrNull(grdMain.Rows[j].Cells[HJiaYeCol].Value); |
| | | |
| | | oCn.RunProc("insert into Gy_BarCodeBill" + |
| | | "(HInterID,HEntryID,HBarCode,HBarCodeType,HMaterID,HUnitID" + |
| | |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HInitSourceEntryID,HRemark" + |
| | | ",HPrintQty,HSTOCKORGID,HOWNERID,HDeptID,HSupID,HGroupID" + |
| | | ",HCusID,HCusType,HSeOrderBillNo,HSeOrderSEQ,HInnerBillNo,HWorkLineName" + |
| | | ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate" + |
| | | ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate,HPackBarQty,HCoilNO,HFactory,HJiaYe" + |
| | | ") values (" |
| | | + " " + HInterID.ToString() + "," + HEntryID.ToString() + ",'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() |
| | | + ", " + HAuxPropID.ToString() + ",'" + HBatchNo + "','" + HMTONo + "'," + HQty.ToString() + "," + HinitQty.ToString() + "," + HSourceBillQty.ToString() |
| | |
| | | + ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "'," + HInitSourceEntryID.ToString() + ",'" + HRemark + "'" |
| | | + ", " + HPrintQty.ToString() + "," + HSTOCKORGID.ToString() + "," + HOWNERID.ToString() + "," + HDeptID.ToString() + "," + HSupID.ToString() + "," + HGroupID.ToString() |
| | | + ", " + HCusID.ToString() + ",'" + HCusType + "','" + HSeOrderBillNo + "'," + HSeOrderSEQ.ToString() + ",'" + HInnerBillNo + "','" + HWorkLineName + "'" |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" + |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" + "," + HPackBarQty + ",'" + HCoilNO + "','" + HFactory + "','" + HJiaYe + "'" + |
| | | ")"); |
| | | n = n + 1; |
| | | nn = nn + 1; |
| | |
| | | private void initGrid() |
| | | { |
| | | grdMain.RowCount = 0; |
| | | grdMain.ColumnCount = 60; //æ»åæ° |
| | | grdMain.ColumnCount = 64; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | grdMain.Columns[HSnoCol].HeaderText = "åºå·"; |
| | | grdMain.Columns[HMainIDCol].HeaderText = "æºå主ID"; |
| | |
| | | grdMain.Columns[HQtyCol].HeaderText = "æ°é"; |
| | | grdMain.Columns[HMinQtyCol].HeaderText = "æå°å
è£
æ°"; |
| | | grdMain.Columns[HBQtyCol].HeaderText = "ç®±æ°"; |
| | | grdMain.Columns[HPackBarQtyCol].HeaderText = "è§æ ¼æ°é"; |
| | | grdMain.Columns[HCoilNOCol].HeaderText = "é¢å·å·"; |
| | | grdMain.Columns[HFactoryCol].HeaderText = "产å°"; |
| | | grdMain.Columns[HJiaYeCol].HeaderText = "åºä½å·"; |
| | | grdMain.Columns[HRemarkCol].HeaderText = "夿³¨"; |
| | | grdMain.Columns[HinitQtyCol].HeaderText = "åå§åæ°é"; |
| | | grdMain.Columns[HSourceBillQtyCol].HeaderText = "æºåå¯çææ¡ç æ°é"; |
| | | grdMain.Columns[HBarCodeTypeCol].HeaderText = "æ¡ç ç±»å"; |
| | |
| | | grdMain.Columns[HSPNumberCol].HeaderText = "ä»ä½ä»£ç "; |
| | | grdMain.Columns[HSPNameCol].HeaderText = "ä»ä½"; |
| | | grdMain.Columns[HMTONoCol].HeaderText = "计åè·è¸ªå·"; |
| | | grdMain.Columns[HRemarkCol].HeaderText = "夿³¨"; |
| | | grdMain.Columns[HDeptIDCol].HeaderText = "车é´ID"; |
| | | grdMain.Columns[HDeptNumberCol].HeaderText = "车é´ä»£ç "; |
| | | grdMain.Columns[HDeptNameCol].HeaderText = "车é´"; |
| | |
| | | "," + HBatchNoCol.ToString() + |
| | | "," + HBarCodeTypeCol.ToString() + |
| | | "," + HProduceDateCol.ToString() + |
| | | "," + HPackBarQtyCol.ToString() + |
| | | "," + HCoilNOCol.ToString() + |
| | | "," + HFactoryCol.ToString() + |
| | | "," + HJiaYeCol.ToString() + |
| | | "," + HRemarkCol.ToString(); |
| | | |
| | | //设置å计å |
| | |
| | | grdMain.Rows[sRow].Cells[HISKFPERIODCol].Value = oMater.omodel.HISKFPERIOD; |
| | | grdMain.Rows[sRow].Cells[HSubjoin2Col].Value = oMater.omodel.HSubjoin2; |
| | | grdMain.Rows[sRow].Cells[HBarCodeTypeCol].Value = "å¯ä¸æ¡ç "; |
| | | grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[sRow].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HJiaYeCol].Value = ""; |
| | | //å¯ç¨æ¹æ¬¡ |
| | | if (oMater.omodel.HBatchManager) |
| | | { |
| | |
| | | grdMain.Rows[sRow].Cells[HEXPPERIODCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HProduceDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[sRow].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HJiaYeCol].Value = ""; |
| | | } |
| | | } |
| | | else |
| | |
| | | grdMain.Rows[sRow].Cells[HEXPPERIODCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HProduceDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[sRow].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HJiaYeCol].Value = ""; |
| | | } |
| | | break; |
| | | |
| | |
| | | "," + HBatchNoCol.ToString() + |
| | | "," + HBarCodeTypeCol.ToString() + |
| | | "," + HProduceDateCol.ToString() + |
| | | "," + HPackBarQtyCol.ToString() + |
| | | "," + HCoilNOCol.ToString() + |
| | | "," + HFactoryCol.ToString() + |
| | | "," + HJiaYeCol.ToString() + |
| | | "," + HRemarkCol.ToString(); |
| | | grdMain.Columns[HBillNoCol].ReadOnly = true; |
| | | //设置å计å |
| | |
| | | grdMain.Rows[row + r].Cells[HBatchNoCol].Value = grdMain.Rows[row].Cells[HBatchNoCol].Value; |
| | | grdMain.Rows[row + r].Cells[HQtyCol].Value = DBUtility.ClsPub.isDoule(hq, 4); |
| | | grdMain.Rows[row + r].Cells[HMinQtyCol].Value = 0; |
| | | grdMain.Rows[row + r].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[row + r].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[row + r].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[row + r].Cells[HJiaYeCol].Value = ""; |
| | | grdMain.Rows[row + r].Cells[HSourceBillQtyCol].Value = DBUtility.ClsPub.isDoule(hq, 4); |
| | | grdMain.Rows[row + r].Cells[HProduceDateCol].Value = grdMain.Rows[row].Cells[HProduceDateCol].Value; |
| | | grdMain.Rows[row + r].Cells[HExpiryDateCol].Value = grdMain.Rows[row].Cells[HExpiryDateCol].Value; |
| | |
| | | public const Int16 HQtyCol = 17; |
| | | public const Int16 HMinQtyCol = 18; |
| | | public const Int16 HPackBarQtyCol = 19; //è§æ ¼æ°éï¼å段å
容为æå¨è¾å
¥ |
| | | public const Int16 HBQtyCol = 20; |
| | | public const Int16 HinitQtyCol = 21; |
| | | public const Int16 HISKFPERIODCol = 22; |
| | | public const Int16 HProduceDateCol = 23; |
| | | public const Int16 HExpiryDateCol = 24; |
| | | public const Int16 HEXPUNITCol = 25; |
| | | public const Int16 HEXPPERIODCol = 26; |
| | | public const Int16 HGiveAwayFlagCol = 27; |
| | | public const Int16 HUnitIDCol = 28; |
| | | public const Int16 HUnitNumberCol = 29; |
| | | public const Int16 HUnitNameCol = 30; |
| | | public const Int16 HWhIDCol = 31; |
| | | public const Int16 HWhNumberCol = 32; |
| | | public const Int16 HWhNameCol = 33; |
| | | public const Int16 HSPIDCol = 34; |
| | | public const Int16 HSPNumberCol = 35; |
| | | public const Int16 HSPNameCol = 36; |
| | | public const Int16 HMTONoCol = 37; |
| | | public const Int16 HRemarkCol = 38; |
| | | public const Int16 HDeptIDCol = 39; |
| | | public const Int16 HDeptNumberCol = 40; |
| | | public const Int16 HDeptNameCol = 41; |
| | | public const Int16 HSourceIDCol = 42; |
| | | public const Int16 HSourceNumberCol = 43; |
| | | public const Int16 HSourceNameCol = 44; |
| | | public const Int16 HSupIDCol = 45; |
| | | public const Int16 HSupNumberCol = 46; |
| | | public const Int16 HSupNameCol = 47; |
| | | public const Int16 HGroupIDCol = 48; |
| | | public const Int16 HGroupNumberCol = 49; |
| | | public const Int16 HGroupNameCol = 50; |
| | | public const Int16 HCusIDCol = 51; |
| | | public const Int16 HCusNumberCol = 52; |
| | | public const Int16 HCusNameCol = 53; |
| | | public const Int16 HCusTypeCol = 54; |
| | | public const Int16 HSeOrderBillNoCol = 55; |
| | | public const Int16 HSeOrderSEQCol = 56; |
| | | public const Int16 HInnerBillNoCol = 57; |
| | | public const Int16 HEndDateCol = 58; |
| | | public const Int16 HSourceBillQtyCol = 59; |
| | | public const Int16 HAuxPropFlagCol = 60; |
| | | public const Int16 HBarCodeCol = 61; //æ¡ç ç¼å· |
| | | public const Int16 HTMNumberCol = 62; //æ¡ç åç¼ |
| | | public const Int16 HLSHCol = 63; //çææ¡ç æ¶è·åå¯¹åºæµæ°´å· |
| | | public const Int16 HBarcodeNoCol = 64; //è®°å½éåå¡«çæµæ°´å·æ°é |
| | | public const Int16 HCoilNOCol = 20; //é¢å·å·ï¼å段å
容为æå¨è¾å
¥ |
| | | public const Int16 HFactoryCol = 21; //产å°(åå)ï¼å段å
容为æå¨è¾å
¥ |
| | | public const Int16 HJiaYeCol = 22; //åºä½å· |
| | | public const Int16 HRemarkCol = 23; //夿³¨ |
| | | public const Int16 HBQtyCol = 24; |
| | | public const Int16 HinitQtyCol = 25; |
| | | public const Int16 HISKFPERIODCol = 26; |
| | | public const Int16 HProduceDateCol = 27; |
| | | public const Int16 HExpiryDateCol = 28; |
| | | public const Int16 HEXPUNITCol = 29; |
| | | public const Int16 HEXPPERIODCol = 30; |
| | | public const Int16 HGiveAwayFlagCol = 31; |
| | | public const Int16 HUnitIDCol = 32; |
| | | public const Int16 HUnitNumberCol = 33; |
| | | public const Int16 HUnitNameCol = 34; |
| | | public const Int16 HWhIDCol = 35; |
| | | public const Int16 HWhNumberCol = 36; |
| | | public const Int16 HWhNameCol = 37; |
| | | public const Int16 HSPIDCol = 38; |
| | | public const Int16 HSPNumberCol = 39; |
| | | public const Int16 HSPNameCol = 40; |
| | | public const Int16 HMTONoCol = 41; |
| | | public const Int16 HDeptIDCol = 42; |
| | | public const Int16 HDeptNumberCol = 43; |
| | | public const Int16 HDeptNameCol = 44; |
| | | public const Int16 HSourceIDCol = 45; |
| | | public const Int16 HSourceNumberCol = 46; |
| | | public const Int16 HSourceNameCol = 47; |
| | | public const Int16 HSupIDCol = 48; |
| | | public const Int16 HSupNumberCol = 49; |
| | | public const Int16 HSupNameCol = 50; |
| | | public const Int16 HGroupIDCol = 51; |
| | | public const Int16 HGroupNumberCol = 52; |
| | | public const Int16 HGroupNameCol = 53; |
| | | public const Int16 HCusIDCol = 54; |
| | | public const Int16 HCusNumberCol = 55; |
| | | public const Int16 HCusNameCol = 56; |
| | | public const Int16 HCusTypeCol = 57; |
| | | public const Int16 HSeOrderBillNoCol = 58; |
| | | public const Int16 HSeOrderSEQCol = 59; |
| | | public const Int16 HInnerBillNoCol = 60; |
| | | public const Int16 HEndDateCol = 61; |
| | | public const Int16 HSourceBillQtyCol = 62; |
| | | public const Int16 HAuxPropFlagCol = 63; |
| | | public const Int16 HBarCodeCol = 64; // æ¡ç ç¼å· |
| | | public const Int16 HTMNumberCol = 65; // æ¡ç åç¼ |
| | | public const Int16 HLSHCol = 66; // çææ¡ç æ¶è·åå¯¹åºæµæ°´å· |
| | | public const Int16 HBarcodeNoCol = 67; // è®°å½éåå¡«çæµæ°´å·æ°é |
| | | |
| | | // |
| | | public string ModName = "85"; |
| | |
| | | string HPinfan = ""; //åçª |
| | | DateTime HEndDate; //计åå®å·¥æ¥æ |
| | | double HPackBarQty = 0; //è§æ ¼æ°é |
| | | string HCoilNO = ""; //é¢å·å· |
| | | string HFactory = ""; //产å°(åå) |
| | | string HJiaYe = ""; //åºä½å· |
| | | |
| | | oCn.BeginTran(); |
| | | Application.DoEvents(); |
| | |
| | | HPinfan = ClsPub.isStrNull(grdMain.Rows[j].Cells[HPinfanCol].Value); |
| | | HEndDate = ClsPub.isDate(grdMain.Rows[j].Cells[HEndDateCol].Value); |
| | | HPackBarQty = ClsPub.isDoule(grdMain.Rows[j].Cells[HPackBarQtyCol].Value == "" ? 0 : grdMain.Rows[j].Cells[HPackBarQtyCol].Value); |
| | | HCoilNO = ClsPub.isStrNull(grdMain.Rows[j].Cells[HCoilNOCol].Value); |
| | | HFactory = ClsPub.isStrNull(grdMain.Rows[j].Cells[HFactoryCol].Value); |
| | | HJiaYe = ClsPub.isStrNull(grdMain.Rows[j].Cells[HJiaYeCol].Value); |
| | | |
| | | oCn.RunProc("insert into Gy_BarCodeBill" + |
| | | "(HInterID,HEntryID,HBarCode,HBarCodeType,HMaterID,HUnitID" + |
| | |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HInitSourceEntryID,HRemark" + |
| | | ",HPrintQty,HSTOCKORGID,HOWNERID,HDeptID,HSupID,HGroupID" + |
| | | ",HCusID,HCusType,HSeOrderBillNo,HSeOrderSEQ,HInnerBillNo,HWorkLineName" + |
| | | ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate,HPackBarQty" + |
| | | ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate,HPackBarQty,HCoilNO,HFactory,HJiaYe" + |
| | | ") values (" |
| | | + " " + HInterID.ToString() + "," + HEntryID.ToString() + ",'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() |
| | | + ", " + HAuxPropID.ToString() + ",'" + HBatchNo + "','" + HMTONo + "'," + HQty.ToString() + "," + HinitQty.ToString() + "," + HSourceBillQty.ToString() |
| | |
| | | + ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "'," + HInitSourceEntryID.ToString() + ",'" + HRemark + "'" |
| | | + ", " + HPrintQty.ToString() + "," + HSTOCKORGID.ToString() + "," + HOWNERID.ToString() + "," + HDeptID.ToString() + "," + HSupID.ToString() + "," + HGroupID.ToString() |
| | | + ", " + HCusID.ToString() + ",'" + HCusType + "','" + HSeOrderBillNo + "'," + HSeOrderSEQ.ToString() + ",'" + HInnerBillNo + "','" + HWorkLineName + "'" |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" + "," + HPackBarQty + |
| | | + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" + "," + HPackBarQty + ",'" + HCoilNO + "','" + HFactory + "','" + HJiaYe + "'" + |
| | | ")"); |
| | | } |
| | | pb1.Value = j + 1; |
| | |
| | | private void initGrid() |
| | | { |
| | | grdMain.RowCount = 0; |
| | | grdMain.ColumnCount = 65; //æ»åæ° |
| | | grdMain.ColumnCount = 68; //æ»åæ° |
| | | DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name); |
| | | grdMain.Columns[HSnoCol].HeaderText = "åºå·"; |
| | | grdMain.Columns[HMainIDCol].HeaderText = "æºå主ID"; |
| | |
| | | grdMain.Columns[HMinQtyCol].HeaderText = "éé"; |
| | | grdMain.Columns[HBQtyCol].HeaderText = "ç®±æ°"; |
| | | grdMain.Columns[HPackBarQtyCol].HeaderText = "è§æ ¼æ°é"; |
| | | grdMain.Columns[HCoilNOCol].HeaderText = "é¢å·å·"; |
| | | grdMain.Columns[HFactoryCol].HeaderText = "产å°"; |
| | | grdMain.Columns[HJiaYeCol].HeaderText = "åºä½å·"; |
| | | grdMain.Columns[HRemarkCol].HeaderText = "夿³¨"; |
| | | grdMain.Columns[HinitQtyCol].HeaderText = "åå§åæ°é"; |
| | | grdMain.Columns[HSourceBillQtyCol].HeaderText = "æºåå¯çææ¡ç æ°é"; |
| | | grdMain.Columns[HBarCodeTypeCol].HeaderText = "æ¡ç ç±»å"; |
| | |
| | | grdMain.Columns[HSPNumberCol].HeaderText = "ä»ä½ä»£ç "; |
| | | grdMain.Columns[HSPNameCol].HeaderText = "ä»ä½"; |
| | | grdMain.Columns[HMTONoCol].HeaderText = "计åè·è¸ªå·"; |
| | | grdMain.Columns[HRemarkCol].HeaderText = "夿³¨"; |
| | | grdMain.Columns[HDeptIDCol].HeaderText = "车é´ID"; |
| | | grdMain.Columns[HDeptNumberCol].HeaderText = "车é´ä»£ç "; |
| | | grdMain.Columns[HDeptNameCol].HeaderText = "车é´"; |
| | |
| | | "," + HBarCodeTypeCol.ToString() + |
| | | "," + HProduceDateCol.ToString() + |
| | | "," + HPackBarQtyCol.ToString() + |
| | | "," + HCoilNOCol.ToString() + |
| | | "," + HFactoryCol.ToString() + |
| | | "," + HJiaYeCol.ToString() + |
| | | "," + HRemarkCol.ToString(); |
| | | |
| | | //设置å计å |
| | |
| | | grdMain.Rows[sRow].Cells[HBarCodeTypeCol].Value = oMater.omodel.HBarCodeType; |
| | | grdMain.Rows[sRow].Cells[HBQtyCol].Value = 1; |
| | | grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[sRow].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HJiaYeCol].Value = ""; |
| | | //å¯ç¨æ¹æ¬¡ |
| | | if (oMater.omodel.HBatchManager) |
| | | { |
| | |
| | | grdMain.Rows[sRow].Cells[HProduceDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[sRow].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HJiaYeCol].Value = ""; |
| | | } |
| | | } |
| | | else |
| | |
| | | grdMain.Rows[sRow].Cells[HProduceDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[sRow].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[sRow].Cells[HJiaYeCol].Value = ""; |
| | | } |
| | | break; |
| | | |
| | |
| | | "," + HBarCodeTypeCol.ToString() + |
| | | "," + HProduceDateCol.ToString() + |
| | | "," + HPackBarQtyCol.ToString() + |
| | | "," + HCoilNOCol.ToString() + |
| | | "," + HFactoryCol.ToString() + |
| | | "," + HJiaYeCol.ToString() + |
| | | "," + HRemarkCol.ToString(); |
| | | grdMain.Columns[HBillNoCol].ReadOnly = true; |
| | | //设置å计å |
| | |
| | | grdMain.Rows[row + r].Cells[HQtyCol].Value = grdMain.Rows[row].Cells[HQtyCol].Value; |
| | | grdMain.Rows[row + r].Cells[HMinQtyCol].Value = 0; |
| | | grdMain.Rows[row + r].Cells[HPackBarQtyCol].Value = 0; |
| | | grdMain.Rows[row + r].Cells[HCoilNOCol].Value = ""; |
| | | grdMain.Rows[row + r].Cells[HFactoryCol].Value = ""; |
| | | grdMain.Rows[row + r].Cells[HJiaYeCol].Value = ""; |
| | | grdMain.Rows[row + r].Cells[HBQtyCol].Value = grdMain.Rows[row].Cells[HBQtyCol].Value; |
| | | grdMain.Rows[row + r].Cells[HinitQtyCol].Value = grdMain.Rows[row].Cells[HinitQtyCol].Value; |
| | | grdMain.Rows[row + r].Cells[HISKFPERIODCol].Value = grdMain.Rows[row].Cells[HISKFPERIODCol].Value; |
| | |
| | | grdMain.Rows[row + r].Cells[HSPNumberCol].Value = grdMain.Rows[row].Cells[HSPNumberCol].Value; |
| | | grdMain.Rows[row + r].Cells[HSPNameCol].Value = grdMain.Rows[row].Cells[HSPNameCol].Value; |
| | | grdMain.Rows[row + r].Cells[HMTONoCol].Value = grdMain.Rows[row].Cells[HMTONoCol].Value; |
| | | grdMain.Rows[row + r].Cells[HRemarkCol].Value = grdMain.Rows[row].Cells[HRemarkCol].Value; |
| | | grdMain.Rows[row + r].Cells[HRemarkCol].Value = ""; |
| | | grdMain.Rows[row + r].Cells[HDeptIDCol].Value = grdMain.Rows[row].Cells[HDeptIDCol].Value; |
| | | grdMain.Rows[row + r].Cells[HDeptNumberCol].Value = grdMain.Rows[row].Cells[HDeptNumberCol].Value; |
| | | grdMain.Rows[row + r].Cells[HDeptNameCol].Value = grdMain.Rows[row].Cells[HDeptNameCol].Value; |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("select * from Gy_MouldFileMain where HInterID = " + hmainid + " and ISNULL(HChecker,'') <> ''", "Gy_MouldFileMain"); |
| | | ds = oCN.RunProcReturn("select * from Gy_MouldFileMain where HInterID = " + hmainid + " and ISNULL(HChecker,'') <> '' and HPrintQty>0", "Gy_MouldFileMain"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å é¤å¤±è´¥ï¼åæ®å·²å®¡æ ¸ï¼"; |
| | | objJsonResult.Message = "å é¤å¤±è´¥ï¼åæ®å·²å®¡æ ¸æå·²è¢«æå°ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "æ²¡ææ¥è¯¢å°æ°æ®ï¼è¯·è系系ç»ç®¡çåè¿è¡æ ¸å¯¹"; |
| | | objJsonResult.data = ds?.Tables[0] ?? new DataTable(); |
| | | objJsonResult.list = columnNameList; |
| | |
| | | using System.Web.Http; |
| | | using System.Windows.Forms; |
| | | using WebAPI.Models; |
| | | using System.Web; |
| | | using System.IO; |
| | | namespace WebAPI.Controllers |
| | | { |
| | | public class LMESController : ApiController |
| | |
| | | public DAL.ClsSc_ICMOBill BillOld = new DAL.ClsSc_ICMOBill(); |
| | | //èªå®ä¹34è¿å¶æ°ç» |
| | | private static char[] lNCode = new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' }; |
| | | |
| | | string fileip = System.Configuration.ConfigurationManager.AppSettings["FileIP"]; |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region åå®¡æ ¸æè§æäº¤ |
| | | [Route("LMES/AuditFlowOpinion")] |
| | | [HttpGet] |
| | | public json AuditFlowOpinion(string sWhere,string billType,int HInterID, int type, string user) |
| | | { |
| | | DataSet ds; |
| | | json res = new json(); |
| | | try |
| | | { |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn($"exec h_p_Xt_AuditFlowOpinion '','{billType}',{HInterID},{type},'{user}'", "h_p_Xt_AuditFlowOpinion"); |
| | | } |
| | | else |
| | | { |
| | | sWhere = sWhere.Replace("'", "''"); |
| | | ds = oCN.RunProcReturn($"exec h_p_Xt_AuditFlowOpinion '{sWhere}','{billType}',{HInterID},{type},'{user}'", "h_p_Xt_AuditFlowOpinion"); |
| | | } |
| | | |
| | | if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå®¡æ ¸æè§æäº¤å¤±è´¥"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows[0]["HBack"].ToString() == "1") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå®¡æ ¸æè§æäº¤å¤±è´¥!åå :" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | res.code = CodeConstant.SUCCEED; |
| | | res.count = 1; |
| | | res.Message = "Sucessï¼"; |
| | | res.data = ds.Tables[0].Rows[0]["HRemark"]; |
| | | return res; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | res.code = CodeConstant.FAIL; |
| | | res.count = CountConstant.FAIL; |
| | | res.Message = "Exceptionï¼" + e.ToString(); |
| | | res.data = null; |
| | | return res; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region appæä»¶ä¸ä¼ éç¨æ¥å£ |
| | | [Route("LMES/UploadFile")] |
| | | [HttpPost] |
| | | public object UploadFile() |
| | | { |
| | | |
| | | string HBillNo = HttpContext.Current.Request.Params["HBillNo"]; //åæ®å· |
| | | string HRemark = HttpContext.Current.Request.Params["HRemark"]; //夿³¨ |
| | | string HUserName = HttpContext.Current.Request.Params["HUserName"]; //å建人 |
| | | HttpPostedFile files = HttpContext.Current.Request.Files["file"]; |
| | | string path = HttpContext.Current.Server.MapPath("~/../Files/APPFolder/" + HBillNo); |
| | | //string path = @"D:\\Files\\"+ HBillNo; |
| | | dynamic dyResult = UpLoadFile(files, path, HBillNo, HRemark, HUserName); |
| | | if (dyResult != null && dyResult.result == 1) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ä¸ä¼ æåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = dyResult.returnval; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | } |
| | | |
| | | public dynamic UpLoadFile(HttpPostedFile files, string path, string HBillNo, string HRemark, string HUserName) |
| | | { |
| | | dynamic Result_Ob = new { result = 1, returnval = "ä¸ä¼ æåï¼" }; |
| | | string filePath = Path.GetFullPath(files.FileName);//æä»¶ä¸ä¼ è·¯å¾ |
| | | string fileExtension = Path.GetExtension(files.FileName);// æä»¶æ©å±å |
| | | string filename = files.FileName;//æä»¶å |
| | | string fileSavePath = path;// ä¸ä¼ ä¿åè·¯å¾ |
| | | int filesize = files.ContentLength;//è·åä¸ä¼ æä»¶ç大å°åä½ä¸ºåèbyte |
| | | int Maxsize = 40000 * 1024;//å®ä¹ä¸ä¼ æä»¶çæå¤§ç©ºé´å¤§å°ä¸º40M |
| | | DataSet ds = new DataSet(); |
| | | try |
| | | { |
| | | if (files == null || files.ContentLength <= 0) |
| | | { |
| | | Result_Ob = new { result = 0, returnval = "æä»¶ä¸è½ä¸ºç©º!" }; |
| | | return Result_Ob; |
| | | } |
| | | if (filesize >= Maxsize) |
| | | { |
| | | Result_Ob = new { result = 0, returnval = "ä¸ä¼ æä»¶è¶
è¿40Mï¼ä¸è½ä¸ä¼ ï¼" }; |
| | | return Result_Ob; |
| | | } |
| | | |
| | | string fileurl = Path.Combine(fileSavePath, filename); |
| | | if (Directory.Exists(fileurl) == true) //妿åå¨éåæä»¶å°±æç¤º |
| | | { |
| | | Result_Ob = new { result = 0, returnval = "åå¨ååæä»¶ï¼" }; |
| | | return Result_Ob; |
| | | } |
| | | //å 餿°æ®è¡¨æ°æ® |
| | | ds = oCN.RunProcReturn("delete from MES_AccessoriesList where HSourceBillNo ='" + HBillNo + "' and HFileName='" + filename + "'", "MES_AccessoriesList"); |
| | | if (Directory.Exists(path)) |
| | | { |
| | | File.Delete(fileurl); //å 餿宿件 |
| | | files.SaveAs(fileurl); |
| | | string StrPath = "/files/APPFolder/" + HBillNo + "/" + filename; |
| | | if (File.Exists(fileurl)) |
| | | { |
| | | //è¿éå¯ä»¥æ§è¡ä¸äºå
¶å®çæä½ï¼æ¯å¦æ´æ°æ°æ®åº |
| | | //åå
¥æ°æ®è¡¨ |
| | | oCN.RunProc("Insert into MES_AccessoriesList (HFileName,HFilePath,HFilePath_Cus,HFileType" + |
| | | ",HLoadMan,HLoadDate,HRemark,HVerNum,HFileSize" + |
| | | ",HFileClsID,HSourceBillNo" + |
| | | ") values('" |
| | | + filename.ToString() + "','" + StrPath.ToString() + "','" + filePath.ToString() + "','" + fileExtension.ToString() + "'" + |
| | | ",'" + HUserName + "',getdate(),'" + HRemark + "','V1','" + filesize + |
| | | "','" + 0 + "','" + HBillNo + |
| | | "') "); |
| | | } |
| | | else |
| | | { |
| | | Result_Ob = new { result = 0, returnval = "ä¸ä¼ å¤±è´¥ï¼æ¤æä»¶ä¸ºæ¶ææä»¶" }; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | Directory.CreateDirectory(fileSavePath); //æ·»å æä»¶å¤¹ |
| | | files.SaveAs(fileurl); |
| | | string StrPath = "/files/APPFolder/" + HBillNo + "/" + filename; |
| | | if (File.Exists(fileurl)) |
| | | { |
| | | //è¿éå¯ä»¥æ§è¡ä¸äºå
¶å®çæä½ï¼æ¯å¦æ´æ°æ°æ®åº |
| | | //åå
¥æ°æ®è¡¨ |
| | | oCN.RunProc("Insert into MES_AccessoriesList (HFileName,HFilePath,HFilePath_Cus,HFileType" + |
| | | ",HLoadMan,HLoadDate,HRemark,HVerNum,HFileSize" + |
| | | ",HFileClsID,HSourceBillNo" + |
| | | ") values('" |
| | | + filename.ToString() + "','" + StrPath.ToString() + "','" + filePath.ToString() + "','" + fileExtension.ToString() + "'" + |
| | | ",'" + HUserName + "',getdate(),'" + HRemark + "','V1','" + filesize + |
| | | "','" + 0 + "','" + HBillNo + |
| | | "') "); |
| | | } |
| | | else |
| | | { |
| | | Result_Ob = new { result = 0, returnval = "ä¸ä¼ å¤±è´¥ï¼æ¤æä»¶ä¸ºæ¶ææä»¶" }; |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | Result_Ob = new { result = 0, returnval = e.Message }; |
| | | } |
| | | return Result_Ob; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®åæ®å·æ¥æ¾ä¸ä¼ æä»¶å表 |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | [Route("LMES/Filelist")] |
| | | [HttpGet] |
| | | public object Filelist(string HBillNo) |
| | | { |
| | | DataSet ds = new DataSet(); |
| | | var url = fileip + "/files/APPFolder/" + HBillNo + "/"; |
| | | //@"C:\\files\\" |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn("select *,'" + url + "'+CAST(HFileName as varchar(200))as url from MES_AccessoriesList where HSourceBillNo='" + HBillNo + "'", "MES_AccessoriesList"); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®ID,åæ®å·,æä»¶å å 餿件 |
| | | /// </summary> |
| | | /// <param name="sWhere"></param> |
| | | /// <returns></returns> |
| | | [Route("LMES/DeleteFilelist")] |
| | | [HttpGet] |
| | | public object DeleteFilelist(string HItemID, string HSourceBillNo, string HFileName) |
| | | { |
| | | try |
| | | { |
| | | |
| | | oCN.RunProc("delete from MES_AccessoriesList where HItemID =" + HItemID); |
| | | string fileurl = Path.Combine(HttpContext.Current.Server.MapPath("~/../Files/EquipFolder/" + HSourceBillNo), HFileName); |
| | | File.Delete(fileurl); //å 餿宿件 |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å 餿åï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | if (newPallet <= 0) |
| | | return new { code = "0", count = 0, Message = "ææ°å¿
须大äº0ï¼" }; |
| | | |
| | | // æ£æ¥æ¯å¦å·²å®¡æ ¸ |
| | | |
| | | string checkAuditSql = $@" |
| | | SELECT COUNT(*) as HasAudit |
| | | FROM Sc_MouldInRequestBillMain |
| | | WHERE HInterID = {hmainid} |
| | | AND HChecker IS NOT NULL |
| | | AND HCheckDate IS NOT NULL"; |
| | | SELECT HBillStatus |
| | | FROM Sc_MouldInRequestBillMain |
| | | WHERE HInterID = {hmainid}"; |
| | | |
| | | DataSet dsAudit = oCn.RunProcReturn(checkAuditSql, "CheckAudit"); |
| | | |
| | | if (dsAudit != null && dsAudit.Tables[0].Rows.Count > 0) |
| | | { |
| | | int hasAudit = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HasAudit"]); |
| | | if (hasAudit > 0) |
| | | int hBillStatus = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HBillStatus"]); |
| | | |
| | | if (hBillStatus == 2) |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®å·²å®¡æ ¸ï¼ä¸è½ä¿®æ¹ææ°ï¼" }; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®ä¸åå¨ï¼" }; |
| | | } |
| | | |
| | | // ç´æ¥æ´æ°ææ° |
| | | string updateSql = $@" |
| | | UPDATE Sc_MouldInRequestBillMain |
| | | UPDATE Sc_MouldInRequestBillMain |
| | | SET HPackQtys = {newPallet} |
| | | WHERE HInterID = {hmainid}"; |
| | | |
| | |
| | | #region å¨å
·åºåºç³è¯·å - ææ°åæ´åè½ |
| | | [Route("Sc_MouldOutRequestBillController/UpdatePallet")] |
| | | [HttpPost] |
| | | |
| | | public object UpdatePallet([FromBody] JObject data) |
| | | { |
| | | try |
| | |
| | | if (newPallet <= 0) |
| | | return new { code = "0", count = 0, Message = "ææ°å¿
须大äº0ï¼" }; |
| | | |
| | | // æ£æ¥æ¯å¦å·²å®¡æ ¸ |
| | | |
| | | string checkAuditSql = $@" |
| | | SELECT COUNT(*) as HasAudit |
| | | SELECT HBillStatus |
| | | FROM Sc_MouldOutRequestBillMain |
| | | WHERE HInterID = {hmainid} |
| | | AND HChecker IS NOT NULL |
| | | AND HCheckDate IS NOT NULL"; |
| | | WHERE HInterID = {hmainid}"; |
| | | |
| | | DataSet dsAudit = oCn.RunProcReturn(checkAuditSql, "CheckAudit"); |
| | | |
| | | if (dsAudit != null && dsAudit.Tables[0].Rows.Count > 0) |
| | | { |
| | | int hasAudit = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HasAudit"]); |
| | | if (hasAudit > 0) |
| | | int hBillStatus = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HBillStatus"]); |
| | | // â
æ£ç¡®ç夿ï¼HBillStatus = 2 è¡¨ç¤ºå·²å®¡æ ¸ |
| | | if (hBillStatus == 2) |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®å·²å®¡æ ¸ï¼ä¸è½ä¿®æ¹ææ°ï¼" }; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®ä¸åå¨ï¼" }; |
| | | } |
| | | |
| | | // ç´æ¥æ´æ°ææ° |
| | | string updateSql = $@" |
| | | UPDATE Sc_MouldOutRequestBillMain |
| | |
| | | #region å¨å
·é¢ç¨éåºå - ææ°åæ´åè½ |
| | | [Route("Sc_MouldProdBackBillController/UpdatePallet")] |
| | | [HttpPost] |
| | | |
| | | public object UpdatePallet([FromBody] JObject data) |
| | | { |
| | | try |
| | |
| | | if (newPallet <= 0) |
| | | return new { code = "0", count = 0, Message = "ææ°å¿
须大äº0ï¼" }; |
| | | |
| | | // æ£æ¥æ¯å¦å·²å®¡æ ¸ |
| | | |
| | | string checkAuditSql = $@" |
| | | SELECT COUNT(*) as HasAudit |
| | | SELECT HBillStatus |
| | | FROM Sc_MouldStockBillMain |
| | | WHERE HInterID = {hmainid} |
| | | AND HChecker IS NOT NULL |
| | | AND HCheckDate IS NOT NULL"; |
| | | WHERE HInterID = {hmainid}"; |
| | | |
| | | DataSet dsAudit = oCn.RunProcReturn(checkAuditSql, "CheckAudit"); |
| | | |
| | | if (dsAudit != null && dsAudit.Tables[0].Rows.Count > 0) |
| | | { |
| | | int hasAudit = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HasAudit"]); |
| | | if (hasAudit > 0) |
| | | int hBillStatus = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HBillStatus"]); |
| | | |
| | | if (hBillStatus == 2) |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®å·²å®¡æ ¸ï¼ä¸è½ä¿®æ¹ææ°ï¼" }; |
| | | } |
| | | } |
| | | // ç´æ¥æ´æ°ææ° |
| | | else |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®ä¸åå¨ï¼" }; |
| | | } |
| | | |
| | | |
| | | string updateSql = $@" |
| | | UPDATE Sc_MouldStockBillMain |
| | | UPDATE Sc_MouldStockBillMain |
| | | SET HPackQtys = {newPallet} |
| | | WHERE HInterID = {hmainid}"; |
| | | |
| | |
| | | #region å¨å
·é¢ç¨åºåºå - ææ°åæ´åè½ |
| | | [Route("Sc_MouldProdOutBill/UpdatePallet")] |
| | | [HttpPost] |
| | | |
| | | public object UpdatePallet([FromBody] JObject data) |
| | | { |
| | | try |
| | |
| | | if (newPallet <= 0) |
| | | return new { code = "0", count = 0, Message = "ææ°å¿
须大äº0ï¼" }; |
| | | |
| | | // æ£æ¥æ¯å¦å·²å®¡æ ¸ |
| | | |
| | | string checkAuditSql = $@" |
| | | SELECT COUNT(*) as HasAudit |
| | | FROM Sc_MouldStockBillMain |
| | | WHERE HInterID = {hmainid} |
| | | AND HChecker IS NOT NULL |
| | | AND HCheckDate IS NOT NULL"; |
| | | SELECT HBillStatus |
| | | FROM Sc_MouldStockBillMain |
| | | WHERE HInterID = {hmainid}"; |
| | | |
| | | DataSet dsAudit = oCn.RunProcReturn(checkAuditSql, "CheckAudit"); |
| | | |
| | | if (dsAudit != null && dsAudit.Tables[0].Rows.Count > 0) |
| | | { |
| | | int hasAudit = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HasAudit"]); |
| | | if (hasAudit > 0) |
| | | int hBillStatus = Convert.ToInt32(dsAudit.Tables[0].Rows[0]["HBillStatus"]); |
| | | |
| | | if (hBillStatus == 2) |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®å·²å®¡æ ¸ï¼ä¸è½ä¿®æ¹ææ°ï¼" }; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return new { code = "0", count = 0, Message = "åæ®ä¸åå¨ï¼" }; |
| | | } |
| | | |
| | | // ç´æ¥æ´æ°ææ° |
| | | string updateSql = $@" |
| | | UPDATE Sc_MouldStockBillMain |
| | |
| | | |
| | | #endregion |
| | | |
| | | //车é´å®ä½ 车é´ä¸ä¸æ¶æ¶é´æ¥è¯¢ |
| | | #region 车é´å®ä½ 车é´ä¸ä¸æ¶æ¶é´æ¥è¯¢ |
| | | [Route("Kf_WorkShopICStockBill/List")] |
| | | [HttpGet] |
| | | public object Kf_WorkShopICStockBillList(string HBillType, string HCarBarCode, string HProcExBillNo, string HMaterNumber, long HWHID, long HSPID, string sWhere) |
| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | [Route("MateOutBill/Delete_Json")] |
| | | [HttpGet] |
| | | public object Delete_Json(long HInterID, long HMaterID, long HAuxPropID, string HMTONo, long HSourceInterID, long HSourceEntryID, string sHBillType) |
| | |
| | | #endregion |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region 车é´å®ä½ 车é´ä¸ä¸æ¶æ¶é´æ¥è¯¢ |
| | | [Route("KF_ICInventory_WorkShop/KF_ICInventory_WorkShopList")] |
| | | [HttpGet] |
| | | public object KF_ICInventory_WorkShopList(string sWhere) |
| | | {// string HBarCode, string HMaterNumber, long HWHID, long HSPID, |
| | | try |
| | | { |
| | | DataSet ds; |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | List<object> columnNameList = new List<object>(); |
| | | if (sWhere != null) |
| | | { |
| | | //sWhere = sWhere.Replace("'", "''"); |
| | | ds = oCN.RunProcReturn("select * from h_v_KF_ICInventory_WorkShop_WMS where 1=1 "+ sWhere, "h_v_KF_ICInventory_WorkShop_WMS"); |
| | | } |
| | | else |
| | | ds = oCN.RunProcReturn("select * from h_v_KF_ICInventory_WorkShop_WMS where 1=1", "h_v_KF_ICInventory_WorkShop_WMS"); |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | 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 |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "è·åä¿¡æ¯æåï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没æè¿åä»»ä½è®°å½ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | { |
| | | //夿忮æ¯å¦å·²ç»å®¡æ ¸ |
| | | DataSet ds; |
| | | string sql = "select * from Gy_QCCheckProjectMain where HInterID = " + HInterID; |
| | | string sql; |
| | | if(HInterID=="0") |
| | | { |
| | | sql = "select top 1 * from Gy_QCCheckProjectMain order by HInterID desc"; |
| | | |
| | | } |
| | | else |
| | | sql = "select * from Gy_QCCheckProjectMain where HInterID = " + HInterID; |
| | | ds = oCN.RunProcReturn(sql, oBill.MvarItemKey); |
| | | if(ds!=null) |
| | | { |
| | | oBill.omodel.HInterID = Convert.ToInt64(ds.Tables[0].Rows[0]["HInterID"]); |
| | | HInterID = Convert.ToInt64(ds.Tables[0].Rows[0]["HInterID"]).ToString(); |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows[0]["HChecker"] != null && ds.Tables[0].Rows[0]["HChecker"].ToString() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | |
| | | string user = sArray[3].ToString(); |
| | | string Value = sArray[4].ToString(); |
| | | string BadReason = null; |
| | | if (sArray.Length > 4) |
| | | if (sArray.Length > 5) |
| | | { |
| | | BadReason = sArray[5].ToString(); |
| | | } |
| | |
| | | using System.Threading.Tasks; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | using WebAPI.Service; |
| | | using System.Threading; |
| | | using SyntacticSugar.constant; |
| | | using WebApiWithFleck; |
| | | |
| | | namespace WebAPI.Controllers.SCGL |
| | | { |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | // ä¸ªæ¨æ¹å¼æ¨éæ°æ® |
| | | GeTuiService.PubishSingle(HInterID); |
| | | |
| | | // webSocketæ¹å¼æ¨éæ°æ® |
| | | // WebSocketServer.PushOne(HInterID); |
| | | } |
| | | if (IsAudit == 1) //åå®¡æ ¸æäº¤ |
| | | { |
| | |
| | | { |
| | | try |
| | | { |
| | | ds = oCN.RunProcReturn($"select isnull(DATEDIFF(DAY,GETDATE(),CONVERT(varchar(10),max(HMasterDate),20))+1,0) DayNum from Sc_WorkBillSortBillMain a with(nolock) left join Sc_WorkBillSortBillSub b with(nolock) on a.HInterID = b.HInterID where a.HWorkShopID = {sWhere} and HMasterDate>=CONVERT(varchar(10),GETDATE(),20) and HLockedSub=1", "Sc_WorkBillSortBillSub"); |
| | | ds = oCN.RunProcReturn($"select isnull(DATEDIFF(DAY,GETDATE(),CONVERT(varchar(10),max(HMasterDate),20))+1,0) DayNum from Sc_WorkBillSortBillMain a with(nolock) left join Sc_WorkBillSortBillSub b with(nolock) on a.HInterID = b.HInterID where a.HWorkShopID in ({sWhere}) and HMasterDate>=CONVERT(varchar(10),GETDATE(),20) and HLockedSub=1", "Sc_WorkBillSortBillSub"); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | |
| | | //æ·»å åå |
| | | for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++) |
| | | { |
| | | tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); |
| | | if (!tb2.Columns.Contains(ExcelDs.Tables[0].Rows[0][i].ToString())) |
| | | { |
| | | tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); |
| | | } |
| | | } |
| | | //模æ¿ç¼ºå°å ä½éè¦ä»æ°æ®åºä¸æ¥è¯¢åºæ¥æ¾ç¤ºå¨é¡µé¢çåæ®µ |
| | | tb2.Columns.Add("hmainid", typeof(Int32)); |
| | |
| | | //æ·»å åå |
| | | for (int i = 0; i < ExcelDs.Tables[0].Columns.Count; i++) |
| | | { |
| | | tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); |
| | | } |
| | | if (!tb2.Columns.Contains(ExcelDs.Tables[0].Rows[0][i].ToString())) |
| | | { |
| | | tb2.Columns.Add(ExcelDs.Tables[0].Rows[0][i].ToString()); |
| | | } |
| | | } |
| | | |
| | | //模æ¿ç¼ºå°å ä½éè¦ä»æ°æ®åºä¸æ¥è¯¢åºæ¥æ¾ç¤ºå¨é¡µé¢çåæ®µ |
| | | tb2.Columns.Add("hmainid", typeof(Int32)); |
| | | tb2.Columns.Add("HMaterID", typeof(Int32));//ç©æID |
| | |
| | | tb2.Rows[i]["HVersion_Import"] = DateTime.Now.ToString("yyyy-MM-dd HH"); |
| | | |
| | | |
| | | if (tb2.Rows[i]["ç»ç»ç¼ç *"].ToString() == "") |
| | | if (tb2.Rows[i]["ç»ç»ç¼ç "].ToString() == "") |
| | | error += "ç»ç»ç¼ç ä¸è½ä¸ºç©º;"; |
| | | if (tb2.Rows[i]["ç产订åå·*"].ToString() == "") |
| | | if (tb2.Rows[i]["ç产订åå·"].ToString() == "") |
| | | error += "ç产订åå·ä¸è½ä¸ºç©º;\n"; |
| | | if (tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString() == "") |
| | | if (tb2.Rows[i]["ç产订åæç»è¡å·"].ToString() == "") |
| | | error += "ç产订åæç»è¡å·ä¸è½ä¸ºç©º;"; |
| | | if (tb2.Rows[i]["ç产车é´ç¼ç *"].ToString() == "") |
| | | if (tb2.Rows[i]["ç产车é´ç¼ç "].ToString() == "") |
| | | error += "ç产车é´ç¼ç ä¸è½ä¸ºç©º;"; |
| | | if (tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString() == "") |
| | | if (tb2.Rows[i]["çäº§èµæºç¼ç "].ToString() == "") |
| | | error += "çäº§èµæºç¼ç ä¸è½ä¸ºç©º;"; |
| | | if (tb2.Rows[i]["ç©æç¼ç *"].ToString() == "") |
| | | if (tb2.Rows[i]["ç©æç¼ç "].ToString() == "") |
| | | error += "ç©æç¼ç ä¸è½ä¸ºç©º;"; |
| | | |
| | | if (error.Length > 0) |
| | |
| | | } |
| | | |
| | | string sql1 = string.Format("select * from h_v_JIT_ICMOBillList_DR where åæ®å·='{0}' and ç产车é´ä»£ç ='{1}' and 产å代ç ='{2}' " + |
| | | "and æç»è¡å·={3} ",tb2.Rows[i]["ç产订åå·*"].ToString(), tb2.Rows[i]["ç产车é´ç¼ç *"].ToString(), tb2.Rows[i]["ç©æç¼ç *"].ToString(), |
| | | tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString()); |
| | | "and æç»è¡å·={3} ",tb2.Rows[i]["ç产订åå·"].ToString(), tb2.Rows[i]["ç产车é´ç¼ç "].ToString(), tb2.Rows[i]["ç©æç¼ç "].ToString(), |
| | | tb2.Rows[i]["ç产订åæç»è¡å·"].ToString()); |
| | | |
| | | ds = oCN.RunProcReturn(sql1, "h_v_JIT_ICMOBillList_DR"); |
| | | |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | error += $"没æç产订åä¿¡æ¯ï¼ç产订åå·:{ tb2.Rows[i]["ç产订åå·*"].ToString()},ç产车é´ç¼ç :{tb2.Rows[i]["ç产车é´ç¼ç *"].ToString()}" + |
| | | $",ç产订åæç»è¡å·:{ tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString()},ç©æç¼ç :{ tb2.Rows[i]["ç©æç¼ç *"].ToString()}"; |
| | | error += $"没æç产订åä¿¡æ¯ï¼ç产订åå·:{ tb2.Rows[i]["ç产订åå·"].ToString()},ç产车é´ç¼ç :{tb2.Rows[i]["ç产车é´ç¼ç "].ToString()}" + |
| | | $",ç产订åæç»è¡å·:{ tb2.Rows[i]["ç产订åæç»è¡å·"].ToString()},ç©æç¼ç :{ tb2.Rows[i]["ç©æç¼ç "].ToString()}"; |
| | | } |
| | | |
| | | if (error.Length > 0) |
| | |
| | | } |
| | | |
| | | ds = oCN.RunProcReturn("select * from h_v_JIT_WorkBillSortBillList_DR " + |
| | | $"where ç产订åå·='{tb2.Rows[i]["ç产订åå·*"].ToString()}' and ç产订åæç»è¡å·='{tb2.Rows[i]["ç产订åæç»è¡å·*"].ToString()}' " + |
| | | $"and ç产车é´ç¼ç ='{tb2.Rows[i]["ç产车é´ç¼ç *"].ToString()}' and ç©æä»£ç ='{tb2.Rows[i]["ç©æç¼ç *"].ToString()}' " + |
| | | $"and çäº§èµæºç¼ç ='{tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString()}' ", "h_v_JIT_WorkBillSortBillList_DR"); |
| | | $"where ç产订åå·='{tb2.Rows[i]["ç产订åå·"].ToString()}' and ç产订åæç»è¡å·='{tb2.Rows[i]["ç产订åæç»è¡å·"].ToString()}' " + |
| | | $"and ç产车é´ç¼ç ='{tb2.Rows[i]["ç产车é´ç¼ç "].ToString()}' and ç©æä»£ç ='{tb2.Rows[i]["ç©æç¼ç "].ToString()}' " + |
| | | $"and çäº§èµæºç¼ç ='{tb2.Rows[i]["çäº§èµæºç¼ç "].ToString()}' ", "h_v_JIT_WorkBillSortBillList_DR"); |
| | | //ç»ç»ç¼ç ='{tb2.Rows[i]["ç»ç»ç¼ç *"].ToString()}' and |
| | | //and çäº§èµæºç¼ç ='{tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString()}' |
| | | |
| | |
| | | tb2.Rows[i]["ä¼å
级"] = ds.Tables[0].Rows[0]["ä¼å
级"].ToString(); |
| | | } |
| | | tb2.Rows[i]["HSourceID"] = ds.Tables[0].Rows[0]["HSourceID"].ToString(); |
| | | tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HEmpID"].ToString(); |
| | | tb2.Rows[i]["åå·¥ç¼ç "] = ds.Tables[0].Rows[0]["èå代ç "].ToString(); |
| | | tb2.Rows[i]["åå·¥"] = ds.Tables[0].Rows[0]["èå"].ToString(); |
| | | //tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HEmpID"].ToString(); |
| | | //tb2.Rows[i]["åå·¥ç¼ç "] = ds.Tables[0].Rows[0]["èå代ç "].ToString(); |
| | | //tb2.Rows[i]["åå·¥"] = ds.Tables[0].Rows[0]["èå"].ToString(); |
| | | tb2.Rows[i]["HUnitID"] = ds.Tables[0].Rows[0]["HUnitID"].ToString(); |
| | | tb2.Rows[i]["计éåä½"] = ds.Tables[0].Rows[0]["计éåä½"].ToString(); |
| | | tb2.Rows[i]["æ¹æ¬¡å·"] = ds.Tables[0].Rows[0]["æ¹æ¬¡"].ToString(); |
| | | tb2.Rows[i]["éå®è®¢åæ°é"] = ds.Tables[0].Rows[0]["éå®è®¢åæ°é"].ToString(); |
| | | tb2.Rows[i]["æ»é½å¥æ°é"] = ds.Tables[0].Rows[0]["é½å¥æ°é"].ToString(); |
| | | //tb2.Rows[i]["æ¹æ¬¡å·"] = ds.Tables[0].Rows[0]["æ¹æ¬¡"].ToString(); |
| | | //tb2.Rows[i]["éå®è®¢åæ°é"] = ds.Tables[0].Rows[0]["éå®è®¢åæ°é"].ToString(); |
| | | //tb2.Rows[i]["æ»é½å¥æ°é"] = ds.Tables[0].Rows[0]["é½å¥æ°é"].ToString(); |
| | | } |
| | | else |
| | | { |
| | | //åå·¥ |
| | | ds = oCN.RunProcReturn($"select * from Gy_Employee with(nolock) where HNumber='{tb2.Rows[i]["åå·¥ç¼ç "].ToString()}'", "Gy_Employee"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | | tb2.Rows[i]["åå·¥"] = ds.Tables[0].Rows[0]["HName"].ToString(); |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = $"第{i + 1}è¡,åå·¥æ¥æ æ°æ®!"; |
| | | objJsonResult.data = tb2; |
| | | return objJsonResult; |
| | | } |
| | | ////åå·¥ |
| | | //ds = oCN.RunProcReturn($"select * from Gy_Employee with(nolock) where HNumber='{tb2.Rows[i]["åå·¥ç¼ç "].ToString()}'", "Gy_Employee"); |
| | | //if (ds.Tables[0].Rows.Count > 0) |
| | | //{ |
| | | // tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | | // tb2.Rows[i]["åå·¥"] = ds.Tables[0].Rows[0]["HName"].ToString(); |
| | | //} |
| | | //else |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = $"第{i + 1}è¡,åå·¥æ¥æ æ°æ®!"; |
| | | // objJsonResult.data = tb2; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | //计éåä½ |
| | | ds = oCN.RunProcReturn($"select * from Gy_Unit with(nolock) where HNumber='{tb2.Rows[i]["计éåä½"].ToString()}'", "Gy_Unit"); |
| | |
| | | } |
| | | |
| | | //çäº§èµæº |
| | | ds = oCN.RunProcReturn($"select * from Gy_Source with(nolock) where HNumber='{tb2.Rows[i]["çäº§èµæºç¼ç *"].ToString()}'", "Gy_Source"); |
| | | ds = oCN.RunProcReturn($"select * from Gy_Source with(nolock) where HNumber='{tb2.Rows[i]["çäº§èµæºç¼ç "].ToString()}'", "Gy_Source"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | tb2.Rows[i]["HSourceID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | |
| | | } |
| | | } |
| | | //ç»ç» |
| | | ds = oCN.RunProcReturn($"select * from Xt_ORGANIZATIONS with(nolock) where HNumber='{tb2.Rows[i]["ç»ç»ç¼ç *"].ToString()}'", "Xt_ORGANIZATIONS"); |
| | | ds = oCN.RunProcReturn($"select * from Xt_ORGANIZATIONS with(nolock) where HNumber='{tb2.Rows[i]["ç»ç»ç¼ç "].ToString()}'", "Xt_ORGANIZATIONS"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | tb2.Rows[i]["HProdORGID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | |
| | | objJsonResult.Message = $"第{i + 1}è¡,ç»ç»æ¥æ æ°æ®!"; |
| | | objJsonResult.data = tb2; |
| | | return objJsonResult; |
| | | } |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "å®å·¥") |
| | | { |
| | | string HOrgID = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | | //çäº§è½¦é´ |
| | | ds = oCN.RunProcReturn($"select * from Gy_Department with(nolock) where HUSEORGID = {HOrgID} and HNumber='{tb2.Rows[i]["ç产车é´ç¼ç *"].ToString()}'", "Gy_Department"); |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | tb2.Rows[i]["HWorkShopID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = $"第{i + 1}è¡,çäº§è½¦é´æ¥æ æ°æ®!"; |
| | | objJsonResult.data = tb2; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | |
| | | list.Add(dic); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | for (int i = 0; i < list.Count; i++) |
| | | { |
| | | int TrueCount = 0, SumCount = 0; |
| | |
| | | { |
| | | HBillNo = DBUtility.ClsPub.CreateBillCode_Prod(BillType, ref DBUtility.ClsPub.sExeReturnInfo, true);//è·å¾ä¸ä¸ªæ°çåæ®å· |
| | | HInterID = DBUtility.ClsPub.CreateBillID_Prod(BillType, ref DBUtility.ClsPub.sExeReturnInfo);//è·å¾ä¸ä¸ªæ°çid |
| | | var HICMOBillNo = list[i]["ç产订åå·*"].ToString(); |
| | | var HICMOEntrySEQ = list[i]["ç产订åæç»è¡å·*"].ToString(); |
| | | var HICMOBillNo = list[i]["ç产订åå·"].ToString(); |
| | | var HICMOEntrySEQ = list[i]["ç产订åæç»è¡å·"].ToString(); |
| | | var HProdORGID = list[i]["HProdORGID"].ToString(); |
| | | var HWorkShopID = list[i]["HWorkShopID"].ToString(); |
| | | var HSourceID = list[i]["HSourceID"].ToString(); |
| | | var HWorkQty = DBUtility.ClsPub.isDoule(list[i]["产è½"]); |
| | | var HWorkQty = DBUtility.ClsPub.isDoule(list[i]["产线æ»äº§è½"]); |
| | | var HYX = list[i]["ä¼å
级"].ToString(); |
| | | var HEmpID = list[i]["HEmpID"].ToString(); |
| | | var HMaterID = list[i]["HMaterID"].ToString(); |
| | | var HMaterName = list[i]["ç©æåç§°"].ToString(); |
| | | var HMaterModel = list[i]["è§æ ¼åå·"].ToString(); |
| | | var HUnitID = list[i]["HUnitID"].ToString(); |
| | | var HBatchNo = list[i]["æ¹æ¬¡å·"].ToString(); |
| | | var HSeOrderBillQty = list[i]["éå®è®¢åæ°é"].ToString(); |
| | | var HBatchNo = ""; // list[i]["æ¹æ¬¡å·"].ToString(); |
| | | var HSeOrderBillQty = "0"; // list[i]["éå®è®¢åæ°é"].ToString(); |
| | | var HPlanQty = list[i]["çäº§è®¢åæ°é"].ToString(); |
| | | var HCompleteQty = list[i]["æ»é½å¥æ°é"].ToString(); |
| | | var HCompleteQty = "0"; // list[i]["æ»é½å¥æ°é"].ToString(); |
| | | var HOrderType = omdelMian.HOrderType; |
| | | var HDate = omdelMian.HDate; |
| | | var HMainSourceInterID = list[i]["ICMOBillHInterID"].ToString(); |
| | |
| | | $",'{HSeOrderBillNo}','{HVersion_Import}')"); |
| | | } |
| | | |
| | | int SumDay = 31; //卿䏤æä¹å·® DateTime.Now.AddMonths(1).AddDays(-1).Subtract(DateTime.Now).Days; |
| | | int SumDay = 50; //卿䏤æä¹å·® DateTime.Now.AddMonths(1).AddDays(-1).Subtract(DateTime.Now).Days; |
| | | |
| | | // ç»è®¡æ»å¤©æ° |
| | | HashSet<DateTime> uniqueDates = new HashSet<DateTime>(); |
| | |
| | | LogService.Write("1:" + list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString()); |
| | | LogService.Write("2:" + DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")); |
| | | //主表åè¡¨é½ææ°æ® |
| | | if (list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString() != "") |
| | | if (list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString() != "" && Math.Round(double.Parse(list[i][DateTime.Now.AddDays(j).ToString("yyyy-MM-dd")].ToString()), 1) > 0) |
| | | { |
| | | SumCount += 1; |
| | | ////ä¿åå表 |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "é¦é") |
| | | { |
| | | //if (oSystemParameter.omodel.WMS_CampanyName == "é¦é") |
| | | //{ |
| | | string sql = @"select a.FID,a.FNUMBER Employee,d.FNUMBER Dept from Gy_Employee e |
| | | join JL20250716203240..T_HR_EMPINFO a on e.HNumber = a.FNUMBER |
| | | join JL20250716203240..T_BD_STAFFTEMP c on c.FID = a.FID |
| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | //} |
| | | |
| | | |
| | | |
| | |
| | | model.Add("FInspectOrgId", new JObject() { ["Fnumber"] = HZJOrgNumber.ToString() }); //è´¨æ£ç»ç» |
| | | model.Add("FSourceOrgId", new JObject() { ["Fnumber"] = HZJOrgNumber.ToString() }); //æ¥æºç»ç» |
| | | //model.Add("FInspectDepId", new JObject() { ["Fnumber"] = ds.Tables[0].Rows[0]["Dept"].ToString() }); //è´¨æ£é¨é¨ |
| | | |
| | | if (oSystemParameter.omodel.WMS_CampanyName == "é¦é") |
| | | { |
| | | LogService.Write("WMS_CampanyName: ", oSystemParameter.omodel.WMS_CampanyName); |
| | | // if (oSystemParameter.omodel.WMS_CampanyName == "é¦é") |
| | | // { |
| | | model.Add("FInspectorId", new JObject() { ["Fnumber"] = ds.Tables[0].Rows[0]["Employee"].ToString() }); //è´¨æ£å |
| | | } |
| | | // } |
| | | model.Add("FISSYNCED", "false");// æ¯å¦å·²åæ¥ |
| | | model.Add("F_PGKJ_Date", DateTime.Now.ToString("yyyy-MM-dd"));// æ¥æ£æ¥æ |
| | | model.Add("FBillNo", HBillNo); |
| | |
| | | Ids = fID, |
| | | }; |
| | | |
| | | |
| | | K3CloudApiClient client = new K3CloudApiClient("http://47.96.97.237/k3cloud"); |
| | | // K3CloudApiClient client = new K3CloudApiClient("http://192.168.80.90/k3cloud/"); |
| | | |
| | | |
| | | // é¦é ä»
ä¿çæ°å»ºåè½ |
| | | //result1 = InvokeHelper.Submit("QM_InspectBill", JsonConvert.SerializeObject(json));//æäº¤ |
| | | //// result2 = InvokeHelper.Audit("QM_InspectBill", JsonConvert.SerializeObject(json));//å®¡æ ¸ |
| | | //if (JObject.Parse(result1)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") |
| | | //{ |
| | | //oCN.RollBack(); |
| | | //objJsonResult.code = "0"; |
| | | //objJsonResult.count = 0; |
| | | //objJsonResult.Message = $"æ¥ææ£éªåå·ï¼{fBillNo}ï¼æäº¤å¤±è´¥" + result; |
| | | //objJsonResult.data = null; |
| | | //return objJsonResult; |
| | | //} |
| | | //else |
| | | //{ |
| | | |
| | | result1 = InvokeHelper.Submit("QM_InspectBill", JsonConvert.SerializeObject(json));//æäº¤ |
| | | // result2 = InvokeHelper.Audit("QM_InspectBill", JsonConvert.SerializeObject(json));//å®¡æ ¸ |
| | | if (JObject.Parse(result1)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = $"æ¥ææ£éªåå·ï¼{fBillNo}ï¼æäº¤å¤±è´¥" + result; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | //DataSet ds1 = oCN.RunProcReturn("select * from MES_AccessoriesList where HSourceBillNo = '" + HBillNo + "'", "MES_AccessoriesList"); |
| | | |
| | | DataSet ds1 = oCN.RunProcReturn("select * from MES_AccessoriesList where HSourceBillNo = '" + HBillNo + "'", "MES_AccessoriesList"); |
| | | //for (var i = 0; i < ds1.Tables[0].Rows.Count; i++) |
| | | //{ |
| | | //string HFileName = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[i]["HFileName"]); |
| | | //string HFilePath = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[i]["HFilePath"]); |
| | | |
| | | for (var i = 0; i < ds1.Tables[0].Rows.Count; i++) |
| | | { |
| | | string HFileName = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[i]["HFileName"]); |
| | | string HFilePath = DBUtility.ClsPub.isStrNull(ds1.Tables[0].Rows[i]["HFilePath"]); |
| | | //string path = HFilePath; |
| | | //FileInfo fi = new FileInfo(path); |
| | | //long len = fi.Length; |
| | | //byte[] buffer = new byte[len]; |
| | | //FileStream fs = new FileStream(path, FileMode.Open); |
| | | //fs.Read(buffer, 0, (int)len); |
| | | ////æä»¶IOæµ |
| | | //string a = Convert.ToBase64String(buffer); |
| | | |
| | | string path = HFilePath; |
| | | FileInfo fi = new FileInfo(path); |
| | | long len = fi.Length; |
| | | byte[] buffer = new byte[len]; |
| | | FileStream fs = new FileStream(path, FileMode.Open); |
| | | fs.Read(buffer, 0, (int)len); |
| | | //æä»¶IOæµ |
| | | string a = Convert.ToBase64String(buffer); |
| | | |
| | | //if(oSystemParameter.omodel.WMS_CampanyName == "é¦é") |
| | | //{ |
| | | ds = oCN.RunProcReturn("select * from JL20250716203240..T_QM_INSPECTBILL where FBILLNO='" + HBillNo + "'", "T_QM_INSPECTBILL"); |
| | | //} |
| | | //else |
| | | //{ |
| | | // ds = oCN.RunProcReturn("select * from AIS20210811135644..T_QM_INSPECTBILL where FBILLNO='" + HBillNo + "'", "T_QM_INSPECTBILL"); |
| | | //} |
| | | ////if(oSystemParameter.omodel.WMS_CampanyName == "é¦é") |
| | | ////{ |
| | | //ds = oCN.RunProcReturn("select * from JL20250716203240..T_QM_INSPECTBILL where FBILLNO='" + HBillNo + "'", "T_QM_INSPECTBILL"); |
| | | ////} |
| | | ////else |
| | | ////{ |
| | | //// ds = oCN.RunProcReturn("select * from AIS20210811135644..T_QM_INSPECTBILL where FBILLNO='" + HBillNo + "'", "T_QM_INSPECTBILL"); |
| | | ////} |
| | | |
| | | |
| | | HInterID = long.Parse(ds.Tables[0].Rows[0]["FID"].ToString()); |
| | | //HInterID = long.Parse(ds.Tables[0].Rows[0]["FID"].ToString()); |
| | | |
| | | string jsonStr = "{" + |
| | | " \"FileName\":\"" + HFileName + "\"," + |
| | | " \"FormId\":\"QM_InspectBill\"," + |
| | | " \"IsLast\":\"true\"," + |
| | | " \"InterId\":\"" + HInterID + "\"," + |
| | | " \"BillNo\":\"" + HBillNo + "\"," + |
| | | " \"AliasFileName\":\"test\"," + |
| | | " \"SendByte\":\"" + a + "\"" + |
| | | "}"; |
| | | // ä¸é¢çæ¹å¼éç¨äº éè¶äº 8.0以ä¸çæ¬ |
| | | string _vlog = InvokeHelper.UpLoad("QM_InspectBill", jsonStr); |
| | | LogService.Write("json:" + jsonStr); |
| | | LogService.Write("_vlog:" + _vlog); |
| | | //string jsonStr = "{" + |
| | | //" \"FileName\":\"" + HFileName + "\"," + |
| | | //" \"FormId\":\"QM_InspectBill\"," + |
| | | //" \"IsLast\":\"true\"," + |
| | | //" \"InterId\":\"" + HInterID + "\"," + |
| | | //" \"BillNo\":\"" + HBillNo + "\"," + |
| | | //" \"AliasFileName\":\"test\"," + |
| | | //" \"SendByte\":\"" + a + "\"" + |
| | | //"}"; |
| | | //// ä¸é¢çæ¹å¼éç¨äº éè¶äº 8.0以ä¸çæ¬ |
| | | //string _vlog = InvokeHelper.UpLoad("QM_InspectBill", jsonStr); |
| | | //LogService.Write("json:" + jsonStr); |
| | | //LogService.Write("_vlog:" + _vlog); |
| | | |
| | | if (JObject.Parse(_vlog)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = $"æ¥ææ£éªåå·ï¼{fBillNo}ï¼ç
§çåæ¥å¤±è´¥" + _vlog; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //if (JObject.Parse(_vlog)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") |
| | | //{ |
| | | //oCN.RollBack(); |
| | | //objJsonResult.code = "0"; |
| | | //objJsonResult.count = 0; |
| | | //objJsonResult.Message = $"æ¥ææ£éªåå·ï¼{fBillNo}ï¼ç
§çåæ¥å¤±è´¥" + _vlog; |
| | | //objJsonResult.data = null; |
| | | //return objJsonResult; |
| | | //} |
| | | |
| | | // ä¸é¢çæ¹å¼éç¨äº éè¶äº 8.0以ä¸çæ¬ |
| | | // var ret = client.AttachmentUpload(jsonStr); |
| | | } |
| | | //// ä¸é¢çæ¹å¼éç¨äº éè¶äº 8.0以ä¸çæ¬ |
| | | //// var ret = client.AttachmentUpload(jsonStr); |
| | | //} |
| | | |
| | | |
| | | } |
| | | //} |
| | | |
| | | oCN.Commit(); |
| | | objJsonResult.code = "0"; |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ç¨äºè¿æ¥çå¥åº·åº¦æ£éªï¼åªè¦è½è®¿é®éè¿ä¸ªæ¥å£ï¼å表æè¿æ¥å¯ç¨ |
| | | [Route("Health")] |
| | | [HttpGet] |
| | | public IHttpActionResult CheckHealth() |
| | | { |
| | | // è¿å 200 ç¶æç 确认å¥åº·ç¶æ |
| | | return Ok(); |
| | | } |
| | | #endregion |
| | | |
| | | #region ç»å½ç¨æ·ä¸è®¾å¤ClientID çå
³ç³» åå
¥æ°æ®åº |
| | | [Route("Web/SetGy_UserClientIdConnection")] |
| | | [HttpPost] |
| | | public object SetGy_UserClientIdConnection([FromBody] JObject msg) |
| | | { |
| | | DataSet ds; |
| | | oCN.BeginTran(); |
| | | try |
| | | { |
| | | LogService.Write($@"exec h_p_SetGy_UserClientIdRelation |
| | | @HUserbm=N'{msg["HUserbm"].ToString()}', |
| | | @HUserName=N'{msg["HUserName"].ToString()}', |
| | | @HClientID=N'{msg["HClientID"].ToString()}', |
| | | @HOnline={msg["HOnline"].ToString()} |
| | | ", "h_p_SetGy_UserClientIdRelation"); |
| | | ds = oCN.RunProcReturn($@"exec h_p_SetGy_UserClientIdRelation |
| | | @HUserbm=N'{msg["HUserbm"].ToString()}', |
| | | @HUserName=N'{msg["HUserName"].ToString()}', |
| | | @HClientID=N'{msg["HClientID"].ToString()}', |
| | | @HOnline={msg["HOnline"].ToString()} |
| | | ", "h_p_SetGy_UserClientIdRelation"); |
| | | |
| | | if(ds.Tables[0].Rows[0]["HStatus"].ToString() == "1") |
| | | { |
| | | oCN.Commit(); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ä¿å设å¤ä¿¡æ¯æåï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿å设å¤ä¿¡æ¯å¤±è´¥ï¼" + ds.Tables[0].Rows[0]["msg"]; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | }catch(Exception e) |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿å设å¤ä¿¡æ¯å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | ordrlist.HMTONo = dt.Rows[i]["计åè·è¸ªå·"].ToString(); |
| | | ordrlist.HProduceDate = DBUtility.ClsPub.isDate(dt.Rows[i]["çäº§æ¥æ"]); |
| | | ordrlist.HExpiryDate = DBUtility.ClsPub.isDate(dt.Rows[i]["æææè³"]); |
| | | ordrlist.HISKFPERIOD = int.Parse(dt.Rows[i]["HISKFPERIOD"].ToString()); |
| | | //ordrlist.HISKFPERIOD = int.Parse(dt.Rows[i]["HISKFPERIOD"].ToString()); |
| | | ordrlist.HISKFPERIOD = DBUtility.ClsPub.isInt(dt.Rows[i]["HISKFPERIOD"]); |
| | | ordrlist.HEXPUNIT = dt.Rows[i]["HEXPUNIT"].ToString(); //æææåä½(æ¥ãæãå¹´) |
| | | ordrlist.HEXPPERIOD = double.Parse(dt.Rows[i]["HEXPPERIOD"].ToString()); //æææå¼ |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | |
| | | //å é¤åæ§å¶========================================= |
| | | DataSet dds = oCn.RunProcReturn("Exec h_p_KF_ICInventory_WorkShop_BeforeDelCtrl " + mainList[0].HInterID.ToString() , "h_p_KF_ICInventory_WorkShop_BeforeDelCtrl"); |
| | | |
| | | if (dds == null) |
| | | { |
| | | oCn.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å é¤åå¤æå¤±è´¥ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (DBUtility.ClsPub.isStrNull(dds.Tables[0].Rows[0]["HBack"]) != "0") |
| | | { |
| | | oCn.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å é¤å¤±è´¥ï¼" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HBackRemark"]); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //æ´æ°è½¦é´ç©æåºå |
| | | oCn.RunProc("EXEC h_p_WMS_UPDateICinventory_WorkShop " + mainList[0].HInterID.ToString() + ",'" + mainList[0].HBillType + "'"); |
| | | //æ´æ°è½¦é´æ¡ç åºå |
| New file |
| | |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using Pub_Class; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using System.Web.Http; |
| | | using WebAPI.Models; |
| | | |
| | | namespace WebAPI.Controllers |
| | | { |
| | | //åºä»ç»ç®åController |
| | | public class Pay_WayBillPaymentBillController : ApiController |
| | | { |
| | | //å
¶ä»åºä»å |
| | | //è·åç³»ç»åæ° YF_PayMentOtherBillMain YF_PayMentOtherBill |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | public DAL.ClsPay_WayBillPaymentBill BillOld = new DAL.ClsPay_WayBillPaymentBill(); |
| | | public DAL.ClsPay_WayBillPaymentBill BillNew0 = new DAL.ClsPay_WayBillPaymentBill(); |
| | | |
| | | private json objJsonResult = new json(); |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds; |
| | | |
| | | #region æ¥è¯¢ |
| | | /// <summary> |
| | | /// è¿å项ç®é¶æ®µå表 |
| | | ///åæ°ï¼string sqlã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Pay_WayBillPaymentBillController/Pay_WayBillPaymentBillList")] |
| | | [HttpGet] |
| | | public object Pay_WayBillPaymentBillList(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | | List<object> columnNameList = new List<object>(); |
| | | //æ¥çæé |
| | | if (!DBUtility.ClsPub.Security_Log("YF_PayMentOtherBill_Qty", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ æ¥çæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | ds = oCN.RunProcReturn("select * from h_v_Pay_WayBillPaymentBill order by åæ®å· desc", "h_v_Pay_WayBillPaymentBill"); |
| | | } |
| | | else |
| | | { |
| | | string sql1 = "select * from h_v_Pay_WayBillPaymentBill where 1 = 1 "; |
| | | string sql = sql1 + sWhere + " order by åæ®å· desc"; |
| | | ds = oCN.RunProcReturn(sql, "h_v_Pay_WayBillPaymentBill"); |
| | | } |
| | | |
| | | //æ·»å åå |
| | | foreach (DataColumn col in ds.Tables[0].Columns) |
| | | { |
| | | Type dataType = col.DataType; |
| | | string ColmString = "{\"ColmCols\":\"" + col.ColumnName + "\",\"ColmType\":\"" + dataType.Name + "\"}"; |
| | | columnNameList.Add(JsonConvert.DeserializeObject(ColmString));//è·åå°DataColumnå对象çåå |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | objJsonResult.list = columnNameList; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ä¿å æ°å¢/ç¼è¾ |
| | | [Route("Pay_WayBillPaymentBillController/saveBILL")] |
| | | [HttpPost] |
| | | public object saveBILL([FromBody] JObject msg) |
| | | { |
| | | var _value = msg["msg"].ToString(); |
| | | string msg1 = _value.ToString(); |
| | | string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); |
| | | string msg2 = sArray[0].ToString(); |
| | | string msg3 = sArray[1].ToString(); //å表 |
| | | string refSav = sArray[2].ToString();//æä½æ¹å¼æ°æ®ç±»å 1æ·»å 3ä¿®æ¹ 2 å¤å¶ |
| | | string msg4 = sArray[3].ToString();//ç¨æ·å |
| | | |
| | | DBUtility.ClsPub.CurUserName = msg4; |
| | | |
| | | string UserName = ""; |
| | | string s = ""; |
| | | ListModels oListModels = new ListModels(); |
| | | try |
| | | { |
| | | //ç¼è¾æé |
| | | if (!DBUtility.ClsPub.Security_Log_second("YF_PayMentOtherBill_Edit", 1, false, msg4)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ ä¿åæéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | DAL.ClsPay_WayBillPaymentBill oBill = new DAL.ClsPay_WayBillPaymentBill(); |
| | | List<Model.ClsPay_WayBillPaymentBillMain> lsmain = new List<Model.ClsPay_WayBillPaymentBillMain>(); |
| | | msg2 = msg2.Replace("\\", ""); |
| | | msg2 = msg2.Replace("\n", ""); //\n |
| | | lsmain = oListModels.getObjectByJson_Pay_WayBillPaymentBillMain(msg2); |
| | | foreach (Model.ClsPay_WayBillPaymentBillMain oItem in lsmain) |
| | | { |
| | | if (refSav == "Add") |
| | | { |
| | | //忮巿¯å¦éå¤ |
| | | if (BillNew0.IsExistBillNo(ref ClsPub.sExeReturnInfo, oItem.HBillNo, BillStatus, BillOld.omodel.HInterID)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®å·éå¤ï¼ä¸å
许ä¿åï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (refSav == "Update") |
| | | { |
| | | if (BillOld.ShowBill(oItem.HInterID, ref s) == false) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¤åæ®æè¯¯ï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | //夿æ¯å¦å¯ç¼è¾ |
| | | if (BillOld.omodel.HChecker != "" && BillOld.omodel.HChecker != null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¤åæ®å·²ç»è¢«å®¡æ ¸ï¼ä¸å
许修æ¹ï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | if (BillOld.omodel.HBillStatus > 1) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¤åæ®å¤äºä¸å¯ç¼è¾ç¶æï¼ä¸å
许修æ¹ï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | if (!DBUtility.Xt_BaseBillFun.Fun_AllowEditBill(BillOld, ref s)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = s + "ï¼ä¸å
许修æ¹"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | UserName = oItem.HMaker; //å¶å人 |
| | | oItem.HBillType = "2102"; |
| | | oItem.HBillSubType = "2102"; |
| | | |
| | | oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); |
| | | oItem.HPeriod = DBUtility.ClsPub.isLong(DateTime.Now.Month); |
| | | oItem.HMakeDate = DBUtility.ClsPub.isStrNull(DateTime.Now.ToString("yyyy-MM-dd")); |
| | | |
| | | if (DBUtility.ClsPub.isStrNull(oItem.HDate) == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿åå¤±è´¥ï¼æ²¡æåæ®æ¥æï¼æ æ³ä¿åï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | oBill.omodel = oItem; |
| | | } |
| | | |
| | | // è¡¨ä½æ°æ® |
| | | //æ },{æ¥æåæ°ç» //廿ãåã |
| | | msg3 = msg3.Substring(1, msg3.Length - 2); |
| | | msg3 = msg3.Replace("\\", ""); |
| | | msg3 = msg3.Replace("\n", ""); //\n |
| | | List<Model.ClsPay_WayBillPaymentBillSub> ls = new List<Model.ClsPay_WayBillPaymentBillSub>(); |
| | | ls = oListModels.getObjectByJson_Pay_WayBillPaymentBillSub(msg3); |
| | | int i = 0; |
| | | foreach (Model.ClsPay_WayBillPaymentBillSub oItemSub in ls) |
| | | { |
| | | i++; |
| | | oItemSub.HEntryID = i; |
| | | |
| | | |
| | | oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now); |
| | | oItemSub.HCloseType = false; //å
³éç±»å |
| | | |
| | | oBill.DetailColl.Add(oItemSub); |
| | | |
| | | } |
| | | |
| | | //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | DateTime HDate = DateTime.Now; |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | objJsonResult.Message = s; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //ä¿å |
| | | //ä¿å宿¯åå¤ç |
| | | bool bResult; |
| | | if (refSav == "Add") |
| | | { |
| | | |
| | | bResult = oBill.AddBill(ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | else if (refSav == "Update") |
| | | { |
| | | bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | else |
| | | { |
| | | bResult = false; |
| | | } |
| | | if (bResult) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ä¿åæåï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿å失败ï¼" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä¿å失败ï¼" + e.ToString(); |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ç¼è¾é¡µé¢åå§å |
| | | [Route("Pay_WayBillPaymentBillController/Pay_WayBillPaymentBillEditList")] |
| | | [HttpGet] |
| | | public object Pay_WayBillPaymentBillEditList(long HInterID) |
| | | { |
| | | try |
| | | { |
| | | List<DataTable> tableList = new List<DataTable>(); |
| | | |
| | | ds = oCN.RunProcReturn("select * from h_v_Pay_WayBillPaymentBillEdit where HInterID= " + HInterID, "h_v_Pay_WayBillPaymentBillEdit"); |
| | | tableList.Add(ds.Tables[0]); |
| | | //tableList.Add(ds.Tables[1]); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "falseï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucessï¼"; |
| | | objJsonResult.data = tableList; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region å é¤ |
| | | /// <summary> |
| | | ///åæ°ï¼string HInterIDã |
| | | ///è¿åå¼ï¼objectã |
| | | /// </summary> |
| | | [Route("Pay_WayBillPaymentBillController/DeleteBillMain")] |
| | | [HttpGet] |
| | | public object DeleteBillMain(string HInterID, string user) |
| | | { |
| | | try |
| | | { |
| | | string s = ""; |
| | | |
| | | //æ¥çæé |
| | | if (!DBUtility.ClsPub.Security_Log("YF_PayMentOtherBill_Drop", 1, false, user)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ å 餿éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (HInterID == null || HInterID.Equals("")) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "HInterIDä¸è½ä¸ºç©ºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (BillOld.ShowBill(long.Parse(HInterID), ref s) == false) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¤åæ®æè¯¯ï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | //夿æ¯å¦å¯ç¼è¾ |
| | | if (BillOld.omodel.HChecker != "" && BillOld.omodel.HChecker != null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "æ¤åæ®å·²ç»è¢«å®¡æ ¸ï¼ä¸å
许å é¤ï¼"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //å é¤åæ§å¶========================================= |
| | | string sql1 = "exec h_p_YF_PayMentOtherBill_BeforeDelCtrl " + BillOld.omodel.HInterID + ",'" + BillOld.omodel.HBillNo + "','" + user + "'"; |
| | | ds = oCN.RunProcReturn(sql1, "h_p_YF_PayMentOtherBill_BeforeDelCtrl"); |
| | | if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å é¤å¤±è´¥!åå :å é¤åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å é¤å¤±è´¥!åå :" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //================================================================================== |
| | | |
| | | //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | DateTime HDate = DateTime.Now; |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | objJsonResult.Message = s; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oCN.BeginTran(); |
| | | |
| | | oCN.RunProc("delete from YF_PayMentOtherBillMain where HInterID = " + HInterID); |
| | | oCN.RunProc("delete from YF_PayMentOtherBillSub where HInterID= " + HInterID); |
| | | |
| | | //å é¤åæ§å¶================================================================================== |
| | | string sql2 = "exec h_p_YF_PayMentOtherBill_AfterDelCtrl " + BillOld.omodel.HInterID + ",'" + BillOld.omodel.HBillNo + "','" + user + "'"; |
| | | ds = oCN.RunProcReturn(sql2, "h_p_YF_PayMentOtherBill_AfterDelCtrl"); |
| | | if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | s = "å é¤åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å é¤å¤±è´¥!åå :" + s; |
| | | objJsonResult.data = null; |
| | | oCN.RollBack(); |
| | | return objJsonResult; |
| | | } |
| | | if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") |
| | | { |
| | | s = ds.Tables[0].Rows[0]["HRemark"].ToString(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å é¤å¤±è´¥!åå :" + s; |
| | | objJsonResult.data = null; |
| | | oCN.RollBack(); |
| | | return objJsonResult; |
| | | } |
| | | //============================================================================================== |
| | | |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å 餿å"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCN.RollBack(); |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "Exceptionï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region å®¡æ ¸/åå®¡æ ¸ |
| | | /// <summary> |
| | | /// </summary> |
| | | /// <param name="HInterID">忮ID</param> |
| | | /// <param name="IsAudit">å®¡æ ¸(0),åå®¡æ ¸(1)</param> |
| | | /// <param name="CurUserName">å®¡æ ¸äºº</param> |
| | | /// <returns></returns> |
| | | [Route("Pay_WayBillPaymentBillController/AuditYF_PayMentOtherBillMain")] |
| | | [HttpGet] |
| | | public object AuditYF_PayMentOtherBillMain(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "YF_PayMentOtherBill_Check"; |
| | | DBUtility.ClsPub.CurUserName = CurUserName; |
| | | try |
| | | { |
| | | //å®¡æ ¸æé |
| | | if (!DBUtility.ClsPub.Security_Log_second(ModRightNameCheck, 1, false, CurUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥ï¼æ æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //HInterIDæ°æ®å¤æ |
| | | if (HInterID <= 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "HInterIDå°äº0ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); //对HInterIDè¿è¡ç±»åçè½¬æ¢ |
| | | DAL.ClsYF_PayMentOtherBill oBill = new DAL.ClsYF_PayMentOtherBill(); //å®ä¾ååæ®æä½ç±»ï¼ç¨äºè¿è¡ç¸å
³æä½ |
| | | |
| | | //é对éè¦è¿è¡çæä½ï¼æ£éªå½ååæ®çç¶ææ¯å¦æ¯æéè¦è¿è¡çæä½ |
| | | if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) //æ ¹æ®HInterIDè·åè¯¥åæ®çæ°æ® |
| | | { |
| | | if (oBill.omodel.HCloseMan.Trim() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮已å
³é!ä¸è½åæ¬¡å®¡æ ¸ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (oBill.omodel.HDeleteMan.Trim() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮已ä½åº!ä¸è½åæ¬¡å®¡æ ¸ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (IsAudit == 0) //å®¡æ ¸å¤æ |
| | | { |
| | | if (oBill.omodel.HChecker.Trim() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®å·²å®¡æ ¸!ä¸è½åæ¬¡å®¡æ ¸ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsAudit == 1) //åå®¡æ ¸å¤æ |
| | | { |
| | | if (oBill.omodel.HChecker.Trim() == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªå®¡æ ¸!ä¸éè¦åå®¡æ ¸!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //è¿è¡éè¦è¿è¡çå®¡æ ¸/åå®¡æ ¸æä½ |
| | | if (IsAudit == 0) //å®¡æ ¸æäº¤ |
| | | { |
| | | |
| | | //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ |
| | | string s = ""; |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | DateTime HDate = DateTime.Now; |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | objJsonResult.Message = s; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | oCN.BeginTran(); |
| | | |
| | | //è®°å½è¿åä¿¡æ¯ |
| | | string msg = ""; |
| | | |
| | | |
| | | |
| | | //å®¡æ ¸åæ§å¶========================================= |
| | | string sql1 = "exec h_p_YF_PayMentOtherBill_BeforeCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'"; |
| | | ds = oCN.RunProcReturn(sql1, "h_p_YF_PayMentOtherBill_BeforeCheckCtrl"); |
| | | if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥!åå :å®¡æ ¸åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; |
| | | objJsonResult.data = null; |
| | | oCN.RollBack(); |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥!åå :" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ; |
| | | objJsonResult.data = null; |
| | | oCN.RollBack(); |
| | | return objJsonResult; |
| | | } |
| | | //================================================================================== |
| | | |
| | | |
| | | //å®¡æ ¸æäº¤ |
| | | if (oBill.CheckBill(oBill.omodel.HInterID, oBill.omodel.HBillNo, "h_p_YF_PayMentOtherBill_AfterCheckCtrl", CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | oCN.Commit(); |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å®¡æ ¸æåï¼" + msg; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | oCN.RollBack(); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsAudit == 1) //åå®¡æ ¸æäº¤ |
| | | { |
| | | |
| | | //åå®¡æ ¸åæ§å¶========================================= |
| | | string sql1 = "exec h_p_YF_PayMentOtherBill_BeforeUnCheckCtrl " + oBill.omodel.HInterID + ",'" + oBill.omodel.HBillNo + "','" + CurUserName + "'"; |
| | | ds = oCN.RunProcReturn(sql1, "h_p_YF_PayMentOtherBill_BeforeUnCheckCtrl"); |
| | | if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå®¡æ ¸å¤±è´¥!åå :åå®¡æ ¸åå¤æå¤±è´¥ï¼è¯·ä¸ç½ç»ç®¡ç人åèç³»"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | |
| | | } |
| | | if (ds.Tables[0].Rows[0]["HBack"].ToString() != "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå®¡æ ¸å¤±è´¥!åå :" + ds.Tables[0].Rows[0]["HRemark"].ToString(); ; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //=========================================================== |
| | | |
| | | //è¿è¡ ä¼è®¡æé´ ç»è´¦ çå¤æåæ§å¶ |
| | | string s = ""; |
| | | int sYear = 0; |
| | | int sPeriod = 0; |
| | | DateTime HDate = DateTime.Now; |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(HDate, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | objJsonResult.Message = s; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | //åå®¡æ ¸æäº¤AbandonCheck |
| | | if (oBill.AbandonCheck(oBill.omodel.HInterID, oBill.omodel.HBillNo, "h_p_YF_PayMentOtherBill_AfterUnCheckCtrl", CurUserName, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå®¡æ ¸æå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åå®¡æ ¸å¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | oCN.RollBack(); |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å®¡æ ¸å¤±è´¥æè
åå®¡æ ¸å¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region å
³é/åå
³é |
| | | /// <summary> |
| | | /// </summary> |
| | | /// <param name="HInterID">忮ID</param> |
| | | /// <param name="IsAudit">å
³é(0),åå
³é(1)</param> |
| | | /// <param name="CurUserName">å
³é人</param> |
| | | /// <returns></returns> |
| | | [Route("Pay_WayBillPaymentBillController/CloseYF_PayMentOtherBill")] |
| | | [HttpGet] |
| | | public object CloseYF_PayMentOtherBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "YF_PayMentOtherBill_Close"; |
| | | DBUtility.ClsPub.CurUserName = CurUserName; |
| | | try |
| | | { |
| | | //æ£æ¥æé |
| | | if (!DBUtility.ClsPub.Security_Log_second(ModRightNameCheck, 1, false, CurUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å
³éå¤±è´¥ï¼æ æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //HInterIDæ°æ®å¤æ |
| | | if (HInterID <= 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "HInterIDå°äº0ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); //对HInterIDè¿è¡ç±»åçè½¬æ¢ |
| | | DAL.ClsYF_PayMentOtherBill oBill = new DAL.ClsYF_PayMentOtherBill(); //å®ä¾ååæ®æä½ç±»ï¼ç¨äºè¿è¡ç¸å
³æä½ |
| | | |
| | | //é对éè¦è¿è¡çæä½ï¼æ£éªå½ååæ®çç¶ææ¯å¦æ¯æéè¦è¿è¡çæä½ |
| | | if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) //æ ¹æ®HInterIDè·åè¯¥åæ®çæ°æ® |
| | | { |
| | | if (oBill.omodel.HDeleteMan.Trim() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮已ä½åº!ä¸è½è¿è¡å
³éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (oBill.omodel.HChecker.Trim() == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªå®¡æ ¸!ä¸è½è¿è¡å
³éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (IsAudit == 0) //å
³é夿 |
| | | { |
| | | if (oBill.omodel.HCloseMan.Trim() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮已å
³é!ä¸è½å次å
³éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsAudit == 1) //åå
³é夿 |
| | | { |
| | | if (oBill.omodel.HCloseMan.Trim() == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªå
³é!ä¸éè¦åå
³éï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //è¿è¡éè¦è¿è¡çå
³é/åå
³éæä½ |
| | | if (IsAudit == 0) //å
³éæäº¤ |
| | | { |
| | | //å
³éæäº¤ |
| | | if (oBill.CloseBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "å
³éæå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å
³é失败!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsAudit == 1) //åå
³éæäº¤ |
| | | { |
| | | //åå
³éæäº¤ |
| | | if (oBill.CancelClose(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åå
³éæå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åå
³é失败!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å
³é失败æè
åå
³é失败ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ä½åº/åä½åº |
| | | /// <summary> |
| | | /// </summary> |
| | | /// <param name="HInterID">忮ID</param> |
| | | /// <param name="IsAudit">ä½åº(0),åä½åº(1)</param> |
| | | /// <param name="CurUserName">ä½åºäºº</param> |
| | | /// <returns></returns> |
| | | [Route("YF_PayMentOtherBill/DeleteYF_PayMentOtherBill")] |
| | | [HttpGet] |
| | | public object DeleteYF_PayMentOtherBill(int HInterID, int IsAudit, string CurUserName) |
| | | { |
| | | string ModRightNameCheck = "YF_PayMentOtherBill_Delete"; |
| | | DBUtility.ClsPub.CurUserName = CurUserName; |
| | | try |
| | | { |
| | | //æ£æ¥æé |
| | | if (!DBUtility.ClsPub.Security_Log_second(ModRightNameCheck, 1, false, CurUserName)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä½åºå¤±è´¥ï¼æ æéï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | //HInterIDæ°æ®å¤æ |
| | | if (HInterID <= 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "HInterIDå°äº0ï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | Int64 lngBillKey = 0; |
| | | lngBillKey = DBUtility.ClsPub.isLong(HInterID); //对HInterIDè¿è¡ç±»åçè½¬æ¢ |
| | | DAL.ClsYF_PayMentOtherBill oBill = new DAL.ClsYF_PayMentOtherBill(); //å®ä¾ååæ®æä½ç±»ï¼ç¨äºè¿è¡ç¸å
³æä½ |
| | | |
| | | //é对éè¦è¿è¡çæä½ï¼æ£éªå½ååæ®çç¶ææ¯å¦æ¯æéè¦è¿è¡çæä½ |
| | | if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo)) //æ ¹æ®HInterIDè·åè¯¥åæ®çæ°æ® |
| | | { |
| | | if (oBill.omodel.HChecker.Trim() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®å·²å®¡æ ¸!ä¸è½è¿è¡ä½åºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | if (IsAudit == 0) //ä½åºå¤æ |
| | | { |
| | | if (oBill.omodel.HDeleteMan.Trim() != "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "忮已ä½åº!ä¸è½åä½åºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsAudit == 1) //åä½åºå¤æ |
| | | { |
| | | if (oBill.omodel.HDeleteMan.Trim() == "") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®æªä½åº!ä¸éè¦åä½åºï¼"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åæ®ä¸åå¨!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | |
| | | //è¿è¡éè¦è¿è¡çä½åº/åä½åºæä½ |
| | | if (IsAudit == 0) //ä½åºæäº¤ |
| | | { |
| | | //ä½åºæäº¤ |
| | | if (oBill.Cancelltion(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "ä½åºæå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä½åºå¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | if (IsAudit == 1) //åå
³éæäº¤ |
| | | { |
| | | //åå
³éæäº¤ |
| | | if (oBill.AbandonCancelltion(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "åä½åºæå"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "åä½åºå¤±è´¥!åå :" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "ä½åºå¤±è´¥æè
åä½åºå¤±è´¥ï¼" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8" ?> |
| | | <configuration> |
| | | <configSections> |
| | | <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, |
| | | log4net-net-1.0"/> |
| | | </configSections> |
| | | |
| | | |
| | | <log4net> |
| | | <root> |
| | | <level value="ALL"/> |
| | | <appender-ref ref="RollingFileAppender-error"/> |
| | | <appender-ref ref="RollingFileAppender-debug"/> |
| | | <appender-ref ref="RollingFileAppender-info"/> |
| | | </root> |
| | | |
| | | |
| | | <appender name="RollingFileAppender-error" type="log4net.Appender.RollingFileAppender"> |
| | | <file value="gt_error_" /> |
| | | <lockingModel type="log4net.Appender.FileAppender+MinimalLock"/> |
| | | <datePattern value="yyyyMMdd".log"" /> |
| | | <rollingStyle value="Date" /> |
| | | <appendToFile value="true" /> |
| | | <staticLogFileName value="false" /> |
| | | <layout type="log4net.Layout.PatternLayout"> |
| | | <param name="ConversionPattern" value="%d [%t] %-5p %c - Line:%L %m%n"/> |
| | | </layout> |
| | | <filter type="log4net.Filter.LevelRangeFilter"> |
| | | <param name="LevelMin" value="ERROR"/> |
| | | <param name="LevelMax" value="ERROR"/> |
| | | </filter> |
| | | </appender> |
| | | |
| | | <appender name="RollingFileAppender-debug" type="log4net.Appender.RollingFileAppender"> |
| | | <file value="gt_debug_" /> |
| | | <lockingModel type="log4net.Appender.FileAppender+MinimalLock"/> |
| | | <datePattern value="yyyyMMdd".log"" /> |
| | | <rollingStyle value="Date" /> |
| | | <appendToFile value="true" /> |
| | | <staticLogFileName value="false" /> |
| | | <layout type="log4net.Layout.PatternLayout"> |
| | | <param name="ConversionPattern" value="%d [%t] %-5p %c - Line:%L %m%n"/> |
| | | </layout> |
| | | <filter type="log4net.Filter.LevelRangeFilter"> |
| | | <param name="LevelMin" value="DEBUG"/> |
| | | <param name="LevelMax" value="DEBUG"/> |
| | | </filter> |
| | | </appender> |
| | | |
| | | <appender name="RollingFileAppender-info" type="log4net.Appender.RollingFileAppender"> |
| | | <file value="gt_info_" /> |
| | | <lockingModel type="log4net.Appender.FileAppender+MinimalLock"/> |
| | | <datePattern value="yyyyMMdd".log"" /> |
| | | <rollingStyle value="Date" /> |
| | | <appendToFile value="true" /> |
| | | <staticLogFileName value="false" /> |
| | | <layout type="log4net.Layout.PatternLayout"> |
| | | <param name="ConversionPattern" value="%d [%t] %-5p %c - Line:%L %m%n"/> |
| | | </layout> |
| | | <filter type="log4net.Filter.LevelRangeFilter"> |
| | | <param name="LevelMin" value="INFO"/> |
| | | <param name="LevelMax" value="INFO"/> |
| | | </filter> |
| | | </appender> |
| | | |
| | | |
| | | </log4net> |
| | | <startup> |
| | | |
| | | <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> |
| | | </startup> |
| | | </configuration> |
| | |
| | | protected void Application_Start() |
| | | { |
| | | // webSocket æå¡ |
| | | WebSocketServer.Start(); |
| | | // WebSocketServer.Start(); |
| | | GlobalConfiguration.Configure(WebApiConfig.Register); |
| | | } |
| | | |
| | | // åºç¨å
³éæ¶ï¼åæ¢æå¡ï¼é²æ¢æ³é² |
| | | protected void Application_End() |
| | | { |
| | | WebSocketServer.Stop(); |
| | | // WebSocketServer.Stop(); |
| | | } |
| | | } |
| | | } |
| | |
| | | List<Model.ClsYF_PayMentOtherBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsYF_PayMentOtherBillSub>>(jsonString); |
| | | return list; |
| | | } |
| | | /// <summary> |
| | | /// å¤çæ°å¢ç»ç®åºä»å表çjson |
| | | /// </summary> |
| | | /// <param name="jsonString"></param> |
| | | /// <returns></returns> |
| | | public List<Model.ClsPay_WayBillPaymentBillMain> getObjectByJson_Pay_WayBillPaymentBillMain(string jsonString) |
| | | { |
| | | jsonString = "[" + jsonString.ToString() + "]"; |
| | | List<Model.ClsPay_WayBillPaymentBillMain> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsPay_WayBillPaymentBillMain>>(jsonString); |
| | | return list; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤çæ°å¢ç»ç®å表çjson |
| | | /// </summary> |
| | | /// <param name="jsonString"></param> |
| | | /// <returns></returns> |
| | | public List<Model.ClsPay_WayBillPaymentBillSub> getObjectByJson_Pay_WayBillPaymentBillSub(string jsonString) |
| | | { |
| | | jsonString = "[" + jsonString.ToString() + "]"; |
| | | List<Model.ClsPay_WayBillPaymentBillSub> list = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Model.ClsPay_WayBillPaymentBillSub>>(jsonString); |
| | | return list; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤çæ°å¢æ¨¡å
·ä¿å
»è®°å½è¡¨ä¸»è¡¨çjson |
| | |
| | | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <_PublishTargetUrl>D:\ç½ç«åå¸\æºäºMESWMS\API</_PublishTargetUrl> |
| | | <History>True|2026-01-15T05:04:43.0602637Z;</History> |
| | | <History>True|2026-01-19T07:58:34.1439056Z;True|2026-01-19T15:56:47.6488483+08:00;True|2026-01-19T15:12:36.9286562+08:00;True|2026-01-19T14:55:17.2807312+08:00;True|2026-01-19T14:47:03.8892836+08:00;True|2026-01-19T14:36:15.0507410+08:00;True|2026-01-19T14:26:05.5060287+08:00;True|2026-01-19T13:50:54.8654304+08:00;True|2026-01-19T13:37:47.2294303+08:00;True|2026-01-19T13:20:13.3781676+08:00;True|2026-01-19T13:07:18.8111360+08:00;True|2026-01-19T13:01:15.1432453+08:00;True|2026-01-19T11:54:26.6582081+08:00;True|2026-01-19T11:23:28.6100843+08:00;True|2026-01-19T08:41:23.8724527+08:00;True|2026-01-19T08:34:06.3247836+08:00;True|2026-01-19T07:48:11.5052413+08:00;False|2026-01-19T07:47:21.4586297+08:00;True|2026-01-18T14:27:24.9640228+08:00;True|2026-01-18T13:21:44.9690334+08:00;False|2026-01-18T13:20:08.6314025+08:00;False|2026-01-16T16:53:24.3290896+08:00;True|2026-01-16T09:03:14.4122067+08:00;True|2026-01-16T08:44:23.0342932+08:00;False|2026-01-16T08:43:34.3488415+08:00;True|2026-01-15T16:27:10.8480719+08:00;False|2026-01-15T16:26:06.6002625+08:00;True|2026-01-15T13:04:43.0602637+08:00;</History> |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <File Include="apiapp.json"> |
| | |
| | | <publishTime>02/22/2013 16:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/BLL.dll"> |
| | | <publishTime>01/15/2026 13:04:09</publishTime> |
| | | <publishTime>01/19/2026 15:56:17</publishTime> |
| | | </File> |
| | | <File Include="bin/BLL.pdb"> |
| | | <publishTime>01/15/2026 13:04:09</publishTime> |
| | | <publishTime>01/19/2026 15:56:17</publishTime> |
| | | </File> |
| | | <File Include="bin/BouncyCastle.Crypto.dll"> |
| | | <publishTime>12/18/2020 05:32:28</publishTime> |
| | | </File> |
| | | <File Include="bin/DAL.dll"> |
| | | <publishTime>01/15/2026 13:04:05</publishTime> |
| | | <publishTime>01/19/2026 15:56:14</publishTime> |
| | | </File> |
| | | <File Include="bin/DAL.pdb"> |
| | | <publishTime>01/15/2026 13:04:05</publishTime> |
| | | <publishTime>01/19/2026 15:56:14</publishTime> |
| | | </File> |
| | | <File Include="bin/Dapper.dll"> |
| | | <publishTime>07/22/2016 22:52:40</publishTime> |
| | | </File> |
| | | <File Include="bin/DBUtility.dll"> |
| | | <publishTime>01/15/2026 13:03:56</publishTime> |
| | | <publishTime>01/19/2026 15:56:07</publishTime> |
| | | </File> |
| | | <File Include="bin/DBUtility.pdb"> |
| | | <publishTime>01/15/2026 13:03:56</publishTime> |
| | | <publishTime>01/19/2026 15:56:07</publishTime> |
| | | </File> |
| | | <File Include="bin/Fleck.dll"> |
| | | <publishTime>04/22/2021 11:48:12</publishTime> |
| | | </File> |
| | | <File Include="bin/GetuiServerApiSDK.dll"> |
| | | <publishTime>12/13/2018 15:35:36</publishTime> |
| | | </File> |
| | | <File Include="bin/GetuiServerApiSDK.dll.config"> |
| | | <publishTime>12/12/2018 17:49:02</publishTime> |
| | | </File> |
| | | <File Include="bin/Google.ProtocolBuffers.dll"> |
| | | <publishTime>12/12/2018 17:31:14</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.Api.dll"> |
| | | <publishTime>03/22/2022 13:17:26</publishTime> |
| | |
| | | <publishTime>07/25/2012 19:48:56</publishTime> |
| | | </File> |
| | | <File Include="bin/Model.dll"> |
| | | <publishTime>01/15/2026 13:03:58</publishTime> |
| | | <publishTime>01/19/2026 15:56:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Model.pdb"> |
| | | <publishTime>01/15/2026 13:03:58</publishTime> |
| | | <publishTime>01/19/2026 15:56:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs"> |
| | | <publishTime>04/21/2025 11:46:16</publishTime> |
| | |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Class.dll"> |
| | | <publishTime>01/15/2026 13:03:54</publishTime> |
| | | <publishTime>01/19/2026 15:56:02</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Class.pdb"> |
| | | <publishTime>01/15/2026 13:03:54</publishTime> |
| | | <publishTime>01/19/2026 15:56:02</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Control.dll"> |
| | | <publishTime>01/15/2026 13:03:55</publishTime> |
| | | <publishTime>01/19/2026 15:56:03</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Control.pdb"> |
| | | <publishTime>01/15/2026 13:03:55</publishTime> |
| | | <publishTime>01/19/2026 15:56:03</publishTime> |
| | | </File> |
| | | <File Include="bin/RestSharp.dll"> |
| | | <publishTime>08/31/2012 06:22:50</publishTime> |
| | | </File> |
| | | <File Include="bin/SQLHelper.dll"> |
| | | <publishTime>01/15/2026 13:03:55</publishTime> |
| | | <publishTime>01/19/2026 15:56:05</publishTime> |
| | | </File> |
| | | <File Include="bin/SQLHelper.pdb"> |
| | | <publishTime>01/15/2026 13:03:55</publishTime> |
| | | <publishTime>01/19/2026 15:56:05</publishTime> |
| | | </File> |
| | | <File Include="bin/Swashbuckle.Core.dll"> |
| | | <publishTime>02/16/2015 01:57:08</publishTime> |
| | | </File> |
| | | <File Include="bin/SyntacticSugar.dll"> |
| | | <publishTime>01/15/2026 13:03:53</publishTime> |
| | | <publishTime>01/19/2026 15:54:15</publishTime> |
| | | </File> |
| | | <File Include="bin/SyntacticSugar.pdb"> |
| | | <publishTime>01/15/2026 13:03:53</publishTime> |
| | | <publishTime>01/19/2026 15:54:15</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Buffers.dll"> |
| | | <publishTime>07/19/2017 18:01:28</publishTime> |
| | |
| | | <publishTime>05/09/2023 10:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/TopSdk.dll"> |
| | | <publishTime>01/15/2026 12:45:29</publishTime> |
| | | <publishTime>01/19/2026 15:54:21</publishTime> |
| | | </File> |
| | | <File Include="bin/TopSdk.pdb"> |
| | | <publishTime>01/15/2026 12:45:29</publishTime> |
| | | <publishTime>01/19/2026 15:54:21</publishTime> |
| | | </File> |
| | | <File Include="bin/WebActivatorEx.dll"> |
| | | <publishTime>11/24/2014 19:18:48</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.dll"> |
| | | <publishTime>01/15/2026 13:04:20</publishTime> |
| | | <publishTime>01/19/2026 15:58:21</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.pdb"> |
| | | <publishTime>01/15/2026 13:04:20</publishTime> |
| | | <publishTime>01/19/2026 15:58:21</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.XmlSerializers.dll"> |
| | | <publishTime>01/15/2026 13:04:38</publishTime> |
| | | <publishTime>01/19/2026 15:58:30</publishTime> |
| | | </File> |
| | | <File Include="bin/WebGrease.dll"> |
| | | <publishTime>07/18/2013 01:03:52</publishTime> |
| | |
| | | <publishTime>04/21/2025 11:46:17</publishTime> |
| | | </File> |
| | | <File Include="Web.config"> |
| | | <publishTime>01/15/2026 13:04:40</publishTime> |
| | | <publishTime>01/15/2026 16:27:10</publishTime> |
| | | </File> |
| | | </ItemGroup> |
| | | </Project> |
copy from WebAPI/Properties/PublishProfiles/FolderProfilewtt.pubxml
copy to WebAPI/Properties/PublishProfiles/FolderProfile5.pubxml
| File was copied from WebAPI/Properties/PublishProfiles/FolderProfilewtt.pubxml |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <DeleteExistingFiles>True</DeleteExistingFiles> |
| | | <DeleteExistingFiles>False</DeleteExistingFiles> |
| | | <ExcludeApp_Data>False</ExcludeApp_Data> |
| | | <LaunchSiteAfterPublish>True</LaunchSiteAfterPublish> |
| | | <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration> |
| | | <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> |
| | | <LastUsedPlatform>Any CPU</LastUsedPlatform> |
| | | <PublishProvider>FileSystem</PublishProvider> |
| | | <PublishUrl>D:\ç½ç«åå¸\API</PublishUrl> |
| | | <PublishUrl>D:\gz\ç½ç«åå¸\MES-WEB-API</PublishUrl> |
| | | <WebPublishMethod>FileSystem</WebPublishMethod> |
| | | </PropertyGroup> |
| | | </Project> |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <History>True|2026-01-19T06:30:45.1345486Z;True|2026-01-19T14:23:55.0551276+08:00;False|2026-01-19T14:23:34.2543994+08:00;True|2026-01-16T13:38:27.5140015+08:00;True|2026-01-16T13:35:48.0527945+08:00;False|2026-01-16T13:35:21.3115852+08:00;</History> |
| | | <_PublishTargetUrl>D:\gz\ç½ç«åå¸\MES-WEB-API</_PublishTargetUrl> |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <File Include="apiapp.json"> |
| | | <publishTime>11/12/2025 10:43:48</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.EndpointUtil.dll"> |
| | | <publishTime>04/07/2020 16:33:48</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.GatewayDingTalk.dll"> |
| | | <publishTime>04/25/2023 17:49:04</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.GatewaySpi.dll"> |
| | | <publishTime>07/31/2024 20:50:30</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.OpenApiClient.dll"> |
| | | <publishTime>08/06/2024 18:07:52</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.OpenApiUtil.dll"> |
| | | <publishTime>11/22/2022 11:24:18</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.SDK.Dingtalk.dll"> |
| | | <publishTime>08/08/2024 19:43:22</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.TeaUtil.dll"> |
| | | <publishTime>07/15/2024 20:25:56</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.TeaXML.dll"> |
| | | <publishTime>08/03/2022 21:46:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Aliyun.Credentials.dll"> |
| | | <publishTime>07/24/2024 10:36:58</publishTime> |
| | | </File> |
| | | <File Include="bin/Antlr3.Runtime.dll"> |
| | | <publishTime>02/22/2013 16:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/Antlr3.Runtime.pdb"> |
| | | <publishTime>02/22/2013 16:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/BLL.dll"> |
| | | <publishTime>01/19/2026 14:30:34</publishTime> |
| | | </File> |
| | | <File Include="bin/BLL.pdb"> |
| | | <publishTime>01/19/2026 14:30:34</publishTime> |
| | | </File> |
| | | <File Include="bin/BouncyCastle.Crypto.dll"> |
| | | <publishTime>12/18/2020 05:32:28</publishTime> |
| | | </File> |
| | | <File Include="bin/DAL.dll"> |
| | | <publishTime>01/19/2026 14:30:33</publishTime> |
| | | </File> |
| | | <File Include="bin/DAL.pdb"> |
| | | <publishTime>01/19/2026 14:30:33</publishTime> |
| | | </File> |
| | | <File Include="bin/Dapper.dll"> |
| | | <publishTime>07/22/2016 22:52:40</publishTime> |
| | | </File> |
| | | <File Include="bin/DBUtility.dll"> |
| | | <publishTime>01/19/2026 14:30:29</publishTime> |
| | | </File> |
| | | <File Include="bin/DBUtility.pdb"> |
| | | <publishTime>01/19/2026 14:30:29</publishTime> |
| | | </File> |
| | | <File Include="bin/Fleck.dll"> |
| | | <publishTime>04/22/2021 11:48:12</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.Api.dll"> |
| | | <publishTime>03/22/2022 13:17:26</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.Api.pdb"> |
| | | <publishTime>03/19/2022 07:39:42</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.dll"> |
| | | <publishTime>03/22/2022 13:17:20</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.pdb"> |
| | | <publishTime>03/19/2022 07:39:48</publishTime> |
| | | </File> |
| | | <File Include="bin/grpc_csharp_ext.x64.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="bin/grpc_csharp_ext.x86.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="bin/ICSharpCode.SharpZipLib.dll"> |
| | | <publishTime>05/09/2021 01:08:30</publishTime> |
| | | </File> |
| | | <File Include="bin/ICSharpCode.SharpZipLib.pdb"> |
| | | <publishTime>05/09/2021 01:08:30</publishTime> |
| | | </File> |
| | | <File Include="bin/Kingdee.BOS.WebApi.Client.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="bin/libgrpc_csharp_ext.x64.dylib"> |
| | | <publishTime>03/19/2022 07:38:44</publishTime> |
| | | </File> |
| | | <File Include="bin/libgrpc_csharp_ext.x64.so"> |
| | | <publishTime>03/19/2022 07:38:42</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.Azure.AppService.ApiApps.Service.dll"> |
| | | <publishTime>03/19/2015 01:02:50</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.CSharp.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.Web.Infrastructure.dll"> |
| | | <publishTime>07/25/2012 19:48:56</publishTime> |
| | | </File> |
| | | <File Include="bin/Model.dll"> |
| | | <publishTime>01/19/2026 14:30:30</publishTime> |
| | | </File> |
| | | <File Include="bin/Model.pdb"> |
| | | <publishTime>01/19/2026 14:30:30</publishTime> |
| | | </File> |
| | | <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="bin/Newtonsoft.Json.dll"> |
| | | <publishTime>03/08/2023 15:09:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.dll"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OOXML.dll"> |
| | | <publishTime>10/23/2021 09:07:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OOXML.pdb"> |
| | | <publishTime>10/23/2021 17:07:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXml4Net.dll"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXml4Net.pdb"> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXmlFormats.dll"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXmlFormats.pdb"> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.pdb"> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Class.dll"> |
| | | <publishTime>01/19/2026 14:30:28</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Class.pdb"> |
| | | <publishTime>01/19/2026 14:30:28</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Control.dll"> |
| | | <publishTime>01/19/2026 14:30:28</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Control.pdb"> |
| | | <publishTime>01/19/2026 14:30:28</publishTime> |
| | | </File> |
| | | <File Include="bin/RestSharp.dll"> |
| | | <publishTime>08/31/2012 06:22:50</publishTime> |
| | | </File> |
| | | <File Include="bin/SQLHelper.dll"> |
| | | <publishTime>01/19/2026 14:30:29</publishTime> |
| | | </File> |
| | | <File Include="bin/SQLHelper.pdb"> |
| | | <publishTime>01/19/2026 14:30:29</publishTime> |
| | | </File> |
| | | <File Include="bin/Swashbuckle.Core.dll"> |
| | | <publishTime>02/16/2015 01:57:08</publishTime> |
| | | </File> |
| | | <File Include="bin/SyntacticSugar.dll"> |
| | | <publishTime>01/19/2026 14:28:15</publishTime> |
| | | </File> |
| | | <File Include="bin/SyntacticSugar.pdb"> |
| | | <publishTime>01/19/2026 14:28:15</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Buffers.dll"> |
| | | <publishTime>07/19/2017 18:01:28</publishTime> |
| | | </File> |
| | | <File Include="bin/System.ComponentModel.DataAnnotations.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Configuration.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Data.DataSetExtensions.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Data.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Drawing.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.EnterpriseServices.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.IdentityModel.Tokens.Jwt.dll"> |
| | | <publishTime>08/19/2014 18:03:34</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Memory.dll"> |
| | | <publishTime>04/18/2019 00:24:34</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.Extensions.dll"> |
| | | <publishTime>02/20/2015 04:10:46</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.Formatting.dll"> |
| | | <publishTime>11/28/2018 21:00:36</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.Primitives.dll"> |
| | | <publishTime>02/20/2015 04:10:46</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Runtime.CompilerServices.Unsafe.dll"> |
| | | <publishTime>09/19/2018 03:38:10</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Runtime.Serialization.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.ApplicationServices.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Cors.dll"> |
| | | <publishTime>11/28/2018 20:58:44</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.DynamicData.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Entity.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Extensions.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Helpers.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.Cors.dll"> |
| | | <publishTime>11/28/2018 21:01:26</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.dll"> |
| | | <publishTime>11/28/2018 21:01:00</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.WebHost.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Mvc.dll"> |
| | | <publishTime>01/28/2015 12:02:18</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Optimization.dll"> |
| | | <publishTime>02/11/2014 23:26:04</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Razor.dll"> |
| | | <publishTime>01/28/2015 12:02:32</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Services.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.Deployment.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.Razor.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Xml.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Xml.Linq.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Tea.dll"> |
| | | <publishTime>05/09/2023 10:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/TopSdk.dll"> |
| | | <publishTime>01/16/2026 13:33:13</publishTime> |
| | | </File> |
| | | <File Include="bin/TopSdk.pdb"> |
| | | <publishTime>01/16/2026 13:33:13</publishTime> |
| | | </File> |
| | | <File Include="bin/WebActivatorEx.dll"> |
| | | <publishTime>11/24/2014 19:18:48</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.dll"> |
| | | <publishTime>01/19/2026 14:30:39</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.pdb"> |
| | | <publishTime>01/19/2026 14:30:39</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.XmlSerializers.dll"> |
| | | <publishTime>01/19/2026 14:30:42</publishTime> |
| | | </File> |
| | | <File Include="bin/WebGrease.dll"> |
| | | <publishTime>07/18/2013 01:03:52</publishTime> |
| | | </File> |
| | | <File Include="bin/zh-Hans/System.Net.Http.Formatting.resources.dll"> |
| | | <publishTime>11/29/2018 21:26:02</publishTime> |
| | | </File> |
| | | <File Include="bin/zh-Hans/System.Web.Http.resources.dll"> |
| | | <publishTime>11/29/2018 21:26:30</publishTime> |
| | | </File> |
| | | <File Include="Config/kdapi.config"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Content/bootstrap.css"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Content/bootstrap.min.css"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Content/Site.css"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/BLL.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/DAL.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/DBUtility.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/Interop.grsvr6Lib.dll"> |
| | | <publishTime>12/17/2025 13:18:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/Kingdee.BOS.WebApi.Client.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/Model.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/Newtonsoft.Json.Net35.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/Pub_Class.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/Pub_Control.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="DLL/SQLHelper.dll"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.eot"> |
| | | <publishTime>11/12/2025 10:43:48</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.svg"> |
| | | <publishTime>11/12/2025 10:43:48</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.ttf"> |
| | | <publishTime>11/12/2025 10:43:48</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.woff"> |
| | | <publishTime>11/12/2025 10:43:48</publishTime> |
| | | </File> |
| | | <File Include="Global.asax"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="grpc_csharp_ext.x64.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="grpc_csharp_ext.x86.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="Index.html"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="libgrpc_csharp_ext.x64.dylib"> |
| | | <publishTime>03/19/2022 07:38:44</publishTime> |
| | | </File> |
| | | <File Include="libgrpc_csharp_ext.x64.so"> |
| | | <publishTime>03/19/2022 07:38:42</publishTime> |
| | | </File> |
| | | <File Include="libman.json"> |
| | | <publishTime>11/12/2025 10:43:48</publishTime> |
| | | </File> |
| | | <File Include="Metadata/deploymentTemplates/apiappconfig.azureresource.json"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="packages.config"> |
| | | <publishTime>01/16/2026 13:33:13</publishTime> |
| | | </File> |
| | | <File Include="Properties/PublishProfiles/JFAPI.pubxml.user"> |
| | | <publishTime>12/09/2025 08:11:33</publishTime> |
| | | </File> |
| | | <File Include="Template/barCodeTemplateStorage.json"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Utility/Barcode.ashx"> |
| | | <publishTime>12/17/2025 13:18:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/bootstrap.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/bootstrap.min.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.min.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.min.map"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.min.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.unobtrusive.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.unobtrusive.min.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/modernizr-2.6.2.js"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Shared/Error.cshtml"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/Shared/_Layout.cshtml"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/web.config"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Views/_ViewStart.cshtml"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Customer_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Department_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Employee_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_StockPlace_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Supplier_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Warehouse_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BadReason_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model_View.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Customer_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Department_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Employee_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Group_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Item30JiTai_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Source_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_StockPlace_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Supplier_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Warehouse_Model.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsKf_ICStockBill_Mould.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsKf_ICStockBill_WMS.datasource"> |
| | | <publishTime>11/12/2025 10:43:47</publishTime> |
| | | </File> |
| | | <File Include="Web.config"> |
| | | <publishTime>01/16/2026 13:35:47</publishTime> |
| | | </File> |
| | | </ItemGroup> |
| | | </Project> |
| File was renamed from WebAPI/Properties/PublishProfiles/FolderProfilewtt.pubxml |
| | |
| | | <<<<<<< HEAD:WebAPI/Properties/PublishProfiles/WTTFolder.pubxml |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | ======= |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | >>>>>>> 6367b170a3db4df6e43a8962b2f17b06a020b913:WebAPI/Properties/PublishProfiles/FolderProfilewtt.pubxml |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <_PublishTargetUrl>D:\ç½ç«åå¸\API</_PublishTargetUrl> |
| | | <History>True|2026-01-19T05:53:48.2079321Z;False|2026-01-19T13:53:24.9464993+08:00;True|2026-01-16T15:23:46.2649561+08:00;True|2026-01-16T09:00:43.1528772+08:00;</History> |
| | | </PropertyGroup> |
| | | <ItemGroup> |
| | | <File Include="apiapp.json"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.EndpointUtil.dll"> |
| | | <publishTime>04/07/2020 16:33:48</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.GatewayDingTalk.dll"> |
| | | <publishTime>04/25/2023 17:49:04</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.GatewaySpi.dll"> |
| | | <publishTime>07/31/2024 20:50:30</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.OpenApiClient.dll"> |
| | | <publishTime>08/06/2024 18:07:52</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.OpenApiUtil.dll"> |
| | | <publishTime>11/22/2022 11:24:18</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.SDK.Dingtalk.dll"> |
| | | <publishTime>08/08/2024 19:43:22</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.TeaUtil.dll"> |
| | | <publishTime>07/15/2024 20:25:56</publishTime> |
| | | </File> |
| | | <File Include="bin/AlibabaCloud.TeaXML.dll"> |
| | | <publishTime>08/03/2022 21:46:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Aliyun.Credentials.dll"> |
| | | <publishTime>07/24/2024 10:36:58</publishTime> |
| | | </File> |
| | | <File Include="bin/Antlr3.Runtime.dll"> |
| | | <publishTime>02/22/2013 16:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/Antlr3.Runtime.pdb"> |
| | | <publishTime>02/22/2013 16:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/BLL.dll"> |
| | | <publishTime>01/16/2026 09:00:35</publishTime> |
| | | </File> |
| | | <File Include="bin/BLL.pdb"> |
| | | <publishTime>01/16/2026 09:00:35</publishTime> |
| | | </File> |
| | | <File Include="bin/BouncyCastle.Crypto.dll"> |
| | | <publishTime>12/18/2020 05:32:28</publishTime> |
| | | </File> |
| | | <File Include="bin/DAL.dll"> |
| | | <publishTime>01/16/2026 09:00:32</publishTime> |
| | | </File> |
| | | <File Include="bin/DAL.pdb"> |
| | | <publishTime>01/16/2026 09:00:32</publishTime> |
| | | </File> |
| | | <File Include="bin/Dapper.dll"> |
| | | <publishTime>07/22/2016 22:52:40</publishTime> |
| | | </File> |
| | | <File Include="bin/DBUtility.dll"> |
| | | <publishTime>01/16/2026 09:00:28</publishTime> |
| | | </File> |
| | | <File Include="bin/DBUtility.pdb"> |
| | | <publishTime>01/16/2026 09:00:28</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.Api.dll"> |
| | | <publishTime>03/22/2022 13:17:26</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.Api.pdb"> |
| | | <publishTime>03/19/2022 07:39:42</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.dll"> |
| | | <publishTime>03/22/2022 13:17:20</publishTime> |
| | | </File> |
| | | <File Include="bin/Grpc.Core.pdb"> |
| | | <publishTime>03/19/2022 07:39:48</publishTime> |
| | | </File> |
| | | <File Include="bin/grpc_csharp_ext.x64.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="bin/grpc_csharp_ext.x86.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="bin/ICSharpCode.SharpZipLib.dll"> |
| | | <publishTime>05/09/2021 01:08:30</publishTime> |
| | | </File> |
| | | <File Include="bin/ICSharpCode.SharpZipLib.pdb"> |
| | | <publishTime>05/09/2021 01:08:30</publishTime> |
| | | </File> |
| | | <File Include="bin/Kingdee.BOS.WebApi.Client.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="bin/libgrpc_csharp_ext.x64.dylib"> |
| | | <publishTime>03/19/2022 07:38:44</publishTime> |
| | | </File> |
| | | <File Include="bin/libgrpc_csharp_ext.x64.so"> |
| | | <publishTime>03/19/2022 07:38:42</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.Azure.AppService.ApiApps.Service.dll"> |
| | | <publishTime>03/19/2015 01:02:50</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.CSharp.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Microsoft.Web.Infrastructure.dll"> |
| | | <publishTime>07/25/2012 19:48:56</publishTime> |
| | | </File> |
| | | <File Include="bin/Model.dll"> |
| | | <publishTime>01/16/2026 09:00:30</publishTime> |
| | | </File> |
| | | <File Include="bin/Model.pdb"> |
| | | <publishTime>01/16/2026 09:00:30</publishTime> |
| | | </File> |
| | | <File Include="bin/Models/ClsSc_MouldScrapOutBillMain.cs"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="bin/Newtonsoft.Json.dll"> |
| | | <publishTime>03/08/2023 15:09:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.dll"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OOXML.dll"> |
| | | <publishTime>10/23/2021 09:07:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OOXML.pdb"> |
| | | <publishTime>10/23/2021 17:07:56</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXml4Net.dll"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXml4Net.pdb"> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXmlFormats.dll"> |
| | | <publishTime>10/23/2021 09:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.OpenXmlFormats.pdb"> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/NPOI.pdb"> |
| | | <publishTime>10/23/2021 17:07:54</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Class.dll"> |
| | | <publishTime>01/16/2026 09:00:26</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Class.pdb"> |
| | | <publishTime>01/16/2026 09:00:26</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Control.dll"> |
| | | <publishTime>01/16/2026 09:00:27</publishTime> |
| | | </File> |
| | | <File Include="bin/Pub_Control.pdb"> |
| | | <publishTime>01/16/2026 09:00:27</publishTime> |
| | | </File> |
| | | <File Include="bin/RestSharp.dll"> |
| | | <publishTime>08/31/2012 06:22:50</publishTime> |
| | | </File> |
| | | <File Include="bin/SQLHelper.dll"> |
| | | <publishTime>01/16/2026 09:00:27</publishTime> |
| | | </File> |
| | | <File Include="bin/SQLHelper.pdb"> |
| | | <publishTime>01/16/2026 09:00:27</publishTime> |
| | | </File> |
| | | <File Include="bin/Swashbuckle.Core.dll"> |
| | | <publishTime>02/16/2015 01:57:08</publishTime> |
| | | </File> |
| | | <File Include="bin/SyntacticSugar.dll"> |
| | | <publishTime>01/14/2026 14:23:43</publishTime> |
| | | </File> |
| | | <File Include="bin/SyntacticSugar.pdb"> |
| | | <publishTime>01/14/2026 14:23:43</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Buffers.dll"> |
| | | <publishTime>07/19/2017 18:01:28</publishTime> |
| | | </File> |
| | | <File Include="bin/System.ComponentModel.DataAnnotations.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Configuration.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Data.DataSetExtensions.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Data.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Drawing.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.EnterpriseServices.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.IdentityModel.Tokens.Jwt.dll"> |
| | | <publishTime>08/19/2014 18:03:34</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Memory.dll"> |
| | | <publishTime>04/18/2019 00:24:34</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.Extensions.dll"> |
| | | <publishTime>02/20/2015 04:10:46</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.Formatting.dll"> |
| | | <publishTime>11/28/2018 21:00:36</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Net.Http.Primitives.dll"> |
| | | <publishTime>02/20/2015 04:10:46</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Runtime.CompilerServices.Unsafe.dll"> |
| | | <publishTime>09/19/2018 03:38:10</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Runtime.Serialization.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.ApplicationServices.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Cors.dll"> |
| | | <publishTime>11/28/2018 20:58:44</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.DynamicData.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Entity.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Extensions.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Helpers.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.Cors.dll"> |
| | | <publishTime>11/28/2018 21:01:26</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.dll"> |
| | | <publishTime>11/28/2018 21:01:00</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Http.WebHost.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Mvc.dll"> |
| | | <publishTime>01/28/2015 12:02:18</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Optimization.dll"> |
| | | <publishTime>02/11/2014 23:26:04</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Razor.dll"> |
| | | <publishTime>01/28/2015 12:02:32</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.Services.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.Deployment.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Web.WebPages.Razor.dll"> |
| | | <publishTime>01/28/2015 12:04:30</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Xml.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/System.Xml.Linq.dll"> |
| | | <publishTime>09/26/2012 03:16:08</publishTime> |
| | | </File> |
| | | <File Include="bin/Tea.dll"> |
| | | <publishTime>05/09/2023 10:43:40</publishTime> |
| | | </File> |
| | | <File Include="bin/TopSdk.dll"> |
| | | <publishTime>01/13/2026 14:00:51</publishTime> |
| | | </File> |
| | | <File Include="bin/TopSdk.pdb"> |
| | | <publishTime>01/13/2026 14:00:51</publishTime> |
| | | </File> |
| | | <File Include="bin/WebActivatorEx.dll"> |
| | | <publishTime>11/24/2014 19:18:48</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.dll"> |
| | | <publishTime>01/19/2026 13:53:41</publishTime> |
| | | </File> |
| | | <File Include="bin/WebAPI.pdb"> |
| | | <publishTime>01/19/2026 13:53:41</publishTime> |
| | | </File> |
| | | <File Include="bin/WebGrease.dll"> |
| | | <publishTime>07/18/2013 01:03:52</publishTime> |
| | | </File> |
| | | <File Include="bin/zh-Hans/System.Net.Http.Formatting.resources.dll"> |
| | | <publishTime>11/29/2018 21:26:02</publishTime> |
| | | </File> |
| | | <File Include="bin/zh-Hans/System.Web.Http.resources.dll"> |
| | | <publishTime>11/29/2018 21:26:30</publishTime> |
| | | </File> |
| | | <File Include="Config/kdapi.config"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Content/bootstrap.css"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Content/bootstrap.min.css"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Content/Site.css"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/BLL.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/DAL.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/DBUtility.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/Interop.grsvr6Lib.dll"> |
| | | <publishTime>12/15/2025 08:04:16</publishTime> |
| | | </File> |
| | | <File Include="DLL/Kingdee.BOS.WebApi.Client.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/Model.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/Newtonsoft.Json.Net35.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/Pub_Class.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/Pub_Control.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="DLL/SQLHelper.dll"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.eot"> |
| | | <publishTime>08/18/2025 16:11:19</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.svg"> |
| | | <publishTime>08/18/2025 16:11:19</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.ttf"> |
| | | <publishTime>08/18/2025 16:11:19</publishTime> |
| | | </File> |
| | | <File Include="fonts/glyphicons-halflings-regular.woff"> |
| | | <publishTime>08/18/2025 16:11:19</publishTime> |
| | | </File> |
| | | <File Include="Global.asax"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="grpc_csharp_ext.x64.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="grpc_csharp_ext.x86.dll"> |
| | | <publishTime>03/22/2022 13:17:22</publishTime> |
| | | </File> |
| | | <File Include="Index.html"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="libgrpc_csharp_ext.x64.dylib"> |
| | | <publishTime>03/19/2022 07:38:44</publishTime> |
| | | </File> |
| | | <File Include="libgrpc_csharp_ext.x64.so"> |
| | | <publishTime>03/19/2022 07:38:42</publishTime> |
| | | </File> |
| | | <File Include="libman.json"> |
| | | <publishTime>08/18/2025 16:11:19</publishTime> |
| | | </File> |
| | | <File Include="Metadata/deploymentTemplates/apiappconfig.azureresource.json"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="packages.config"> |
| | | <publishTime>12/29/2025 09:21:08</publishTime> |
| | | </File> |
| | | <File Include="Properties/PublishProfiles/JFAPI.pubxml.user"> |
| | | <publishTime>12/08/2025 10:29:30</publishTime> |
| | | </File> |
| | | <File Include="Template/barCodeTemplateStorage.json"> |
| | | <publishTime>09/12/2025 10:51:38</publishTime> |
| | | </File> |
| | | <File Include="Utility/Barcode.ashx"> |
| | | <publishTime>12/15/2025 08:04:16</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/bootstrap.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/bootstrap.min.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.min.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery-1.10.2.min.map"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.min.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.unobtrusive.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/jquery.validate.unobtrusive.min.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Scripts/modernizr-2.6.2.js"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Shared/Error.cshtml"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/Shared/_Layout.cshtml"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/web.config"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Views/_ViewStart.cshtml"> |
| | | <publishTime>08/18/2025 16:11:18</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Customer_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Department_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:29</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Employee_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_StockPlace_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:29</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Supplier_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsCLD_Warehouse_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:29</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BadReason_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_BarCodeBill_WMS_Model_View.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Customer_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Department_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Employee_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Group_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Item30JiTai_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Source_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_StockPlace_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Supplier_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsGy_Warehouse_Model.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsKf_ICStockBill_Mould.datasource"> |
| | | <publishTime>10/27/2025 08:51:30</publishTime> |
| | | </File> |
| | | <File Include="Web References/WebS/ClsKf_ICStockBill_WMS.datasource"> |
| | | <publishTime>10/27/2025 08:51:29</publishTime> |
| | | </File> |
| | | <File Include="Web.config"> |
| | | <publishTime>01/16/2026 09:00:41</publishTime> |
| | | </File> |
| | | </ItemGroup> |
| | | </Project> |
| New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using com.igetui.api.openservice; |
| | | using System.Threading.Tasks; |
| | | using System.Data; |
| | | using Newtonsoft.Json.Linq; |
| | | using Newtonsoft.Json; |
| | | using com.igetui.api.openservice.igetui.template; |
| | | using com.igetui.api.openservice.igetui; |
| | | |
| | | namespace WebAPI.Service |
| | | { |
| | | public static class GeTuiService |
| | | { |
| | | //httpçåå |
| | | // private static String HOST = "http://sdk.open.api.igexin.com/apiex.htm"; |
| | | |
| | | //httpsçåå |
| | | private static String HOST = "https://api.getui.com/apiex.htm"; |
| | | |
| | | // é
置为DCLOUD ä¸ç unipush ä¸ªæ¨ ä¸å¯¹åºçæ°æ® |
| | | private static String APPID = "X3I10VqaROAH8C7ElIc1L5"; |
| | | private static String APPKEY = "V425beWn5K65BcOYKTcXx8"; |
| | | private static String MASTERSECRET = "LOXAgRbXS98NxHKUXmlJQ"; |
| | | |
| | | // æ¨éæå¡å®ä¾ |
| | | private static IGtPush push = new IGtPush(HOST, APPKEY, MASTERSECRET); |
| | | |
| | | // åæ¡æ¶æ¯æ¨é |
| | | public static void PubishSingle(int HInterID) |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds = new DataSet(); |
| | | |
| | | try |
| | | { |
| | | JObject NameMsgKVP = new JObject(); |
| | | ds = oCN.RunProcReturn($@" |
| | | select * from h_v_OA_WorkLinkBillAllList where hmainid = {HInterID} |
| | | select * from Gy_UserClientIdRelation |
| | | ", "h_v_OA_WorkLinkBillAllList"); |
| | | NotificationTemplate template = null; |
| | | if(ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | string title = ds.Tables[0].Rows[0]["主é¢"].ToString(); |
| | | string content = ds.Tables[0].Rows[0]["å
容"].ToString(); |
| | | template = GetNotificationTemplate(title, content, "/pages/ZLGL/OA_WorkLink/OA_WorkLinkBillList", "0"); |
| | | |
| | | // 广æ |
| | | if(ds.Tables[0].Rows[0]["åéç±»å"].ToString() == "å
Œ
±") |
| | | { |
| | | // éå å
¨æ¨é |
| | | foreach(DataRow row in ds.Tables[1].Rows) |
| | | { |
| | | PushMessageToSingle(template, row["HClientID"].ToString()); |
| | | } |
| | | }else // åç¬æ¨é |
| | | { |
| | | // æ¨éç»æ¥æ¶äºº å æé人 |
| | | foreach (DataRow row in ds.Tables[1].Rows) |
| | | { |
| | | if(ds.Tables[0].Rows[0]["æ¥æ¶äºº"].ToString() == row["HUserName"].ToString() |
| | | || ds.Tables[0].Rows[0]["æéæ¥æ¶äºº"].ToString() == row["HUserName"].ToString()) |
| | | PushMessageToSingle(template, row["HClientID"].ToString()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogService.Write(ex.ToString()); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | // 忍 使ç¨éç¥æ¶æ¯æ¨¡å |
| | | private static void PushMessageToSingle(NotificationTemplate template, string ClientID) |
| | | { |
| | | |
| | | IGtPush push = new IGtPush(HOST, APPKEY, MASTERSECRET); |
| | | |
| | | // åæ¨æ¶æ¯æ¨¡å |
| | | SingleMessage message = new SingleMessage(); |
| | | message.IsOffline = true; // ç¨æ·å½åä¸å¨çº¿æ¶ï¼æ¯å¦ç¦»çº¿åå¨,å¯é |
| | | message.OfflineExpireTime = 1000 * 3600 * 12; // ç¦»çº¿æææ¶é´ï¼åä½ä¸ºæ¯«ç§ï¼å¯é |
| | | message.Data = template; |
| | | //夿æ¯å¦å®¢æ·ç«¯æ¯å¦wifiç¯å¢ä¸æ¨éï¼2为4G/3G/2Gï¼1为å¨WIFIç¯å¢ä¸ï¼0为ä¸éå¶ç¯å¢ |
| | | //message.PushNetWorkType = 1; |
| | | |
| | | com.igetui.api.openservice.igetui.Target target = new com.igetui.api.openservice.igetui.Target(); |
| | | target.appId = APPID; |
| | | target.clientId = ClientID; |
| | | //target.alias = ALIAS; |
| | | try |
| | | { |
| | | String pushResult = push.pushMessageToSingle(message, target); |
| | | |
| | | LogService.Write("-----------------------------------------------"); |
| | | LogService.Write("-----------------------------------------------"); |
| | | LogService.Write("----------------æå¡ç«¯è¿åç»æï¼" + pushResult); |
| | | } |
| | | catch (RequestException e) |
| | | { |
| | | String requestId = e.RequestId; |
| | | //åé失败åçéå |
| | | String pushResult = push.pushMessageToSingle(message, target, requestId); |
| | | LogService.Write("-----------------------------------------------"); |
| | | LogService.Write("-----------------------------------------------"); |
| | | LogService.Write("----------------æå¡ç«¯è¿åç»æï¼" + pushResult); |
| | | } |
| | | } |
| | | |
| | | //éä¼ æ¨¡æ¿å¨ä½å
容 |
| | | public static TransmissionTemplate TransmissionTemplateDemo() |
| | | { |
| | | TransmissionTemplate template = new TransmissionTemplate(); |
| | | template.AppId = APPID; |
| | | template.AppKey = APPKEY; |
| | | //åºç¨å¯å¨ç±»åï¼1ï¼å¼ºå¶åºç¨å¯å¨ 2ï¼çå¾
åºç¨å¯å¨ |
| | | template.TransmissionType = 1; |
| | | //éä¼ å
容 |
| | | template.TransmissionContent = "éä¼ å
容"; |
| | | //设置éç¥å®æ¶å±ç¤ºæ¶é´ï¼ç»ææ¶é´ä¸å¼å§æ¶é´ç¸å·®é大äº6åéï¼æ¶æ¯æ¨éåï¼å®¢æ·ç«¯å°å¨æå®æ¶é´å·®å
å±ç¤ºæ¶æ¯ï¼è¯¯å·®6åéï¼ |
| | | // String begin = "2015-03-06 14:36:10"; |
| | | // String end = "2015-03-06 14:46:20"; |
| | | // template.setDuration(begin, end); |
| | | |
| | | return template; |
| | | } |
| | | |
| | | //éç¥éä¼ æ¨¡æ¿å¨ä½å
容 |
| | | public static NotificationTemplate GetNotificationTemplate(string title, string content, string pagePath, string HItemID) |
| | | { |
| | | NotificationTemplate template = new NotificationTemplate(); |
| | | template.AppId = APPID; |
| | | template.AppKey = APPKEY; |
| | | //éç¥æ æ é¢ |
| | | template.Title = title; |
| | | //éç¥æ å
容 |
| | | template.Text = content; |
| | | //éç¥æ æ¾ç¤ºæ¬å°å¾ç |
| | | template.Logo = "@/static/logo.png"; |
| | | //éç¥æ æ¾ç¤ºç½ç»å¾æ |
| | | template.LogoURL = ""; |
| | | //åºç¨å¯å¨ç±»åï¼1ï¼å¼ºå¶åºç¨å¯å¨ 2ï¼çå¾
åºç¨å¯å¨ |
| | | template.TransmissionType = 1; |
| | | //éä¼ å
容 |
| | | template.TransmissionContent = ""; |
| | | //æ¥æ¶å°æ¶æ¯æ¯å¦åéï¼trueï¼åé falseï¼ä¸åé |
| | | template.IsRing = true; |
| | | //æ¥æ¶å°æ¶æ¯æ¯å¦éå¨ï¼trueï¼éå¨ falseï¼ä¸éå¨ |
| | | template.IsVibrate = true; |
| | | //æ¥æ¶å°æ¶æ¯æ¯å¦å¯æ¸
é¤ï¼trueï¼å¯æ¸
é¤ falseï¼ä¸å¯æ¸
é¤ |
| | | template.IsClearable = true; |
| | | var customData = new Dictionary<string, string> |
| | | { |
| | | {"pagePath", pagePath}, // 示ä¾ï¼"/pages/detail/detail" |
| | | {"itemId", HItemID} // 示ä¾ï¼"123456" |
| | | }; |
| | | template.TransmissionContent = JsonConvert.SerializeObject(customData); // åºåå为 JSON å符串 |
| | | template.TransmissionType = 1; // 1=ç¹å»éç¥å触å客æ·ç«¯åè°ï¼éä¼ å
容ç»å®¢æ·ç«¯ï¼ |
| | | //设置éç¥å®æ¶å±ç¤ºæ¶é´ï¼ç»ææ¶é´ä¸å¼å§æ¶é´ç¸å·®é大äº6åéï¼æ¶æ¯æ¨éåï¼å®¢æ·ç«¯å°å¨æå®æ¶é´å·®å
å±ç¤ºæ¶æ¯ï¼è¯¯å·®6åéï¼ |
| | | // String begin = "2015-03-06 14:36:10"; |
| | | // String end = "2015-03-06 14:46:20"; |
| | | // template.setDuration(begin, end); |
| | | |
| | | return template; |
| | | } |
| | | } |
| | | } |
| File was renamed from WebAPI/WebSocketServer.cs |
| | |
| | | JArray dataTableJArray = JArray.Parse(JsonConvert.SerializeObject(ds.Tables[0])); |
| | | foreach (JToken row in dataTableJArray) |
| | | { |
| | | // æåè·åå¹¶å¤çè¡æ°æ®ï¼é¿å
éå¤è®¿é® row["åå"]ï¼ä¸å¤ç nullï¼ |
| | | string receiver = row["æ¥æ¶äºº"]?.ToString() ?? string.Empty; // 为 null æ¶è¿å空å符串 |
| | | string ccUsers = row["æææé人"]?.ToString() ?? string.Empty; |
| | | string sendType = row["åéç±»å"]?.ToString() ?? string.Empty; |
| | | |
| | | // è·³è¿æ ææ°æ®è¡ï¼ä¸åå为空æ¶ï¼æ éå¤çï¼ |
| | | // è·³è¿æ ææ°æ®è¡ |
| | | if (string.IsNullOrEmpty(receiver) && string.IsNullOrEmpty(ccUsers) && string.IsNullOrEmpty(sendType)) |
| | | continue; |
| | | |
| | |
| | | { |
| | | // å°è£
websocket ä¿¡æ¯ |
| | | dictOne.Key.Send(new JObject{ |
| | | ["Type"]="Message", |
| | | ["Type"]="MessageNoRead", |
| | | ["Content"]= NameMsgKVP[dictOne.Value.ToString()].ToString() |
| | | }.ToString()); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | // åæ¡æ°æ®æ¨éå
¬å¼è¯å¥ |
| | | public static void PushOne(int HInterID) |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | | DataSet ds = new DataSet(); |
| | | try |
| | | { |
| | | JObject NameMsgKVP = new JObject(); |
| | | ds = oCN.RunProcReturn($"select * from h_v_OA_WorkLinkBillAllList where hmainid = {HInterID}", "h_v_OA_WorkLinkBillAllList"); |
| | | // å¤æå¹¿æè¿æ¯ç§å ï¼ç»è®¡æ°æ® |
| | | JArray dataTableJArray = JArray.Parse(JsonConvert.SerializeObject(ds.Tables[0])); |
| | | foreach (JToken row in dataTableJArray) |
| | | { |
| | | string receiver = row["æ¥æ¶äºº"]?.ToString() ?? string.Empty; // 为 null æ¶è¿å空å符串 |
| | | string ccUsers = row["æéæ¥æ¶äºº"]?.ToString() ?? string.Empty; |
| | | string sendType = row["åéç±»å"]?.ToString() ?? string.Empty; |
| | | |
| | | // è·³è¿æ ææ°æ®è¡ |
| | | if (string.IsNullOrEmpty(receiver) && string.IsNullOrEmpty(ccUsers) && string.IsNullOrEmpty(sendType)) |
| | | continue; |
| | | |
| | | foreach (var dictOne in _NameConnectionDict) |
| | | { |
| | | string UName = dictOne.Value.Split('_')[1]; |
| | | // å°æ¥æ¶äºº æé人 è·å 广æçæ¶æ¯æ·»å å°æ¶æ¯ç¼å |
| | | if (string.Equals(row["æ¥æ¶äºº"].ToString(), UName) |
| | | || row["æéæ¥æ¶äºº"].ToString().Contains(UName) |
| | | || string.Equals(row["åéç±»å"].ToString(), "å
Œ
±")) |
| | | { |
| | | string dictOneVal = dictOne.Value.ToString(); |
| | | if (NameMsgKVP[dictOneVal] == null) |
| | | { |
| | | NameMsgKVP[dictOneVal] = new JArray(); |
| | | } |
| | | |
| | | var jArray = NameMsgKVP[dictOneVal] as JArray; |
| | | |
| | | jArray.Add(row); |
| | | } |
| | | } |
| | | } |
| | | // æ ¹æ®ç¨æ·IDååå°ä¸åç客æ·ç«¯ |
| | | foreach (var dictOne in _NameConnectionDict) |
| | | { |
| | | if (NameMsgKVP[dictOne.Value.ToString()] != null) |
| | | { |
| | | // å°è£
websocket ä¿¡æ¯ |
| | | dictOne.Key.Send(new JObject |
| | | { |
| | | ["Type"] = "Message", |
| | | ["Content"] = NameMsgKVP[dictOne.Value.ToString()].ToString() |
| | | }.ToString()); |
| | | } |
| | | } |
| | | LogService.Write("æ¶æ¯æ¨é宿..."); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogService.Write(ex.ToString()); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <Reference Include="Fleck, Version=1.2.0.0, Culture=neutral, processorArchitecture=MSIL"> |
| | | <HintPath>..\packages\Fleck.1.2.0\lib\net45\Fleck.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="GetuiServerApiSDK"> |
| | | <HintPath>DLL\GetuiServerApiSDK.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="Google.ProtocolBuffers"> |
| | | <HintPath>DLL\Google.ProtocolBuffers.dll</HintPath> |
| | | </Reference> |
| | | <Reference Include="Grpc.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d754f35622e28bad, processorArchitecture=MSIL"> |
| | | <HintPath>..\packages\Grpc.Core.2.45.0\lib\net45\Grpc.Core.dll</HintPath> |
| | | </Reference> |
| | |
| | | <Compile Include="Controllers\åºç¡èµæ\åºç¡èµæ\Gy_ShelfLifeNearExpiryController.cs" /> |
| | | <Compile Include="Controllers\æ£éªç³è¯·å\QC_RequestCheckBillController.cs" /> |
| | | <Compile Include="Controllers\ç©æµç®¡ç\åºè¿å\WLYayBillController.cs" /> |
| | | <Compile Include="Controllers\ç©æµç®¡ç\è¿åè´¹ç¨ç»ç®å\Pay_WayBillPaymentBillController.cs" /> |
| | | <Compile Include="Controllers\项ç®ç®¡ç\å·¥ç¨é¡¹ç®\PM_ProjectBill_WorkController.cs" /> |
| | | <Compile Include="DLL\ClsGy_ItemMoney_Ctl.cs" /> |
| | | <Compile Include="DLL\ClsSc_MESStopRestoreWorkBill.cs" /> |
| | |
| | | <DesignTimeSharedInput>True</DesignTimeSharedInput> |
| | | <DependentUpon>Settings.settings</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Service\GeTuiService.cs" /> |
| | | <Compile Include="Service\LuBaoSevice.cs" /> |
| | | <Compile Include="Service\ProcessDal.cs" /> |
| | | <Compile Include="Service\YqnDal.cs" /> |
| | |
| | | <DependentUpon>Reference.map</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="WebServer.cs" /> |
| | | <Compile Include="WebSocketServer.cs" /> |
| | | <Compile Include="Service\WebSocketServer.cs" /> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <Content Include="packages.config"> |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig> |
| | | <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig> |
| | | <UseIISExpress>true</UseIISExpress> |
| | | <Use64BitIISExpress /> |
| | | <IISExpressSSLPort /> |
| | |
| | | <IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication> |
| | | <IISExpressUseClassicPipelineMode>false</IISExpressUseClassicPipelineMode> |
| | | <UseGlobalApplicationHostFile /> |
| | | <NameOfLastUsedPublishProfile>D:\å·¥ä½ä»£ç \æºäºè¿æ\MES\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile2.pubxml</NameOfLastUsedPublishProfile> |
| | | <ProjectView>ShowAllFiles</ProjectView> |
| | | <NameOfLastUsedPublishProfile>D:\gz\MES-WEB-API\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile1.pubxml</NameOfLastUsedPublishProfile> |
| | | <NameOfLastUsedPublishProfile>D:\WorkBench\MES-WEB-API\WebAPI\Properties\PublishProfiles\FolderProfile4.pubxml</NameOfLastUsedPublishProfile> |
| | | </PropertyGroup> |
| | | <ProjectExtensions> |
| | | <VisualStudio> |
| | |
| | | DAL.ClsKF_PonderationBillMain_Temp_View dal = new DAL.ClsKF_PonderationBillMain_Temp_View(); |
| | | return dal.GetKf_ICStockBillQueryList(BillType, HBillNo, HSourceBillNo); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | D:\ç½ç«åå¸\å端代ç \MES-WEB-API\MES-WEB-API\sdk_dingding\TopSdk\obj\Release\TopSdk.pdb |
| | | D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\bin\Release\TopSdk.dll |
| | | D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\bin\Release\TopSdk.pdb |
| | | D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Release\TopSdk.csproj.AssemblyReference.cache |
| | | D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Release\TopSdk.csproj.CoreCompileInputs.cache |
| | | D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Release\TopSdk.dll |
| | | D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Release\TopSdk.pdb |
| | | D:\WorkBench\MES-WEB-API\sdk_dingding\TopSdk\obj\Release\TopSdk.csproj.AssemblyReference.cache |