修正项目结构

This commit is contained in:
admin
2021-01-15 09:26:17 +08:00
parent 62bd133757
commit a2fd7eca0b
44 changed files with 230 additions and 73 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
public class Bin
{
private string _BinCode;
private string _BinName;
private string _IsPosGrade;
private bool _bPosEnd;
private string _WarehouseCode;
private int _VolumeLimit;
private int _WeightLimit;
private string _cMemo;
private string _cBarCode;
public string BinCode { get => _BinCode; set => _BinCode = value; }
public string BinName { get => _BinName; set => _BinName = value; }
public string IsPosGrade { get => _IsPosGrade; set => _IsPosGrade = value; }
public bool BPosEnd { get => _bPosEnd; set => _bPosEnd = value; }
public string WarehouseCode { get => _WarehouseCode; set => _WarehouseCode = value; }
public int VolumeLimit { get => _VolumeLimit; set => _VolumeLimit = value; }
public int WeightLimit { get => _WeightLimit; set => _WeightLimit = value; }
public string CMemo { get => _cMemo; set => _cMemo = value; }
public string CBarCode { get => _cBarCode; set => _cBarCode = value; }
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
public class Customer
{
private string customerCode;
private string customerName;
private string postalCode;
private string address;
private string contract;
private string contractPhone;
public string CustomerCode { get => customerCode; set => customerCode = value; }
public string PostalCode { get => postalCode; set => postalCode = value; }
public string Address { get => address; set => address = value; }
public string Contract { get => contract; set => contract = value; }
public string ContractPhone { get => contractPhone; set => contractPhone = value; }
public string CustomerName { get => customerName; set => customerName = value; }
}
}

View File

