From 13f2dee8954b5bd589c1998a4fc2f98d93325d1c Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期五, 16 六月 2023 13:25:14 +0800 Subject: [PATCH] 1 --- WebAPI/WebServer.cs | 166 ++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 114 insertions(+), 52 deletions(-) diff --git a/WebAPI/WebServer.cs b/WebAPI/WebServer.cs index 72f7147..314ffe8 100644 --- a/WebAPI/WebServer.cs +++ b/WebAPI/WebServer.cs @@ -4021,6 +4021,25 @@ //return false; } + + + + //public bool set_SaveMoveStockBill_PD(WebAPI.WebS.ClsKf_MoveStockBillMain oMain, string sHSourceType, ref string sErrMsg) + //{ + // WebS.WebService1 oWebs = new WebS.WebService1(); + // if (oWebs.set_SaveMoveStockBill_PD(oMain, sHSourceType, ref sErrMsg)) + // { + // sErrMsg = "淇濆瓨鎴愬姛锛�" + oMain.HBillNo; + // return true; + // } + // else + // { + // sErrMsg = "鍗曟嵁鍙凤細" + oMain.HBillNo + ", 鍗曟嵁ID锛�" + oMain.HInterID + ";" + sErrMsg; + // return false; + // } + + //} + public bool set_MoveStockStepOutBill(WebAPI.WebS.ClsKf_MoveStockStepOutBillMain oMain, string sHSourceType, ref string sErrMsg) { WebS.WebService1 oWebs = new WebS.WebService1(); @@ -4644,6 +4663,33 @@ return false; } } + + + //public bool set_SavePOInStockBill_NEW_Json(WebAPI.WebS.ClsCg_POInStockBillMain oMain, ref string sErrMsg) + //{ + // //BLL.ClsKf_POStockInBill bll = new BLL.ClsKf_POStockInBill(); + // //return bll.set_SavePOStockInBill_New(oMain, sHSourceType, ref DBUtility.ClsPub.sExeReturnInfo); + // WebS.WebService1 oWebs = new WebS.WebService1(); + // if (oWebs.set_SavePOInStockBill_Json(oMain, ref sErrMsg)) + // { + // //鍒ゆ柇鏄惁鍙嶅啓鎴愬姛 + // //if (set_UpdateHStatus(oMain.HInterID, oMain.HExplanation.ToString())) + // //{ + // sErrMsg = "淇濆瓨鎴愬姛锛�" + oMain.HBillNo; + // return true; + // //} + // //else + // //{ + // // sErrMsg = "淇濆瓨鎴愬姛锛�" + oMain.HBillNo + "鐘舵�佸弽鍐欏け璐ワ紒"; + // // return true; + // //} + // } + // else + // { + // sErrMsg = "鍗曟嵁鍙凤細" + oMain.HBillNo + ", 鍗曟嵁ID锛�" + oMain.HInterID + ";" + sErrMsg; + // return false; + // } + //} /// <summary> @@ -7141,61 +7187,61 @@ } - //鐢熸垚鍏朵粬鍏ュ簱鍗� - //public bool set_SaveOtherInBill_New(Model.ClsKf_OtherInBillMain oMain, string sHSourceType, ref string sErrMsg) - //{ - // //鑾峰彇绯荤粺鍙傛暟 - // Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); - // if (oSystemParameter.ShowBill(ref sErrMsg) == false) - // { - // sErrMsg = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg; - // return false; - // } - // // - // if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "WISE") //鍒ゆ柇鍚屾妯″紡鏄噾铦禬ISE - // { - // if (SaveOtherInBill_K3(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg)) - // { - // //"淇濆瓨鎴愬姛锛�"; - // sErrMsg = "淇濆瓨鎴愬姛锛�" + oMain.HBillNo; - // return true; - // } - // else - // { - // //"淇濆瓨澶辫触锛�"; - // sErrMsg = sErrMsg; - // return false; - // } - // } - // if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "CLOUD") //鍒ゆ柇鍚屾妯″紡鏄噾铦禖LOUD - // { - // ////涓婁紶鍓嶅繀濉」鍒ゆ柇 - // //if (oMain.HDeptID == 0) - // //{ - // // sErrMsg = "閮ㄩ棬娌℃湁閫夋嫨锛�"; - // // return false; - // //} - // //鍚屾鐢熸垚CLOUD鍗曟嵁 - // //if (SaveOtherInBill_CLD(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg) == true) - // //{ - // // //"淇濆瓨鎴愬姛锛�"; - // // return true; - // //} - // //else - // //{ - // // //"淇濆瓨澶辫触锛�"; - // // return false; - // //} - // } + //鐢熸垚鍏朵粬鍏ュ簱鍗� + //public bool set_SaveOtherInBill_New(Model.ClsKf_OtherInBillMain oMain, string sHSourceType, ref string sErrMsg) + //{ + // //鑾峰彇绯荤粺鍙傛暟 + // Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); + // if (oSystemParameter.ShowBill(ref sErrMsg) == false) + // { + // sErrMsg = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg; + // return false; + // } + // // + // if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "WISE") //鍒ゆ柇鍚屾妯″紡鏄噾铦禬ISE + // { + // if (SaveOtherInBill_K3(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg)) + // { + // //"淇濆瓨鎴愬姛锛�"; + // sErrMsg = "淇濆瓨鎴愬姛锛�" + oMain.HBillNo; + // return true; + // } + // else + // { + // //"淇濆瓨澶辫触锛�"; + // sErrMsg = sErrMsg; + // return false; + // } + // } + // if (oSystemParameter.omodel.Kf_OtherInBill_ERPMode.ToUpper() == "CLOUD") //鍒ゆ柇鍚屾妯″紡鏄噾铦禖LOUD + // { + // ////涓婁紶鍓嶅繀濉」鍒ゆ柇 + // //if (oMain.HDeptID == 0) + // //{ + // // sErrMsg = "閮ㄩ棬娌℃湁閫夋嫨锛�"; + // // return false; + // //} + // //鍚屾鐢熸垚CLOUD鍗曟嵁 + // //if (SaveOtherInBill_CLD(oMain, sHSourceType, oSystemParameter.omodel, ref sErrMsg) == true) + // //{ + // // //"淇濆瓨鎴愬姛锛�"; + // // return true; + // //} + // //else + // //{ + // // //"淇濆瓨澶辫触锛�"; + // // return false; + // //} + // } - // sErrMsg = "淇濆瓨鍏朵粬鍏ュ簱鍗曞け璐ワ紒" + sErrMsg; - // return false; - //} + // sErrMsg = "淇濆瓨鍏朵粬鍏ュ簱鍗曞け璐ワ紒" + sErrMsg; + // return false; + //} - public bool set_SaveOtherInBill_New(WebAPI.WebS.ClsKf_OtherInBillMain oMain, string sHSourceType,WebS.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) - { + public bool set_SaveOtherInBill_New(WebAPI.WebS.ClsKf_OtherInBillMain oMain, string sHSourceType, WebS.ClsXt_SystemParameterMain oSystemParameterMain, ref string sErrMsg) + { WebS.WebService1 oWebs = new WebS.WebService1();//set_SaveOtherInBill_CLD_New - if (oWebs.set_SaveOtherInBill_CLD_New(oMain, sHSourceType,oSystemParameterMain,ref sErrMsg)) + if (oWebs.set_SaveOtherInBill_CLD_New(oMain, sHSourceType, oSystemParameterMain, ref sErrMsg)) { sErrMsg = "淇濆瓨鎴愬姛锛�" + oMain.HBillNo; return true; @@ -7946,6 +7992,22 @@ } #endregion + #region [鑾峰彇榛樿鎵撳嵃妯℃澘] + /// <summary> + /// 榛樿鎵撳嵃妯℃澘 + /// </summary> + /// <param name="sWhere"></param> + /// <param name="sErr"></param> + /// <returns></returns> + public DataSet GetDefaultOpenTmp(string sWhere, ref string sErr) + { + SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); + DataSet ds = new DataSet(); + ds = oCn.RunProcReturn("select * from h_v_IF_OpenTmpList " + sWhere, "h_v_IF_OpenTmpList"); + return ds; + } + #endregion + //杩斿洖鏉$爜涓存椂琛� /// <summary> /// 杩斿洖鏉$爜涓存椂琛� -- Gitblit v1.9.1