出库时物料状态控制,采购订单收货单到货数量调整、报表调整
This commit is contained in:
@@ -64,7 +64,7 @@ namespace Tnb.WarehouseMgr
|
||||
.WhereIF(!string.IsNullOrEmpty(carry_code), (a, b, c, d) => b.carry_code.Contains(carry_code))
|
||||
.WhereIF(!string.IsNullOrEmpty(material_code), (a, b, c, d, e, f) => f.code.Contains(material_code))
|
||||
.WhereIF(!string.IsNullOrEmpty(code_batch), (a, b, c, d, e, f) => e.code_batch.Contains(code_batch))
|
||||
.WhereIF(!string.IsNullOrEmpty(container_no), (a, b, c, d, e, f) => f.container_no.Contains(container_no))
|
||||
.WhereIF(!string.IsNullOrEmpty(container_no), (a, b, c, d, e, f) => f.material_standard.Contains(container_no))
|
||||
.OrderByDescending((a, b, c, d, e, f) => b.carry_code)
|
||||
.Select((a, b, c, d, e, f) => new WmsCarryStockReport
|
||||
{
|
||||
@@ -88,7 +88,10 @@ namespace Tnb.WarehouseMgr
|
||||
container_no = f.material_standard,
|
||||
unit = e.unit_id,
|
||||
creator = e.create_id,
|
||||
bind_time = e.create_time != null ? e.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss") : ""
|
||||
bind_time = e.create_time != null ? e.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss") : "",
|
||||
qc_res = SqlFunc.IF(e.qc_res.Equals("await") || string.IsNullOrEmpty(e.qc_res)).Return("待检").ElseIF(e.qc_res.Equals("vergeOk")).Return("让步接收").ElseIF(e.qc_res.Equals("ok")).Return("合格").ElseIF(e.qc_res.Equals("no")).Return("不合格").End(""),
|
||||
auxprop_gys = e.auxprop_gys,
|
||||
auxprop_xph = e.auxprop_xph,
|
||||
})
|
||||
.OrderBy((a) => a.location_code)
|
||||
.ToListAsync();
|
||||
@@ -107,7 +110,7 @@ namespace Tnb.WarehouseMgr
|
||||
.WhereIF(!string.IsNullOrEmpty(carry_code), (a, b, c, d, e, f, g, h) => b.carry_code.Contains(carry_code) || h.carry_code.Contains(carry_code))
|
||||
.WhereIF(!string.IsNullOrEmpty(material_code), (a, b, c, d, e, f, g) => g.code.Contains(material_code))
|
||||
.WhereIF(!string.IsNullOrEmpty(code_batch), (a, b, c, d, e, f, g) => f.code_batch.Contains(code_batch))
|
||||
.WhereIF(!string.IsNullOrEmpty(container_no), (a, b, c, d, e, f, g) => g.container_no.Contains(container_no))
|
||||
.WhereIF(!string.IsNullOrEmpty(container_no), (a, b, c, d, e, f, g) => g.material_standard.Contains(container_no))
|
||||
.Select((a, b, c, d, e, f, g, h) => new WmsCarryStockReport
|
||||
{
|
||||
warehouse_name = c.whname,
|
||||
@@ -132,7 +135,10 @@ namespace Tnb.WarehouseMgr
|
||||
container_no = g.material_standard,
|
||||
unit = f.unit_id,
|
||||
creator = f.create_id,
|
||||
bind_time = f.create_time != null ? f.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss") : ""
|
||||
bind_time = f.create_time != null ? f.create_time.Value.ToString("yyyy-MM-dd HH:mm:ss") : "",
|
||||
qc_res = SqlFunc.IF(f.qc_res.Equals("await") || string.IsNullOrEmpty(f.qc_res)).Return("待检").ElseIF(f.qc_res.Equals("vergeOk")).Return("让步接收").ElseIF(f.qc_res.Equals("ok")).Return("合格").ElseIF(f.qc_res.Equals("no")).Return("不合格").End(""),
|
||||
auxprop_gys = f.auxprop_gys,
|
||||
auxprop_xph = f.auxprop_xph,
|
||||
})
|
||||
.OrderBy((a) => a.location_code)
|
||||
.ToListAsync();
|
||||
@@ -170,6 +176,9 @@ namespace Tnb.WarehouseMgr
|
||||
wmsCarryStockReportCode.unit = x.unit;
|
||||
wmsCarryStockReportCode.material_specification = x.material_specification;
|
||||
wmsCarryStockReportCode.container_no = x.container_no;
|
||||
wmsCarryStockReportCode.qc_res = x.qc_res;
|
||||
wmsCarryStockReportCode.auxprop_gys = x.auxprop_gys;
|
||||
wmsCarryStockReportCode.auxprop_xph = x.auxprop_xph;
|
||||
//wmsCarryStockReportCode.创建用户 = x.操作用户;
|
||||
wmsCarryStockReportCode.bind_time = x.bind_time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user