| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 器具分布式调出未调入单列表Sc_MouldMoveStockStepOutButNotStepInList |
| | | |
| | | [Route("Sc_MouldMoveStockStepOutBill/GetMouldMoveStockStepOutButNotStepInList")] |
| | | [HttpGet] |
| | | public object GetMouldMoveStockStepOutButNotStepInList(string sWhere, string Organization) |
| | | { |
| | | try |
| | | { |
| | | ds = Sc_MouldGetMouldMoveStockStepOutButNotStepInList(sWhere, Organization); |
| | | |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | public static DataSet Sc_MouldGetMouldMoveStockStepOutButNotStepInList(string sWhere, string Organization) |
| | | { |
| | | string sql1 = string.Format(@"select * from h_v_Sc_MouldMoveStockStepOutButNotStepInList where (调出组织='" + Organization + "' or 调入组织='" + Organization + "')"); |
| | | if (sWhere == null || sWhere.Equals("")) |
| | | { |
| | | return new SQLHelper.ClsCN().RunProcReturn(sql1 + "order by 日期 desc", "h_v_Sc_MouldMoveStockStepOutBill"); |
| | | } |
| | | else |
| | | { |
| | | string sql = sql1 + sWhere + "order by 日期 desc"; |
| | | return new SQLHelper.ClsCN().RunProcReturn(sql, "h_v_Sc_MouldMoveStockStepOutButNotStepInList"); |
| | | } |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | } |
| | | #endregion |