@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
public class Materiel
{
private string materielCode;
private string materielName;
private decimal length;
private decimal wide;
private decimal height;
private int volume;
private int weight;
private double unitPrice;
private string unitCode;
private string specsModel;
private int maxStock;
private int minStock;
private int aql;
private int invccode;
public string MaterielCode { get => materielCode; set => materielCode = value; }
public string MaterielName { get => materielName; set => materielName = value; }
public decimal Length { get => length; set => length = value; }
public decimal Wide { get => wide; set => wide = value; }
public decimal Height { get => height; set => height = value; }
public int Volume { get => volume; set => volume = value; }
public int Weight { get => weight; set => weight = value; }
public double UnitPrice { get => unitPrice; set => unitPrice = value; }
public string UnitCode { get => unitCode; set => unitCode = value; }
public string SpecsModel { get => specsModel; set => specsModel = value; }
public int MaxStock { get => maxStock; set => maxStock = value; }
public int MinStock { get => minStock; set => minStock = value; }
public int Aql { get => aql; set => aql = value; }
public int Invccode { get => invccode; set => invccode = value; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
public class MaterielType
{
private string materielTypeCode;
private string materielTypeName;
public string MaterielTypeCode { get => materielTypeCode; set => materielTypeCode = value; }
public string MaterielTypeName { get => materielTypeName; set => materielTypeName = value; }
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
public class Supplier
{
private string supplierCode;
private string supplierName;
private string postalCode;
private string address;
private string contract;
public string SupplierCode { get => supplierCode; set => supplierCode = value; }
public string SupplierName { get => supplierName; set => supplierName = value; }
public string PostalCode { get => postalCode; set => postalCode = value; }
public string Address { get => address; set => address = value; }
public string Contract { get => contract; set => contract = value; }
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
public class Unit
{
private string unitCode;
private string unitName;
private bool mainUnit;
private string groupCode;
public string UnitCode { get => unitCode; set => unitCode = value; }
public string UnitName { get => unitName; set => unitName = value; }
public bool MainUnit { get => mainUnit; set => mainUnit = value; }
public string GroupCode { get => groupCode; set => groupCode = value; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model
{
public class Warehouse
{
private string _WarehouseCode;
private string _WarehouseName;
public string WarehouseCode { get => _WarehouseCode; set => _WarehouseCode = value; }
public string WarehouseName { get => _WarehouseName; set => _WarehouseName = value; }
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.MOM
{
public class MoAllocate
{
private int id;
private string invCode;
private int qty;
private int modid;
public int Id { get => id; set => id = value; }
public string InvCode { get => invCode; set => invCode = value; }
public int Qty { get => qty; set => qty = value; }
public int ModId { get => modid; set => modid = value; }
}
}

View File

@@ -0,0 +1,20 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.MOM
{
public class MomDetail
{
private int id;
private double qty;
private int modid;
[JsonIgnore]
public ICollection<MoAllocate> moAllocates { get; set; } = new List<MoAllocate>();
public int Id { get => id; set => id = value; }
public double Qty { get => qty; set => qty = value; }
public int Modid { get => modid; set => modid = value; }
}
}

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace NX.ERP.Model.MOM
{
public class MomOrder
{
private int id;
private string code;
/// <summary>
///
/// </summary>
public ICollection<MomDetail> Details { get; set; } = new List<MomDetail>();
public int Id { get => id; set => id = value; }
public string Code { get => code; set => code = value; }
public ICollection<MoAllocate> Allocates { get; set; } = new List<MoAllocate>();
}
}

View File

@@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Purchase
{
/// <summary>
/// 到货单
/// </summary>
public class Arrival
{
private int id;
private string arrivalCode;
private DateTime _date;
private string supplierCode;
private ICollection<ArrivalDetail> arrivalDetails = new List<ArrivalDetail>();
public int Id { get => id; set => id = value; }
public string ArrivalCode { get => arrivalCode; set => arrivalCode = value; }
public DateTime Date { get => _date; set => _date = value; }
public ICollection<ArrivalDetail> ArrivalDetails { get => arrivalDetails; set => arrivalDetails = value; }
public string SupplierCode { get => supplierCode; set => supplierCode = value; }
public double ExchRate { get; set; }
public string ExchName { get; set; }
public string VenCode { get; set; }
public double TaxRate { get; set; }
public string PTCode { get; set; }
public string BusType { get; set; }
}
}

View File

@@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Purchase
{
/// <summary>
/// 到货明细
/// </summary>
public class ArrivalDetail
{
private int id;
private string materielCode;
public int Id { get => id; set => id = value; }
public int ArrivalID { get => arrivalID; set => arrivalID = value; }
public string MaterielCode { get => materielCode; set => materielCode = value; }
public string BatchNo { get => batchNo; set => batchNo = value; }
public string UnitCode { get => unitCode; set => unitCode = value; }
public double Quantity { get => quantity; set => quantity = value; }
/// <summary>
/// 审批状态2 说明已经审核过了
/// </summary>
public int Iverifystateex { get => iverifystateex; set => iverifystateex = value; }
private int arrivalID;
private string batchNo;
private string unitCode;
private double quantity;
private int iverifystateex;
public int posId { get; set; }
public string OrderCode { get; set; }
public int PoId { get; set; }
public double oricost { get; set; }
public double oritaxcost { get; set; }
public double orimoney { get; set; }
public double oritaxprice { get; set; }
public double orisum { get; set; }
public double cost { get; set; }
// b.ioricost as oricost,b.ioritaxcost as oritaxcost ,b.iorimoney as orimoney,b.oritaxprice as oritaxprice,b.iorisum as orisum,
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Sale
{
public class DispatchList
{
public int ID { get; set; }
public string Code { get; set; }
public DateTime Date { get; set; }
public string CoCode { get; set; }
public string CusCode { get; set; }
public ICollection<DispatchListDetail> Details { get; set; } = new List<DispatchListDetail>();
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Sale
{
public class DispatchListDetail
{
private int id;
private string invCode;
private double quantity;
private string invName;
public int Id { get => id; set => id = value; }
public string InvCode { get => invCode; set => invCode = value; }
public double Quantity { get => quantity; set => quantity = value; }
public string InvName { get => invName; set => invName = value; }
}
}

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class MaterielStoreOut
{
private int id;
private string code;
private string whcode;
private string proorderid;
private DateTime date;
private string sourceCode;
private string source;
private IList<MaterielStoreOutDetail> details;
public int Id { get => id; set => id = value; }
public string Code { get => code; set => code = value; }
public string Whcode { get => whcode; set => whcode = value; }
public string Proorderid { get => proorderid; set => proorderid = value; }
public string SourceCode { get => sourceCode; set => sourceCode = value; }
public string Source { get => source; set => source = value; }
public DateTime Date { get => date; set => date = value; }
public IList<MaterielStoreOutDetail> Details { get => details; set => details = value; }
}
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Request
{
public class MaterielStoreOutDetail
{
private double quantity;
private string binCode;
private string cinvcode;
public int sorceDetailId { get; set; }
public double Quantity { get => quantity; set => quantity = value; }
public string Position { get => binCode; set => binCode = value; }
public string Cinvcode { get => cinvcode; set => cinvcode = value; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class OtherStoreInOut
{
public string Code { get; set; }
public DateTime Date { get; set; }
public string WhCode { get; set; }
public IList<OtherStoreInOutDetail> details = new List<OtherStoreInOutDetail>();
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class OtherStoreInOutDetail
{
public string InvCode { get; set; }
public double Quantity { get; set; }
public string Position { get; set; }
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class OtherStoreOut
{
public ICollection<OtherStoreOutDetail> details = new List<OtherStoreOutDetail>();
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class OtherStoreOutDetail
{
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class ProductStoreIn
{
public DateTime Date { get; set; }
public string Source { get; set; }
public string SourceCode { get; set; }
public string WhCode { get; set; }
public IList<ProductStoreInDetail> Details { get; set; } = new List<ProductStoreInDetail>();
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class ProductStoreInDetail
{
public string InvCode { get; set; }
public int Quantity { get; set; }
public string Batch { get; set; }
public string Position { get; set; }
public int SourceDetailId { get; set; }
}
}

View File

@@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
/// <summary>
/// 采购入库单
/// </summary>
public class PuStoreIn
{
private int id;
private string code;
private DateTime date;
private string depcode;
private string whcode;
private IList<PuStoreInDetail> puStoreInDetails = new List<PuStoreInDetail>();
private string _puCode;
private string maker;
private string personCode;
public IList<PuStoreInDetail> Details { get => puStoreInDetails; set => puStoreInDetails = value; }
public int Id { get => id; set => id = value; }
public string Code { get => code; set => code = value; }
public DateTime Date { get => date; set => date = value; }
public string Depcode { get => depcode; set => depcode = value; }
public string Whcode { get => whcode; set => whcode = value; }
public string PuCode { get => _puCode; set => _puCode = value; }
public string Maker { get => maker; set => maker = value; }
public string PersonCode { get => personCode; set => personCode = value; }
public string RdCode { get; set; }
public string SupplierName { get; set; }
public string SupplierCode { get; set; }
/// <summary>
/// 源单类别
/// </summary>
public string Source { get; set; }
/// <summary>
/// 源单编号
/// </summary>
public string SourceCode { get; set; }
}
}

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class PuStoreInDetail
{
private int id;
private int puStoreInId;
private string invcode;
private string unit;
private double quantity;
public string Batch { get; set; }
public int Id { get => id; set => id = value; }
public int PuStoreInId { get => puStoreInId; set => puStoreInId = value; }
public string Invcode { get => invcode; set => invcode = value; }
public string Unit { get => unit; set => unit = value; }
public double Quantity { get => quantity; set => quantity = value; }
public string Position { get; set; }
public int SorceDetailId { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class SaleStoreOut
{
public string Code { get; set; }
public string Source { get; set; }
public string SourceCode { get; set; }
public DateTime Date { get; set; }
public string WhCode { get; set; }
public IList<SaleStoreOutDetail> Details { get; set; } = new List<SaleStoreOutDetail>();
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NX.ERP.Model.Store
{
public class SaleStoreOutDetail
{
public string InvCode { get; set; }
public double Quantity { get; set; }
public string Position { get; set; }
public int SourceDetailId { get; set; }
}
}