优化部分代码
This commit is contained in:
@@ -197,26 +197,28 @@ namespace Tnb.WarehouseMgr
|
|||||||
var sPoint = it.FirstOrDefault();
|
var sPoint = it.FirstOrDefault();
|
||||||
var ePoint = it.LastOrDefault();
|
var ePoint = it.LastOrDefault();
|
||||||
|
|
||||||
WmsPretaskH preTask = new();
|
WmsPretaskH preTask = new()
|
||||||
preTask.org_id = _userManager.User.OrganizeId;
|
{
|
||||||
preTask.startlocation_id = sPoint?.location_id!;
|
org_id = _userManager.User.OrganizeId,
|
||||||
preTask.startlocation_code = sPoint?.location_code!;
|
startlocation_id = sPoint?.location_id!,
|
||||||
preTask.endlocation_id = ePoint?.location_id!;
|
startlocation_code = sPoint?.location_code!,
|
||||||
preTask.endlocation_code = ePoint?.location_code!;
|
endlocation_id = ePoint?.location_id!,
|
||||||
preTask.start_floor = sPoint?.floor.ToString();
|
endlocation_code = ePoint?.location_code!,
|
||||||
preTask.end_floor = ePoint?.floor.ToString();
|
start_floor = sPoint?.floor.ToString(),
|
||||||
preTask.bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_PRETASK_H_ENCODE).GetAwaiter().GetResult();
|
end_floor = ePoint?.floor.ToString(),
|
||||||
preTask.status = WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID;
|
bill_code = _billRullService.GetBillNumber(WmsWareHouseConst.WMS_PRETASK_H_ENCODE).GetAwaiter().GetResult(),
|
||||||
preTask.biz_type = WmsWareHouseConst.BIZTYPE_WMSSETSORTING_ID;
|
status = WmsWareHouseConst.PRETASK_BILL_STATUS_DXF_ID,
|
||||||
preTask.task_type = WmsWareHouseConst.WMS_PRETASK_OUTSTOCK_TYPE_ID;
|
biz_type = WmsWareHouseConst.BIZTYPE_WMSSETSORTING_ID,
|
||||||
preTask.carry_id = carry.id;
|
task_type = WmsWareHouseConst.WMS_PRETASK_OUTSTOCK_TYPE_ID,
|
||||||
preTask.carry_code = carry.carry_code;
|
carry_id = carry.id,
|
||||||
preTask.area_id = sPoint?.area_id!;
|
carry_code = carry.carry_code,
|
||||||
preTask.area_code = it.Key;
|
area_id = sPoint?.area_id!,
|
||||||
preTask.require_id = requireId;
|
area_code = it.Key,
|
||||||
preTask.require_code = requireCode;
|
require_id = requireId,
|
||||||
preTask.create_id = _userManager.UserId;
|
require_code = requireCode,
|
||||||
preTask.create_time = DateTime.Now;
|
create_id = _userManager.UserId,
|
||||||
|
create_time = DateTime.Now
|
||||||
|
};
|
||||||
return preTask;
|
return preTask;
|
||||||
}).ToList();
|
}).ToList();
|
||||||
if (loc.is_sign == 0)
|
if (loc.is_sign == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user