其他出
This commit is contained in:
1 parent
f15b26fcc5
commit
e9f154bd06
46 files changed
+3178
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 Inventory2Controller : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitwork;
|
||||
|
||||
public Inventory2Controller(IUnitWork unitwork)
|
||||
{
|
||||
_unitwork = unitwork;
|
||||
}
|
||||
|
||||
#region Search
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<Inventory2ListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public string Search(Inventory2Searcher searcher)
|
||||
{
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
var vm = Wtm.CreateVM<Inventory2ListVM>(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<Inventory2VM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create(Inventory2VM 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<Inventory2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Edit")]
|
||||
[HttpPost]
|
||||
[ValidateFormItemOnly]
|
||||
public ActionResult Edit(Inventory2VM 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<Inventory2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Delete")]
|
||||
[HttpPost]
|
||||
public ActionResult Delete(string id, IFormCollection nouse)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Inventory2VM>(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<Inventory2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BatchEdit
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult BatchEdit(string[] IDs)
|
||||
{
|
||||
var vm = Wtm.CreateVM<Inventory2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult DoBatchEdit(Inventory2BatchVM 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<Inventory2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchDelete")]
|
||||
public ActionResult DoBatchDelete(Inventory2BatchVM 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<Inventory2ImportVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Import")]
|
||||
public ActionResult Import(Inventory2ImportVM 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(Inventory2ListVM 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;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
[Area("xwms")]
|
||||
[ActionDescription("出库明细")]
|
||||
public partial class ShipmentDetail2Controller : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitwork;
|
||||
|
||||
public ShipmentDetail2Controller(IUnitWork unitwork)
|
||||
{
|
||||
_unitwork = unitwork;
|
||||
}
|
||||
|
||||
#region Search
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentDetail2ListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public string Search(ShipmentDetail2Searcher searcher)
|
||||
{
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
var vm = Wtm.CreateVM<ShipmentDetail2ListVM>(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(ShipmentDetail2ListVM 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<ShipmentDetail2VM>();
|
||||
vm.Entity.ShipmentId = id;
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult Create(ShipmentDetail2VM 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<ShipmentDetail2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Edit")]
|
||||
[HttpPost]
|
||||
[ValidateFormItemOnly]
|
||||
public ActionResult Edit(ShipmentDetail2VM 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<ShipmentDetail2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Delete")]
|
||||
[HttpPost]
|
||||
public ActionResult Delete(string id, IFormCollection nouse)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentDetail2VM>(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<ShipmentDetail2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BatchEdit
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult BatchEdit(string[] IDs)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentDetail2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult DoBatchEdit(ShipmentDetail2BatchVM 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<ShipmentDetail2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchDelete")]
|
||||
public ActionResult DoBatchDelete(ShipmentDetail2BatchVM 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<ShipmentDetail2ImportVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Import")]
|
||||
public ActionResult Import(ShipmentDetail2ImportVM 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(ShipmentDetail2ListVM vm)
|
||||
{
|
||||
return vm.GetExportData();
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,276 @@
|
||||
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 System.Linq;
|
||||
using System.Data;
|
||||
using HHWMS.Web.Models;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
[Area("xwms")]
|
||||
[ActionDescription("出库单")]
|
||||
public partial class ShipmentHeader2Controller : BaseController
|
||||
{
|
||||
|
||||
public ShipmentHeader2Controller()
|
||||
{
|
||||
}
|
||||
|
||||
#region Search
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentHeader2ListVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
[HttpPost]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public string Search(ShipmentHeader2Searcher searcher)
|
||||
{
|
||||
var dc = Wtm.CreateDC(cskey: "hangyong");
|
||||
Wtm.DC = dc;
|
||||
var vm = Wtm.CreateVM<ShipmentHeader2ListVM>(passInit: true);
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
||||
searcher.WarehouseId = int.Parse(warehouseId);
|
||||
vm.Searcher = searcher;
|
||||
return vm.GetJson(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
return vm.GetError();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Create
|
||||
[ActionDescription("Sys.Create")]
|
||||
public ActionResult Create()
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentHeader2VM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Create")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult Create(ShipmentHeader2VM 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Edit
|
||||
[ActionDescription("Sys.Edit")]
|
||||
public ActionResult Edit(string id)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentHeader2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Edit")]
|
||||
[HttpPost]
|
||||
[ValidateFormItemOnly]
|
||||
public ActionResult Edit(ShipmentHeader2VM 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<ShipmentHeader2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Delete")]
|
||||
[HttpPost]
|
||||
public ActionResult Delete(string id, IFormCollection nouse)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentHeader2VM>(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<ShipmentHeader2VM>(id);
|
||||
return PartialView(vm);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region BatchEdit
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult BatchEdit(string[] IDs)
|
||||
{
|
||||
var vm = Wtm.CreateVM<ShipmentHeader2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchEdit")]
|
||||
public ActionResult DoBatchEdit(ShipmentHeader2BatchVM 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<ShipmentHeader2BatchVM>(Ids: IDs);
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.BatchDelete")]
|
||||
public ActionResult DoBatchDelete(ShipmentHeader2BatchVM 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<ShipmentHeader2ImportVM>();
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
[ActionDescription("Sys.Import")]
|
||||
public ActionResult Import(ShipmentHeader2ImportVM 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(ShipmentHeader2ListVM vm)
|
||||
{
|
||||
return vm.GetExportData();
|
||||
}
|
||||
#endregion
|
||||
|
||||
[ActionDescription("Sys.CreateOut")]
|
||||
public ActionResult CreateOut()
|
||||
{
|
||||
return PartialView("CreateOut");
|
||||
}
|
||||
[ActionDescription("Sys.SearchInv")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult CreateOutBill(string tran, List<Inventory2> data)
|
||||
{
|
||||
return JsonMore(null);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.SearchInv")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult SearchInv(string materialCode, string materialName, string batch, string lot)
|
||||
{
|
||||
var warehouseId = Wtm.LoginUserInfo.Groups.FirstOrDefault().GroupCode;
|
||||
var _unitwork = new UnitWork(Wtm);
|
||||
var list = _unitwork.Find<Inventory2>(x =>
|
||||
x.WarehouseId == int.Parse(warehouseId)
|
||||
&& x.MaterialCode.Contains(materialCode)
|
||||
&& x.MaterialName.Contains(materialName)
|
||||
&& x.Batch.Contains(batch)
|
||||
&& x.Lot.Contains(lot)
|
||||
).Select(x => new
|
||||
{
|
||||
x.LocationCode,
|
||||
x.MaterialCode,
|
||||
x.MaterialName,
|
||||
x.Batch,
|
||||
x.Lot,
|
||||
x.ContainerCode,
|
||||
x.SupplierName,
|
||||
x.Qty,
|
||||
ThisQty = x.Qty
|
||||
}).ToList();
|
||||
return JsonMore(list);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 Inventory2BatchVM : BaseBatchVM<Inventory2, Inventory2_BatchEdit>
|
||||
{
|
||||
public Inventory2BatchVM()
|
||||
{
|
||||
ListVM = new Inventory2ListVM();
|
||||
LinkedVM = new Inventory2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class Inventory2_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
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 Inventory2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.WarehouseCode);
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ZoneCode);
|
||||
public ExcelPropety LocationId_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.LocationId);
|
||||
public ExcelPropety LocationCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.LocationCode);
|
||||
public ExcelPropety ContainerCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ContainerCode);
|
||||
public ExcelPropety Roadway_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Roadway);
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.SourceCode);
|
||||
public ExcelPropety SourceLine_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.SourceLine);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.CompanyCode);
|
||||
public ExcelPropety MaterialId_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.MaterialId);
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.MaterialCode);
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.MaterialName);
|
||||
public ExcelPropety ReceiptId_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ReceiptId);
|
||||
public ExcelPropety ReceiptCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ReceiptCode);
|
||||
public ExcelPropety ReceiptDetailId_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ReceiptDetailId);
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Batch);
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Lot);
|
||||
public ExcelPropety Sn_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Sn);
|
||||
public ExcelPropety Project_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Project);
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ManufactureDate);
|
||||
public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ExpirationDate);
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Status);
|
||||
public ExcelPropety ContainerStatus_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ContainerStatus);
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Qty);
|
||||
public ExcelPropety Frozen_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Frozen);
|
||||
public ExcelPropety TaskQty_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.TaskQty);
|
||||
public ExcelPropety CostPrice_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.CostPrice);
|
||||
public ExcelPropety ListPrice_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.ListPrice);
|
||||
public ExcelPropety NetPrice_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.NetPrice);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.UserDef3);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Deleted);
|
||||
public ExcelPropety TaskStatus_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.TaskStatus);
|
||||
public ExcelPropety SupplierName_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.SupplierName);
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.SupplierCode);
|
||||
public ExcelPropety QrCode_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.QrCode);
|
||||
public ExcelPropety TaskNo_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.TaskNo);
|
||||
public ExcelPropety Unit_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.Unit);
|
||||
public ExcelPropety MaterialQty_Excel = ExcelPropety.CreateProperty<Inventory2>(x => x.MaterialQty);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class Inventory2ImportVM : BaseImportVM<Inventory2TemplateVM, Inventory2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,181 @@
|
||||
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 Inventory2ListVM : BasePagedListVM<Inventory2_View, Inventory2Searcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("Inventory2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<Inventory2_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<Inventory2_View>>{
|
||||
this.MakeGridHeader(x => x.WarehouseId),
|
||||
this.MakeGridHeader(x => x.WarehouseCode),
|
||||
this.MakeGridHeader(x => x.ZoneCode),
|
||||
this.MakeGridHeader(x => x.LocationId),
|
||||
this.MakeGridHeader(x => x.LocationCode),
|
||||
this.MakeGridHeader(x => x.ContainerCode),
|
||||
this.MakeGridHeader(x => x.Roadway),
|
||||
this.MakeGridHeader(x => x.SourceCode),
|
||||
this.MakeGridHeader(x => x.SourceLine),
|
||||
this.MakeGridHeader(x => x.CompanyId),
|
||||
this.MakeGridHeader(x => x.CompanyCode),
|
||||
this.MakeGridHeader(x => x.MaterialId),
|
||||
this.MakeGridHeader(x => x.MaterialCode),
|
||||
this.MakeGridHeader(x => x.MaterialName),
|
||||
this.MakeGridHeader(x => x.ReceiptId),
|
||||
this.MakeGridHeader(x => x.ReceiptCode),
|
||||
this.MakeGridHeader(x => x.ReceiptDetailId),
|
||||
this.MakeGridHeader(x => x.Batch),
|
||||
this.MakeGridHeader(x => x.Lot),
|
||||
this.MakeGridHeader(x => x.Sn),
|
||||
this.MakeGridHeader(x => x.Project),
|
||||
this.MakeGridHeader(x => x.ManufactureDate),
|
||||
this.MakeGridHeader(x => x.ExpirationDate),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeader(x => x.ContainerStatus),
|
||||
this.MakeGridHeader(x => x.Qty),
|
||||
this.MakeGridHeader(x => x.Frozen),
|
||||
this.MakeGridHeader(x => x.TaskQty),
|
||||
this.MakeGridHeader(x => x.CostPrice),
|
||||
this.MakeGridHeader(x => x.ListPrice),
|
||||
this.MakeGridHeader(x => x.NetPrice),
|
||||
this.MakeGridHeader(x => x.UserDef1),
|
||||
this.MakeGridHeader(x => x.UserDef2),
|
||||
this.MakeGridHeader(x => x.UserDef3),
|
||||
this.MakeGridHeader(x => x.Deleted),
|
||||
this.MakeGridHeader(x => x.TaskStatus),
|
||||
this.MakeGridHeader(x => x.SupplierName),
|
||||
this.MakeGridHeader(x => x.SupplierCode),
|
||||
this.MakeGridHeader(x => x.QrCode),
|
||||
this.MakeGridHeader(x => x.TaskNo),
|
||||
this.MakeGridHeader(x => x.Unit),
|
||||
this.MakeGridHeader(x => x.MaterialQty),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<Inventory2_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<Inventory2>()
|
||||
.CheckEqual(Searcher.WarehouseId, x=>x.WarehouseId)
|
||||
.CheckContain(Searcher.WarehouseCode, x=>x.WarehouseCode)
|
||||
.CheckContain(Searcher.ZoneCode, x=>x.ZoneCode)
|
||||
.CheckEqual(Searcher.LocationId, x=>x.LocationId)
|
||||
.CheckContain(Searcher.LocationCode, x=>x.LocationCode)
|
||||
.CheckContain(Searcher.ContainerCode, x=>x.ContainerCode)
|
||||
.CheckEqual(Searcher.Roadway, x=>x.Roadway)
|
||||
.CheckContain(Searcher.SourceCode, x=>x.SourceCode)
|
||||
.CheckContain(Searcher.SourceLine, x=>x.SourceLine)
|
||||
.CheckEqual(Searcher.CompanyId, x=>x.CompanyId)
|
||||
.CheckContain(Searcher.CompanyCode, x=>x.CompanyCode)
|
||||
.CheckEqual(Searcher.MaterialId, x=>x.MaterialId)
|
||||
.CheckContain(Searcher.MaterialCode, x=>x.MaterialCode)
|
||||
.CheckContain(Searcher.MaterialName, x=>x.MaterialName)
|
||||
.CheckEqual(Searcher.ReceiptId, x=>x.ReceiptId)
|
||||
.CheckContain(Searcher.ReceiptCode, x=>x.ReceiptCode)
|
||||
.CheckEqual(Searcher.ReceiptDetailId, x=>x.ReceiptDetailId)
|
||||
.CheckContain(Searcher.Batch, x=>x.Batch)
|
||||
.CheckContain(Searcher.Lot, x=>x.Lot)
|
||||
.CheckContain(Searcher.Sn, x=>x.Sn)
|
||||
.CheckContain(Searcher.Project, x=>x.Project)
|
||||
.CheckBetween(Searcher.ManufactureDate?.GetStartTime(), Searcher.ManufactureDate?.GetEndTime(), x => x.ManufactureDate, includeMax: false)
|
||||
.CheckBetween(Searcher.ExpirationDate?.GetStartTime(), Searcher.ExpirationDate?.GetEndTime(), x => x.ExpirationDate, includeMax: false)
|
||||
.CheckContain(Searcher.Status, x=>x.Status)
|
||||
.CheckContain(Searcher.ContainerStatus, x=>x.ContainerStatus)
|
||||
.CheckEqual(Searcher.Qty, x=>x.Qty)
|
||||
.CheckEqual(Searcher.Frozen, x=>x.Frozen)
|
||||
.CheckEqual(Searcher.TaskQty, x=>x.TaskQty)
|
||||
.CheckEqual(Searcher.CostPrice, x=>x.CostPrice)
|
||||
.CheckEqual(Searcher.ListPrice, x=>x.ListPrice)
|
||||
.CheckEqual(Searcher.NetPrice, x=>x.NetPrice)
|
||||
.CheckContain(Searcher.UserDef1, x=>x.UserDef1)
|
||||
.CheckContain(Searcher.UserDef2, x=>x.UserDef2)
|
||||
.CheckContain(Searcher.UserDef3, x=>x.UserDef3)
|
||||
.CheckEqual(Searcher.Deleted, x=>x.Deleted)
|
||||
.CheckContain(Searcher.TaskStatus, x=>x.TaskStatus)
|
||||
.CheckContain(Searcher.SupplierName, x=>x.SupplierName)
|
||||
.CheckContain(Searcher.SupplierCode, x=>x.SupplierCode)
|
||||
.CheckContain(Searcher.QrCode, x=>x.QrCode)
|
||||
.CheckContain(Searcher.TaskNo, x=>x.TaskNo)
|
||||
.CheckContain(Searcher.Unit, x=>x.Unit)
|
||||
.CheckEqual(Searcher.MaterialQty, x=>x.MaterialQty)
|
||||
.Select(x => new Inventory2_View
|
||||
{
|
||||
ID = x.ID,
|
||||
WarehouseId = x.WarehouseId,
|
||||
WarehouseCode = x.WarehouseCode,
|
||||
ZoneCode = x.ZoneCode,
|
||||
LocationId = x.LocationId,
|
||||
LocationCode = x.LocationCode,
|
||||
ContainerCode = x.ContainerCode,
|
||||
Roadway = x.Roadway,
|
||||
SourceCode = x.SourceCode,
|
||||
SourceLine = x.SourceLine,
|
||||
CompanyId = x.CompanyId,
|
||||
CompanyCode = x.CompanyCode,
|
||||
MaterialId = x.MaterialId,
|
||||
MaterialCode = x.MaterialCode,
|
||||
MaterialName = x.MaterialName,
|
||||
ReceiptId = x.ReceiptId,
|
||||
ReceiptCode = x.ReceiptCode,
|
||||
ReceiptDetailId = x.ReceiptDetailId,
|
||||
Batch = x.Batch,
|
||||
Lot = x.Lot,
|
||||
Sn = x.Sn,
|
||||
Project = x.Project,
|
||||
ManufactureDate = x.ManufactureDate,
|
||||
ExpirationDate = x.ExpirationDate,
|
||||
Status = x.Status,
|
||||
ContainerStatus = x.ContainerStatus,
|
||||
Qty = x.Qty,
|
||||
Frozen = x.Frozen,
|
||||
TaskQty = x.TaskQty,
|
||||
CostPrice = x.CostPrice,
|
||||
ListPrice = x.ListPrice,
|
||||
NetPrice = x.NetPrice,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
Deleted = x.Deleted,
|
||||
TaskStatus = x.TaskStatus,
|
||||
SupplierName = x.SupplierName,
|
||||
SupplierCode = x.SupplierCode,
|
||||
QrCode = x.QrCode,
|
||||
TaskNo = x.TaskNo,
|
||||
Unit = x.Unit,
|
||||
MaterialQty = x.MaterialQty,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class Inventory2_View : Inventory2{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
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 Inventory2Searcher : BaseSearcher
|
||||
{
|
||||
public Int32? WarehouseId { get; set; }
|
||||
public String WarehouseCode { get; set; }
|
||||
public String ZoneCode { get; set; }
|
||||
public Int32? LocationId { get; set; }
|
||||
public String LocationCode { get; set; }
|
||||
public String ContainerCode { get; set; }
|
||||
public Int32? Roadway { get; set; }
|
||||
public String SourceCode { get; set; }
|
||||
public String SourceLine { get; set; }
|
||||
public Int32? CompanyId { get; set; }
|
||||
public String CompanyCode { get; set; }
|
||||
public Int32? MaterialId { get; set; }
|
||||
public String MaterialCode { get; set; }
|
||||
public String MaterialName { get; set; }
|
||||
public Int32? ReceiptId { get; set; }
|
||||
public String ReceiptCode { get; set; }
|
||||
public Int32? ReceiptDetailId { 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 Status { get; set; }
|
||||
public String ContainerStatus { get; set; }
|
||||
public Decimal? Qty { get; set; }
|
||||
public Int32? Frozen { get; set; }
|
||||
public Decimal? TaskQty { get; set; }
|
||||
public Decimal? CostPrice { get; set; }
|
||||
public Decimal? ListPrice { get; set; }
|
||||
public Decimal? NetPrice { get; set; }
|
||||
public String UserDef1 { get; set; }
|
||||
public String UserDef2 { get; set; }
|
||||
public String UserDef3 { get; set; }
|
||||
public Boolean? Deleted { get; set; }
|
||||
public String TaskStatus { get; set; }
|
||||
public String SupplierName { get; set; }
|
||||
public String SupplierCode { get; set; }
|
||||
public String QrCode { get; set; }
|
||||
public String TaskNo { get; set; }
|
||||
public String Unit { get; set; }
|
||||
public Decimal? MaterialQty { get; set; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
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 Inventory2VM : BaseCRUDVM<Inventory2>
|
||||
{
|
||||
public Inventory2ListVM InventoryList { get; set; }
|
||||
|
||||
public Inventory2VM()
|
||||
{
|
||||
}
|
||||
|
||||
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 ShipmentDetail2BatchVM : BaseBatchVM<ShipmentDetail2, ShipmentDetail2_BatchEdit>
|
||||
{
|
||||
public ShipmentDetail2BatchVM()
|
||||
{
|
||||
ListVM = new ShipmentDetail2ListVM();
|
||||
LinkedVM = new ShipmentDetail2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentDetail2_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 ShipmentDetail2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.WarehouseCode);
|
||||
public ExcelPropety ZoneCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ZoneCode);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.CompanyCode);
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SourceCode);
|
||||
public ExcelPropety SupplierCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SupplierCode);
|
||||
public ExcelPropety SupplierName_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SupplierName);
|
||||
public ExcelPropety CPoCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.CPoCode);
|
||||
public ExcelPropety MoCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MoCode);
|
||||
public ExcelPropety SourceLine_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.SourceLine);
|
||||
public ExcelPropety ShipmentId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ShipmentId);
|
||||
public ExcelPropety ShipmentCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ShipmentCode);
|
||||
public ExcelPropety MaterialId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MaterialId);
|
||||
public ExcelPropety MaterialCode_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MaterialCode);
|
||||
public ExcelPropety MaterialName_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.MaterialName);
|
||||
public ExcelPropety Batch_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Batch);
|
||||
public ExcelPropety Lot_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Lot);
|
||||
public ExcelPropety Sn_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Sn);
|
||||
public ExcelPropety Project_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Project);
|
||||
public ExcelPropety ManufactureDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ManufactureDate);
|
||||
public ExcelPropety ExpirationDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.ExpirationDate);
|
||||
public ExcelPropety AgingDate_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.AgingDate);
|
||||
public ExcelPropety InventoryStatus_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.InventoryStatus);
|
||||
public ExcelPropety Qty_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Qty);
|
||||
public ExcelPropety QtyCompleted_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.QtyCompleted);
|
||||
public ExcelPropety Unit_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Unit);
|
||||
public ExcelPropety Price_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Price);
|
||||
public ExcelPropety Status_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Status);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.Deleted);
|
||||
public ExcelPropety AutoId_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.AutoId);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.UserDef3);
|
||||
public ExcelPropety QtyDivided_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.QtyDivided);
|
||||
public ExcelPropety RequireAddr_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.RequireAddr);
|
||||
public ExcelPropety PurchasQty_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.PurchasQty);
|
||||
public ExcelPropety PurchasUnits_Excel = ExcelPropety.CreateProperty<ShipmentDetail2>(x => x.PurchasUnits);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentDetail2ImportVM : BaseImportVM<ShipmentDetail2TemplateVM, ShipmentDetail2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
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 ShipmentDetail2ListVM : BasePagedListVM<ShipmentDetail2_View, ShipmentDetail2Searcher>
|
||||
{
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
//this.MakeStandardAction("ShipmentDetail2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentDetail2_View>> InitGridHeader()
|
||||
{
|
||||
return new List<GridColumn<ShipmentDetail2_View>>{
|
||||
this.MakeGridHeader(x => x.ShipmentCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SourceCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.SourceLine),
|
||||
this.MakeGridHeader(x => x.SupplierCode).SetHide(),
|
||||
this.MakeGridHeader(x => x.SupplierName).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.MaterialCode).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.MaterialName).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.Batch).SetWidth(150),
|
||||
this.MakeGridHeader(x => x.Lot),
|
||||
this.MakeGridHeader(x => x.Project),
|
||||
this.MakeGridHeader(x => x.InventoryStatus),
|
||||
this.MakeGridHeader(x => x.Qty),
|
||||
this.MakeGridHeader(x => x.Unit),
|
||||
this.MakeGridHeader(x => x.Price),
|
||||
this.MakeGridHeader(x => x.Status),
|
||||
this.MakeGridHeader(x => x.UserDef1).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef2).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef3).SetHide(),
|
||||
this.MakeGridHeader(x => x.PurchasQty).SetHide(),
|
||||
this.MakeGridHeader(x => x.PurchasUnits).SetHide(),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentDetail2_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentDetail2>()
|
||||
.Where(x => x.ShipmentId == Searcher.ShipmentId)
|
||||
.Select(x => new ShipmentDetail2_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,
|
||||
ShipmentId = x.ShipmentId,
|
||||
ShipmentCode = x.ShipmentCode,
|
||||
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,
|
||||
AgingDate = x.AgingDate,
|
||||
InventoryStatus = x.InventoryStatus,
|
||||
Qty = x.Qty,
|
||||
QtyCompleted = x.QtyCompleted,
|
||||
Unit = x.Unit,
|
||||
Price = x.Price,
|
||||
Status = x.Status,
|
||||
Deleted = x.Deleted,
|
||||
AutoId = x.AutoId,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
QtyDivided = x.QtyDivided,
|
||||
RequireAddr = x.RequireAddr,
|
||||
PurchasQty = x.PurchasQty,
|
||||
PurchasUnits = x.PurchasUnits,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentDetail2_View : ShipmentDetail2{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
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 ShipmentDetail2Searcher : 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? ShipmentId { get; set; }
|
||||
public String ShipmentCode { 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 DateRange AgingDate { get; set; }
|
||||
public String InventoryStatus { get; set; }
|
||||
public Decimal? Qty { get; set; }
|
||||
public Decimal? QtyCompleted { get; set; }
|
||||
public String Unit { 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 Decimal? QtyDivided { get; set; }
|
||||
public String RequireAddr { get; set; }
|
||||
public Decimal? PurchasQty { get; set; }
|
||||
public String PurchasUnits { 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 ShipmentDetail2VM : BaseCRUDVM<ShipmentDetail2>
|
||||
{
|
||||
|
||||
public ShipmentDetail2VM()
|
||||
{
|
||||
}
|
||||
|
||||
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 ShipmentHeader2BatchVM : BaseBatchVM<ShipmentHeader2, ShipmentHeader2_BatchEdit>
|
||||
{
|
||||
public ShipmentHeader2BatchVM()
|
||||
{
|
||||
ListVM = new ShipmentHeader2ListVM();
|
||||
LinkedVM = new ShipmentHeader2_BatchEdit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Class to define batch edit fields
|
||||
/// </summary>
|
||||
public class ShipmentHeader2_BatchEdit : BaseVM
|
||||
{
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
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 ShipmentHeader2TemplateVM : BaseTemplateVM
|
||||
{
|
||||
public ExcelPropety WarehouseId_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.WarehouseId);
|
||||
public ExcelPropety WarehouseCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.WarehouseCode);
|
||||
public ExcelPropety Code_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Code);
|
||||
public ExcelPropety CompanyId_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.CompanyId);
|
||||
public ExcelPropety CompanyCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.CompanyCode);
|
||||
public ExcelPropety SourceCode_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.SourceCode);
|
||||
public ExcelPropety SourcePlatform_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.SourcePlatform);
|
||||
public ExcelPropety Type_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Type);
|
||||
public ExcelPropety ShipTo_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.ShipTo);
|
||||
public ExcelPropety Priority_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Priority);
|
||||
public ExcelPropety Station_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Station);
|
||||
public ExcelPropety TotalQty_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.TotalQty);
|
||||
public ExcelPropety TotalLines_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.TotalLines);
|
||||
public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Remark);
|
||||
public ExcelPropety Uploadremark_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Uploadremark);
|
||||
public ExcelPropety UploadTime_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UploadTime);
|
||||
public ExcelPropety AppointmentTime_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.AppointmentTime);
|
||||
public ExcelPropety FirstStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.FirstStatus);
|
||||
public ExcelPropety LastStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.LastStatus);
|
||||
public ExcelPropety UploadStatus_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UploadStatus);
|
||||
public ExcelPropety Enable_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Enable);
|
||||
public ExcelPropety Deleted_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.Deleted);
|
||||
public ExcelPropety UserDef1_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef1);
|
||||
public ExcelPropety UserDef2_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef2);
|
||||
public ExcelPropety UserDef3_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef3);
|
||||
public ExcelPropety UserDef4_Excel = ExcelPropety.CreateProperty<ShipmentHeader2>(x => x.UserDef4);
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentHeader2ImportVM : BaseImportVM<ShipmentHeader2TemplateVM, ShipmentHeader2>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
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 ShipmentHeader2ListVM : BasePagedListVM<ShipmentHeader2_View, ShipmentHeader2Searcher>
|
||||
{
|
||||
public ShipmentDetail2ListVM ShipmentDetails { get; set; } = new ShipmentDetail2ListVM();
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
ShipmentDetails.CopyContext(this);
|
||||
}
|
||||
protected override List<GridAction> InitGridAction()
|
||||
{
|
||||
return new List<GridAction>
|
||||
{
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Create, Localizer["Sys.Create"],"xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Edit, Localizer["Sys.Edit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Delete, Localizer["Sys.Delete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Details, Localizer["Sys.Details"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.BatchEdit, Localizer["Sys.BatchEdit"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.BatchDelete, Localizer["Sys.BatchDelete"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.Import, Localizer["Sys.Import"], "xwms", dialogWidth: 800),
|
||||
this.MakeStandardAction("ShipmentHeader2", GridActionStandardTypesEnum.ExportExcel, Localizer["Sys.Export"], "xwms"),
|
||||
this.MakeAction("ShipmentHeader2","CreateOut",Localizer["Sys.Out"],Localizer["Sys.Out"],GridActionParameterTypesEnum.NoId,"xwms")
|
||||
.SetMax(),
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
protected override IEnumerable<IGridColumn<ShipmentHeader2_View>> InitGridHeader()
|
||||
{
|
||||
InitVM();
|
||||
return new List<GridColumn<ShipmentHeader2_View>>{
|
||||
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.SourceCode),
|
||||
this.MakeGridHeader(x => x.Type),
|
||||
this.MakeGridHeader(x => x.ShipTo),
|
||||
this.MakeGridHeader(x => x.TotalQty),
|
||||
this.MakeGridHeader(x => x.TotalLines),
|
||||
this.MakeGridHeader(x => x.Remark),
|
||||
this.MakeGridHeader(x => x.Uploadremark).SetHide(),
|
||||
this.MakeGridHeader(x => x.UploadTime).SetHide(),
|
||||
this.MakeGridHeader(x => x.FirstStatus).SetHide(),
|
||||
this.MakeGridHeader(x => x.LastStatus).SetHide(),
|
||||
this.MakeGridHeader(x => x.UploadStatus).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef1).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef2).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef3).SetHide(),
|
||||
this.MakeGridHeader(x => x.UserDef4).SetHide(),
|
||||
this.MakeGridHeaderAction(width: 200)
|
||||
};
|
||||
}
|
||||
|
||||
public override IOrderedQueryable<ShipmentHeader2_View> GetSearchQuery()
|
||||
{
|
||||
var query = DC.Set<ShipmentHeader2>()
|
||||
.CheckEqual(Searcher.WarehouseId, x => x.WarehouseId)
|
||||
.CheckContain(Searcher.Code, x=>x.Code)
|
||||
.CheckContain(Searcher.SourceCode, x=>x.SourceCode)
|
||||
.CheckContain(Searcher.Type, x=>x.Type)
|
||||
.CheckContain(Searcher.ShipTo, x=>x.ShipTo)
|
||||
.CheckEqual(Searcher.FirstStatus, x=>x.FirstStatus)
|
||||
.CheckEqual(Searcher.LastStatus, x=>x.LastStatus)
|
||||
.CheckEqual(Searcher.UploadStatus, x=>x.UploadStatus)
|
||||
.CheckContain(Searcher.UserDef1, x=>x.UserDef1)
|
||||
.CheckContain(Searcher.UserDef2, x=>x.UserDef2)
|
||||
.CheckContain(Searcher.UserDef3, x=>x.UserDef3)
|
||||
.CheckContain(Searcher.UserDef4, x=>x.UserDef4)
|
||||
.Select(x => new ShipmentHeader2_View
|
||||
{
|
||||
ID = x.ID,
|
||||
WarehouseId = x.WarehouseId,
|
||||
WarehouseCode = x.WarehouseCode,
|
||||
Code = x.Code,
|
||||
CompanyId = x.CompanyId,
|
||||
CompanyCode = x.CompanyCode,
|
||||
SourceCode = x.SourceCode,
|
||||
SourcePlatform = x.SourcePlatform,
|
||||
Type = x.Type,
|
||||
ShipTo = x.ShipTo,
|
||||
Priority = x.Priority,
|
||||
Station = x.Station,
|
||||
TotalQty = x.TotalQty,
|
||||
TotalLines = x.TotalLines,
|
||||
Remark = x.Remark,
|
||||
Uploadremark = x.Uploadremark,
|
||||
UploadTime = x.UploadTime,
|
||||
AppointmentTime = x.AppointmentTime,
|
||||
FirstStatus = x.FirstStatus,
|
||||
LastStatus = x.LastStatus,
|
||||
UploadStatus = x.UploadStatus,
|
||||
Enable = x.Enable,
|
||||
Deleted = x.Deleted,
|
||||
UserDef1 = x.UserDef1,
|
||||
UserDef2 = x.UserDef2,
|
||||
UserDef3 = x.UserDef3,
|
||||
UserDef4 = x.UserDef4,
|
||||
})
|
||||
.OrderBy(x => x.ID);
|
||||
return query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class ShipmentHeader2_View : ShipmentHeader2{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
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 ShipmentHeader2Searcher : BaseSearcher
|
||||
{
|
||||
public Int32? WarehouseId { get; set; }
|
||||
public String WarehouseCode { get; set; }
|
||||
public String Code { get; set; }
|
||||
public Int32? CompanyId { get; set; }
|
||||
public String CompanyCode { get; set; }
|
||||
public String SourceCode { get; set; }
|
||||
public String SourcePlatform { get; set; }
|
||||
public String Type { get; set; }
|
||||
public String ShipTo { get; set; }
|
||||
public Int32? Priority { get; set; }
|
||||
public String Station { get; set; }
|
||||
public Decimal? TotalQty { get; set; }
|
||||
public Int32? TotalLines { get; set; }
|
||||
public String Remark { get; set; }
|
||||
public String Uploadremark { get; set; }
|
||||
public DateRange UploadTime { get; set; }
|
||||
public DateRange AppointmentTime { get; set; }
|
||||
public Int32? FirstStatus { get; set; }
|
||||
public Int32? LastStatus { get; set; }
|
||||
public Int32? UploadStatus { 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; }
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
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 ShipmentHeader2VM : BaseCRUDVM<ShipmentHeader2>
|
||||
{
|
||||
public ShipmentHeader2VM()
|
||||
{
|
||||
}
|
||||
|
||||
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,12 @@
|
||||
@model HHWMS.Web.Inventory2BatchVM
|
||||
@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.Inventory2BatchVM
|
||||
@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,53 @@
|
||||
@model HHWMS.Web.Inventory2VM
|
||||
@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.LocationId" />
|
||||
<wt:textbox field="Entity.LocationCode" />
|
||||
<wt:textbox field="Entity.ContainerCode" />
|
||||
<wt:textbox field="Entity.Roadway" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SourceLine" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.MaterialId" />
|
||||
<wt:textbox field="Entity.MaterialCode" />
|
||||
<wt:textbox field="Entity.MaterialName" />
|
||||
<wt:textbox field="Entity.ReceiptId" />
|
||||
<wt:textbox field="Entity.ReceiptCode" />
|
||||
<wt:textbox field="Entity.ReceiptDetailId" />
|
||||
<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.Status" />
|
||||
<wt:textbox field="Entity.ContainerStatus" />
|
||||
<wt:textbox field="Entity.Qty" />
|
||||
<wt:textbox field="Entity.Frozen" />
|
||||
<wt:textbox field="Entity.TaskQty" />
|
||||
<wt:textbox field="Entity.CostPrice" />
|
||||
<wt:textbox field="Entity.ListPrice" />
|
||||
<wt:textbox field="Entity.NetPrice" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.TaskStatus" />
|
||||
<wt:textbox field="Entity.SupplierName" />
|
||||
<wt:textbox field="Entity.SupplierCode" />
|
||||
<wt:textbox field="Entity.QrCode" />
|
||||
<wt:textbox field="Entity.TaskNo" />
|
||||
<wt:textbox field="Entity.Unit" />
|
||||
<wt:textbox field="Entity.MaterialQty" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,55 @@
|
||||
@model HHWMS.Web.Inventory2VM
|
||||
@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.LocationId" />
|
||||
<wt:display field="Entity.LocationCode" />
|
||||
<wt:display field="Entity.ContainerCode" />
|
||||
<wt:display field="Entity.Roadway" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SourceLine" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.MaterialId" />
|
||||
<wt:display field="Entity.MaterialCode" />
|
||||
<wt:display field="Entity.MaterialName" />
|
||||
<wt:display field="Entity.ReceiptId" />
|
||||
<wt:display field="Entity.ReceiptCode" />
|
||||
<wt:display field="Entity.ReceiptDetailId" />
|
||||
<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.Status" />
|
||||
<wt:display field="Entity.ContainerStatus" />
|
||||
<wt:display field="Entity.Qty" />
|
||||
<wt:display field="Entity.Frozen" />
|
||||
<wt:display field="Entity.TaskQty" />
|
||||
<wt:display field="Entity.CostPrice" />
|
||||
<wt:display field="Entity.ListPrice" />
|
||||
<wt:display field="Entity.NetPrice" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.TaskStatus" />
|
||||
<wt:display field="Entity.SupplierName" />
|
||||
<wt:display field="Entity.SupplierCode" />
|
||||
<wt:display field="Entity.QrCode" />
|
||||
<wt:display field="Entity.TaskNo" />
|
||||
<wt:display field="Entity.Unit" />
|
||||
<wt:display field="Entity.MaterialQty" />
|
||||
</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,52 @@
|
||||
@model HHWMS.Web.Inventory2VM
|
||||
@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.LocationId" />
|
||||
<wt:display field="Entity.LocationCode" />
|
||||
<wt:display field="Entity.ContainerCode" />
|
||||
<wt:display field="Entity.Roadway" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SourceLine" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.MaterialId" />
|
||||
<wt:display field="Entity.MaterialCode" />
|
||||
<wt:display field="Entity.MaterialName" />
|
||||
<wt:display field="Entity.ReceiptId" />
|
||||
<wt:display field="Entity.ReceiptCode" />
|
||||
<wt:display field="Entity.ReceiptDetailId" />
|
||||
<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.Status" />
|
||||
<wt:display field="Entity.ContainerStatus" />
|
||||
<wt:display field="Entity.Qty" />
|
||||
<wt:display field="Entity.Frozen" />
|
||||
<wt:display field="Entity.TaskQty" />
|
||||
<wt:display field="Entity.CostPrice" />
|
||||
<wt:display field="Entity.ListPrice" />
|
||||
<wt:display field="Entity.NetPrice" />
|
||||
<wt:display field="Entity.UserDef1" />
|
||||
<wt:display field="Entity.UserDef2" />
|
||||
<wt:display field="Entity.UserDef3" />
|
||||
<wt:display field="Entity.Deleted" />
|
||||
<wt:display field="Entity.TaskStatus" />
|
||||
<wt:display field="Entity.SupplierName" />
|
||||
<wt:display field="Entity.SupplierCode" />
|
||||
<wt:display field="Entity.QrCode" />
|
||||
<wt:display field="Entity.TaskNo" />
|
||||
<wt:display field="Entity.Unit" />
|
||||
<wt:display field="Entity.MaterialQty" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,54 @@
|
||||
@model HHWMS.Web.Inventory2VM
|
||||
@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.LocationId" />
|
||||
<wt:textbox field="Entity.LocationCode" />
|
||||
<wt:textbox field="Entity.ContainerCode" />
|
||||
<wt:textbox field="Entity.Roadway" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SourceLine" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.MaterialId" />
|
||||
<wt:textbox field="Entity.MaterialCode" />
|
||||
<wt:textbox field="Entity.MaterialName" />
|
||||
<wt:textbox field="Entity.ReceiptId" />
|
||||
<wt:textbox field="Entity.ReceiptCode" />
|
||||
<wt:textbox field="Entity.ReceiptDetailId" />
|
||||
<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.Status" />
|
||||
<wt:textbox field="Entity.ContainerStatus" />
|
||||
<wt:textbox field="Entity.Qty" />
|
||||
<wt:textbox field="Entity.Frozen" />
|
||||
<wt:textbox field="Entity.TaskQty" />
|
||||
<wt:textbox field="Entity.CostPrice" />
|
||||
<wt:textbox field="Entity.ListPrice" />
|
||||
<wt:textbox field="Entity.NetPrice" />
|
||||
<wt:textbox field="Entity.UserDef1" />
|
||||
<wt:textbox field="Entity.UserDef2" />
|
||||
<wt:textbox field="Entity.UserDef3" />
|
||||
<wt:combobox field="Entity.Deleted" />
|
||||
<wt:textbox field="Entity.TaskStatus" />
|
||||
<wt:textbox field="Entity.SupplierName" />
|
||||
<wt:textbox field="Entity.SupplierCode" />
|
||||
<wt:textbox field="Entity.QrCode" />
|
||||
<wt:textbox field="Entity.TaskNo" />
|
||||
<wt:textbox field="Entity.Unit" />
|
||||
<wt:textbox field="Entity.MaterialQty" />
|
||||
</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.Inventory2ImportVM
|
||||
@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,50 @@
|
||||
@model HHWMS.Web.Inventory2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
<wt:textbox field="Searcher.WarehouseId" />
|
||||
<wt:textbox field="Searcher.WarehouseCode" />
|
||||
<wt:textbox field="Searcher.ZoneCode" />
|
||||
<wt:textbox field="Searcher.LocationId" />
|
||||
<wt:textbox field="Searcher.LocationCode" />
|
||||
<wt:textbox field="Searcher.ContainerCode" />
|
||||
<wt:textbox field="Searcher.Roadway" />
|
||||
<wt:textbox field="Searcher.SourceCode" />
|
||||
<wt:textbox field="Searcher.SourceLine" />
|
||||
<wt:textbox field="Searcher.CompanyId" />
|
||||
<wt:textbox field="Searcher.CompanyCode" />
|
||||
<wt:textbox field="Searcher.MaterialId" />
|
||||
<wt:textbox field="Searcher.MaterialCode" />
|
||||
<wt:textbox field="Searcher.MaterialName" />
|
||||
<wt:textbox field="Searcher.ReceiptId" />
|
||||
<wt:textbox field="Searcher.ReceiptCode" />
|
||||
<wt:textbox field="Searcher.ReceiptDetailId" />
|
||||
<wt:textbox field="Searcher.Batch" />
|
||||
<wt:textbox field="Searcher.Lot" />
|
||||
<wt:textbox field="Searcher.Sn" />
|
||||
<wt:textbox field="Searcher.Project" />
|
||||
<wt:datetime field="Searcher.ManufactureDate" range="true" />
|
||||
<wt:datetime field="Searcher.ExpirationDate" range="true" />
|
||||
<wt:textbox field="Searcher.Status" />
|
||||
<wt:textbox field="Searcher.ContainerStatus" />
|
||||
<wt:textbox field="Searcher.Qty" />
|
||||
<wt:textbox field="Searcher.Frozen" />
|
||||
<wt:textbox field="Searcher.TaskQty" />
|
||||
<wt:textbox field="Searcher.CostPrice" />
|
||||
<wt:textbox field="Searcher.ListPrice" />
|
||||
<wt:textbox field="Searcher.NetPrice" />
|
||||
<wt:textbox field="Searcher.UserDef1" />
|
||||
<wt:textbox field="Searcher.UserDef2" />
|
||||
<wt:textbox field="Searcher.UserDef3" />
|
||||
<wt:combobox field="Searcher.Deleted" empty-text="@Localizer["Sys.All"]" />
|
||||
<wt:textbox field="Searcher.TaskStatus" />
|
||||
<wt:textbox field="Searcher.SupplierName" />
|
||||
<wt:textbox field="Searcher.SupplierCode" />
|
||||
<wt:textbox field="Searcher.QrCode" />
|
||||
<wt:textbox field="Searcher.TaskNo" />
|
||||
<wt:textbox field="Searcher.Unit" />
|
||||
<wt:textbox field="Searcher.MaterialQty" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" url="/xwms/Inventory2/Search"/>
|
||||
@@ -0,0 +1,12 @@
|
||||
@model HHWMS.Web.ShipmentDetail2BatchVM
|
||||
@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.ShipmentDetail2BatchVM
|
||||
@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,49 @@
|
||||
@model HHWMS.Web.ShipmentDetail2VM
|
||||
@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.ShipmentId" />
|
||||
<wt:textbox field="Entity.ShipmentCode" />
|
||||
<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:datetime field="Entity.AgingDate" />
|
||||
<wt:textbox field="Entity.InventoryStatus" />
|
||||
<wt:textbox field="Entity.Qty" />
|
||||
<wt:textbox field="Entity.QtyCompleted" />
|
||||
<wt:textbox field="Entity.Unit" />
|
||||
<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.QtyDivided" />
|
||||
<wt:textbox field="Entity.RequireAddr" />
|
||||
<wt:textbox field="Entity.PurchasQty" />
|
||||
<wt:textbox field="Entity.PurchasUnits" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,51 @@
|
||||
@model HHWMS.Web.ShipmentDetail2VM
|
||||
@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.ShipmentId" />
|
||||
<wt:display field="Entity.ShipmentCode" />
|
||||
<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.AgingDate" />
|
||||
<wt:display field="Entity.InventoryStatus" />
|
||||
<wt:display field="Entity.Qty" />
|
||||
<wt:display field="Entity.QtyCompleted" />
|
||||
<wt:display field="Entity.Unit" />
|
||||
<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.QtyDivided" />
|
||||
<wt:display field="Entity.RequireAddr" />
|
||||
<wt:display field="Entity.PurchasQty" />
|
||||
<wt:display field="Entity.PurchasUnits" />
|
||||
</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.ShipmentDetail2VM
|
||||
@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.ShipmentId" />
|
||||
<wt:display field="Entity.ShipmentCode" />
|
||||
<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.AgingDate" />
|
||||
<wt:display field="Entity.InventoryStatus" />
|
||||
<wt:display field="Entity.Qty" />
|
||||
<wt:display field="Entity.QtyCompleted" />
|
||||
<wt:display field="Entity.Unit" />
|
||||
<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.QtyDivided" />
|
||||
<wt:display field="Entity.RequireAddr" />
|
||||
<wt:display field="Entity.PurchasQty" />
|
||||
<wt:display field="Entity.PurchasUnits" />
|
||||
</wt:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,50 @@
|
||||
@model HHWMS.Web.ShipmentDetail2VM
|
||||
@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.ShipmentId" />
|
||||
<wt:textbox field="Entity.ShipmentCode" />
|
||||
<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:datetime field="Entity.AgingDate" />
|
||||
<wt:textbox field="Entity.InventoryStatus" />
|
||||
<wt:textbox field="Entity.Qty" />
|
||||
<wt:textbox field="Entity.QtyCompleted" />
|
||||
<wt:textbox field="Entity.Unit" />
|
||||
<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.QtyDivided" />
|
||||
<wt:textbox field="Entity.RequireAddr" />
|
||||
<wt:textbox field="Entity.PurchasQty" />
|
||||
<wt:textbox field="Entity.PurchasUnits" />
|
||||
</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.ShipmentDetail2ImportVM
|
||||
@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,46 @@
|
||||
@model HHWMS.Web.ShipmentDetail2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
<wt:textbox field="Searcher.WarehouseId" />
|
||||
<wt:textbox field="Searcher.WarehouseCode" />
|
||||
<wt:textbox field="Searcher.ZoneCode" />
|
||||
<wt:textbox field="Searcher.CompanyId" />
|
||||
<wt:textbox field="Searcher.CompanyCode" />
|
||||
<wt:textbox field="Searcher.SourceCode" />
|
||||
<wt:textbox field="Searcher.SupplierCode" />
|
||||
<wt:textbox field="Searcher.SupplierName" />
|
||||
<wt:textbox field="Searcher.CPoCode" />
|
||||
<wt:textbox field="Searcher.MoCode" />
|
||||
<wt:textbox field="Searcher.SourceLine" />
|
||||
<wt:textbox field="Searcher.ShipmentId" />
|
||||
<wt:textbox field="Searcher.ShipmentCode" />
|
||||
<wt:textbox field="Searcher.MaterialId" />
|
||||
<wt:textbox field="Searcher.MaterialCode" />
|
||||
<wt:textbox field="Searcher.MaterialName" />
|
||||
<wt:textbox field="Searcher.Batch" />
|
||||
<wt:textbox field="Searcher.Lot" />
|
||||
<wt:textbox field="Searcher.Sn" />
|
||||
<wt:textbox field="Searcher.Project" />
|
||||
<wt:datetime field="Searcher.ManufactureDate" range="true" />
|
||||
<wt:datetime field="Searcher.ExpirationDate" range="true" />
|
||||
<wt:datetime field="Searcher.AgingDate" range="true" />
|
||||
<wt:textbox field="Searcher.InventoryStatus" />
|
||||
<wt:textbox field="Searcher.Qty" />
|
||||
<wt:textbox field="Searcher.QtyCompleted" />
|
||||
<wt:textbox field="Searcher.Unit" />
|
||||
<wt:textbox field="Searcher.Price" />
|
||||
<wt:textbox field="Searcher.Status" />
|
||||
<wt:combobox field="Searcher.Deleted" empty-text="@Localizer["Sys.All"]" />
|
||||
<wt:textbox field="Searcher.AutoId" />
|
||||
<wt:textbox field="Searcher.UserDef1" />
|
||||
<wt:textbox field="Searcher.UserDef2" />
|
||||
<wt:textbox field="Searcher.UserDef3" />
|
||||
<wt:textbox field="Searcher.QtyDivided" />
|
||||
<wt:textbox field="Searcher.RequireAddr" />
|
||||
<wt:textbox field="Searcher.PurchasQty" />
|
||||
<wt:textbox field="Searcher.PurchasUnits" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" url="/xwms/ShipmentDetail2/Search"/>
|
||||
@@ -0,0 +1,12 @@
|
||||
@model HHWMS.Web.ShipmentHeader2BatchVM
|
||||
@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.ShipmentHeader2BatchVM
|
||||
@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,37 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@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.Code" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SourcePlatform" />
|
||||
<wt:textbox field="Entity.Type" />
|
||||
<wt:textbox field="Entity.ShipTo" />
|
||||
<wt:textbox field="Entity.Priority" />
|
||||
<wt:textbox field="Entity.Station" />
|
||||
<wt:textbox field="Entity.TotalQty" />
|
||||
<wt:textbox field="Entity.TotalLines" />
|
||||
<wt:textbox field="Entity.Remark" />
|
||||
<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:textbox field="Entity.UploadStatus" />
|
||||
<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:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:submitbutton />
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,50 @@
|
||||
@model HHWMS.Web.Inventory2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three">
|
||||
<wt:textbox field="Searcher.WarehouseId" />
|
||||
<wt:textbox field="Searcher.WarehouseCode" />
|
||||
<wt:textbox field="Searcher.ZoneCode" />
|
||||
<wt:textbox field="Searcher.LocationId" />
|
||||
<wt:textbox field="Searcher.LocationCode" />
|
||||
<wt:textbox field="Searcher.ContainerCode" />
|
||||
<wt:textbox field="Searcher.Roadway" />
|
||||
<wt:textbox field="Searcher.SourceCode" />
|
||||
<wt:textbox field="Searcher.SourceLine" />
|
||||
<wt:textbox field="Searcher.CompanyId" />
|
||||
<wt:textbox field="Searcher.CompanyCode" />
|
||||
<wt:textbox field="Searcher.MaterialId" />
|
||||
<wt:textbox field="Searcher.MaterialCode" />
|
||||
<wt:textbox field="Searcher.MaterialName" />
|
||||
<wt:textbox field="Searcher.ReceiptId" />
|
||||
<wt:textbox field="Searcher.ReceiptCode" />
|
||||
<wt:textbox field="Searcher.ReceiptDetailId" />
|
||||
<wt:textbox field="Searcher.Batch" />
|
||||
<wt:textbox field="Searcher.Lot" />
|
||||
<wt:textbox field="Searcher.Sn" />
|
||||
<wt:textbox field="Searcher.Project" />
|
||||
<wt:datetime field="Searcher.ManufactureDate" range="true" />
|
||||
<wt:datetime field="Searcher.ExpirationDate" range="true" />
|
||||
<wt:textbox field="Searcher.Status" />
|
||||
<wt:textbox field="Searcher.ContainerStatus" />
|
||||
<wt:textbox field="Searcher.Qty" />
|
||||
<wt:textbox field="Searcher.Frozen" />
|
||||
<wt:textbox field="Searcher.TaskQty" />
|
||||
<wt:textbox field="Searcher.CostPrice" />
|
||||
<wt:textbox field="Searcher.ListPrice" />
|
||||
<wt:textbox field="Searcher.NetPrice" />
|
||||
<wt:textbox field="Searcher.UserDef1" />
|
||||
<wt:textbox field="Searcher.UserDef2" />
|
||||
<wt:textbox field="Searcher.UserDef3" />
|
||||
<wt:combobox field="Searcher.Deleted" empty-text="@Localizer["Sys.All"]" />
|
||||
<wt:textbox field="Searcher.TaskStatus" />
|
||||
<wt:textbox field="Searcher.SupplierName" />
|
||||
<wt:textbox field="Searcher.SupplierCode" />
|
||||
<wt:textbox field="Searcher.QrCode" />
|
||||
<wt:textbox field="Searcher.TaskNo" />
|
||||
<wt:textbox field="Searcher.Unit" />
|
||||
<wt:textbox field="Searcher.MaterialQty" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" url="/xwms/Inventory2/Search"/>
|
||||
@@ -0,0 +1,334 @@
|
||||
|
||||
<style lang='scss'>
|
||||
.item{
|
||||
.item__input{
|
||||
display: none;
|
||||
width: 80px;
|
||||
/* 调整elementUI中样式 如果不需要调整请忽略 */
|
||||
.el-input__inner{
|
||||
height: 35px!important;
|
||||
}
|
||||
/* 调整elementUI中样式 如果不需要调整请忽略 */
|
||||
.el-input__suffix{
|
||||
i{
|
||||
font-size: 12px !important;
|
||||
line-height: 26px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.item__txt{
|
||||
box-sizing: border-box;
|
||||
line-height: 24px;
|
||||
padding: 0 9px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<el-row id="CreateOut">
|
||||
<el-form :inline="true" :model="form">
|
||||
<el-form-item>
|
||||
<el-select v-model="form.address" :popper-append-to-body="false" placeholder="地点">
|
||||
<el-option v-for="item in addressList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="form.tran" :popper-append-to-body="false" placeholder="交易组">
|
||||
<el-option v-for="item in tranList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="form.type" :popper-append-to-body="false" placeholder="任务类型">
|
||||
<el-option v-for="item in typeList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-plus" @@click="create">创建单据</el-button>
|
||||
</el-form-item>
|
||||
<el-divider></el-divider>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.MaterialCode" placeholder="物料编码"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.MaterialName" placeholder="物料名称"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.Batch" placeholder="批次"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model="form.Lot" placeholder="规格"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button icon="el-icon-search" @@click="search" circle></el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
|
||||
height="600" stripe border
|
||||
style="width: 100%"
|
||||
ref="tableData"
|
||||
v-loading="loading"
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@cell-mouse-leave="handleCellLeave"
|
||||
@@selection-change="handleSelectionChange">
|
||||
<el-table-column type="index"
|
||||
width="50">
|
||||
</el-table-column>
|
||||
<el-table-column type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column label="库位" width="150" align="center" prop="LocationCode"></el-table-column>
|
||||
<el-table-column label="容器" width="150" align="center" prop="ContainerCode"></el-table-column>
|
||||
<el-table-column label="物料编码" width="150" align="center" prop="MaterialCode" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="物料名称" width="180" align="center" prop="MaterialName"></el-table-column>
|
||||
<el-table-column label="批次" width="150" align="center" prop="Batch"></el-table-column>
|
||||
<el-table-column label="规格" width="200" align="center" prop="Lot"></el-table-column>
|
||||
<el-table-column label="供应商名称" width="200" align="center" prop="SupplierName"></el-table-column>
|
||||
<el-table-column label="数量" width="150" align="center" prop="Qty" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="出库数量" width="200" align="center" prop="ThisQty">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-input class="item__input" v-model="scope.row.THISQTYUOM" placeholder="请输入内容"></el-input>
|
||||
<div class="item__txt">{{scope.row.ThisQty}}</div>
|
||||
</div>
|
||||
</el-table-column>
|
||||
@*<el-table-column label="库存状态" width="100" align="center" prop="UserDef1">
|
||||
<div class="item" slot-scope="scope">
|
||||
<el-select class="item__input" v-model="scope.row.UserDef1" placeholder="请选择">
|
||||
<el-option v-for="item in options"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value">
|
||||
</el-option>
|
||||
</el-select>
|
||||
<div class="item__txt">{{foodLabel(scope.row.UserDef1)}}</div>
|
||||
</div>
|
||||
</el-table-column>
|
||||
*@
|
||||
</el-table>
|
||||
|
||||
<el-pagination align='center'
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
</el-pagination>
|
||||
</el-row>
|
||||
|
||||
<script>
|
||||
var app = new Vue({
|
||||
el: "#CreateOut",
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
address: 'HYB',
|
||||
tran:'',
|
||||
type: 'QTC',
|
||||
MaterialCode: '',
|
||||
MaterialName: '',
|
||||
Batch:'',
|
||||
Lot:'',
|
||||
},
|
||||
addressList: [{
|
||||
value: 'HYB',
|
||||
label: 'HYB'
|
||||
}],
|
||||
options: [{
|
||||
value: 'A',
|
||||
label: 'A'
|
||||
}, {
|
||||
value: 'Q',
|
||||
label: 'Q'
|
||||
}, {
|
||||
value: 'R',
|
||||
label: 'R'
|
||||
}],
|
||||
tranList: [{
|
||||
value: 'BS02',
|
||||
label: '盘亏'
|
||||
}, {
|
||||
value: 'BS03',
|
||||
label: '存货调整出'
|
||||
}, {
|
||||
value: 'BS04',
|
||||
label: '制造部门存货出'
|
||||
}, {
|
||||
value: 'BS05',
|
||||
label: '售后部门出'
|
||||
}, {
|
||||
value: 'BS06',
|
||||
label: '营业部门存货出'
|
||||
}, {
|
||||
value: 'BS07',
|
||||
label: '研发存货出'
|
||||
}, {
|
||||
value: 'BS08',
|
||||
label: '维修材料出'
|
||||
}],
|
||||
typeList: [{
|
||||
value: 'QTC',
|
||||
label: '其他出库'
|
||||
}],
|
||||
loading: false,
|
||||
tableData: [],
|
||||
currentPage: 1, // 当前页码
|
||||
total: 20, // 总条数
|
||||
pageSize: 20, // 每页的数据条数
|
||||
// 需要编辑的属性
|
||||
editProp: ['ThisQty', 'UserDef1'],
|
||||
multipleSelection: []
|
||||
};
|
||||
},
|
||||
mounted: function () {
|
||||
// var t = localStorage.getItem("WareHouseId");
|
||||
// console.log(t);
|
||||
// 获取所有单据编码
|
||||
// $.ajax({
|
||||
// type: "post",
|
||||
// dataType: "json",
|
||||
// data: {},
|
||||
// url: "/xwms/XWMSPOH/Search",
|
||||
// success: function (json) {
|
||||
// app.tableData = json.Data;
|
||||
// },
|
||||
// error: function (json) {
|
||||
// alert("加载失败");
|
||||
// }
|
||||
// });
|
||||
},
|
||||
computed: {
|
||||
foodLabel() {
|
||||
return (val) => {
|
||||
return this.options.find(o => o.value === val).label
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
/** 鼠标移入cell */
|
||||
handleCellEnter(row, column, cell, event) {
|
||||
const property = column.property
|
||||
if (this.editProp.includes(property)) {
|
||||
cell.querySelector('.item__input').style.display = 'block'
|
||||
cell.querySelector('.item__txt').style.display = 'none'
|
||||
}
|
||||
},
|
||||
/** 鼠标移出cell */
|
||||
handleCellLeave(row, column, cell, event) {
|
||||
const property = column.property
|
||||
if (this.editProp.includes(property)) {
|
||||
cell.querySelector('.item__input').style.display = 'none'
|
||||
cell.querySelector('.item__txt').style.display = 'block'
|
||||
}
|
||||
if (property == "THISQTYSTU") {
|
||||
// 库存单位除以系数
|
||||
if (row.THISQTYSTU > row.QTYSTU_0) {
|
||||
row.THISQTYSTU = row.QTYSTU_0;
|
||||
this.$message.error("不能超出单据数量");
|
||||
}
|
||||
else {
|
||||
row.THISQTYUOM = row.THISQTYSTU / row.UOMSTUCOE_0;
|
||||
}
|
||||
}
|
||||
if (property == "THISQTYUOM") {
|
||||
// 采购单位 乘 系数
|
||||
if (row.THISQTYUOM > row.QTYUOM_0) {
|
||||
row.THISQTYUOM = row.QTYUOM_0;
|
||||
this.$message.error("不能超出单据数量");
|
||||
}
|
||||
else {
|
||||
row.THISQTYSTU = row.THISQTYUOM * row.UOMSTUCOE_0;
|
||||
}
|
||||
}
|
||||
},
|
||||
//每页条数改变时触发 选择一页显示多少行
|
||||
handleSizeChange(val) {
|
||||
this.currentPage = 1;
|
||||
this.pageSize = val;
|
||||
},
|
||||
//当前页改变时触发 跳转其他页
|
||||
handleCurrentChange(val) {
|
||||
this.currentPage = val;
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.multipleSelection = val;
|
||||
},
|
||||
search() {
|
||||
var _this = this;
|
||||
_this.loading = true;
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: {
|
||||
materialCode: _this.form.MaterialCode,
|
||||
materialName: _this.form.MaterialName,
|
||||
batch: _this.form.Batch,
|
||||
lot: _this.form.Lot
|
||||
},
|
||||
url: "/xwms/ShipmentHeader2/SearchInv",
|
||||
success: function (json) {
|
||||
_this.tableData = json.Data;
|
||||
_this.loading = false;
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message.error("加载失败");
|
||||
_this.loading = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
create() {
|
||||
var _this = this;
|
||||
layer.confirm('确定创建出库单据?', {
|
||||
btn: ['确定', '取消']
|
||||
}, function () {
|
||||
//加校验
|
||||
if (_this.multipleSelection.length == 0) {
|
||||
layer.alert("至少选择一条数据!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
return;
|
||||
}
|
||||
if (_this.form.tran == "") {
|
||||
layer.alert("交易组必选!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: {
|
||||
tran: _this.form.tran,
|
||||
data: _this.multipleSelection
|
||||
},
|
||||
url: "/xwms/ShipmentHeader2/CreateOutBill",
|
||||
success: function (json) {
|
||||
if (json.Code == 200) {
|
||||
layer.msg("创建成功", { icon: 6, shade: 0.4, time: 1500 });
|
||||
_this.$refs.tableData.clearSelection();
|
||||
}
|
||||
else {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
verify(array) {
|
||||
const tmp = new Set();
|
||||
array.forEach(x => tmp.add(x.POHNUM_0));
|
||||
return tmp.size > 1 ? true : false;
|
||||
}
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1,39 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@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.Code" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SourcePlatform" />
|
||||
<wt:display field="Entity.Type" />
|
||||
<wt:display field="Entity.ShipTo" />
|
||||
<wt:display field="Entity.Priority" />
|
||||
<wt:display field="Entity.Station" />
|
||||
<wt:display field="Entity.TotalQty" />
|
||||
<wt:display field="Entity.TotalLines" />
|
||||
<wt:display field="Entity.Remark" />
|
||||
<wt:display field="Entity.Uploadremark" />
|
||||
<wt:display field="Entity.UploadTime" />
|
||||
<wt:display field="Entity.AppointmentTime" />
|
||||
<wt:display field="Entity.FirstStatus" />
|
||||
<wt:display field="Entity.LastStatus" />
|
||||
<wt:display field="Entity.UploadStatus" />
|
||||
<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: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,36 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@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.Code" />
|
||||
<wt:display field="Entity.CompanyId" />
|
||||
<wt:display field="Entity.CompanyCode" />
|
||||
<wt:display field="Entity.SourceCode" />
|
||||
<wt:display field="Entity.SourcePlatform" />
|
||||
<wt:display field="Entity.Type" />
|
||||
<wt:display field="Entity.ShipTo" />
|
||||
<wt:display field="Entity.Priority" />
|
||||
<wt:display field="Entity.Station" />
|
||||
<wt:display field="Entity.TotalQty" />
|
||||
<wt:display field="Entity.TotalLines" />
|
||||
<wt:display field="Entity.Remark" />
|
||||
<wt:display field="Entity.Uploadremark" />
|
||||
<wt:display field="Entity.UploadTime" />
|
||||
<wt:display field="Entity.AppointmentTime" />
|
||||
<wt:display field="Entity.FirstStatus" />
|
||||
<wt:display field="Entity.LastStatus" />
|
||||
<wt:display field="Entity.UploadStatus" />
|
||||
<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:row>
|
||||
<wt:row align="AlignEnum.Right">
|
||||
<wt:closebutton />
|
||||
</wt:row>
|
||||
</wt:form>
|
||||
@@ -0,0 +1,38 @@
|
||||
@model HHWMS.Web.ShipmentHeader2VM
|
||||
@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.Code" />
|
||||
<wt:textbox field="Entity.CompanyId" />
|
||||
<wt:textbox field="Entity.CompanyCode" />
|
||||
<wt:textbox field="Entity.SourceCode" />
|
||||
<wt:textbox field="Entity.SourcePlatform" />
|
||||
<wt:textbox field="Entity.Type" />
|
||||
<wt:textbox field="Entity.ShipTo" />
|
||||
<wt:textbox field="Entity.Priority" />
|
||||
<wt:textbox field="Entity.Station" />
|
||||
<wt:textbox field="Entity.TotalQty" />
|
||||
<wt:textbox field="Entity.TotalLines" />
|
||||
<wt:textbox field="Entity.Remark" />
|
||||
<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:textbox field="Entity.UploadStatus" />
|
||||
<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: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.ShipmentHeader2ImportVM
|
||||
@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,31 @@
|
||||
@model HHWMS.Web.ShipmentHeader2ListVM
|
||||
@inject IStringLocalizer<Program> Localizer;
|
||||
|
||||
<wt:searchpanel vm="@Model" reset-btn="true">
|
||||
<wt:row items-per-row="ItemsPerRowEnum.Three" grid-id="ShipmentHeader2">
|
||||
<wt:textbox field="Searcher.Code" />
|
||||
<wt:textbox field="Searcher.SourceCode" />
|
||||
<wt:textbox field="Searcher.Type" />
|
||||
<wt:textbox field="Searcher.ShipTo" />
|
||||
</wt:row>
|
||||
</wt:searchpanel>
|
||||
<wt:grid vm="@Model" id="ShipmentHeader2" url="/xwms/ShipmentHeader2/Search" limit="6" />
|
||||
<wt:grid vm="@Model.ShipmentDetails" id="ShipmentDetail2" url="/xwms/ShipmentDetail2/Search2" height="400"
|
||||
hidden-checkbox need-show-filter="false" need-show-print="false" />
|
||||
<script>
|
||||
var headerId = 0;
|
||||
function details(id) {
|
||||
headerId = id;
|
||||
layui.table.reload('ShipmentDetail2', { where: { "Searcher.ShipmentId": id } });
|
||||
}
|
||||
|
||||
function CreateDetail() {
|
||||
if (headerId == 0) {
|
||||
layui.layer.alert('请选择一个单据');
|
||||
}
|
||||
else {
|
||||
|
||||
ff.OpenDialog('/xwms/ShipmentDetail2/Create/' + headerId, '@Guid.NewGuid()', '添加明细', 600);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -63,6 +63,7 @@ namespace HHWMS.Web
|
||||
|
||||
public DbSet<Supplier> Suppliers { get; set; }
|
||||
public DbSet<Material2> Material2s { get; set; }
|
||||
public DbSet<Inventory2> Inventory2s { get; set; }
|
||||
public override async Task<bool> DataInit(object allModules, bool IsSpa)
|
||||
{
|
||||
var state = await base.DataInit(allModules, IsSpa);
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商
|
||||
/// </summary>
|
||||
[Table("inventory")]
|
||||
public partial class Inventory2 : BasePoco
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public new int ID { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库Id
|
||||
/// </summary>
|
||||
[Column("warehouseId")]
|
||||
public int? WarehouseId { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库编码
|
||||
/// </summary>
|
||||
[Column("warehouseCode")]
|
||||
public string WarehouseCode { get; set; }
|
||||
/// <summary>
|
||||
/// 库区编码
|
||||
/// </summary>
|
||||
[Column("zoneCode")]
|
||||
public string ZoneCode { get; set; }
|
||||
/// <summary>
|
||||
/// 库位id
|
||||
/// </summary>
|
||||
[Column("locationId")]
|
||||
public int? LocationId { get; set; }
|
||||
/// <summary>
|
||||
/// 库位编号
|
||||
/// </summary>
|
||||
[Column("locationCode")]
|
||||
public string LocationCode { get; set; }
|
||||
/// <summary>
|
||||
/// 容器编码
|
||||
/// </summary>
|
||||
[Column("containerCode")]
|
||||
public string ContainerCode { get; set; }
|
||||
/// <summary>
|
||||
/// 巷道
|
||||
/// </summary>
|
||||
[Column("roadway")]
|
||||
public int? Roadway { get; set; }
|
||||
/// <summary>
|
||||
/// 上游系统单号
|
||||
/// </summary>
|
||||
[Column("sourceCode")]
|
||||
public string SourceCode { get; set; }
|
||||
/// <summary>
|
||||
/// 上游系统行号
|
||||
/// </summary>
|
||||
[Column("sourceLine")]
|
||||
public string SourceLine { get; set; }
|
||||
/// <summary>
|
||||
/// 公司id
|
||||
/// </summary>
|
||||
[Column("companyId")]
|
||||
public int? CompanyId { get; set; }
|
||||
/// <summary>
|
||||
/// 公司编码
|
||||
/// </summary>
|
||||
[Column("companyCode")]
|
||||
public string CompanyCode { get; set; }
|
||||
/// <summary>
|
||||
/// 物料Id
|
||||
/// </summary>
|
||||
[Column("materialId")]
|
||||
public int? MaterialId { get; set; }
|
||||
/// <summary>
|
||||
/// 物料编码
|
||||
/// </summary>
|
||||
[Column("materialCode")]
|
||||
public string MaterialCode { get; set; }
|
||||
/// <summary>
|
||||
/// 物料名称
|
||||
/// </summary>
|
||||
[Column("materialname")]
|
||||
public string MaterialName { get; set; }
|
||||
/// <summary>
|
||||
/// 入库单id
|
||||
/// </summary>
|
||||
[Column("receiptId")]
|
||||
public int? ReceiptId { get; set; }
|
||||
/// <summary>
|
||||
/// 入库单编码
|
||||
/// </summary>
|
||||
[Column("receiptCode")]
|
||||
public string ReceiptCode { get; set; }
|
||||
/// <summary>
|
||||
/// 入库单明细id
|
||||
/// </summary>
|
||||
[Column("receiptDetailId")]
|
||||
public int? ReceiptDetailId { get; set; }
|
||||
/// <summary>
|
||||
/// 批次
|
||||
/// </summary>
|
||||
[Column("batch")]
|
||||
public string Batch { get; set; }
|
||||
/// <summary>
|
||||
/// 批号:规格 -- 卷料:厚度
|
||||
/// </summary>
|
||||
[Column("lot")]
|
||||
public string Lot { get; set; }
|
||||
/// <summary>
|
||||
/// SN序号:铁损值
|
||||
/// </summary>
|
||||
[Column("sn")]
|
||||
public string Sn { get; set; }
|
||||
/// <summary>
|
||||
/// 项目号(铁芯库:柱片类型)
|
||||
/// </summary>
|
||||
[Column("project")]
|
||||
public string Project { get; set; }
|
||||
/// <summary>
|
||||
/// 生产日期
|
||||
/// </summary>
|
||||
[Column("manufactureDate")]
|
||||
public System.DateTime? ManufactureDate { get; set; }
|
||||
/// <summary>
|
||||
/// 失效日期
|
||||
/// </summary>
|
||||
[Column("expirationDate")]
|
||||
public System.DateTime? ExpirationDate { get; set; }
|
||||
/// <summary>
|
||||
/// 物料类型:0:存货编码;1:批次;2:序列号
|
||||
/// </summary>
|
||||
[Column("status")]
|
||||
public string Status { get; set; }
|
||||
/// <summary>
|
||||
/// 容器状态
|
||||
/// </summary>
|
||||
[Column("containerStatus")]
|
||||
public string ContainerStatus { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[Column("qty")]
|
||||
public decimal? Qty { get; set; }
|
||||
[NotMapped]
|
||||
public decimal? ThisQty { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[Column("frozen")]
|
||||
public int? Frozen { get; set; }
|
||||
/// <summary>
|
||||
/// 执行预定数量
|
||||
/// </summary>
|
||||
[Column("taskQty")]
|
||||
public decimal? TaskQty { get; set; }
|
||||
/// <summary>
|
||||
/// 成本
|
||||
/// </summary>
|
||||
[Column("costPrice")]
|
||||
public decimal? CostPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 标价
|
||||
/// </summary>
|
||||
[Column("listPrice")]
|
||||
public decimal? ListPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 净价
|
||||
/// </summary>
|
||||
[Column("netPrice")]
|
||||
public decimal? NetPrice { get; set; }
|
||||
/// <summary>
|
||||
/// 自定义字段1(卷料库:宽)(铁芯库:生产订单)
|
||||
/// </summary>
|
||||
[Column("userDef1")]
|
||||
public string UserDef1 { get; set; }
|
||||
/// <summary>
|
||||
/// 自定义字段2(卷料库:外径)(铁芯库:横剪/纵剪)
|
||||
/// </summary>
|
||||
[Column("userDef2")]
|
||||
public string UserDef2 { get; set; }
|
||||
/// <summary>
|
||||
/// 自定义字段3(卷料库:库存位置)
|
||||
/// </summary>
|
||||
[Column("userDef3")]
|
||||
public string UserDef3 { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[Column("deleted")]
|
||||
|
||||
public bool? Deleted { get; set; }
|
||||
/// <summary>
|
||||
/// 任务状态
|
||||
/// </summary>
|
||||
[Column("taskStatus")]
|
||||
public string TaskStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商名称
|
||||
/// </summary>
|
||||
[Column("supplierName")]
|
||||
public string SupplierName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商编号//厂商
|
||||
/// </summary>
|
||||
[Column("supplierCode")]
|
||||
public string SupplierCode { get; set; }
|
||||
/// <summary>
|
||||
/// 二维码
|
||||
/// </summary>
|
||||
[Column("qrcode")]
|
||||
public string QrCode { get; set; }
|
||||
/// <summary>
|
||||
/// 任务编号
|
||||
/// </summary>
|
||||
[Column("taskno")]
|
||||
public string TaskNo { get; set; }
|
||||
/// <summary>
|
||||
/// 单位
|
||||
/// </summary>
|
||||
[Column("unit")]
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 托盘内物料数量
|
||||
/// </summary>
|
||||
[Column("materialqty")]
|
||||
public decimal? MaterialQty { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user