| | |
| | | |
| | | [Route("Sc_MouldScrapOutHouseBill/GetMouldScrapOutHouseBill")] |
| | | [HttpGet] |
| | | public object GetMouldScrapOutHouseBill(string sWhere,string user) |
| | | public object GetMouldScrapOutHouseBill(string sWhere,string user, string Organization) |
| | | { |
| | | try |
| | | { |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = Sc_GetMouldScrapOutHouseBill(sWhere); |
| | | ds = Sc_GetMouldScrapOutHouseBill(sWhere,Organization); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "返回记录成功!"; |
| | |
| | | } |
| | | } |
| | | |
| | | 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"); |
| | | } |
| | |
| | | |
| | | [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; |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = Sc_GetMouldProdBackBill(sWhere); |
| | | ds = Sc_GetMouldProdBackBill(sWhere,Organization); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "返回记录成功!"; |
| | |
| | | } |
| | | } |
| | | |
| | | 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"); |
| | | } |
| | |
| | | |
| | | [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; |
| | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | ds = Sc_GetMouldProdOutBill(sWhere); |
| | | ds = Sc_GetMouldProdOutBill(sWhere,Organization); |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "返回记录成功!"; |
| | |
| | | } |
| | | } |
| | | |
| | | 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"); |
| | | } |