From fde78359d2a40cab0abdfae824d77b6d2ae46a8e Mon Sep 17 00:00:00 2001 From: WYB <908761037@qq.com> Date: 星期三, 21 四月 2021 22:15:37 +0800 Subject: [PATCH] 1.单据编辑模块(工序汇报单): 按钮。增加关闭功能,撤销关闭功能。 2.单据编辑模块(工序汇报单):增加审核、反审核按钮 --- WebAPI/Controllers/Sc_CheckToolsRepairWorkBillController.cs | 445 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 445 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/Sc_CheckToolsRepairWorkBillController.cs b/WebAPI/Controllers/Sc_CheckToolsRepairWorkBillController.cs index 8971041..30b672e 100644 --- a/WebAPI/Controllers/Sc_CheckToolsRepairWorkBillController.cs +++ b/WebAPI/Controllers/Sc_CheckToolsRepairWorkBillController.cs @@ -68,6 +68,10 @@ } + + + + /// <summary> /// 妫�鍏风偣妫�璁″垝琛ㄥ垪琛� /// </summary> @@ -712,6 +716,447 @@ #endregion + /// <summary> + /// 璋冩嫧鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_MoveStockBill/GetMoveStockBillList")] + [HttpGet] + public object GetMoveStockBillList(string sWhere) + { + try + { + + ds = Sc_GetMoveStockBillList(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetMoveStockBillList(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_MoveStockBillList ", "h_v_IF_MoveStockBillList"); + } + #endregion + + /// <summary> + /// 鐢熶骇棰嗘枡鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_MateOutBill/GetMateOutBillList")] + [HttpGet] + public object GetMateOutBillList(string sWhere) + { + try + { + + ds = Sc_GetMateOutBillList(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetMateOutBillList(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_MateOutBillList ", "h_v_IF_MateOutBillList"); + } + #endregion + + + /// <summary> + /// 閿�鍞嚭搴撳崟鍒楄〃 + /// </summary> + /// <returns></returns> + [Route("Kf_SellOutBill/GetSellOutBillList")] + [HttpGet] + public object GetSellOutBillList(string sWhere) + { + try + { + + ds = Sc_GetSellOutBillList(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetSellOutBillList(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_SellOutBillList ", "h_v_IF_SellOutBillList"); + } + #endregion + + + /// <summary> + /// 鍏朵粬鍑哄簱鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_OtherOutBill/GetOtherOutBillList")] + [HttpGet] + public object GetOtherOutBillList(string sWhere) + { + try + { + + ds = Sc_GetOtherOutBillList(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetOtherOutBillList(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_OtherOutBillList ", "h_v_Kf_OtherOutBillList"); + } + #endregion + + + /// <summary> + /// 濮斿鍑哄簱鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_EntrustOutBill/GetEntrustOutBill")] + [HttpGet] + public object GetEntrustOutBill(string sWhere) + { + try + { + + ds = Sc_GetEntrustOutBill(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetEntrustOutBill(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_EntrustOutBillList ", "h_v_Kf_EntrustOutBillList"); + } + #endregion + + + /// <summary> + /// 閲囪喘鍏ュ簱鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_POStockInBill/GetPOStockInBill")] + [HttpGet] + public object GetPOStockInBill(string sWhere) + { + try + { + + ds = Sc_GetPOStockInBill(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetPOStockInBill(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_POStockInBillList ", "h_v_IF_POStockInBillList"); + } + #endregion + + + + /// <summary> + /// 浜у搧鍏ュ簱鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_ProductInBill/GetProductInBill")] + [HttpGet] + public object GetProductInBill(string sWhere) + { + try + { + + ds = Sc_GetProductInBill(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetProductInBill(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_ProductInBillList ", "h_v_IF_ProductInBillList"); + } + #endregion + + + /// <summary> + /// 鍏朵粬鍏ュ簱鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_OtherInBill/GetOtherInBill")] + [HttpGet] + public object GetOtherInBill(string sWhere) + { + try + { + + ds = Sc_GetOtherInBill(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetOtherInBill(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_OtherInBillList ", "h_v_Kf_OtherInBillList"); + } + #endregion + + + /// <summary> + /// 濮斿鍏ュ簱鍗曞垪琛� + /// </summary> + /// <returns></returns> + [Route("Kf_EntrustInBill/GetEntrustInBill")] + [HttpGet] + public object GetEntrustInBill(string sWhere) + { + try + { + + ds = Sc_GetEntrustInBill(sWhere); + 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 = "杩斿洖璁板綍鎴愬姛锛�"; + objJsonResult.data = ds.Tables[0]; + return objJsonResult; + } + } + catch (Exception ex) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "娌℃湁杩斿洖浠讳綍璁板綍锛�" + ex.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + + #region sql璇彞 + + + public static DataSet Sc_GetEntrustInBill(string sWhere) + { + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_EntrustInBillList ", "h_v_Kf_EntrustInBillList"); + } + #endregion + + //娴嬭瘯涓撶敤鎺ュ彛 [Route("LookingFor/Test")] [HttpGet] -- Gitblit v1.9.1