From ebfaee5cff4080a59ee294fced93bbdcf659348b Mon Sep 17 00:00:00 2001 From: YL <YL@LAPTOP-SE03PLUR> Date: 星期三, 20 十月 2021 22:12:01 +0800 Subject: [PATCH] 用户关联供应商基础资料 --- WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs | 68 +++++++++++++++++----------------- 1 files changed, 34 insertions(+), 34 deletions(-) diff --git a/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs b/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs index 9543a17..a3de72c 100644 --- a/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs +++ b/WebAPI/Controllers/Sc_MouldRepairInBillListController - .cs @@ -71,7 +71,7 @@ public static DataSet Sc_CheckToolsRepairWorkBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsRepairWorkBillList ", "h_v_Sc_CheckToolsRepairWorkBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsRepairWorkBillList order by 鏃ユ湡 desc", "h_v_Sc_CheckToolsRepairWorkBillList"); } @@ -123,7 +123,7 @@ public static DataSet Sc_CheckToolsDotCheckPlanBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsDotCheckPlanBillList ", "h_v_Sc_CheckToolsDotCheckPlanBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsDotCheckPlanBillList order by 鏃ユ湡 desc", "h_v_Sc_CheckToolsDotCheckPlanBillList"); } #endregion @@ -171,7 +171,7 @@ public static DataSet Sc_CheckToolsMaintainBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsMaintainBillList ", "h_v_Sc_CheckToolsMaintainBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsMaintainBillList order by 鏃ユ湡 desc", "h_v_Sc_CheckToolsMaintainBillList"); } #endregion @@ -280,7 +280,7 @@ public static DataSet Sc_MouldDotCheckPlanBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldDotCheckPlanBillList ", "h_v_Sc_MouldDotCheckPlanBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldDotCheckPlanBillList order by 鏃ユ湡 desc", "h_v_Sc_MouldDotCheckPlanBillList"); } #endregion @@ -328,7 +328,7 @@ public static DataSet Sc_MouldDotCheckBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldDotCheckBillList where 1=1 "+sWhere+" ", "h_v_Sc_MouldDotCheckBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldDotCheckBillList where 1=1 "+sWhere+ "order by 鏃ユ湡 desc", "h_v_Sc_MouldDotCheckBillList"); } #endregion @@ -377,7 +377,7 @@ public static DataSet Sc_CheckToolsMaintainPlanBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsMaintainPlanBillList ", "h_v_Sc_CheckToolsMaintainPlanBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsMaintainPlanBillList order by 鏃ユ湡 desc", "h_v_Sc_CheckToolsMaintainPlanBillList"); } #endregion @@ -426,7 +426,7 @@ public static DataSet Sc_MouldMaintainPlanBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldMaintainPlanBillList ", "h_v_Sc_MouldMaintainPlanBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldMaintainPlanBillList order by 鏃ユ湡 desc", "h_v_Sc_MouldMaintainPlanBillList"); } #endregion @@ -573,7 +573,7 @@ public static DataSet Sc_CheckToolsRepairCheckBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsRepairCheckBillList ", "h_v_Sc_CheckToolsRepairCheckBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsRepairCheckBillList order by 鏃ユ湡 desc", "h_v_Sc_CheckToolsRepairCheckBillList"); } #endregion @@ -689,7 +689,7 @@ public static DataSet Sc_CheckToolsConkBookBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsConkBookBillList ", "h_v_Sc_CheckToolsConkBookBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsConkBookBillList order by 鏃ユ湡 desc", "h_v_Sc_CheckToolsConkBookBillList"); } #endregion @@ -738,7 +738,7 @@ public static DataSet Sc_CheckToolsDotCheckBillList_s(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsDotCheckBillList ", "h_v_Sc_CheckToolsDotCheckBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_CheckToolsDotCheckBillList order by 鏃ユ湡 desc", "h_v_Sc_CheckToolsDotCheckBillList"); } #endregion @@ -787,7 +787,7 @@ public static DataSet Sc_GetMoveStockBillList(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_MoveStockBillList ", "h_v_IF_MoveStockBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_MoveStockBillList order by 鏃ユ湡 desc", "h_v_IF_MoveStockBillList"); } #endregion @@ -835,7 +835,7 @@ public static DataSet Sc_GetMateOutBillList(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_MateOutBillList ", "h_v_IF_MateOutBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_MateOutBillList order by 鏃ユ湡 desc", "h_v_IF_MateOutBillList"); } #endregion @@ -884,7 +884,7 @@ public static DataSet Sc_GetSellOutBillList(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_SellOutBillList ", "h_v_IF_SellOutBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_SellOutBillList order by 鏃ユ湡 desc", "h_v_IF_SellOutBillList"); } #endregion @@ -933,7 +933,7 @@ public static DataSet Sc_GetOtherOutBillList(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_OtherOutBillList ", "h_v_Kf_OtherOutBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_OtherOutBillList order by 鏃ユ湡 desc", "h_v_Kf_OtherOutBillList"); } #endregion @@ -1031,7 +1031,7 @@ public static DataSet Sc_GetPOStockInBill(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_POStockInBillList ", "h_v_IF_POStockInBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_POStockInBillList order by 鏃ユ湡 desc", "h_v_IF_POStockInBillList"); } #endregion @@ -1081,7 +1081,7 @@ public static DataSet Sc_GetProductInBill(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_ProductInBillList ", "h_v_IF_ProductInBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_ProductInBillList order by 鏃ユ湡 desc", "h_v_IF_ProductInBillList"); } #endregion @@ -1130,7 +1130,7 @@ public static DataSet Sc_GetOtherInBill(string sWhere) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_OtherInBillList ", "h_v_Kf_OtherInBillList"); + return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Kf_OtherInBillList order by 鏃ユ湡 desc ", "h_v_Kf_OtherInBillList"); } #endregion @@ -3756,7 +3756,7 @@ [Route("Sc_MouldScrapOutHouseBill/GetMouldScrapOutHouseBill")] [HttpGet] - public object GetMouldScrapOutHouseBill(string sWhere,string user) + public object GetMouldScrapOutHouseBill(string sWhere,string user, string Organization) { try { @@ -3770,7 +3770,7 @@ return objJsonResult; } - ds = Sc_GetMouldScrapOutHouseBill(sWhere); + ds = Sc_GetMouldScrapOutHouseBill(sWhere,Organization); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�"; @@ -3787,15 +3787,15 @@ } } - public static DataSet Sc_GetMouldScrapOutHouseBill(string sWhere) + public static DataSet Sc_GetMouldScrapOutHouseBill(string sWhere, string Organization) { + string sql1 = string.Format(@"select * from h_v_Sc_MouldScrapOutHouseBillList where 搴撳瓨缁勭粐='" + Organization + "'"); if (sWhere == null || sWhere.Equals("")) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldScrapOutHouseBillList order by 鏃ユ湡 desc", "h_v_Sc_MouldScrapOutHouseBillList"); + return new SQLHelper.ClsCN().RunProcReturn(sql1+ "order by 鏃ユ湡 desc", "h_v_Sc_MouldScrapOutHouseBillList"); } else { - string sql1 = "select * from h_v_Sc_MouldScrapOutHouseBillList where 1 = 1 "; string sql = sql1 + sWhere+ "order by 鏃ユ湡 desc"; return new SQLHelper.ClsCN().RunProcReturn(sql, "h_v_Sc_MouldScrapOutHouseBillList"); } @@ -4241,11 +4241,11 @@ [Route("Sc_MouldProdBackBill/GetMouldProdBackBill")] [HttpGet] - public object GetMouldProdBackBill(string sWhere,string user,string ModRightNameSelect) + public object GetMouldProdBackBill(string sWhere,string user, string Organization) { try { - if (!DBUtility.ClsPub.Security_Log(ModRightNameSelect, 1, true, user)) + if (!DBUtility.ClsPub.Security_Log("Sc_MouldProdBackBillList", 1, true, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -4254,7 +4254,7 @@ return objJsonResult; } - ds = Sc_GetMouldProdBackBill(sWhere); + ds = Sc_GetMouldProdBackBill(sWhere,Organization); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�"; @@ -4271,15 +4271,15 @@ } } - public static DataSet Sc_GetMouldProdBackBill(string sWhere) + public static DataSet Sc_GetMouldProdBackBill(string sWhere,string Organization) { + string sql1 = string.Format(@"select * from h_v_Sc_MouldProdBackBillList where 搴撳瓨缁勭粐='" + Organization + "'"); if (sWhere == null || sWhere.Equals("")) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldProdBackBillList order by 鏃ユ湡 desc ", "h_v_Sc_MouldProdBackBillList"); + return new SQLHelper.ClsCN().RunProcReturn(sql1 + "order by 鏃ユ湡 desc", "h_v_Sc_MouldProdBackBillList"); } else { - string sql1 = "select * from h_v_Sc_MouldProdBackBillList where 1 = 1 "; string sql = sql1 + sWhere+ "order by 鏃ユ湡 desc"; return new SQLHelper.ClsCN().RunProcReturn(sql, "h_v_Sc_MouldProdBackBillList"); } @@ -4586,11 +4586,11 @@ [Route("Sc_MouldProdOutBill/GetMouldProdOutBill")] [HttpGet] - public object GetMouldProdOutBill(string sWhere, string user, string ModRightNameSelect) + public object GetMouldProdOutBill(string sWhere, string user,string Organization) { try { - if (!DBUtility.ClsPub.Security_Log(ModRightNameSelect, 1, true, user)) + if (!DBUtility.ClsPub.Security_Log("Sc_MouldProdOutBillList", 1, true, user)) { objJsonResult.code = "0"; objJsonResult.count = 0; @@ -4599,7 +4599,7 @@ return objJsonResult; } - ds = Sc_GetMouldProdOutBill(sWhere); + ds = Sc_GetMouldProdOutBill(sWhere,Organization); objJsonResult.code = "1"; objJsonResult.count = 1; objJsonResult.Message = "杩斿洖璁板綍鎴愬姛锛�"; @@ -4616,15 +4616,15 @@ } } - public static DataSet Sc_GetMouldProdOutBill(string sWhere) + public static DataSet Sc_GetMouldProdOutBill(string sWhere, string Organization) { + string sql1 = string.Format(@"select * from h_v_Sc_MouldProdOutHouseBillList where 搴撳瓨缁勭粐='" + Organization + "'"); if (sWhere == null || sWhere.Equals("")) { - return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_Sc_MouldProdOutHouseBillList order by 鏃ユ湡 desc", "h_v_Sc_MouldProdOutHouseBillList"); + return new SQLHelper.ClsCN().RunProcReturn(sql1+ "order by 鏃ユ湡 desc", "h_v_Sc_MouldProdOutHouseBillList"); } else { - string sql1 = "select * from h_v_Sc_MouldProdOutHouseBillList where 1 = 1 "; string sql = sql1 + sWhere+ "order by 鏃ユ湡 desc"; return new SQLHelper.ClsCN().RunProcReturn(sql, "h_v_Sc_MouldProdOutHouseBillList"); } -- Gitblit v1.9.1