入库单新建
This commit is contained in:
1 parent
e2dead6c3f
commit
663769f80e
50 files changed
+2164
-94
No files matched your search
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
@@ -12,13 +12,41 @@ namespace HHWMS.Web.xwms.ViewModels.ReceiptHeader2VMs
|
||||
{
|
||||
public partial class ReceiptHeader2VM : BaseCRUDVM<ReceiptHeader2>
|
||||
{
|
||||
|
||||
public List<ComboSelectListItem> ReceiptTypes { get; set; }
|
||||
public List<ComboSelectListItem> Trs { get; set; }
|
||||
public List<ComboSelectListItem> Addresses { get; set; }
|
||||
public List<ComboSelectListItem> SupplyNames { get; set; }
|
||||
public ReceiptHeader2VM()
|
||||
{
|
||||
}
|
||||
|
||||
protected override void InitVM()
|
||||
{
|
||||
var CurrentCulture = Wtm.CurrentCulture;
|
||||
var dictDatas = DC.Set<SysDictData>().ToList();
|
||||
ReceiptTypes = dictDatas.Where(x => x.DictType == "ReceiptType2").Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = CurrentCulture == "zh" ? x.DictLabel : x.DictLabelUs,
|
||||
Value = x.DictValue
|
||||
}).ToList();
|
||||
Trs = dictDatas.Where(x => x.DictType == "Trs").Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = CurrentCulture == "zh" ? x.DictLabel : x.DictLabelUs,
|
||||
Value = x.DictValue
|
||||
}).ToList();
|
||||
Addresses = dictDatas.Where(x => x.DictType == "Addresses").Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = CurrentCulture == "zh" ? x.DictLabel : x.DictLabelUs,
|
||||
Value = x.DictValue
|
||||
}).ToList();
|
||||
|
||||
var dc2 = Wtm.CreateDC(cskey: "hangyong");
|
||||
SupplyNames = dc2.Set<Supplier>().Select(x => new ComboSelectListItem
|
||||
{
|
||||
Text = x.Name,
|
||||
Value = x.Code
|
||||
}).ToList();
|
||||
|
||||
}
|
||||
|
||||
public override void DoAdd()
|
||||
|
||||
Reference in new issue
Block a user