铁芯打印
入库单明细拆分,打印拆分 出库对账(仓库建使用)
This commit is contained in:
1 parent
d19f62e48b
commit
cec65caa32
11 files changed
+170
-57
No files matched your search
@@ -8,6 +8,7 @@ using HHWMS.Web;
|
||||
using HHWMS.Web.Models;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
|
||||
namespace HHWMS.Web.Controllers
|
||||
{
|
||||
@@ -268,6 +269,13 @@ namespace HHWMS.Web.Controllers
|
||||
return PartialView(vm);
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Prints")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult Prints(string ids)
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.SearchDetail")]
|
||||
[FixConnection(CsName = "hangyong")]
|
||||
public ActionResult SearchDetail(int id)
|
||||
@@ -301,10 +309,26 @@ namespace HHWMS.Web.Controllers
|
||||
var ll = new List<ReceiptDetail2>();
|
||||
foreach (var item in data.Skip(1))
|
||||
{
|
||||
var re = receipt;
|
||||
re.ID = null;
|
||||
re.Qty = item.Qty;
|
||||
ll.Add(re);
|
||||
var detail = new ReceiptDetail2();
|
||||
detail.WarehouseId = receipt.WarehouseId;
|
||||
detail.ReceiptId = receipt.ReceiptId;
|
||||
detail.ReceiptCode = receipt.ReceiptCode;
|
||||
detail.SourceCode = receipt.SourceCode;
|
||||
detail.SourceLine = receipt.SourceLine;
|
||||
detail.MaterialCode = receipt.MaterialCode;
|
||||
detail.MaterialName = receipt.MaterialName;
|
||||
detail.Lot = receipt.Lot;
|
||||
detail.SupplierCode = receipt.SupplierCode;
|
||||
detail.SupplierName = receipt.SupplierName;
|
||||
detail.Qty = item.Qty;
|
||||
detail.Unit = receipt.Unit;
|
||||
detail.PurchasQty = receipt.PurchasQty;
|
||||
detail.PurchasUnits = receipt.PurchasUnits;
|
||||
detail.InventoryStatus = receipt.InventoryStatus;
|
||||
detail.Batch = receipt.Batch;
|
||||
detail.Status = 0;
|
||||
detail.CreateTime = DateTime.Now;
|
||||
ll.Add(detail);
|
||||
}
|
||||
_unit.BatchAdd(ll.ToArray());
|
||||
tran.Commit();
|
||||
|
||||
Reference in new issue
Block a user