DAL/仓库管理/ClsKf_MoveStockBill.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DAL/仓库管理/ClsKf_SellOutBillForLayUI.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
DAL/销售管理/ClsXs_ReceivableBill.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/PlateBindingController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/Sc_MouldRepairInBillListController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/WebAPIController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/XSGL/Xs_ReceivableBillController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/Controllers/仓存管理/验收入库/Kf_StepFoldinBillController.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
WebAPI/WebAPI.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
DAL/²Ö¿â¹ÜÀí/ClsKf_MoveStockBill.cs
@@ -87,6 +87,10 @@ " where HInterID=" + lngBillKey.ToString()); //å é¤å ³è DeleteRelation(ref sReturn, lngBillKey); //ç´æ¥è°æ¨å ä¿®æ¹ æ¤é åå¡« è°æ¨ç³è¯·å å ³èæ°é oCn.RunProc("exec h_p_Kf_UpDateRelation_MoveStockRequestToPOStockIn_Del " + omodel.HInterID.ToString()); //å é¤å表 DeleteBillSub(lngBillKey); //æå ¥å表 DAL/²Ö¿â¹ÜÀí/ClsKf_SellOutBillForLayUI.cs
@@ -51,6 +51,10 @@ { oCn.RunProc("exec h_p_Xs_UpDateRelation_SeOrderToSellOut_Delete " + lngBillKey.ToString()); } else if (DetailColl[0].HSourceBillType == "1402") //åè´§éç¥å { oCn.RunProc("exec h_p_Xs_UpDateRelation_SeOutStockToPOStockIn_Add " + lngBillKey.ToString()); } else { @@ -80,6 +84,10 @@ { oCn.RunProc("exec h_p_Xs_UpDateRelation_SeOrderToSellOut_Add " + lngBillKey.ToString()); } else if(DetailColl[0].HSourceBillType == "1402") //åè´§éç¥å { oCn.RunProc("exec h_p_Xs_UpDateRelation_SeOutStockToPOStockIn_Add " + lngBillKey.ToString()); } else { DAL/ÏúÊÛ¹ÜÀí/ClsXs_ReceivableBill.cs
@@ -32,6 +32,61 @@ #endregion #endregion #region å ³èæ°é //å é¤å ³è //public override void DeleteRelation(ref string sReturn, Int64 lngBillKey) //{ // //éå®è®¢å éå®åºåºå å ³èæ°é // try // { // if (DetailColl[0].HSourceBillType == "1401") //éå®è®¢å // { // oCn.RunProc("exec h_p_Xs_UpDateRelation_SeOrderToPOStockIn_Del " + lngBillKey.ToString()); // } // else if (DetailColl[0].HSourceBillType == "1205") //éå®åºåºå // { // oCn.RunProc("exec h_p_Xs_UpDateRelation_ICStockoPOStockIn_Del " + lngBillKey.ToString()); // } // else // { // } // } // catch (Exception e) // { // throw (e); // } //} ////æ°å¢å ³è //public override void AddNewRelation(ref string sReturn, Int64 lngBillKey) //{ // //éå®è®¢å éå®åºåºå å ³èæ°é // try // { // if (DetailColl[0].HSourceBillType == "1401") //éå®è®¢å // { // oCn.RunProc("exec h_p_Xs_UpDateRelation_SeOrderToPOStockIn_Add " + lngBillKey.ToString()); // } // else if (DetailColl[0].HSourceBillType == "1205") //éå®åºåºå // { // oCn.RunProc("exec h_p_Xs_UpDateRelation_ICStockToPOStockIn_Add " + lngBillKey.ToString()); // } // else // { // } // } // catch (Exception e) // { // throw (e); // } //} #endregion #region ä¿®æ¹åæ® public override bool ModifyBill(Int64 lngBillKey, ref string sReturn) { @@ -113,6 +168,9 @@ ")"; oCn.RunProc(subSql); } ////æ´æ°è®¢åå ³èæ°é //AddNewRelation(ref sReturn, omodel.HInterID); sReturn = "ä¿®æ¹åæ®æåï¼"; oCn.Commit(); @@ -229,6 +287,10 @@ ")"; oCn.RunProc(subSql); } ////æ´æ°è®¢åå ³èæ°é //AddNewRelation(ref sReturn, omodel.HInterID); sReturn = "æ°å¢åæ®æåï¼"; oCn.Commit(); return true; WebAPI/Controllers/PlateBindingController.cs
New file @@ -0,0 +1,123 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Pub_Class; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Text; using System.Web.Http; using WebAPI.Models; namespace WebAPI.Controllers { public class PlateBindingController : ApiController { private json objJsonResult = new json(); public DataSet ds = new DataSet(); SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); /// <summary> /// ä¿åå¹³æ¿ç»å® /// </summary> /// <param name="msg"></param> /// <returns></returns> [Route("Save/Xt_PlateBinding")] [HttpPost] public object Save([FromBody] JObject msg) { try { DataSet ds; var _value = msg["msg"].ToString(); string msg3 = _value.ToString(); string[] sArray = msg3.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); string msg1 = sArray[0].ToString(); string user = sArray[1].ToString(); string filePath = "Configuration"; bool isAppend = true; filePath = $@"{filePath}\PlateBinding.txt"; filePath = "D:\\" + filePath; if (!System.IO.Directory.Exists(Path.GetDirectoryName(filePath))) { System.IO.Directory.CreateDirectory(Path.GetDirectoryName(filePath)); } //夿æ¯å¦å·²ç»åå¨å¹³æ¿ç»å®æä»¶ï¼è¥å·²åå¨åå é¤ï¼éæ°å建 bool fileExists = System.IO.File.Exists(filePath); //åå¨ åå é¤è¯¥æä»¶ if (fileExists) { File.Delete(filePath); } //å建æä»¶ using (StreamWriter writer = new StreamWriter(filePath, isAppend)) { //åå¨çæ¶åæåä¸è¡ if (fileExists && isAppend) { writer.WriteLine(); } var content = msg1 is string ? msg1 : JsonConvert.SerializeObject(msg1); writer.WriteLine($"{DateTime.Now}"); writer.WriteLine(""); msg1 = msg1.Replace("{","").Replace("}","").Replace("\"",""); string[] arr = msg1.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arr.Length; i++) { writer.WriteLine(arr[i]); } } objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "å¹³æ¿ç»å®ä¿¡æ¯åå ¥æåï¼"; objJsonResult.data = ""; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "åå ¥å¹³æ¿ç»å®ä¿¡æ¯è¿ç¨ä¸åçå¼å¸¸ï¼"; objJsonResult.data = ""; return objJsonResult; } } #region è·åå¹³æ¿ç»å®æä»¶æ°æ® [Route("Get/Xt_PlateBinding")] [HttpGet] public object Get(string user) { try { //æ ¹æ®æå®è·¯å¾ï¼è¯»åæä»¶å 容ï¼è¿åæ°æ®ä¸ºæ°ç»æ ¼å¼ string[] ConfigFileInfo = File.ReadAllLines(@"D:\Configuration\PlateBinding.txt"); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "Sucessï¼"; objJsonResult.data = ConfigFileInfo; return objJsonResult; } catch (Exception e) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "Exceptionï¼" + e.ToString(); objJsonResult.data = null; return objJsonResult; } } #endregion } } WebAPI/Controllers/Sc_MouldRepairInBillListController.cs
@@ -1632,7 +1632,7 @@ oCN.BeginTran(); //åå¸å¼è°å ¥åæ°å¢åå¡«åå¸å¼è°åºåå ³èæ°é //ç´æ¥è°æ¨å å é¤ æ¤é åå¡« è°æ¨ç³è¯·å å ³èæ°é oCN.RunProc("exec h_p_Kf_UpDateRelation_MoveStockRequestToPOStockIn_Del " + HInterID); oCN.RunProc("Delete From Kf_ICStockBillMain where HInterID = " + HInterID); @@ -1801,6 +1801,10 @@ //éå®åºåºå é¤åå¡«éå®è®¢åå ³èæ°é //oCN.RunProc("exec h_p_Xs_UpDateRelation_SeOrderToSellOut_Delete " + HInterID); //éå®åºåºå é¤åå¡«æ¶è´§éç¥åå ³èæ°é //oCN.RunProc("exec h_p_Xs_UpDateRelation_SeOutStockToPOStockIn_Del " + HInterID); //oCN.RunProc("Delete From Kf_ICStockBillMain where HInterID = " + HInterID); //oCN.RunProc("Delete From Kf_ICStockBillSub where HInterID = " + HInterID); WebAPI/Controllers/WebAPIController.cs
@@ -11636,14 +11636,26 @@ /// <returns></returns> [Route("Web/GetHSourceBillType")] [HttpGet] public object GetHSourceBillType(string HName) public object GetHSourceBillType(string HName,int Num) { try { ClsCN oCn = new ClsCN(); DataSet oDs = new DataSet(); //========== oDs = oCn.RunProcReturn("select * from Xt_BillSourceSet where HName='"+HName+"'", "Xt_BillSourceSet"); //æçååæºåå为红èå 0代表èå 1代表红å if (Num==0) { //æºå为èå oDs = oCn.RunProcReturn("select * from Xt_BillSourceSet where HName='" + HName + "' HRedBlueFlag ='"+ Num+"' ", "Xt_BillSourceSet"); } else if (Num==1) { //æºå为红å oDs = oCn.RunProcReturn("select * from Xt_BillSourceSet where HName='" + HName + "' HRedBlueFlag ='" + Num + "' ", "Xt_BillSourceSet"); } else if(Num==2) { //ä¸å红èå oDs = oCn.RunProcReturn("select * from Xt_BillSourceSet where HName='" + HName + "'", "Xt_BillSourceSet"); } objjson.code = "1"; objjson.count = 1; objjson.Message = "è·åæåï¼"; WebAPI/Controllers/XSGL/Kf_SellOutBillController.cs
@@ -1078,6 +1078,43 @@ } #endregion #region éå®åºåºå æ ¹æ®ä¸»å ç ä¸åå ç è·ååè´§éç¥åæ°æ® [Route("Kf_SellOutBill/loadXs_SeOutStockBill_Push")] [HttpGet] public object loadXs_SeOrderBill_Push(long HInterID, long HSubID) { try { ds = oCN.RunProcReturn("select * from h_v_IF_SeOutStockBillList where hmainid =" + HInterID + " and hsubid = " + HSubID, "h_v_IF_SeOutStockBillList"); if (ds == null || ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; objJsonResult.count = 0; objJsonResult.Message = "æªæ¥è¯¢å°æºåä¿¡æ¯ï¼"; objJsonResult.data = null; return objJsonResult; } else { 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; } } #endregion #region éå®åºåºå æ£æ¥åæ®æ¯å¦åå¨ /// <summary> /// </summary> WebAPI/Controllers/XSGL/Xs_ReceivableBillController.cs
@@ -363,6 +363,24 @@ oCN.BeginTran(); //ds = oCN.RunProcReturn("select * from h_v_Xs_ReceivableBillList_Query where hmainid=" + HInterID, "h_v_Xs_ReceivableBillList_Query"); //foreach (DataRow row in ds.Tables[0].Rows) //{ // // è·åå½åè¡ç HSourceBillType å¼ // string hSourceBillType = row["HSourceBillType"].ToString(); // if (hSourceBillType == "1401") // { // //åºæ¶å å é¤åå¡« éå®è®¢å å ³èæ°é // oCN.RunProc("exec h_p_Xs_UpDateRelation_SeOrderToPOStockIn_Del " + HInterID); // } // else if (hSourceBillType == "1205") // { // //åºæ¶å å é¤åå¡« éå®åºåºå å ³èæ°é // oCN.RunProc("exec h_p_Xs_UpDateRelation_ICStockoPOStockIn_Del " + HInterID); // } //} oCN.RunProc("delete from Xs_ReceivableBillMain where HInterID = " + HInterID); oCN.RunProc("delete from Xs_ReceivableBillSub where HInterID= " + HInterID); WebAPI/Controllers/²Ö´æ¹ÜÀí/ÑéÊÕÈë¿â/Kf_StepFoldinBillController.cs
@@ -268,6 +268,10 @@ + ",HKeeperID=" + HKeeperID + ",HDeptID=" + HDeptID + " where HInterID=" + HInterID; oCN.RunProc(sql); //åå¸å¼è°å ¥å ç¼è¾ æ¤é åå¡«åå¸å¼è°åºåå ³èæ°é oCN.RunProc("exec h_p_Kf_UpDateRelation_ICStockToPOStockIn_Del " + HInterID); //å é¤å表 oCN.RunProc("delete from Kf_ICStockBillSub where HInterID='" + HInterID + "'"); } WebAPI/WebAPI.csproj
@@ -417,6 +417,7 @@ <Compile Include="Controllers\MJGL\Sc_MouldStatusChangeBillController.cs" /> <Compile Include="Controllers\MJGL\Sc_MouldUpperBillController.cs" /> <Compile Include="Controllers\Pay_ReportController.cs" /> <Compile Include="Controllers\PlateBindingController.cs" /> <Compile Include="Controllers\SBGL\Gy_FixCardChangeBillController.cs" /> <Compile Include="Controllers\SBGL\Gy_FixCardBillController.cs" /> <Compile Include="Controllers\SBGL\Sb_EquipConkBookBillController.cs" />