页面加序列
回车计数
This commit is contained in:
1 parent
2453e8405b
commit
a64e3a36f4
8 files changed
+31
-33
No files matched your search
@@ -90,7 +90,6 @@ public class ShipOutController : BaseController
|
||||
public ActionResult Pick(string uniqueCode, decimal qty,string station)
|
||||
{
|
||||
var shipment = _unitWork.Find<ShipmentDetail>(x => x.UniqueCode.Equals(uniqueCode))
|
||||
.Include(x => x.ShipmentHeader)
|
||||
.FirstOrDefault();
|
||||
using (var tran = Wtm.DC.Database.BeginTransaction())
|
||||
{
|
||||
@@ -100,15 +99,15 @@ public class ShipOutController : BaseController
|
||||
{
|
||||
return JsonMore(null, 500, "未找到该出库单!");
|
||||
}
|
||||
shipment.Status = ShipStatusEnum.拣货完成;
|
||||
shipment.UpdateTime = DateTime.Now;
|
||||
shipment.UpdateBy = Wtm.LoginUserInfo.ITCode;
|
||||
_unitWork.Update(shipment);
|
||||
|
||||
var header = _unitWork.Find<ShipmentHeader>(x => x.ID.Equals(shipment.ShipmentHeaderId))
|
||||
.Include(x => x.ShipmentDetails)
|
||||
.FirstOrDefault();
|
||||
|
||||
var detail = header.ShipmentDetails.First(x => x.ID == shipment.ID);
|
||||
detail.Status = ShipStatusEnum.拣货完成;
|
||||
detail.UpdateTime = DateTime.Now;
|
||||
detail.UpdateBy = Wtm.LoginUserInfo?.ITCode??"WMS";
|
||||
|
||||
if (!header.ShipmentDetails.Any(x => x.Status < ShipStatusEnum.拣货完成))
|
||||
{
|
||||
header.FirstStatus = ShipStatusEnum.拣货完成;
|
||||
@@ -118,7 +117,7 @@ public class ShipOutController : BaseController
|
||||
header.FirstStatus = ShipStatusEnum.拣货中;
|
||||
}
|
||||
header.UpdateTime = DateTime.Now;
|
||||
header.UpdateBy = Wtm.LoginUserInfo.ITCode;
|
||||
header.UpdateBy = Wtm.LoginUserInfo?.ITCode??"WMS";
|
||||
_unitWork.Update(header);
|
||||
|
||||
var inv = _unitWork.FindSingle<Inventory>(x => x.UniqueCode.Equals(uniqueCode) && x.LocationCode == station);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<wt:display field="Entity.LastStatus" />
|
||||
<wt:display field="Entity.Remark" /> *@
|
||||
</wt:row>
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" hidden-grid-index="true" use-local-data="true" hidden-panel="true" />
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" use-local-data="true" hidden-panel="true" />
|
||||
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@model HHWMS.Web.ShipmentHeaderHistoryVM
|
||||
@model HHWMS.Web.ShipmentHeaderHistoryVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
@@ -6,7 +6,7 @@
|
||||
<wt:display field="Entity.Code" />
|
||||
<wt:display field="Entity.BillType" />
|
||||
</wt:row>
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" hidden-grid-index="true" use-local-data="true" hidden-panel="true" />
|
||||
<wt:grid vm="@Model.Details" height="300" hidden-checkbox="true" use-local-data="true" hidden-panel="true" />
|
||||
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
|
||||
Reference in new issue
Block a user