入库单新建
This commit is contained in:
1 parent
e2dead6c3f
commit
663769f80e
50 files changed
+2164
-94
No files matched your search
@@ -0,0 +1,231 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
[Area("xwms")]
|
||||
[ActionDescription("物料基础信息")]
|
||||
public partial class Material2Controller : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitwork;
|
||||
|
||||
public Material2Controller(IUnitWork unitwork)
|
||||
{
|
||||
_unitwork = unitwork;
|
||||
}
|
||||
|
||||
#region Search
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2ListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public string Search(Material2Searcher searcher)
|
||||
{
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
var vm = Wtm.CreateVM<Material2ListVM>(passInit: true);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
vm.Searcher = searcher;
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return vm.GetError();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Create
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create()
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2VM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create(Material2VM vm)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
vm.DoAdd();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
vm.DoReInit();
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Edit
|
||||
[ActionDescription("Sys.Edit")]
|
||||
public ActionResult Edit(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Edit")]
|
||||
[HttpPost]
|
||||
[ValidateFormItemOnly]
|
||||
public ActionResult Edit(Material2VM vm)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
vm.DoEdit();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
vm.DoReInit();
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGridRow(vm.Entity.ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Delete
|
||||
[ActionDescription("Sys.Delete")]
|
||||
public ActionResult Delete(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Delete")]
|
||||
[HttpPost]
|
||||
public ActionResult Delete(string id, IFormCollection nouse)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2VM>(id);
|
||||
vm.DoDelete();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Details
|
||||
[ActionDescription("Sys.Details")]
|
||||
public ActionResult Details(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BatchEdit
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult BatchEdit(string[] IDs)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult DoBatchEdit(Material2BatchVM vm, IFormCollection nouse)
|
||||
{
|
||||
if (!ModelState.IsValid || !vm.DoBatchEdit())
|
||||
{
|
||||
return PartialView("BatchEdit",vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.BatchEditSuccess", vm.Ids.Length]);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BatchDelete
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchDelete")]
|
||||
public ActionResult BatchDelete(string[] IDs)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchDelete")]
|
||||
public ActionResult DoBatchDelete(Material2BatchVM vm, IFormCollection nouse)
|
||||
{
|
||||
if (!ModelState.IsValid || !vm.DoBatchDelete())
|
||||
{
|
||||
return PartialView("BatchDelete",vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.BatchDeleteSuccess", vm.Ids.Length]);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Import
|
||||
[ActionDescription("Sys.Import")]
|
||||
public ActionResult Import()
|
||||
{
|
||||
var vm = Wtm.CreateVM<Material2ImportVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Import")]
|
||||
public ActionResult Import(Material2ImportVM vm, IFormCollection nouse)
|
||||
{
|
||||
if (vm.ErrorListVM.EntityList.Count > 0 || !vm.BatchSaveData())
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.ImportSuccess", vm.EntityList.Count.ToString()]);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Export
|
||||
[ActionDescription("Sys.Export")]
|
||||
[HttpPost]
|
||||
public IActionResult ExportExcel(Material2ListVM vm)
|
||||
{
|
||||
return vm.GetExportData();
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
[Area("xwms")]
|
||||
[ActionDescription("入库明细")]
|
||||
public partial class ReceiptDetail2Controller : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitwork;
|
||||
|
||||
public ReceiptDetail2Controller(IUnitWork unitwork)
|
||||
{
|
||||
_unitwork = unitwork;
|
||||
}
|
||||
|
||||
#region Search
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2ListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public string Search(ReceiptDetail2Searcher searcher)
|
||||
{
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2ListVM>(passInit: true);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
vm.Searcher = searcher;
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return vm.GetError();
|
||||
}
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public string Search2(ReceiptDetail2ListVM vm)
|
||||
{
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
vm.Searcher.Page = vm.FC.GetValue<int>("Page");
|
||||
vm.Searcher.Limit = vm.FC.GetValue<int>("Limit");
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Create
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create(int id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2VM>();
|
||||
vm.Entity.ReceiptId = id;
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult Create(ReceiptDetail2VM vm)
|
||||
{
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
vm.DoAdd();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
vm.DoReInit();
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid(index: 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Edit
|
||||
[ActionDescription("Sys.Edit")]
|
||||
public ActionResult Edit(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Edit")]
|
||||
[HttpPost]
|
||||
[ValidateFormItemOnly]
|
||||
public ActionResult Edit(ReceiptDetail2VM vm)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
vm.DoEdit();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
vm.DoReInit();
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGridRow(vm.Entity.ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Delete
|
||||
[ActionDescription("Sys.Delete")]
|
||||
public ActionResult Delete(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Delete")]
|
||||
[HttpPost]
|
||||
public ActionResult Delete(string id, IFormCollection nouse)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2VM>(id);
|
||||
vm.DoDelete();
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Details
|
||||
[ActionDescription("Sys.Details")]
|
||||
public ActionResult Details(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BatchEdit
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult BatchEdit(string[] IDs)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult DoBatchEdit(ReceiptDetail2BatchVM vm, IFormCollection nouse)
|
||||
{
|
||||
if (!ModelState.IsValid || !vm.DoBatchEdit())
|
||||
{
|
||||
return PartialView("BatchEdit",vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.BatchEditSuccess", vm.Ids.Length]);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BatchDelete
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchDelete")]
|
||||
public ActionResult BatchDelete(string[] IDs)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchDelete")]
|
||||
public ActionResult DoBatchDelete(ReceiptDetail2BatchVM vm, IFormCollection nouse)
|
||||
{
|
||||
if (!ModelState.IsValid || !vm.DoBatchDelete())
|
||||
{
|
||||
return PartialView("BatchDelete",vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.BatchDeleteSuccess", vm.Ids.Length]);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Import
|
||||
[ActionDescription("Sys.Import")]
|
||||
public ActionResult Import()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2ImportVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Import")]
|
||||
public ActionResult Import(ReceiptDetail2ImportVM vm, IFormCollection nouse)
|
||||
{
|
||||
if (vm.ErrorListVM.EntityList.Count > 0 || !vm.BatchSaveData())
|
||||
{
|
||||
return PartialView(vm);
|
||||
}
|
||||
else
|
||||
{
|
||||
return FFResult().CloseDialog().RefreshGrid().Alert(Localizer["Sys.ImportSuccess", vm.EntityList.Count.ToString()]);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Export
|
||||
[ActionDescription("Sys.Export")]
|
||||
[HttpPost]
|
||||
public IActionResult ExportExcel(ReceiptDetail2ListVM vm)
|
||||
{
|
||||
return vm.GetExportData();
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,8 @@ using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs;
|
||||
using HHWMS.Web.Models;
|
||||
using System.Linq;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
@@ -53,13 +55,28 @@ namespace HHWMS.Web.Controllers
|
||||
public ActionResult Create()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptHeader2VM>();
|
||||
vm.Entity.Type = "QTR";
|
||||
vm.Entity.UserDef2 = "HYB";
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult Create(ReceiptHeader2VM vm)
|
||||
{
|
||||
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
||||
vm.Entity.WarehouseId = int.Parse(warehouseId);
|
||||
vm.Entity.Code = _unitwork.GetSerialNumber("QTR");
|
||||
vm.Entity.FirstStatus = 0;
|
||||
vm.Entity.LastStatus = 0;
|
||||
vm.Entity.TotalLines = 0;
|
||||
vm.Entity.TotalQty = 0;
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
vm.Entity.SupplierName = dc.Set<Supplier>()
|
||||
.FirstOrDefault(x => x.Code == vm.Entity.SupplierCode)
|
||||
?.Name;
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return PartialView(vm);
|
||||
|
||||
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using MESTOWMSService;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -99,6 +100,8 @@ public class XWMSMFMController : BaseController
|
||||
|
||||
var shipment = new ShipmentHeader2();
|
||||
shipment.Code = _unitwork.GetSerialNumber("SCC");
|
||||
shipment.SourceCode = data.FirstOrDefault().MFGNUM_0;
|
||||
shipment.UserDef2 = data.FirstOrDefault().MFGLIN_0.ToString();
|
||||
shipment.Type = "SCC";
|
||||
shipment.FirstStatus = 0;
|
||||
shipment.UserDef1 = data.FirstOrDefault().MFGFCY_0;
|
||||
@@ -115,8 +118,8 @@ public class XWMSMFMController : BaseController
|
||||
detail.SourceCode = item.MFGNUM_0;
|
||||
detail.SourceLine = item.MFGLIN_0.ToString();
|
||||
detail.MaterialCode = item.ITMREF_0;
|
||||
detail.MaterialName = item.ITMDES1_0;
|
||||
detail.Lot = item.ITMDES2_0;
|
||||
detail.MaterialName = HttpUtility.HtmlDecode(item.ITMDES1_0);
|
||||
detail.Lot = HttpUtility.HtmlDecode(item.ITMDES2_0);
|
||||
detail.Qty = item.THISQTYSTU;
|
||||
detail.Unit = item.BOMSEQ_0.ToString();
|
||||
//detail.PurchasQty = item.THISQTYUOM;
|
||||
|
||||
@@ -2,12 +2,15 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using MESTOWMSService;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Newtonsoft.Json;
|
||||
using ServiceReference1;
|
||||
using SixLabors.ImageSharp.Drawing;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
@@ -88,6 +91,7 @@ public class XWMSPOHController : BaseController
|
||||
#endregion Search
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult Create(List<XWMSPOH> data)
|
||||
{
|
||||
@@ -115,8 +119,8 @@ public class XWMSPOHController : BaseController
|
||||
detail.SourceCode = item.POHNUM_0;
|
||||
detail.SourceLine = item.POPLIN_0.ToString();
|
||||
detail.MaterialCode = item.ITMREF_0;
|
||||
detail.MaterialName = item.ITMDES1_0;
|
||||
detail.Lot = item.ITMDES2_0;
|
||||
detail.MaterialName = HttpUtility.HtmlDecode(item.ITMDES1_0);
|
||||
detail.Lot = HttpUtility.HtmlDecode(item.ITMDES2_0);
|
||||
detail.Qty = item.THISQTYSTU;
|
||||
detail.Unit = item.STU_0;
|
||||
detail.PurchasQty = item.THISQTYUOM;
|
||||
|
||||
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using MESTOWMSService;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -118,14 +119,13 @@ public class XWMSPTHController : BaseController
|
||||
detail.SourceCode = item.PTHNUM_0;
|
||||
detail.SourceLine = item.PTDLIN_0.ToString();
|
||||
detail.MaterialCode = item.ITMREF_0;
|
||||
detail.MaterialName = item.ITMDES1_0;
|
||||
detail.Lot = item.ITMDES2_0;
|
||||
detail.MaterialName = HttpUtility.HtmlDecode(item.ITMDES1_0);
|
||||
detail.Lot = HttpUtility.HtmlDecode(item.ITMDES2_0);
|
||||
detail.Qty = item.THISQTYSTU;
|
||||
detail.Unit = item.STU_0;
|
||||
detail.PurchasQty = item.THISQTYUOM;
|
||||
detail.PurchasUnits = item.UOM_0;
|
||||
detail.InventoryStatus = item.STA_0;
|
||||
detail.Batch = _unitwork.GetSerialNumber("HYB", 5).Remove(3, 2);
|
||||
detail.Status = 0;
|
||||
detail.CreateTime = DateTime.Now;
|
||||
detailList.Add(detail);
|
||||
|
||||
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using MESTOWMSService;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -86,8 +87,8 @@ public class XWMSSHIPController : BaseController
|
||||
var _unitwork = new UnitWork(Wtm);
|
||||
|
||||
var receipt = new ReceiptHeader2();
|
||||
receipt.Code = _unitwork.GetSerialNumber("CGR");
|
||||
receipt.SourceCode = data.FirstOrDefault().POHNUM_0;
|
||||
receipt.Code = _unitwork.GetSerialNumber("DDS");
|
||||
receipt.SourceCode = data.FirstOrDefault().SDHNUM_0;
|
||||
receipt.SupplierCode = data.FirstOrDefault().STOFCY_0;
|
||||
receipt.SupplierName = data.FirstOrDefault().BPRNAM_0;
|
||||
receipt.Type = "DDS";
|
||||
@@ -107,8 +108,8 @@ public class XWMSSHIPController : BaseController
|
||||
detail.SourceCode = item.SDHNUM_0;
|
||||
detail.SourceLine = item.SDDLIN_0.ToString();
|
||||
detail.MaterialCode = item.ITMREF_0;
|
||||
detail.MaterialName = item.ITMDES1_0;
|
||||
detail.Lot = item.ITMDES2_0;
|
||||
detail.MaterialName = HttpUtility.HtmlDecode(item.ITMDES1_0);
|
||||
detail.Lot = HttpUtility.HtmlDecode(item.ITMDES2_0);
|
||||
detail.Qty = item.QTYSTU_0;
|
||||
detail.Unit = item.SAU_0;
|
||||
detail.PurchasQty = item.QTY_0;
|
||||
@@ -121,6 +122,10 @@ public class XWMSSHIPController : BaseController
|
||||
}
|
||||
_unitwork.BatchAdd(detailList.ToArray());
|
||||
|
||||
receipt.TotalLines = detailList.Count();
|
||||
receipt.TotalQty = detailList.Sum(x => x.Qty);
|
||||
_unitwork.Update(receipt);
|
||||
|
||||
return JsonMore(null);
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using MESTOWMSService;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
@@ -88,6 +89,7 @@ public class XWMSSOHController : BaseController
|
||||
var shipment = new ShipmentHeader2();
|
||||
shipment.Code = _unitwork.GetSerialNumber("XSC");
|
||||
shipment.Type = "XSC";
|
||||
shipment.SourceCode = data.FirstOrDefault().SOHNUM_0;
|
||||
shipment.ShipTo = data.FirstOrDefault().BPCORD_0;
|
||||
shipment.FirstStatus = 0;
|
||||
shipment.AppointmentTime = data.FirstOrDefault().ORDDAT_0;
|
||||
@@ -106,8 +108,8 @@ public class XWMSSOHController : BaseController
|
||||
detail.SourceCode = item.SOHNUM_0;
|
||||
detail.SourceLine = item.SOPLIN_0.ToString();
|
||||
detail.MaterialCode = item.ITMREF_0;
|
||||
detail.MaterialName = item.ITMDES1_0;
|
||||
detail.Lot = item.ITMDES2_0;
|
||||
detail.MaterialName = HttpUtility.HtmlDecode(item.ITMDES1_0);
|
||||
detail.Lot = HttpUtility.HtmlDecode(item.ITMDES2_0);
|
||||
detail.Qty = item.THISQTYSTU;
|
||||
detail.Unit = item.STU_0;
|
||||
//detail.PurchasQty = item.THISQTYUOM;
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class Material2BatchVM : BaseBatchVM<Material2, Material2_BatchEdit>
|
||||
{
|
||||
public Material2BatchVM()
|
||||
{
|
||||
ListVM = new Material2ListVM();
|
||||
LinkedVM = new Material2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class Material2_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class Material2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<Material2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.WarehouseCode);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<Material2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.CompanyCode);
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Code);
|
||||
public ExcelPropety Type_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Type);
|
||||
public ExcelPropety Name_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Name);
|
||||
public ExcelPropety Barcode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode);
|
||||
public ExcelPropety Barcode2_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode2);
|
||||
public ExcelPropety Barcode3_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode3);
|
||||
public ExcelPropety Barcode4_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Barcode4);
|
||||
public ExcelPropety ClassA_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ClassA);
|
||||
public ExcelPropety ClassB_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ClassB);
|
||||
public ExcelPropety ClassC_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ClassC);
|
||||
public ExcelPropety Specification_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Specification);
|
||||
public ExcelPropety Brand_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Brand);
|
||||
public ExcelPropety Size_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Size);
|
||||
public ExcelPropety Color_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Color);
|
||||
public ExcelPropety PlaceOfOrigin_Excel = ExcelPropety.CreateProperty<Material2>(x => x.PlaceOfOrigin);
|
||||
public ExcelPropety DaysToExpire_Excel = ExcelPropety.CreateProperty<Material2>(x => x.DaysToExpire);
|
||||
public ExcelPropety ExpiringDays_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ExpiringDays);
|
||||
public ExcelPropety MinShelfLifeDays_Excel = ExcelPropety.CreateProperty<Material2>(x => x.MinShelfLifeDays);
|
||||
public ExcelPropety CostPrice_Excel = ExcelPropety.CreateProperty<Material2>(x => x.CostPrice);
|
||||
public ExcelPropety ListPrice_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ListPrice);
|
||||
public ExcelPropety NetPrice_Excel = ExcelPropety.CreateProperty<Material2>(x => x.NetPrice);
|
||||
public ExcelPropety MasterUnit_Excel = ExcelPropety.CreateProperty<Material2>(x => x.MasterUnit);
|
||||
public ExcelPropety AssistUnit_Excel = ExcelPropety.CreateProperty<Material2>(x => x.AssistUnit);
|
||||
public ExcelPropety ConvertRate_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ConvertRate);
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ManufactureDate);
|
||||
public ExcelPropety ReceiptDate_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ReceiptDate);
|
||||
public ExcelPropety Enable_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Enable);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<Material2>(x => x.Deleted);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef3);
|
||||
public ExcelPropety UserDef4_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef4);
|
||||
public ExcelPropety UserDef5_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef5);
|
||||
public ExcelPropety UserDef6_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef6);
|
||||
public ExcelPropety UserDef7_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef7);
|
||||
public ExcelPropety UserDef8_Excel = ExcelPropety.CreateProperty<Material2>(x => x.UserDef8);
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<Material2>(x => x.ZoneCode);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class Material2ImportVM : BaseImportVM<Material2TemplateVM, Material2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class Material2ListVM : BasePagedListVM<Material2_View, Material2Searcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Material2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<Material2_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<Material2_View>>{
|
||||
this.MakeGridHeader(x => x.Code),
|
||||
this.MakeGridHeader(x => x.Type),
|
||||
this.MakeGridHeader(x => x.Name),
|
||||
this.MakeGridHeader(x => x.MasterUnit),
|
||||
this.MakeGridHeader(x => x.AssistUnit),
|
||||
this.MakeGridHeader(x => x.WarehouseId),
|
||||
this.MakeGridHeader(x => x.WarehouseCode),
|
||||
this.MakeGridHeader(x => x.CompanyId),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.Barcode),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<Material2_View> GetSearchQuery()
|
||||
{
|
||||
var dc2 = Wtm.CreateDC(cskey: "hangyong");
|
||||
var query = dc2.Set<Material2>()
|
||||
.CheckContain(Searcher.Code, x => x.Code)
|
||||
.CheckContain(Searcher.Name, x => x.Name)
|
||||
.CheckContain(Searcher.Type, x => x.Type)
|
||||
.Select(x => new Material2_View
|
||||
{
|
||||
ID = x.ID,
|
||||
WarehouseId = x.WarehouseId,
|
||||
WarehouseCode = x.WarehouseCode,
|
||||
CompanyId = x.CompanyId,
|
||||
CompanyCode = x.CompanyCode,
|
||||
Code = x.Code,
|
||||
Type = x.Type,
|
||||
Name = x.Name,
|
||||
Barcode = x.Barcode,
|
||||
Barcode2 = x.Barcode2,
|
||||
Barcode3 = x.Barcode3,
|
||||
Barcode4 = x.Barcode4,
|
||||
ClassA = x.ClassA,
|
||||
ClassB = x.ClassB,
|
||||
ClassC = x.ClassC,
|
||||
Specification = x.Specification,
|
||||
Brand = x.Brand,
|
||||
Size = x.Size,
|
||||
Color = x.Color,
|
||||
PlaceOfOrigin = x.PlaceOfOrigin,
|
||||
DaysToExpire = x.DaysToExpire,
|
||||
ExpiringDays = x.ExpiringDays,
|
||||
MinShelfLifeDays = x.MinShelfLifeDays,
|
||||
CostPrice = x.CostPrice,
|
||||
ListPrice = x.ListPrice,
|
||||
NetPrice = x.NetPrice,
|
||||
MasterUnit = x.MasterUnit,
|
||||
AssistUnit = x.AssistUnit,
|
||||
ConvertRate = x.ConvertRate,
|
||||
ManufactureDate = x.ManufactureDate,
|
||||
ReceiptDate = x.ReceiptDate,
|
||||
Enable = x.Enable,
|
||||
Deleted = x.Deleted,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
UserDef4 = x.UserDef4,
|
||||
UserDef5 = x.UserDef5,
|
||||
UserDef6 = x.UserDef6,
|
||||
UserDef7 = x.UserDef7,
|
||||
UserDef8 = x.UserDef8,
|
||||
ZoneCode = x.ZoneCode,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class Material2_View : Material2{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class Material2Searcher : BaseSearcher
|
||||
{
|
||||
public Int32? WarehouseId { get; set; }
|
||||
public String WarehouseCode { get; set; }
|
||||
public Int32? CompanyId { get; set; }
|
||||
public String CompanyCode { get; set; }
|
||||
public String Code { get; set; }
|
||||
public String Type { get; set; }
|
||||
public String Name { get; set; }
|
||||
public String Barcode { get; set; }
|
||||
public String Barcode2 { get; set; }
|
||||
public String Barcode3 { get; set; }
|
||||
public String Barcode4 { get; set; }
|
||||
public String ClassA { get; set; }
|
||||
public String ClassB { get; set; }
|
||||
public String ClassC { get; set; }
|
||||
public String Specification { get; set; }
|
||||
public String Brand { get; set; }
|
||||
public String Size { get; set; }
|
||||
public String Color { get; set; }
|
||||
public String PlaceOfOrigin { get; set; }
|
||||
public Int32? DaysToExpire { get; set; }
|
||||
public Int32? ExpiringDays { get; set; }
|
||||
public Int32? MinShelfLifeDays { get; set; }
|
||||
public Decimal? CostPrice { get; set; }
|
||||
public Decimal? ListPrice { get; set; }
|
||||
public Decimal? NetPrice { get; set; }
|
||||
public String MasterUnit { get; set; }
|
||||
public String AssistUnit { get; set; }
|
||||
public Single? ConvertRate { get; set; }
|
||||
public Boolean? ManufactureDate { get; set; }
|
||||
public Boolean? ReceiptDate { get; set; }
|
||||
public Boolean? Enable { get; set; }
|
||||
public Boolean? Deleted { get; set; }
|
||||
public String UserDef1 { get; set; }
|
||||
public String UserDef2 { get; set; }
|
||||
public String UserDef3 { get; set; }
|
||||
public String UserDef4 { get; set; }
|
||||
public String UserDef5 { get; set; }
|
||||
public String UserDef6 { get; set; }
|
||||
public String UserDef7 { get; set; }
|
||||
public String UserDef8 { get; set; }
|
||||
public String ZoneCode { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class Material2VM : BaseCRUDVM<Material2>
|
||||
{
|
||||
|
||||
public Material2VM()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
public override void DoAdd()
|
||||
{
|
||||
base.DoAdd();
|
||||
}
|
||||
|
||||
public override void DoEdit(bool updateAllFields = false)
|
||||
{
|
||||
base.DoEdit(updateAllFields);
|
||||
}
|
||||
|
||||
public override void DoDelete()
|
||||
{
|
||||
base.DoDelete();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptDetail2BatchVM : BaseBatchVM<ReceiptDetail2, ReceiptDetail2_BatchEdit>
|
||||
{
|
||||
public ReceiptDetail2BatchVM()
|
||||
{
|
||||
ListVM = new ReceiptDetail2ListVM();
|
||||
LinkedVM = new ReceiptDetail2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ReceiptDetail2_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptDetail2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.WarehouseCode);
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.ZoneCode);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.CompanyCode);
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.SourceCode);
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.SupplierCode);
|
||||
public ExcelPropety SupplierName_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.SupplierName);
|
||||
public ExcelPropety CPoCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.CPoCode);
|
||||
public ExcelPropety MoCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.MoCode);
|
||||
public ExcelPropety SourceLine_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.SourceLine);
|
||||
public ExcelPropety ReceiptId_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.ReceiptId);
|
||||
public ExcelPropety ReceiptCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.ReceiptCode);
|
||||
public ExcelPropety MaterialId_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.MaterialId);
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.MaterialCode);
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.MaterialName);
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Batch);
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Lot);
|
||||
public ExcelPropety Sn_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Sn);
|
||||
public ExcelPropety Project_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Project);
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.ManufactureDate);
|
||||
public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.ExpirationDate);
|
||||
public ExcelPropety InventoryStatus_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.InventoryStatus);
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Qty);
|
||||
public ExcelPropety QtyCompleted_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.QtyCompleted);
|
||||
public ExcelPropety Unit_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Unit);
|
||||
public ExcelPropety PurchasQty_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.PurchasQty);
|
||||
public ExcelPropety PurchasUnits_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.PurchasUnits);
|
||||
public ExcelPropety Coefficient_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Coefficient);
|
||||
public ExcelPropety Price_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Price);
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Status);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Deleted);
|
||||
public ExcelPropety AutoId_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.AutoId);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.UserDef3);
|
||||
public ExcelPropety Station_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.Station);
|
||||
public ExcelPropety QtyDivided_Excel = ExcelPropety.CreateProperty<ReceiptDetail2>(x => x.QtyDivided);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ReceiptDetail2ImportVM : BaseImportVM<ReceiptDetail2TemplateVM, ReceiptDetail2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptDetail2ListVM : BasePagedListVM<ReceiptDetail2_View, ReceiptDetail2Searcher>
|
||||
{
|
||||
public List<ComboSelectListItem> InventoryStatus { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ReceiptDetail2VM>();
|
||||
InventoryStatus = vm.InventoryStatus;
|
||||
}
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeAction("ReceiptDetail2","Create",Localizer["Sys.Create"],Localizer["Sys.Create"],GridActionParameterTypesEnum.NoId,"xwms").SetOnClickScript("CreateDetail"),
|
||||
this.MakeStandardAction("ReceiptDetail2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetail2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetail2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetail2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetail2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetail2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptDetail2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ReceiptDetail2_View>> InitGridHeader()
|
||||
{
|
||||
InitVM();
|
||||
return new List<GridColumn<ReceiptDetail2_View>>{
|
||||
this.MakeGridHeader(x => x.ReceiptCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SourceLine),
|
||||
this.MakeGridHeader(x => x.MaterialCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.MaterialName).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.Lot),
|
||||
this.MakeGridHeader(x => x.Batch).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.InventoryStatus),
|
||||
this.MakeGridHeader(x => x.Qty)
|
||||
.SetFormat((a,b) =>
|
||||
{
|
||||
return a.Qty.ToString().TrimEnd('0').TrimEnd('.');
|
||||
}),
|
||||
|
||||
this.MakeGridHeader(x => x.Unit),
|
||||
this.MakeGridHeader(x => x.QtyCompleted)
|
||||
.SetFormat((a,b) =>
|
||||
{
|
||||
return a.QtyCompleted.ToString().TrimEnd('0').TrimEnd('.');
|
||||
}),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ReceiptDetail2_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ReceiptDetail2>()
|
||||
.Where(x => x.ReceiptId == Searcher.ReceiptId)
|
||||
.Select(x => new ReceiptDetail2_View
|
||||
{
|
||||
ID = x.ID,
|
||||
WarehouseId = x.WarehouseId,
|
||||
WarehouseCode = x.WarehouseCode,
|
||||
ZoneCode = x.ZoneCode,
|
||||
CompanyId = x.CompanyId,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SourceCode = x.SourceCode,
|
||||
SupplierCode = x.SupplierCode,
|
||||
SupplierName = x.SupplierName,
|
||||
CPoCode = x.CPoCode,
|
||||
MoCode = x.MoCode,
|
||||
SourceLine = x.SourceLine,
|
||||
ReceiptId = x.ReceiptId,
|
||||
ReceiptCode = x.ReceiptCode,
|
||||
MaterialId = x.MaterialId,
|
||||
MaterialCode = x.MaterialCode,
|
||||
MaterialName = x.MaterialName,
|
||||
Batch = x.Batch,
|
||||
Lot = x.Lot,
|
||||
Sn = x.Sn,
|
||||
Project = x.Project,
|
||||
ManufactureDate = x.ManufactureDate,
|
||||
ExpirationDate = x.ExpirationDate,
|
||||
InventoryStatus = x.InventoryStatus,
|
||||
Qty = x.Qty,
|
||||
QtyCompleted = x.QtyCompleted,
|
||||
Unit = x.Unit,
|
||||
PurchasQty = x.PurchasQty,
|
||||
PurchasUnits = x.PurchasUnits,
|
||||
Coefficient = x.Coefficient,
|
||||
Price = x.Price,
|
||||
Status = x.Status,
|
||||
Deleted = x.Deleted,
|
||||
AutoId = x.AutoId,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
Station = x.Station,
|
||||
QtyDivided = x.QtyDivided,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ReceiptDetail2_View : ReceiptDetail2{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
using HHWMS.Web.Models;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptDetail2Searcher : BaseSearcher
|
||||
{
|
||||
public Int32? WarehouseId { get; set; }
|
||||
public String WarehouseCode { get; set; }
|
||||
public String ZoneCode { get; set; }
|
||||
public Int32? CompanyId { get; set; }
|
||||
public String CompanyCode { get; set; }
|
||||
public String SourceCode { get; set; }
|
||||
public String SupplierCode { get; set; }
|
||||
public String SupplierName { get; set; }
|
||||
public String CPoCode { get; set; }
|
||||
public String MoCode { get; set; }
|
||||
public String SourceLine { get; set; }
|
||||
public Int32? ReceiptId { get; set; }
|
||||
public String ReceiptCode { get; set; }
|
||||
public Int32? MaterialId { get; set; }
|
||||
public String MaterialCode { get; set; }
|
||||
public String MaterialName { get; set; }
|
||||
public String Batch { get; set; }
|
||||
public String Lot { get; set; }
|
||||
public String Sn { get; set; }
|
||||
public String Project { get; set; }
|
||||
public DateRange ManufactureDate { get; set; }
|
||||
public DateRange ExpirationDate { get; set; }
|
||||
public String InventoryStatus { get; set; }
|
||||
public Decimal? Qty { get; set; }
|
||||
public Decimal? QtyCompleted { get; set; }
|
||||
public String Unit { get; set; }
|
||||
public Decimal? PurchasQty { get; set; }
|
||||
public String PurchasUnits { get; set; }
|
||||
public Decimal? Coefficient { get; set; }
|
||||
public Decimal? Price { get; set; }
|
||||
public Int32? Status { get; set; }
|
||||
public Boolean? Deleted { get; set; }
|
||||
public Int32? AutoId { get; set; }
|
||||
public String UserDef1 { get; set; }
|
||||
public String UserDef2 { get; set; }
|
||||
public String UserDef3 { get; set; }
|
||||
public String Station { get; set; }
|
||||
public Decimal? QtyDivided { get; set; }
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using HHWMS.Web.Models;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Core.Extensions;
|
||||
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public partial class ReceiptDetail2VM : BaseCRUDVM<ReceiptDetail2>
|
||||
{
|
||||
public Material2ListVM MaterialList { get; set; }
|
||||
public List<ComboSelectListItem> InventoryStatus { get; set; }
|
||||
public ReceiptDetail2VM()
|
||||
{
|
||||
//MaterialList = new Material2ListVM();
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
var CurrentCulture = Wtm.CurrentCulture;
|
||||
var dc = Wtm.CreateDC(cskey: "default");
|
||||
var dictDatas = dc.Set<SysDictData>().ToList();
|
||||
InventoryStatus = dictDatas.Where(x => x.DictType == "InventoryStatus")
|
||||
.ToList()
|
||||
.ToListItems(x => CurrentCulture == "zh" ? x.DictLabel : x.DictLabelUs, x => x.DictValue);
|
||||
}
|
||||
|
||||
public override void DoAdd()
|
||||
{
|
||||
base.DoAdd();
|
||||
}
|
||||
|
||||
public override void DoEdit(bool updateAllFields = false)
|
||||
{
|
||||
base.DoEdit(updateAllFields);
|
||||
}
|
||||
|
||||
public override void DoDelete()
|
||||
{
|
||||
base.DoDelete();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
@@ -13,11 +13,18 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
|
||||
{
|
||||
public partial class ReceiptHeader2ListVM : BasePagedListVM<ReceiptHeader2_View, ReceiptHeader2Searcher>
|
||||
{
|
||||
public ReceiptDetail2ListVM ReceiptDetails { get; set; } = new ReceiptDetail2ListVM();
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
ReceiptDetails.CopyContext(this);
|
||||
}
|
||||
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800,600),
|
||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ReceiptHeader2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
@@ -31,32 +38,33 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
|
||||
|
||||
protected override IEnumerable<IGridColumn<ReceiptHeader2_View>> InitGridHeader()
|
||||
{
|
||||
InitVM();
|
||||
return new List<GridColumn<ReceiptHeader2_View>>{
|
||||
this.MakeGridHeader(x => x.Code),
|
||||
this.MakeGridHeader(x => x.CompanyId),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.Code).SetFormat((a,b) =>
|
||||
{
|
||||
string rv = UIService.MakeScriptButton(ButtonTypesEnum.Link,a.Code,$"details('{a.ID}')");
|
||||
return rv;
|
||||
}).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.Type),
|
||||
this.MakeGridHeader(x => x.SourceCode),
|
||||
this.MakeGridHeader(x => x.SourcePlatform),
|
||||
this.MakeGridHeader(x => x.SupplierId),
|
||||
this.MakeGridHeader(x => x.SupplierCode),
|
||||
this.MakeGridHeader(x => x.SupplierName),
|
||||
this.MakeGridHeader(x => x.TotalQty),
|
||||
this.MakeGridHeader(x => x.SourceCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SupplierCode).SetHide(),
|
||||
this.MakeGridHeader(x => x.SupplierName).SetWidth(200),
|
||||
this.MakeGridHeader(x => x.TotalQty)
|
||||
.SetFormat((a,b) =>
|
||||
{
|
||||
return a.TotalQty.ToString().TrimEnd('0').TrimEnd('.');
|
||||
}),
|
||||
this.MakeGridHeader(x => x.TotalLines),
|
||||
this.MakeGridHeader(x => x.FreeScan),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeader(x => x.Remark).SetHide(),
|
||||
this.MakeGridHeader(x => x.UploadStatus),
|
||||
this.MakeGridHeader(x => x.Uploadremark),
|
||||
this.MakeGridHeader(x => x.UploadTime),
|
||||
this.MakeGridHeader(x => x.AppointmentTime),
|
||||
this.MakeGridHeader(x => x.UploadTime).SetHide(),
|
||||
this.MakeGridHeader(x => x.AppointmentTime).SetHide(),
|
||||
this.MakeGridHeader(x => x.FirstStatus),
|
||||
this.MakeGridHeader(x => x.LastStatus),
|
||||
this.MakeGridHeader(x => x.Enable),
|
||||
this.MakeGridHeader(x => x.Deleted),
|
||||
this.MakeGridHeader(x => x.Scanid),
|
||||
this.MakeGridHeader(x => x.UserDef1),
|
||||
this.MakeGridHeader(x => x.UserDef2),
|
||||
this.MakeGridHeader(x => x.UserDef3),
|
||||
this.MakeGridHeader(x => x.UserDef1).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef2).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef3).SetHide(),
|
||||
this.MakeGridHeader(x => x.Station),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
@@ -12,13 +12,41 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
|
||||
{
|
||||
public partial class ReceiptHeader2VM : BaseCRUDVM<ReceiptHeader2>
|
||||
{
|
||||
|
||||
public List<ComboSelectListItem> ReceiptTypes { get; set; }
|
||||
public List<ComboSelectListItem> Trs { get; set; }
|
||||
public List<ComboSelectListItem> Addresses { get; set; }
|
||||
public List<ComboSelectListItem> SupplyNames { get; set; }
|
||||
public ReceiptHeader2VM()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
var CurrentCulture = Wtm.CurrentCulture;
|
||||
var dictDatas = DC.Set<SysDictData>().ToList();
|
||||
ReceiptTypes = dictDatas.Where(x => x.DictType == "ReceiptType2").Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = CurrentCulture == "zh" ? x.DictLabel : x.DictLabelUs,
|
||||
Value = x.DictValue
|
||||
}).ToList();
|
||||
Trs = dictDatas.Where(x => x.DictType == "Trs").Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = CurrentCulture == "zh" ? x.DictLabel : x.DictLabelUs,
|
||||
Value = x.DictValue
|
||||
}).ToList();
|
||||
Addresses = dictDatas.Where(x => x.DictType == "Addresses").Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = CurrentCulture == "zh" ? x.DictLabel : x.DictLabelUs,
|
||||
Value = x.DictValue
|
||||
}).ToList();
|
||||
|
||||
var dc2 = Wtm.CreateDC(cskey: "hangyong");
|
||||
SupplyNames = dc2.Set<Supplier>().Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = x.Name,
|
||||
Value = x.Code
|
||||
}).ToList();
|
||||
|
||||
}
|
||||
|
||||
public override void DoAdd()
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
@model HHWMS.Web.Material2BatchVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:quote>@Localizer["Sys.BatchDeleteConfirm"]</wt:quote>
|
||||
<wt:hidden field="Ids" />
|
||||
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,14 @@
|
||||
@model HHWMS.Web.Material2BatchVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<div style="margin-bottom:10px">@Localizer["Sys.BatchEditConfirm"] </div>
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
</wt:row>
|
||||
<wt:hidden field="Ids" />
|
||||
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,52 @@
|
||||
@model HHWMS.Web.Material2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.WarehouseId" />
|
||||
<wt:textbox field="Entity.WarehouseCode" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.Code" />
|
||||
<wt:textbox field="Entity.Type" />
|
||||
<wt:textbox field="Entity.Name" />
|
||||
<wt:textbox field="Entity.Barcode" />
|
||||
<wt:textbox field="Entity.Barcode2" />
|
||||
<wt:textbox field="Entity.Barcode3" />
|
||||
<wt:textbox field="Entity.Barcode4" />
|
||||
<wt:textbox field="Entity.ClassA" />
|
||||
<wt:textbox field="Entity.ClassB" />
|
||||
<wt:textbox field="Entity.ClassC" />
|
||||
<wt:textbox field="Entity.Specification" />
|
||||
<wt:textbox field="Entity.Brand" />
|
||||
<wt:textbox field="Entity.Size" />
|
||||
<wt:textbox field="Entity.Color" />
|
||||
<wt:textbox field="Entity.PlaceOfOrigin" />
|
||||
<wt:textbox field="Entity.DaysToExpire" />
|
||||
<wt:textbox field="Entity.ExpiringDays" />
|
||||
<wt:textbox field="Entity.MinShelfLifeDays" />
|
||||
<wt:textbox field="Entity.CostPrice" />
|
||||
<wt:textbox field="Entity.ListPrice" />
|
||||
<wt:textbox field="Entity.NetPrice" />
|
||||
<wt:textbox field="Entity.MasterUnit" />
|
||||
<wt:textbox field="Entity.AssistUnit" />
|
||||
<wt:textbox field="Entity.ConvertRate" />
|
||||
<wt:combobox field="Entity.ManufactureDate" />
|
||||
<wt:combobox field="Entity.ReceiptDate" />
|
||||
<wt:combobox field="Entity.Enable" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:textbox field="Entity.UserDef4" />
|
||||
<wt:textbox field="Entity.UserDef5" />
|
||||
<wt:textbox field="Entity.UserDef6" />
|
||||
<wt:textbox field="Entity.UserDef7" />
|
||||
<wt:textbox field="Entity.UserDef8" />
|
||||
<wt:textbox field="Entity.ZoneCode" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,54 @@
|
||||
@model HHWMS.Web.Material2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:quote>@Localizer["Sys.DeleteConfirm"]</wt:quote>
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.WarehouseId" />
|
||||
<wt:display field="Entity.WarehouseCode" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.Code" />
|
||||
<wt:display field="Entity.Type" />
|
||||
<wt:display field="Entity.Name" />
|
||||
<wt:display field="Entity.Barcode" />
|
||||
<wt:display field="Entity.Barcode2" />
|
||||
<wt:display field="Entity.Barcode3" />
|
||||
<wt:display field="Entity.Barcode4" />
|
||||
<wt:display field="Entity.ClassA" />
|
||||
<wt:display field="Entity.ClassB" />
|
||||
<wt:display field="Entity.ClassC" />
|
||||
<wt:display field="Entity.Specification" />
|
||||
<wt:display field="Entity.Brand" />
|
||||
<wt:display field="Entity.Size" />
|
||||
<wt:display field="Entity.Color" />
|
||||
<wt:display field="Entity.PlaceOfOrigin" />
|
||||
<wt:display field="Entity.DaysToExpire" />
|
||||
<wt:display field="Entity.ExpiringDays" />
|
||||
<wt:display field="Entity.MinShelfLifeDays" />
|
||||
<wt:display field="Entity.CostPrice" />
|
||||
<wt:display field="Entity.ListPrice" />
|
||||
<wt:display field="Entity.NetPrice" />
|
||||
<wt:display field="Entity.MasterUnit" />
|
||||
<wt:display field="Entity.AssistUnit" />
|
||||
<wt:display field="Entity.ConvertRate" />
|
||||
<wt:display field="Entity.ManufactureDate" />
|
||||
<wt:display field="Entity.ReceiptDate" />
|
||||
<wt:display field="Entity.Enable" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.UserDef4" />
|
||||
<wt:display field="Entity.UserDef5" />
|
||||
<wt:display field="Entity.UserDef6" />
|
||||
<wt:display field="Entity.UserDef7" />
|
||||
<wt:display field="Entity.UserDef8" />
|
||||
<wt:display field="Entity.ZoneCode" />
|
||||
</wt:row>
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,51 @@
|
||||
@model HHWMS.Web.Material2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.WarehouseId" />
|
||||
<wt:display field="Entity.WarehouseCode" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.Code" />
|
||||
<wt:display field="Entity.Type" />
|
||||
<wt:display field="Entity.Name" />
|
||||
<wt:display field="Entity.Barcode" />
|
||||
<wt:display field="Entity.Barcode2" />
|
||||
<wt:display field="Entity.Barcode3" />
|
||||
<wt:display field="Entity.Barcode4" />
|
||||
<wt:display field="Entity.ClassA" />
|
||||
<wt:display field="Entity.ClassB" />
|
||||
<wt:display field="Entity.ClassC" />
|
||||
<wt:display field="Entity.Specification" />
|
||||
<wt:display field="Entity.Brand" />
|
||||
<wt:display field="Entity.Size" />
|
||||
<wt:display field="Entity.Color" />
|
||||
<wt:display field="Entity.PlaceOfOrigin" />
|
||||
<wt:display field="Entity.DaysToExpire" />
|
||||
<wt:display field="Entity.ExpiringDays" />
|
||||
<wt:display field="Entity.MinShelfLifeDays" />
|
||||
<wt:display field="Entity.CostPrice" />
|
||||
<wt:display field="Entity.ListPrice" />
|
||||
<wt:display field="Entity.NetPrice" />
|
||||
<wt:display field="Entity.MasterUnit" />
|
||||
<wt:display field="Entity.AssistUnit" />
|
||||
<wt:display field="Entity.ConvertRate" />
|
||||
<wt:display field="Entity.ManufactureDate" />
|
||||
<wt:display field="Entity.ReceiptDate" />
|
||||
<wt:display field="Entity.Enable" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.UserDef4" />
|
||||
<wt:display field="Entity.UserDef5" />
|
||||
<wt:display field="Entity.UserDef6" />
|
||||
<wt:display field="Entity.UserDef7" />
|
||||
<wt:display field="Entity.UserDef8" />
|
||||
<wt:display field="Entity.ZoneCode" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,53 @@
|
||||
@model HHWMS.Web.Material2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.WarehouseId" />
|
||||
<wt:textbox field="Entity.WarehouseCode" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.Code" />
|
||||
<wt:textbox field="Entity.Type" />
|
||||
<wt:textbox field="Entity.Name" />
|
||||
<wt:textbox field="Entity.Barcode" />
|
||||
<wt:textbox field="Entity.Barcode2" />
|
||||
<wt:textbox field="Entity.Barcode3" />
|
||||
<wt:textbox field="Entity.Barcode4" />
|
||||
<wt:textbox field="Entity.ClassA" />
|
||||
<wt:textbox field="Entity.ClassB" />
|
||||
<wt:textbox field="Entity.ClassC" />
|
||||
<wt:textbox field="Entity.Specification" />
|
||||
<wt:textbox field="Entity.Brand" />
|
||||
<wt:textbox field="Entity.Size" />
|
||||
<wt:textbox field="Entity.Color" />
|
||||
<wt:textbox field="Entity.PlaceOfOrigin" />
|
||||
<wt:textbox field="Entity.DaysToExpire" />
|
||||
<wt:textbox field="Entity.ExpiringDays" />
|
||||
<wt:textbox field="Entity.MinShelfLifeDays" />
|
||||
<wt:textbox field="Entity.CostPrice" />
|
||||
<wt:textbox field="Entity.ListPrice" />
|
||||
<wt:textbox field="Entity.NetPrice" />
|
||||
<wt:textbox field="Entity.MasterUnit" />
|
||||
<wt:textbox field="Entity.AssistUnit" />
|
||||
<wt:textbox field="Entity.ConvertRate" />
|
||||
<wt:combobox field="Entity.ManufactureDate" />
|
||||
<wt:combobox field="Entity.ReceiptDate" />
|
||||
<wt:combobox field="Entity.Enable" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:textbox field="Entity.UserDef4" />
|
||||
<wt:textbox field="Entity.UserDef5" />
|
||||
<wt:textbox field="Entity.UserDef6" />
|
||||
<wt:textbox field="Entity.UserDef7" />
|
||||
<wt:textbox field="Entity.UserDef8" />
|
||||
<wt:textbox field="Entity.ZoneCode" />
|
||||
</wt:row>
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,14 @@
|
||||
@model HHWMS.Web.Material2ImportVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:downloadTemplateButton vm="@Model" />
|
||||
</wt:row>
|
||||
<wt:upload field="UploadFileId" label-text="@Model.Localizer["Sys.UploadTemplate"]" upload-type="ExcelFile" />
|
||||
<wt:grid vm="ErrorListVM" use-local-data="true" hidden-checkbox="true" hidden-grid-index="true" hidden-panel="true" height="300"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,8 @@
|
||||
@model HHWMS.Web.Material2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" url="/xwms/Material2/Search"/>
|
||||
@@ -0,0 +1,12 @@
|
||||
@model HHWMS.Web.ReceiptDetail2BatchVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:quote>@Localizer["Sys.BatchDeleteConfirm"]</wt:quote>
|
||||
<wt:hidden field="Ids" />
|
||||
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,14 @@
|
||||
@model HHWMS.Web.ReceiptDetail2BatchVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<div style="margin-bottom:10px">@Localizer["Sys.BatchEditConfirm"] </div>
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
</wt:row>
|
||||
<wt:hidden field="Ids" />
|
||||
<wt:grid vm="ListVM" use-local-data="true" height="300" hidden-checkbox="true" hidden-panel="true"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,28 @@
|
||||
@model HHWMS.Web.ReceiptDetail2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.One">
|
||||
<wt:row id="selector">
|
||||
<wt:selector field="Entity.MaterialCode" list-vm="MaterialList" text-bind="MaterialList.EntityList[0].Name">
|
||||
<wt:searchpanel vm="MaterialList">
|
||||
<wt:row items-per-row=" ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="MaterialList.Searcher.Code" />
|
||||
<wt:textbox field="MaterialList.Searcher.Name" />
|
||||
<wt:textbox field="MaterialList.Searcher.Type" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
</wt:selector>
|
||||
</wt:row>
|
||||
<wt:textbox field="Entity.MaterialName" />
|
||||
<wt:textbox field="Entity.Batch"/>
|
||||
<wt:textbox field="Entity.Qty" />
|
||||
<wt:textbox field="Entity.Price" />
|
||||
<wt:combobox field="Entity.InventoryStatus" items="InventoryStatus" />
|
||||
</wt:row>
|
||||
<wt:hidden field="Entity.ReceiptId" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,51 @@
|
||||
@model HHWMS.Web.ReceiptDetail2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:quote>@Localizer["Sys.DeleteConfirm"]</wt:quote>
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.WarehouseId" />
|
||||
<wt:display field="Entity.WarehouseCode" />
|
||||
<wt:display field="Entity.ZoneCode" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SupplierCode" />
|
||||
<wt:display field="Entity.SupplierName" />
|
||||
<wt:display field="Entity.CPoCode" />
|
||||
<wt:display field="Entity.MoCode" />
|
||||
<wt:display field="Entity.SourceLine" />
|
||||
<wt:display field="Entity.ReceiptId" />
|
||||
<wt:display field="Entity.ReceiptCode" />
|
||||
<wt:display field="Entity.MaterialId" />
|
||||
<wt:display field="Entity.MaterialCode" />
|
||||
<wt:display field="Entity.MaterialName" />
|
||||
<wt:display field="Entity.Batch" />
|
||||
<wt:display field="Entity.Lot" />
|
||||
<wt:display field="Entity.Sn" />
|
||||
<wt:display field="Entity.Project" />
|
||||
<wt:display field="Entity.ManufactureDate" />
|
||||
<wt:display field="Entity.ExpirationDate" />
|
||||
<wt:display field="Entity.InventoryStatus" />
|
||||
<wt:display field="Entity.Qty" />
|
||||
<wt:display field="Entity.QtyCompleted" />
|
||||
<wt:display field="Entity.Unit" />
|
||||
<wt:display field="Entity.PurchasQty" />
|
||||
<wt:display field="Entity.PurchasUnits" />
|
||||
<wt:display field="Entity.Coefficient" />
|
||||
<wt:display field="Entity.Price" />
|
||||
<wt:display field="Entity.Status" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.AutoId" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.Station" />
|
||||
<wt:display field="Entity.QtyDivided" />
|
||||
</wt:row>
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton theme=" ButtonThemeEnum.Warm" text="@Localizer["Sys.Delete"]"/>
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,48 @@
|
||||
@model HHWMS.Web.ReceiptDetail2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:display field="Entity.WarehouseId" />
|
||||
<wt:display field="Entity.WarehouseCode" />
|
||||
<wt:display field="Entity.ZoneCode" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SupplierCode" />
|
||||
<wt:display field="Entity.SupplierName" />
|
||||
<wt:display field="Entity.CPoCode" />
|
||||
<wt:display field="Entity.MoCode" />
|
||||
<wt:display field="Entity.SourceLine" />
|
||||
<wt:display field="Entity.ReceiptId" />
|
||||
<wt:display field="Entity.ReceiptCode" />
|
||||
<wt:display field="Entity.MaterialId" />
|
||||
<wt:display field="Entity.MaterialCode" />
|
||||
<wt:display field="Entity.MaterialName" />
|
||||
<wt:display field="Entity.Batch" />
|
||||
<wt:display field="Entity.Lot" />
|
||||
<wt:display field="Entity.Sn" />
|
||||
<wt:display field="Entity.Project" />
|
||||
<wt:display field="Entity.ManufactureDate" />
|
||||
<wt:display field="Entity.ExpirationDate" />
|
||||
<wt:display field="Entity.InventoryStatus" />
|
||||
<wt:display field="Entity.Qty" />
|
||||
<wt:display field="Entity.QtyCompleted" />
|
||||
<wt:display field="Entity.Unit" />
|
||||
<wt:display field="Entity.PurchasQty" />
|
||||
<wt:display field="Entity.PurchasUnits" />
|
||||
<wt:display field="Entity.Coefficient" />
|
||||
<wt:display field="Entity.Price" />
|
||||
<wt:display field="Entity.Status" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.AutoId" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.Station" />
|
||||
<wt:display field="Entity.QtyDivided" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,50 @@
|
||||
@model HHWMS.Web.ReceiptDetail2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.WarehouseId" />
|
||||
<wt:textbox field="Entity.WarehouseCode" />
|
||||
<wt:textbox field="Entity.ZoneCode" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SupplierCode" />
|
||||
<wt:textbox field="Entity.SupplierName" />
|
||||
<wt:textbox field="Entity.CPoCode" />
|
||||
<wt:textbox field="Entity.MoCode" />
|
||||
<wt:textbox field="Entity.SourceLine" />
|
||||
<wt:textbox field="Entity.ReceiptId" />
|
||||
<wt:textbox field="Entity.ReceiptCode" />
|
||||
<wt:textbox field="Entity.MaterialId" />
|
||||
<wt:textbox field="Entity.MaterialCode" />
|
||||
<wt:textbox field="Entity.MaterialName" />
|
||||
<wt:textbox field="Entity.Batch" />
|
||||
<wt:textbox field="Entity.Lot" />
|
||||
<wt:textbox field="Entity.Sn" />
|
||||
<wt:textbox field="Entity.Project" />
|
||||
<wt:datetime field="Entity.ManufactureDate" />
|
||||
<wt:datetime field="Entity.ExpirationDate" />
|
||||
<wt:textbox field="Entity.InventoryStatus" />
|
||||
<wt:textbox field="Entity.Qty" />
|
||||
<wt:textbox field="Entity.QtyCompleted" />
|
||||
<wt:textbox field="Entity.Unit" />
|
||||
<wt:textbox field="Entity.PurchasQty" />
|
||||
<wt:textbox field="Entity.PurchasUnits" />
|
||||
<wt:textbox field="Entity.Coefficient" />
|
||||
<wt:textbox field="Entity.Price" />
|
||||
<wt:textbox field="Entity.Status" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.AutoId" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:textbox field="Entity.Station" />
|
||||
<wt:textbox field="Entity.QtyDivided" />
|
||||
</wt:row>
|
||||
<wt:hidden field="Entity.ID" />
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,14 @@
|
||||
@model HHWMS.Web.ReceiptDetail2ImportVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:downloadTemplateButton vm="@Model" />
|
||||
</wt:row>
|
||||
<wt:upload field="UploadFileId" label-text="@Model.Localizer["Sys.UploadTemplate"]" upload-type="ExcelFile" />
|
||||
<wt:grid vm="ErrorListVM" use-local-data="true" hidden-checkbox="true" hidden-grid-index="true" hidden-panel="true" height="300"/>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,8 @@
|
||||
@model HHWMS.Web.ReceiptDetail2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" url="/xwms/ReceiptDetail2/Search"/>
|
||||
@@ -1,34 +1,13 @@
|
||||
@model HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs.ReceiptHeader2VM
|
||||
@model HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs.ReceiptHeader2VM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:form vm="@Model">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Two">
|
||||
<wt:textbox field="Entity.Code" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.Type" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SourcePlatform" />
|
||||
<wt:textbox field="Entity.SupplierId" />
|
||||
<wt:textbox field="Entity.SupplierCode" />
|
||||
<wt:textbox field="Entity.SupplierName" />
|
||||
<wt:textbox field="Entity.TotalQty" />
|
||||
<wt:textbox field="Entity.TotalLines" />
|
||||
<wt:textbox field="Entity.FreeScan" />
|
||||
<wt:row items-per-row="ItemsPerRowEnum.One">
|
||||
<wt:combobox field="Entity.Type" items="ReceiptTypes" />
|
||||
<wt:combobox field="Entity.UserDef5" items="Trs" />
|
||||
<wt:combobox field="Entity.UserDef2" items="Addresses"/>
|
||||
<wt:combobox field="Entity.SupplierCode" items="SupplyNames" enable-search="true" />
|
||||
<wt:textbox field="Entity.Remark" />
|
||||
<wt:textbox field="Entity.UploadStatus" />
|
||||
<wt:textbox field="Entity.Uploadremark" />
|
||||
<wt:datetime field="Entity.UploadTime" />
|
||||
<wt:datetime field="Entity.AppointmentTime" />
|
||||
<wt:textbox field="Entity.FirstStatus" />
|
||||
<wt:textbox field="Entity.LastStatus" />
|
||||
<wt:combobox field="Entity.Enable" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.Scanid" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:textbox field="Entity.Station" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
|
||||
@@ -1,8 +1,27 @@
|
||||
@model HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs.ReceiptHeader2ListVM
|
||||
@model HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs.ReceiptHeader2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three" grid-id="ReceiptHeader2">
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" url="/xwms/ReceiptHeader2/Search"/>
|
||||
<wt:grid vm="@Model" id="ReceiptHeader2" url="/xwms/ReceiptHeader2/Search" limit="7" />
|
||||
<wt:grid vm="@Model.ReceiptDetails" id="ReceiptDetail2" url="/xwms/ReceiptDetail2/Search2" height="400" />
|
||||
<script>
|
||||
var headerId = 0;
|
||||
function details(id) {
|
||||
headerId = id;
|
||||
layui.table.reload('ReceiptDetail2', { where: { "Searcher.ReceiptId": id } });
|
||||
}
|
||||
|
||||
function CreateDetail() {
|
||||
if (headerId == 0) {
|
||||
layui.layer.alert('请选择一个单据');
|
||||
}
|
||||
else {
|
||||
|
||||
ff.OpenDialog('/xwms/ReceiptDetail2/Create/' + headerId, '@Guid.NewGuid()', '添加明细', 600);
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
@@ -273,17 +273,14 @@
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: '',
|
||||
address: 'HYB',
|
||||
billno: '',
|
||||
supply: '',
|
||||
materialcode: ''
|
||||
},
|
||||
addressList: [{
|
||||
value: 'QCT',
|
||||
label: 'QCT'
|
||||
}, {
|
||||
value: 'SBD',
|
||||
label: 'SBD'
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
}],
|
||||
options: [{
|
||||
value: 'A',
|
||||
@@ -306,6 +303,8 @@
|
||||
};
|
||||
},
|
||||
mounted: function () {
|
||||
var t = localStorage.getItem("WareHouseId");
|
||||
console.log(t);
|
||||
// 获取所有单据编码
|
||||
// $.ajax({
|
||||
// type: "post",
|
||||
|
||||
@@ -113,18 +113,15 @@
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: '',
|
||||
address: 'HYB',
|
||||
billno: '',
|
||||
supply: '',
|
||||
materialcode: '',
|
||||
cgsh: ''
|
||||
},
|
||||
addressList: [{
|
||||
value: 'QCT',
|
||||
label: 'QCT'
|
||||
}, {
|
||||
value: 'SBD',
|
||||
label: 'SBD'
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
}],
|
||||
loading: false,
|
||||
tableData: [],
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.sbill" placeholder="收货单号"></el-input>
|
||||
<el-input v-model="form.sbill" placeholder="发货单号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.billno" placeholder="采购订单"></el-input>
|
||||
@@ -108,17 +108,14 @@
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: '',
|
||||
address: 'HYB',
|
||||
billno: '',
|
||||
sbill: '',
|
||||
materialcode: ''
|
||||
},
|
||||
addressList: [{
|
||||
value: 'QCT',
|
||||
label: 'QCT'
|
||||
}, {
|
||||
value: 'SBD',
|
||||
label: 'SBD'
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
}],
|
||||
options: [{
|
||||
value: 'A',
|
||||
@@ -228,9 +225,23 @@
|
||||
return;
|
||||
}
|
||||
if (_this.verify(_this.multipleSelection)) {
|
||||
_this.$message.error("请选择同一张采购单!");
|
||||
_this.$message.error("请选择同一张单据!");
|
||||
return;
|
||||
}
|
||||
//收货单要完整收完
|
||||
var SDHNUM_0 = _this.multipleSelection[0].SDHNUM_0;
|
||||
var tmp = [];
|
||||
_this.tableData.forEach(function (x) {
|
||||
if (x.SDHNUM_0 == SDHNUM_0) {
|
||||
tmp.push(x.SDHNUM_0)
|
||||
}
|
||||
});
|
||||
console.log(tmp, _this.multipleSelection)
|
||||
if (tmp.length != _this.multipleSelection.length) {
|
||||
_this.$message.error("一张收货单必须全部收完!");
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
@@ -261,7 +272,7 @@
|
||||
},
|
||||
verify(array) {
|
||||
const tmp = new Set();
|
||||
array.forEach(x => tmp.add(x.POHNUM_0));
|
||||
array.forEach(x => tmp.add(x.SDHNUM_0));
|
||||
return tmp.size > 1 ? true : false;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -101,17 +101,14 @@
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: '',
|
||||
address: 'HYB',
|
||||
billno: '',
|
||||
cust: '',
|
||||
materialcode: ''
|
||||
},
|
||||
addressList: [{
|
||||
value: 'QCT',
|
||||
label: 'QCT'
|
||||
}, {
|
||||
value: 'SBD',
|
||||
label: 'SBD'
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
}],
|
||||
loading: false,
|
||||
tableData: [],
|
||||
|
||||
Reference in new issue
Block a user