| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | dynamic resultInfos = new System.Dynamic.ExpandoObject(); |
| | | var materialInfo = new LljService().GetMaterialByBarcode(data.itemBarcode, data.currentBillNo); |
| | | |
| | | |
| | | if (materialInfo == null || materialInfo.Count == 0) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | resultInfos.tbBillList = materialInfo; |
| | | return new ResponseResult |
| | | { |
| | |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询破坏实验记录是否存在 |
| | | /// </summary> |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(data.releaseNo)) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | var exists = new LljService().CheckPhsyRecordExists(data.billNo, data.releaseNo); |
| | | |
| | | dynamic resultInfos = new System.Dynamic.ExpandoObject(); |
| | | resultInfos.exists = exists; |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 调用破坏实验存储过程 |
| | | /// </summary> |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(data.billNo)) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (data.yqty <= 0) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (data.cqty <= 0) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(data.releaseNo)) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | var (result, message) = new LljService().CallPhsyUpdateProcedure( |
| | | data.itemBarcode, |
| | | data.yqty, |
| | | data.cqty, |
| | | data.itemBarcode, |
| | | data.yqty, |
| | | data.cqty, |
| | | data.billNo, |
| | | data.lx, |
| | | data.releaseNo, |
| | | data.itemId); |
| | | |
| | | dynamic resultInfos = new System.Dynamic.ExpandoObject(); |
| | | resultInfos.result = result; |
| | | resultInfos.message = message; |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = result, |
| | |
| | | }; |
| | | } |
| | | } |
| | | |
| | | public class GetWomdabRequest |
| | | { |
| | | public string daa001 { get; set; } |
| | |
| | | public string itemBarcode { get; set; } |
| | | public string currentBillNo { get; set; } |
| | | } |
| | | |
| | | public class PhsyUpdateRequest |
| | | { |
| | | public string itemBarcode { get; set; } |
| | |
| | | public string releaseNo { get; set; } // 检验单号 |
| | | public decimal? itemId { get; set; } // 物料ID |
| | | } |
| | | |
| | | public class CheckPhsyRecordRequest |
| | | { |
| | | public string billNo { get; set; } |
| | | public string releaseNo { get; set; } |
| | | } |
| | | |
| | | [HttpPost("GetPhsyRecordInfo")] |
| | | public ResponseResult GetPhsyRecordInfo([FromBody] CheckPhsyRecordRequest data) |
| | | { |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(data.releaseNo)) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | var records = new LljService().GetPhsyRecordInfo(data.billNo, data.releaseNo); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = 0, |
| | |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置堵穴信息 |
| | | /// </summary> |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(data.blockedHoles)) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | if (data.itemId <= 0) |
| | | { |
| | | return new ResponseResult |
| | |
| | | data = null |
| | | }; |
| | | } |
| | | |
| | | var (result, message) = new LljService().SetBlockedHoles(data.releaseNo, data.blockedHoles, data.itemId); |
| | | |
| | | return new ResponseResult |
| | | { |
| | | status = result, |
| | |
| | | }; |
| | | } |
| | | } |
| | | |
| | | |
| | | public class SetBlockedHolesRequest |
| | | { |
| | | public string releaseNo { get; set; } |