| | |
| | | #endregion |
| | | |
| | | |
| | | /// <summary> |
| | | /// 采购入库单列表 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [Route("Kf_POStockInBill/GetPOStockInBill")] |
| | | [HttpGet] |
| | | public object GetPOStockInBill(string sWhere) |
| | | { |
| | | try |
| | | { |
| | | ///// <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; |
| | | } |
| | | } |
| | | // 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语句 |
| | | |