using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.Account.Models.Chfee_Payapplication
{
[JsonObject]
public class ChPayapplication : ModelObjectBillHead
{
#region 私有成员
private string _gid = String.Empty;//主键唯一值
private string _billno = "*";//主键唯一值
private int _billstatus = 1;
private string _billstatusref = "未提交";
private string _isinvoice = "否";
private string _customername;//
private string _chequepayable;//
private int _settletype = 1;
private string _settletyperef = "";
private string _paytype = "";
private string _payabletime = "";
private string _curr = "";
private decimal _amountrmb = 0;
private decimal _rate = 0;
private decimal _amountusd = 0;
private decimal _preamountrmb = 0;
private decimal _preamountusd = 0;
private decimal _preamountot = 0;
private decimal _balamountrmb = 0;
private decimal _balamountusd = 0;
private decimal _balamountot = 0;
private decimal _amountot = 0;
private decimal _settlermb = 0;
private decimal _settleusd = 0;
private decimal _settleot = 0;
private decimal _settlerate = 0;
private string _applicant;//
private string _applicantname;//
private DateTime? _applytime = null;
private DateTime? _entertime = null;
private string _settleuser;//
private DateTime? _settletime = null;
private string _audiuser;//
private DateTime? _auditime = null;
private string _remark;//
private string _reason;//
private string _auditremark;//
private decimal _stlamount = 0;
private decimal _stlrate = 0;
private string _stlcurr = "";
private string _companyid;
private bool _isapp;
private string _payappid;
private string _chequenumremark;//备注
private string _invno = "";
private string _invdate = "";
private string _CUSTACCOUNTGID = "";
private string _CUSTBANKNAME = "";
private string _CUSTACCOUNT = "";
private string _PAYACCOUNTGID = "";
private string _PAYCOMPANY = "";
//用于进口贸易付费申请当中打印给银行的付费通知单使用
private string _BILLNO = string.Empty;
private string _CURR1 = string.Empty;
private string _CURR2 = string.Empty;
private string _CURR3 = string.Empty;
private string _Exchangerate1 = string.Empty;
private string _Exchangerate2 = string.Empty;
private string _Exchangerate3 = string.Empty;
private string _AMOUNT1 = string.Empty;
private string _AMOUNT2 = string.Empty;
private string _AMOUNT3 = string.Empty;
private string _ACCOUNT1 = string.Empty;
private string _ACCOUNT2 = string.Empty;
private string _ACCOUNT3 = string.Empty;
private string _ContactGID = string.Empty;
private string _ContactREF = string.Empty;
//以下用于显示申请单相关结算单的内容
private string _SettBillNo = string.Empty; //结算单号
private string _SettUser = string.Empty; //结算人
private string _SettDate = string.Empty; //结算日期
private string _SettStatusRef = string.Empty;
private string _BS_CUSTOMERNAME = string.Empty; //相关业务的委托单位
private string _PAYBANK = string.Empty; //付款银行
private string _PORTDISCHARGE = string.Empty; //目的港
private string _ETA = string.Empty; //最早到港日
private string _isAudit = "";
private string _balbillno = "";
private string _ISPRINT = "";
private string _SALECORPID = "";
private string _WxPush = "";
public string SALECORP { set; get; }
#endregion
public ChPayapplication()
{
TableName = "ch_fee_payapplication";
}
public string GetTimeMarkFieldName()
{
return "";
}
#region 读写属性
///
/// 主键唯一值
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB]
public string WxPush
{
get { return _WxPush; }
set { _WxPush = value; }
}
[ModelDB]
public string BILLNO
{
get { return _billno; }
set { _billno = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public int BILLSTATUS
{
get { return _billstatus; }
set { _billstatus = value; }
}
[ModelDB]
public string PAYTYPE
{
get { return _paytype; }
set { _paytype = value; }
}
public string BILLSTATUSREF
{
get { return _billstatusref; }
set { _billstatusref = value; }
}
public string ISINVOICE
{
get { return _isinvoice; }
set { _isinvoice = value; }
}
[ModelDB]
public string CUSTOMERNAME
{
get { return _customername; }
set { _customername = value; }
}
[ModelDB]
public string CURR
{
get { return _curr; }
set { _curr = value; }
}
[ModelDB]
public string CHEQUEPAYABLE
{
get { return _chequepayable; }
set { _chequepayable = value; }
}
[ModelDB]
public int SETTLETYPE
{
get { return _settletype; }
set { _settletype = value; }
}
public string SETTLETYPEREF
{
get { return _settletyperef; }
set { _settletyperef = value; }
}
[ModelDB]
public string PAYABLETIME
{
get { return _payabletime; }
set { _payabletime = value; }
}
public decimal AMOUNTRMB
{
get { return _amountrmb; }
set { _amountrmb = value; }
}
public decimal RATE
{
get { return _rate; }
set { _rate = value; }
}
public decimal AMOUNTUSD
{
get { return _amountusd; }
set { _amountusd = value; }
}
[ModelDB]
public decimal PREAMOUNTRMB
{
get { return _preamountrmb; }
set { _preamountrmb = value; }
}
[ModelDB]
public decimal PREAMOUNTUSD
{
get { return _preamountusd; }
set { _preamountusd = value; }
}
[ModelDB]
public decimal PREAMOUNTOT
{
get { return _preamountot; }
set { _preamountot = value; }
}
public decimal BALAMOUNTRMB
{
get { return _balamountrmb; }
set { _balamountrmb = value; }
}
public decimal BALAMOUNTUSD
{
get { return _balamountusd; }
set { _balamountusd = value; }
}
public decimal BALAMOUNTOT
{
get { return _balamountot; }
set { _balamountot = value; }
}
public decimal AMOUNTOT
{
get { return _amountot; }
set { _amountot = value; }
}
public decimal SETTLERMB
{
get { return _settlermb; }
set { _settlermb = value; }
}
public decimal SETTLEUSD
{
get { return _settleusd; }
set { _settleusd = value; }
}
public decimal SETTLEOT
{
get { return _settleot; }
set { _settleot = value; }
}
public decimal SETTLERATE
{
get { return _settlerate; }
set { _settlerate = value; }
}
public decimal STLAMOUNT
{
get { return _stlamount; }
set { _stlamount = value; }
}
public decimal STLRATE
{
get { return _stlrate; }
set { _stlrate = value; }
}
public string STLCURR
{
get { return _stlcurr; }
set { _stlcurr = value; }
}
[ModelDB]
public string APPLICANT
{
get { return _applicant; }
set { _applicant = value; }
}
public string APPLICANTNAME
{
get { return _applicantname; }
set { _applicantname = value; }
}
public string APPLICANTDEPT { get; set; }
[ModelDB]
public DateTime? APPLYTIME
{
get { return _applytime; }
set { _applytime = value; }
}
[ModelDB]
public DateTime? ENTERTIME
{
get { return _entertime; }
set { _entertime = value; }
}
public string SETTLEUSER
{
get { return _settleuser; }
set { _settleuser = value; }
}
public DateTime? SETTLETIME
{
get { return _settletime; }
set { _settletime = value; }
}
public string AUDITUSER
{
get { return _audiuser; }
set { _audiuser = value; }
}
public DateTime? AUDITTIME
{
get { return _auditime; }
set { _auditime = value; }
}
public string AUDITREMARK
{
get { return _auditremark; }
set { _auditremark = value; }
}
public string REASON
{
get { return _reason; }
set { _reason = value; }
}
[ModelDB]
public string COMPANYID
{
get { return _companyid; }
set { _companyid = value; }
}
[ModelDB]
public string SALECORPID
{
get { return _SALECORPID; }
set { _SALECORPID = value; }
}
///
/// 备注
///
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
public bool ISAPP
{
get { return _isapp; }
set { _isapp = value; }
}
public bool ISREVINV { get; set; }
public string PAYAPPID
{
get { return _payappid; }
set { _payappid = value; }
}
[ModelDB]
public string CHEQUENUMREMARK
{
get { return _chequenumremark; }
set { _chequenumremark = value; }
}
[ModelDB]
public string INVDATE
{
get { return _invdate; }
set { _invdate = value; }
}
[ModelDB]
public string INVNO
{
get { return _invno; }
set { _invno = value; }
}
[ModelDB]
public string INVOICEAMOUNT { get; set; }
[ModelDB]
public string CUSTACCOUNTGID
{
get { return _CUSTACCOUNTGID; }
set { _CUSTACCOUNTGID = value; }
}
public string CUSTBANKNAME
{
get { return _CUSTBANKNAME; }
set { _CUSTBANKNAME = value; }
}
public string CUSTACCOUNT
{
get { return _CUSTACCOUNT; }
set { _CUSTACCOUNT = value; }
}
[ModelDB]
public string PAYACCOUNTGID
{
get { return _PAYACCOUNTGID; }
set { _PAYACCOUNTGID = value; }
}
public string PAYCOMPANY
{
get { return _PAYCOMPANY; }
set { _PAYCOMPANY = value; }
}
[ModelDB]
public string PAYBANK
{
get { return _PAYBANK; }
set { _PAYBANK = value; }
}
///
/// //////////
///
public string CURR1
{
get { return _CURR1; }
set { _CURR1 = value; }
}
public string CURR2
{
get { return _CURR2; }
set { _CURR2 = value; }
}
public string CURR3
{
get { return _CURR3; }
set { _CURR3 = value; }
}
public string Exchangerate1
{
get { return _Exchangerate1; }
set { _Exchangerate1 = value; }
}
public string Exchangerate2
{
get { return _Exchangerate2; }
set { _Exchangerate2 = value; }
}
public string Exchangerate3
{
get { return _Exchangerate3; }
set { _Exchangerate3 = value; }
}
public string AMOUNT1
{
get { return _AMOUNT1; }
set { _AMOUNT1 = value; }
}
public string AMOUNT2
{
get { return _AMOUNT2; }
set { _AMOUNT2 = value; }
}
public string AMOUNT3
{
get { return _AMOUNT3; }
set { _AMOUNT3 = value; }
}
public string ACCOUNT1
{
get { return _ACCOUNT1; }
set { _ACCOUNT1 = value; }
}
public string ACCOUNT2
{
get { return _ACCOUNT2; }
set { _ACCOUNT2 = value; }
}
public string ACCOUNT3
{
get { return _ACCOUNT3; }
set { _ACCOUNT3 = value; }
}
public string ContactGID
{
get { return _ContactGID; }
set { _ContactGID = value; }
}
public string ContactREF
{
get { return _ContactREF; }
set { _ContactREF = value; }
}
public string SettBillNo
{
get { return _SettBillNo; }
set { _SettBillNo = value; }
}
public string SettUser
{
get { return _SettUser; }
set { _SettUser = value; }
}
public string SettDate
{
get { return _SettDate; }
set { _SettDate = value; }
}
public string SettStatusRef
{
get { return _SettStatusRef; }
set { _SettStatusRef = value; }
}
public string BS_CUSTOMERNAME
{
get { return _BS_CUSTOMERNAME; }
set { _BS_CUSTOMERNAME = value; }
}
public string PORTDISCHARGE
{
get { return _PORTDISCHARGE; }
set { _PORTDISCHARGE = value; }
}
public string ETA
{
get { return _ETA; }
set { _ETA = value; }
}
public string IsAudit
{
get { return _isAudit; }
set { _isAudit = value; }
}
public string BALBILLNO
{
get { return _balbillno; }
set { _balbillno = value; }
}
public string ISPRINT
{
get { return _ISPRINT; }
set { _ISPRINT = value; }
}
public Int32 PRINTCOUNT { get;set;}
public string CUSTFULLNAME { get; set; }
public string AMOUNTSTR { get; set; }
#endregion
}
[JsonObject]
public class ForeignPayDetailmb : ModelObjectBillHead
{
#region 私有成员
//用于进口贸易付费申请当中打印给银行的付费通知单使用
private string _GID = string.Empty;
private string _BILLNO = string.Empty;
private string _CURR1 = string.Empty;
private string _CURR2 = string.Empty;
private string _CURR3 = string.Empty;
private string _Exchangerate1 = string.Empty;
private string _Exchangerate2 = string.Empty;
private string _Exchangerate3 = string.Empty;
private string _AMOUNT1 = string.Empty;
private string _AMOUNT2 = string.Empty;
private string _AMOUNT3 = string.Empty;
private string _ACCOUNT1 = string.Empty;
private string _ACCOUNT2 = string.Empty;
private string _ACCOUNT3 = string.Empty;
private string _ContactGID = string.Empty;
private string _ContactREF = string.Empty;
#endregion
public ForeignPayDetailmb()
{
TableName = "ch_fee_ForeignpayDetail";
}
#region 读写属性
///
/// 主键唯一值
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
///
/// //////////
///
///
[ModelDB]
public string BILLNO
{
get { return _BILLNO; }
set { _BILLNO = value; }
}
[ModelDB]
public string CURR1
{
get { return _CURR1; }
set { _CURR1 = value; }
}
[ModelDB]
public string CURR2
{
get { return _CURR2; }
set { _CURR2 = value; }
}
[ModelDB]
public string CURR3
{
get { return _CURR3; }
set { _CURR3 = value; }
}
[ModelDB]
public string Exchangerate1
{
get { return _Exchangerate1; }
set { _Exchangerate1 = value; }
}
[ModelDB]
public string Exchangerate2
{
get { return _Exchangerate2; }
set { _Exchangerate2 = value; }
}
[ModelDB]
public string Exchangerate3
{
get { return _Exchangerate3; }
set { _Exchangerate3 = value; }
}
[ModelDB]
public string AMOUNT1
{
get { return _AMOUNT1; }
set { _AMOUNT1 = value; }
}
[ModelDB]
public string AMOUNT2
{
get { return _AMOUNT2; }
set { _AMOUNT2 = value; }
}
[ModelDB]
public string AMOUNT3
{
get { return _AMOUNT3; }
set { _AMOUNT3 = value; }
}
[ModelDB]
public string ACCOUNT1
{
get { return _ACCOUNT1; }
set { _ACCOUNT1 = value; }
}
[ModelDB]
public string ACCOUNT2
{
get { return _ACCOUNT2; }
set { _ACCOUNT2 = value; }
}
[ModelDB]
public string ACCOUNT3
{
get { return _ACCOUNT3; }
set { _ACCOUNT3 = value; }
}
[ModelDB]
public string ContactGID
{
get { return _ContactGID; }
set { _ContactGID = value; }
}
public string ContactREF
{
get { return _ContactREF; }
set { _ContactREF = value; }
}
#endregion
}
[JsonObject]
public class ChPayApp_Edit : ModelObjectBillHead
{
#region 私有成员
private string _billno = "*";//主键唯一值
private string _remark;//
//private string _SettDate = string.Empty; //结算日期
#endregion
public ChPayApp_Edit ( )
{
TableName = "ch_fee_payapplication";
}
public override string GetTimeMarkFieldName ( )
{
return "";
}
public override string GetBillNoFieldName ( )
{
return "BILLNO";
}
#region 读写属性
///
/// 主键唯一值
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string BILLNO
{
get { return _billno; }
set { _billno = value; }
}
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
/*
[ModelDB]
public string SettDate
{
get { return _SettDate; }
set { _SettDate = value; }
}*/
#endregion
}
[JsonObject]
public class ChWork : ModelObjectBillHead
{
private string _gid = String.Empty;//主键唯一值
private string _billno = "*";//主键唯一值
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB]
public string BILLNO
{
get { return _billno; }
set { _billno = value; }
}
private string _billstatus;
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string BILLSTATUS
{
get { return _billstatus; }
set { _billstatus = value; }
}
private string _SETTLETIME;
[ModelDB]
public string SETTLETIME
{
get { return _SETTLETIME; }
set { _SETTLETIME = value; }
}
private string _REMARK;
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
private string _APPLICANT;
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string APPLICANT
{
get { return _APPLICANT; }
set { _APPLICANT = value; }
}
private string _APPLYTIME;
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string APPLYTIME
{
get { return _APPLYTIME; }
set { _APPLYTIME = value; }
}
private string _companyid;
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string COMPANYID
{
get { return _companyid; }
set { _companyid = value; }
}
public string AUDITUSER { get; set; }
public string AUDITTIME { get; set; }
public string AUDITUSERREF { get; set; }
public string APPLICANTREF { get; set; }
public ChWork()
{
TableName = "ch_fee_work";
}
public string GetTimeMarkFieldName()
{
return "";
}
}
}