using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AccountsDAL.DTO.Voucher { public class VoucherDTO { #region PrivateMembers #region Voucher private int voucherid; //Id #region OrganizationUnit private int organizationunitid = -1; //Id private string organizationunitcode; //Code private string organizationunitname; //Name #endregion #region Period private int periodid = -1; //Period private string periodcode; private string periodname; #endregion #region BizTransactionType private int biztransactiontypeid = -1; //Id private string biztransactiontypecode; //Code private string biztransactiontypename; //Name #endregion private DateTime vouchervoucherdate; //VoucherDate private double vouchervoucheramount; //VoucherAmount private double vouchervoucherfcamount; //VoucherFCAmount private string vouchervouchernumber; //VoucherNumber private string voucherreferencenumber; //ReferenceNumber private DateTime voucherreferencedate; //ReferenceDate #region MainAccount private int mainaccountid = -1; private string mainaccountcode; private string mainaccountname; #endregion private string vouchernarration = ""; //Narration private byte voucherisreverse; //IsReverse private DateTime vouchervalidtilldate; //ValidTillDate private int vouchercounteroperationid; //CounterOperation private double voucherconversionfactor; //ConversionFactor #region SubAccount private int subaccountid = -1; private string subaccountcode; private string subaccountname; #endregion private byte voucherisaccountpost; //IsAccountPost #region ParameterSet private int parametersetid = -1; private string parametersetcode; private string parametersetname; #endregion #region Currency private int currencyid = -1; private string currencycode; private string currencyname; #endregion private List voucherdetailarray = new List(); private List voucheraddonarray = new List(); private int vouchermaxcreditaccountid = -1; private int vouchermaxdebitaccountid = -1; private int paymentid = -1; private byte voucherpostedfromtype = 0; private int voucherpostedfromid = -1; #region PostedBizTransactionType private int postedbiztransactiontypeid = -1; private string postedbiztransactiontypecode; private string postedbiztransactiontypename; #endregion #endregion #region Base private int vouchercreatedbyid; //CreatedById private DateTime vouchercreatedon; //CreatedOn private int vouchermodifiedbyid; //ModifiedById private DateTime vouchermodifiedon; //ModifiedOn #endregion #region Standard private Int16 vouchersortorder; //SortOrder private byte voucherstatus = 1; //Status private Int16 voucherversion; //Version #endregion #endregion #region PublicMembers #region Voucher public int VoucherId { get { return voucherid; } //Id set { voucherid = value; } //Id } #region OrganizationUnit public int OrganizationUnitId { get { return organizationunitid; } //Id set { organizationunitid = value; } //Id } public string OrganizationUnitCode { get { return organizationunitcode; } //Code set { organizationunitcode = value; } //Code } public string OrganizationUnitName { get { return organizationunitname; } //Name set { organizationunitname = value; } //Name } #endregion #region Period public int PeriodId { get { return periodid; } //PeriodId set { periodid = value; } //PeriodId } public string PeriodCode { get { return periodcode; } //PeriodCode set { periodcode = value; } //PeriodCode } public string PeriodName { get { return periodname; } //PeriodName set { periodname = value; } //PeriodName } #endregion #region BizTransactionType public int BizTransactionTypeId { get { return biztransactiontypeid; } //Id set { biztransactiontypeid = value; } //Id } public string BizTransactionTypeCode { get { return biztransactiontypecode; } //Code set { biztransactiontypecode = value; } //Code } public string BizTransactionTypeName { get { return biztransactiontypename; } //Name set { biztransactiontypename = value; } //Name } #endregion public DateTime VoucherVoucherDate { get { return vouchervoucherdate; } //VoucherDate set { vouchervoucherdate = value; } //VoucherDate } public double VoucherVoucherAmount { get { return vouchervoucheramount; } //VoucherAmount set { vouchervoucheramount = value; } //VoucherAmount } public double VoucherVoucherFCAmount { get { return vouchervoucherfcamount; } //VoucherFCAmount set { vouchervoucherfcamount = value; } //VoucherFCAmount } public string VoucherVoucherNumber { get { return vouchervouchernumber; } //VoucherNumber set { vouchervouchernumber = value; } //VoucherNumber } public string VoucherReferenceNumber { get { return voucherreferencenumber; } //ReferenceNumber set { voucherreferencenumber = value; } //ReferenceNumber } public DateTime VoucherReferenceDate { get { return voucherreferencedate; } //ReferenceDate set { voucherreferencedate = value; } //ReferenceDate } #region MainAccount public int MainAccountId { get { return mainaccountid; } //MainAccountId set { mainaccountid = value; } //MainAccountId } public string MainAccountCode { get { return mainaccountcode; } //MainAccountCode set { mainaccountcode = value; } //MainAccountCode } public string MainAccountName { get { return mainaccountname; } //MainAccountName set { mainaccountname = value; } //MainAccountName } #endregion public string VoucherNarration { get { return vouchernarration; } //Narration set { vouchernarration = value; } //Narration } public byte VoucherIsReverse { get { return voucherisreverse; } //IsReverse set { voucherisreverse = value; } //IsReverse } public DateTime VoucherValidTillDate { get { return vouchervalidtilldate; } //ValidTillDate set { vouchervalidtilldate = value; } //ValidTillDate } public int VoucherCounterOperationId { get { return vouchercounteroperationid; } //CounterOperation set { vouchercounteroperationid = value; } //CounterOperation } public double VoucherConversionFactor { get { return voucherconversionfactor; } //ConversionFactor set { voucherconversionfactor = value; } //ConversionFactor } #region SubAccount public int SubAccountId { get { return subaccountid; } //SubAccountId set { subaccountid = value; } //SubAccountId } public string SubAccountCode { get { return subaccountcode; } //SubAccountCode set { subaccountcode = value; } //SubAccountCode } public string SubAccountName { get { return subaccountname; } //SubAccountName set { subaccountname = value; } //SubAccountName } #endregion public byte VoucherIsAccountPost { get { return voucherisaccountpost; } //IsAccountPost set { voucherisaccountpost = value; } //IsAccountPost } #region ParameterSet public int ParameterSetId { get { return parametersetid; } //ParameterSetId set { parametersetid = value; } //ParameterSetId } public string ParameterSetCode { get { return parametersetcode; } //ParameterSetCode set { parametersetcode = value; } //ParameterSetCode } public string ParameterSetName { get { return parametersetname; } //ParameterSetName set { parametersetname = value; } //ParameterSetName } #endregion public int PaymentId { get { return paymentid; } //PaymentId set { paymentid = value; } //PaymentId } public byte VoucherPostedFromType { get { return voucherpostedfromtype; } set { voucherpostedfromtype = value; } } public int VoucherPostedFromId { get { return voucherpostedfromid; } set { voucherpostedfromid = value; } } #region PostedBizTransactionType public int PostedBizTransactionTypeId { get { return postedbiztransactiontypeid; } set { postedbiztransactiontypeid = value; } } public string PostedBizTransactionTypeCode { get { return postedbiztransactiontypecode; } set { postedbiztransactiontypecode = value; } } public string PostedBizTransactionTypeName { get { return postedbiztransactiontypename; } set { postedbiztransactiontypename = value; } } #endregion private int tempaccontid = -1; public int Tempaccontid { get { return tempaccontid; } set { tempaccontid = value; } } #endregion #region Base public int VoucherCreatedById { get { return vouchercreatedbyid; } //CreatedById set { vouchercreatedbyid = value; } //CreatedById } public DateTime VoucherCreatedOn { get { return vouchercreatedon; } //CreatedOn set { vouchercreatedon = value; } //CreatedOn } public int VoucherModifiedById { get { return vouchermodifiedbyid; } //ModifiedById set { vouchermodifiedbyid = value; } //ModifiedById } public DateTime VoucherModifiedOn { get { return vouchermodifiedon; } //ModifiedOn set { vouchermodifiedon = value; } //ModifiedOn } #endregion #region Standard public Int16 VoucherSortOrder { get { return vouchersortorder; } //SortOrder set { vouchersortorder = value; } //SortOrder } public byte VoucherStatus { get { return voucherstatus; } //Status set { voucherstatus = value; } //Status } public Int16 VoucherVersion { get { return voucherversion; } //Version set { voucherversion = value; } //Version } #region Currency public int CurrencyId { get { return currencyid; } //CurrencyId set { currencyid = value; } //CurrencyId } public string CurrencyCode { get { return currencycode; } //CurrencyCode set { currencycode = value; } //CurrencyCode } public string CurrencyName { get { return currencyname; } //CurrencyName set { currencyname = value; } //CurrencyName } #endregion public List VoucherDetailArray { get { return voucherdetailarray; } //VoucherDetailArray set { voucherdetailarray = value; } //VoucherDetailArray } public List VoucherAddonArray { get { return voucheraddonarray; } //VoucherdetailAddonArray set { voucheraddonarray = value; } //VoucherdetailAddonArray } public int VoucherMaxCreditAccountId { get { return vouchermaxcreditaccountid; } //VoucherMaxCreditAccountId set { vouchermaxcreditaccountid = value; } //VoucherMaxCreditAccountId } public int VoucherMaxDebitAccountId { get { return vouchermaxdebitaccountid; } //VoucherMaxDebitAccountId set { vouchermaxdebitaccountid = value; } //VoucherMaxDebitAccountId } #endregion private int tempacconttype = -1; public int TempAccountType { get { return tempacconttype; } set { tempacconttype = value; } } private byte mdp = 0; private double partybalance; public byte MDP { get { return mdp; } set { mdp = value; } } public double PartyBalance { get { return partybalance; } set { partybalance = value; } } #endregion private string mailvoucherdate; private string mailcontactnumber; private int biztransactionclassid; public string MailVoucherDate { get { return mailvoucherdate; } //Date set { mailvoucherdate = value; } //Date } public string MailContactNumber { get { return mailcontactnumber; } //Date set { mailcontactnumber = value; } //Date } public int BizTransactionClassId { get { return biztransactionclassid; } //date set { biztransactionclassid = value; } //Date } private Int16 vouchernooforginalcopy; //NoOfOrginalCopy private Int16 vouchernoofcopytaken; //NoOfCopyTaken public Int16 VoucherNoOfOrginalCopy { get { return vouchernooforginalcopy; } //NoOfOrginalCopy set { vouchernooforginalcopy = value; } //NoOfOrginalCopy } public Int16 VoucherNoOfCopyTaken { get { return vouchernoofcopytaken; } //NoOfCopyTaken set { vouchernoofcopytaken = value; } //NoOfCopyTaken } private double temptotalnetvalue; public double TempTotalNetValue { get { return temptotalnetvalue; } set { temptotalnetvalue = value; } } private bool bulkimport = false; public bool BulkImport { get { return bulkimport; } //BulkImport set { bulkimport = value; } //BulkImport } private int partyid = -1; public int PartyId { get { return partyid; } //PartyId set { partyid = value; } //PartyId } private int financebookid = -1; private string financebookname; public int FinanceBookId { get { return financebookid; } //FinanceBookId set { financebookid = value; } //FinanceBookId } public string FinanceBookName { get { return financebookname; } //FinanceBookName set { financebookname = value; } //FinanceBookName } private string vouchervoucherdatestring = ""; private string voucherreferencedatestring = ""; private string vouchervoucherfcamountstring; public string VoucherVoucherDateString { get { return vouchervoucherdatestring; } //VoucherVoucherDateString set { vouchervoucherdatestring = value; } //VoucherVoucherDateString } public string VoucherReferenceDateString { get { return voucherreferencedatestring; } //VoucherReferenceDateString set { voucherreferencedatestring = value; } //VoucherReferenceDateString } public string VoucherVoucherFCAmountString { get { return vouchervoucherfcamountstring; } //VoucherVoucherFCAmountString set { vouchervoucherfcamountstring = value; } //VoucherVoucherFCAmountString } private string claimids = ""; public virtual string ClaimIds { get { return claimids; } //ClaimIds set { claimids = value; } //ClaimIds } private byte voucherinstrumentpostedtype = 1; public byte VoucherInstrumentPostedType { get { return voucherinstrumentpostedtype; } set { voucherinstrumentpostedtype = value; } } private int tmpchqbounc = 1; public int TmpChqBounc { get { return tmpchqbounc; } set { tmpchqbounc = value; } } private int clinicaldatapostnumberid; public int ClinicalDataPostNumberId { get { return clinicaldatapostnumberid; } set { clinicaldatapostnumberid = value; } } private int allocationid = -1; private string allocationname; private string allocationdescription; private string allocationshortname; public int AllocationId { get { return allocationid; } set { allocationid = value; } } public string AllocationName { get { return allocationname; } set { allocationname = value; } } public string AllocationDescription { get { return allocationdescription; } set { allocationdescription = value; } } public string AllocationShortName { get { return allocationshortname; } set { allocationshortname = value; } } private int allocationtypeid = -1; private string allocationtypecode; private string allocationtypename; public int AllocationTypeId { get { return allocationtypeid; } set { allocationtypeid = value; } } public string AllocationTypeCode { get { return allocationtypecode; } set { allocationtypecode = value; } } public string AllocationTypeName { get { return allocationtypename; } set { allocationtypename = value; } } private int isloadpurchase = 1; public int IsLoadPurchase { get { return isloadpurchase; } set { isloadpurchase = value; } } } }