You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

772 lines
19 KiB
C#

using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.Import.Models.Comm
{
[JsonObject]
public class MsChFee : ModelObjectBillBody
{
#region private Fields
private string _gId = String.Empty;
private string _bsNo = String.Empty;
private decimal _feeStatus = 0;
private string _feeStatus_Ref = string.Empty;
private decimal _feeType = 0;
private string _feeType_Ref = string.Empty;
private string _feeName = String.Empty;
private string _feeName_Ref = String.Empty;
private string _feeDescription = String.Empty;
private string _customerType = String.Empty;
private string _customerName = String.Empty;
private string _customerName_Ref = String.Empty;
private string _unit = String.Empty;
private decimal _unitPrice = 0;
private decimal _quantity = 0;
private decimal _amount = 0;
private string _currency = "RMB";
private decimal _exChangerate = 1;
private string _reason = String.Empty;
private string _remark = String.Empty;
private decimal _commissionrate = 0;
private decimal _settlement = 0;
private decimal _invoice = 0;
private decimal _orderAmount = 0;
private decimal _orderInvoice = 0;
private DateTime? _submitDate = null;
private string _auditoperator = String.Empty;
private DateTime? _auditDate = null;
private string _enteroPerator = String.Empty;
private DateTime? _enterDate = null;
private string _debitNo = String.Empty;
private string _isDebit = "0";
private string _isOpen = "0";
private string _isOpen_Ref = "否";
private string _isAdvancedpay = "0";
private string _sort = "0";
private string _isInvoice = "0";
private string _feeFrt = String.Empty;
private string _isCrmOrderFee = "0";
private decimal _auditStatus = 0;
private string _invoiceNum = String.Empty;
private string _chequeNum = String.Empty;
private string _wmsOutBsNo = String.Empty;
private string _BXGID = String.Empty;
private string _ACCDATE = String.Empty;
private string _VOUCHERNO = String.Empty;
private string _OpName = String.Empty;
private string _SettlementDate = String.Empty;
private string _MODIFIEDTIME = String.Empty;
private string _MODIFIEDUSER = String.Empty;
private string _CARGO_GID = String.Empty;
private string _CARGO_NAME = String.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GId
{
get { return _gId; }
set { _gId = value; }
}
[ModelDB(MDBType = ModelDBOprationType.All)]
public string BsNo
{
get { return _bsNo; }
set { _bsNo = value; }
}
[ModelDB]
public decimal FeeStatus
{
get { return _feeStatus; }
set { _feeStatus = value; }
}
public string FeeStatus_Ref
{
get { return _feeStatus_Ref; }
set { _feeStatus_Ref = value; }
}
[ModelDB]
public decimal FeeType
{
get { return _feeType; }
set { _feeType = value; }
}
public string FeeType_Ref
{
get { return _feeType_Ref; }
set { _feeType_Ref = value; }
}
[ModelDB]
public string FeeName
{
get { return _feeName; }
set { _feeName = value; }
}
public string FeeName_Ref
{
get { return _feeName_Ref; }
set { _feeName_Ref = value; }
}
[ModelDB]
public string FeeDescription
{
get { return _feeDescription; }
set { _feeDescription = value; }
}
public string CustomerType
{
get { return _customerType; }
set { _customerType = value; }
}
[ModelDB]
public string CustomerName
{
get { return _customerName; }
set { _customerName = value; }
}
public string CustomerName_Ref
{
get { return _customerName_Ref; }
set { _customerName_Ref = value; }
}
[ModelDB]
public string Unit
{
get { return _unit; }
set { _unit = value; }
}
[ModelDB]
public decimal UnitPrice
{
get { return _unitPrice; }
set { _unitPrice = value; }
}
[ModelDB]
public decimal Quantity
{
get { return _quantity; }
set { _quantity = value; }
}
[ModelDB]
public decimal Amount
{
get { return _amount; }
set { _amount = value; }
}
[ModelDB]
public string Currency
{
get { return _currency; }
set { _currency = value; }
}
[ModelDB]
public decimal ExChangerate
{
get { return _exChangerate; }
set { _exChangerate = value; }
}
public string Reason
{
get { return _reason; }
set { _reason = value; }
}
[ModelDB]
public string Remark
{
get { return _remark; }
set { _remark = value; }
}
[ModelDB]
public decimal Commissionrate
{
get { return _commissionrate; }
set { _commissionrate = value; }
}
[ModelDB]
public decimal Settlement
{
get { return _settlement; }
set { _settlement = value; }
}
[ModelDB]
public decimal Invoice
{
get { return _invoice; }
set { _invoice = value; }
}
[ModelDB]
public decimal OrderAmount
{
get { return _orderAmount; }
set { _orderAmount = value; }
}
[ModelDB]
public decimal OrderInvoice
{
get { return _orderInvoice; }
set { _orderInvoice = value; }
}
public DateTime? SubmitDate
{
get { return _submitDate; }
set { _submitDate = value; }
}
public string Auditoperator
{
get { return _auditoperator; }
set { _auditoperator = value; }
}
public DateTime? AuditDate
{
get { return _auditDate; }
set { _auditDate = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string EnteroPerator
{
get { return _enteroPerator; }
set { _enteroPerator = value; }
}
[ModelDB]
public DateTime? EnterDate
{
get { return _enterDate; }
set { _enterDate = value; }
}
public string DebitNo
{
get { return _debitNo; }
set { _debitNo = value; }
}
public string IsDebit
{
get { return _isDebit; }
set { _isDebit = value; }
}
[ModelDB]
public string IsOpen
{
get { return _isOpen; }
set { _isOpen = value; }
}
public string IsOpen_Ref
{
get { return _isOpen_Ref; }
set { _isOpen_Ref = value; }
}
public string IsAdvancedpay
{
get { return _isAdvancedpay; }
set { _isAdvancedpay = value; }
}
[ModelDB]
public string Sort
{
get { return _sort; }
set { _sort = value; }
}
public string IsInvoice
{
get { return _isInvoice; }
set { _isInvoice = value; }
}
[ModelDB]
public string FeeFrt
{
get { return _feeFrt; }
set { _feeFrt = value; }
}
public string IsCrmOrderFee
{
get { return _isCrmOrderFee; }
set { _isCrmOrderFee = value; }
}
[ModelDB]
public decimal AuditStatus
{
get { return _auditStatus; }
set { _auditStatus = value; }
}
public string InvoiceNum
{
get { return _invoiceNum; }
set { _invoiceNum = value; }
}
public string ChequeNum
{
get { return _chequeNum; }
set { _chequeNum = value; }
}
public string WmsOutBsNo
{
get { return _wmsOutBsNo; }
set { _wmsOutBsNo = value; }
}
public string ACCDATE
{
get { return _ACCDATE; }
set { _ACCDATE = value; }
}
public string VOUCHERNO
{
get { return _VOUCHERNO; }
set { _VOUCHERNO = value; }
}
public string OpName
{
get { return _OpName; }
set { _OpName = value; }
}
public string SettlementDate
{
get { return _SettlementDate; }
set { _SettlementDate = value; }
}
[ModelDB]
public string MODIFIEDTIME
{
get { return _MODIFIEDTIME; }
set { _MODIFIEDTIME = value; }
}
[ModelDB]
public string MODIFIEDUSER
{
get { return _MODIFIEDUSER; }
set { _MODIFIEDUSER = value; }
}
[ModelDB]
public string CARGO_GID
{
get { return _CARGO_GID; }
set { _CARGO_GID = value; }
}
public string CARGO_NAME
{
get { return _CARGO_NAME; }
set { _CARGO_NAME = value; }
}
#endregion
public MsChFee()
{
TableName = "ch_fee";
}
override public string GetBillNoFieldName()
{
return "BsNo";
}
}
[JsonObject]
public class MsChFee2 : MsChFee
{
#region private Fields
private string _BXGID = String.Empty;
#endregion
#region Public Properties
[ModelDB]
public string BXGID
{
get { return _BXGID; }
set { _BXGID = value; }
}
#endregion
}
[JsonObject]
public class MsOrderFee : MsChFee
{
public MsOrderFee ( )
{
TableName = "ch_fee_order";
}
}
[JsonObject]
public class MsOrderFee_Import : MsChFee
{
private string _BXGID = String.Empty;
private string _CARGO_GID = String.Empty;
private string _CARGO_NAME = String.Empty;
[ModelDB]
public string BXGID
{
get { return _BXGID; }
set { _BXGID = value; }
}
public string CARGO_GID
{
get { return _CARGO_GID; }
set { _CARGO_GID = value; }
}
public string CARGO_NAME
{
get { return _CARGO_NAME; }
set { _CARGO_NAME = value; }
}
public MsOrderFee_Import ( )
{
TableName = "ch_fee_order";
}
}
[JsonObject]
public class MsChFee_Sales : MsChFee
{
private string _AMOUNTRMB = String.Empty;
private string _SALESNO = String.Empty;
private string _DELIVERYNO = String.Empty;
private string _SETTLEBILLNO = String.Empty;
[ModelDB]
public string SALESNO
{
get { return _SALESNO; }
set { _SALESNO = value; }
}
public string DELIVERYNO
{
get { return _DELIVERYNO; }
set { _DELIVERYNO = value; }
}
public string AMOUNTRMB
{
get { return _AMOUNTRMB; }
set { _AMOUNTRMB = value; }
}
public string SETTLEBILLNO
{
get { return _SETTLEBILLNO; }
set { _SETTLEBILLNO = value; }
}
}
[JsonObject]
public class MsChFeeDo : ModelObjectBillBody
{
#region private Fields
private string _Gid = String.Empty;
private string _bsno = String.Empty;
private string _customername = String.Empty;
private string _feeid = String.Empty;
private string _feename = String.Empty;
private string _Doamount = String.Empty;
private string _feetype = String.Empty;
private string _createtime = String.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string Gid { get; set; }
[ModelDB]
public string bsno { get; set; }
[ModelDB]
public string customername { get; set; }
[ModelDB]
public string feeid { get; set; }
[ModelDB]
public string feename { get; set; }
[ModelDB]
public string Doamount { get; set; }
[ModelDB]
public string feetype { get; set; }
[ModelDB]
public string createtime { get; set; }
#endregion
public MsChFeeDo()
{
TableName = "ch_fee_do";
}
override public string GetBillNoFieldName()
{
return "BsNo";
}
}
[JsonObject]
public class Keymb : ModelObjectBillBody
{
#region private Fields
private string _KeyField = String.Empty;
#endregion
#region Public Properties
public string KeyField
{
get { return _KeyField; }
set { _KeyField = value; }
}
#endregion
public Keymb()
{
TableName = "";
}
override public string GetBillNoFieldName()
{
return "";
}
}
[JsonObject]
public class Import_Paymentmb : ModelObjectBillBody
{
private string _GID = string.Empty;
private string _COMPANY = string.Empty;
private string _HTH = string.Empty;
private string _CURRENCY = string.Empty;
private string _AMOUNT = string.Empty;
private string _OP = string.Empty;
private string _BUYER = string.Empty;
private string _SELLER = string.Empty;
private string _REMARK = string.Empty;
private string _CREATETIME = string.Empty;
private string _PAYTIME = string.Empty;
private string _CR_DR = string.Empty;
private string _SETTLEMENT = string.Empty;
private string _CF_CURRENCY = string.Empty;
private decimal _EXCHANGERATE = 1;
private decimal _DHF = 0;
private decimal _SXF = 0;
private decimal _ReceiveAmount = 0;
private decimal _ReceiveAgio = 0;
private decimal _TotalAmount = 0;
private decimal _id = 0;
private string _COMPANYNAME = string.Empty;
private string _CZDATE = string.Empty;
private string _AMOUNT_DID = string.Empty;
private string _portRef = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
public string COMPANY
{
get { return _COMPANY; }
set { _COMPANY = value; }
}
public string HTH
{
get { return _HTH; }
set { _HTH = value; }
}
public string CURRENCY
{
get { return _CURRENCY; }
set { _CURRENCY = value; }
}
public string AMOUNT
{
get { return _AMOUNT; }
set { _AMOUNT = value; }
}
public string OP
{
get { return _OP; }
set { _OP = value; }
}
public string BUYER
{
get { return _BUYER; }
set { _BUYER = value; }
}
public string SELLER
{
get { return _SELLER; }
set { _SELLER = value; }
}
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
public string CREATETIME
{
get { return _CREATETIME; }
set { _CREATETIME = value; }
}
[ModelDB]
public string PAYTIME
{
get { return _PAYTIME; }
set { _PAYTIME = value; }
}
public string CR_DR
{
get { return _CR_DR; }
set { _CR_DR = value; }
}
public string CF_CURRENCY
{
get { return _CF_CURRENCY; }
set { _CF_CURRENCY = value; }
}
public string SETTLEMENT
{
get { return _SETTLEMENT; }
set { _SETTLEMENT = value; }
}
/* { name: 'EXCHANGERATE', type: 'string' },
{ name: 'DHF', type: 'string' },
{ name: 'SXF', type: 'string' },
{ name: 'ReceiveAmount', type: 'string' },
{ name: 'ReceiveAgio', type: 'string' }*/
[ModelDB]
public decimal EXCHANGERATE
{
get { return _EXCHANGERATE; }
set { _EXCHANGERATE = value; }
}
[ModelDB]
public decimal DHF
{
get { return _DHF; }
set { _DHF = value; }
}
[ModelDB]
public decimal SXF
{
get { return _SXF; }
set { _SXF = value; }
}
public decimal ReceiveAmount
{
get { return _ReceiveAmount; }
set { _ReceiveAmount = value; }
}
[ModelDB]
public decimal ReceiveAgio
{
get { return _ReceiveAgio; }
set { _ReceiveAgio = value; }
}
[ModelDB]
public decimal TotalAmount
{
get { return _TotalAmount; }
set { _TotalAmount = value; }
}
public decimal id
{
get { return _id; }
set { _id = value; }
}
public string COMPANYNAME
{
get { return _COMPANYNAME; }
set { _COMPANYNAME = value; }
}
[ModelDB]
public string CZDATE
{
get { return _CZDATE; }
set { _CZDATE = value; }
}
public string AMOUNT_DID
{
get { return _AMOUNT_DID; }
set { _AMOUNT_DID = value; }
}
public string portRef
{
get { return _portRef; }
set { _portRef = value; }
}
public Import_Paymentmb()
{
TableName = "Import_payment";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
[JsonObject]
public class NewStatusmb : ModelObjectBillBody
{
private string _NewStatus = string.Empty;
private string _NewStatusRef = string.Empty;
public string NewStatus
{
get { return _NewStatus; }
set { _NewStatus = value; }
}
public string NewStatusRef
{
get { return _NewStatusRef; }
set { _NewStatusRef = value; }
}
}
#region 参照部分
#endregion
}