| | |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | |
| | | [Route("POStockInBill/Delete_Json")] |
| | | [HttpGet] |
| | | public object Delete_Json(long HInterID, long HMaterID, long HAuxPropID, string HMTONo, long HSourceInterID, long HSourceEntryID, string sHBillType) |
| | |
| | | } |
| | | catch (Exception) |
| | | { |
| | | |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "删除失败!"; |
| | |
| | | return HInterID; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 到货确认扫收料通知单号 获取表体和表头数据 |
| | | /// </summary> |
| | | /// <param name="HBarCode"></param> |
| | | /// <returns></returns> |
| | | public json Get_ReciveBillCheckDate(string HBarCode) |
| | | { |
| | | json objjson = new json(); |
| | |
| | | } |
| | | } |
| | | |
| | | //[Route("POStockInBillList/AuditPOInStockBillPost")] |
| | | //[HttpGet] |
| | | //public object AuditPOInStockBill([FromBody] JObject msg) { |
| | | // string _msg = msg.ToString(); |
| | | |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = s; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | |
| | | /// <summary> |
| | | /// 到货确认 扫条码 校验 |
| | | /// </summary> |
| | | /// <param name="HBarcode"></param> |
| | | /// <param name="HInterID"></param> |
| | | /// <returns></returns> |
| | | [Route("POStockInBillList/Get_ReciveBillByBarcode")] |
| | | [HttpGet] |
| | | public object Get_ReciveBillByBarcode(string HBarcode, string HInterID) |
| | | { |
| | | try |
| | | { |
| | | //校验条码是否存在 |
| | | string sql = $"select* from Gy_BarCodeBill where HSourceInterID ={HInterID} and HBarCode = '{HBarcode}'"; |
| | | DataSet ds = oCn.RunProcReturn(sql, "H_v_SRM_POOrderBillList") ; |
| | | if (ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "条码不存在!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "Sucess!"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | //SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | //string sql = $"select * from H_v_SRM_POInStockBillList where 单据号 ='{HBillno}'"; |
| | | //ds = oCn.RunProcReturn(sql, "H_v_SRM_POInStockBillList"); |
| | | //if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | //{ |
| | | // objJsonResult.code = "0"; |
| | | // objJsonResult.count = 0; |
| | | // objJsonResult.Message = "没有返回任何记录!"; |
| | | // objJsonResult.data = null; |
| | | // return objJsonResult; |
| | | //} |
| | | //else |
| | | //{ |
| | | |
| | | //} |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "没有返回任何记录!" + e.ToString(); |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | //收料通知单审核 审核提交 |
| | | [Route("POStockInBillList/Exec_ReciveBillCheck")] |
| | | [HttpGet] |