Пример #1
0
 public void LoadFromDataRow(DataRow dr)
 {
     this.MileageInvoiceID = Convert.ToInt64(dr["MileageInvoiceID"]);
     this.ExpenseMileage   = new FnExpenseMileage(Convert.ToInt64(dr["ExpenseMileageID"]));
     this.Invoice          = new FnExpenseInvoice(Convert.ToInt64(dr["InvoiceID"]));
     this.Active           = (bool)dr["Active"];
     this.CreBy            = Convert.ToInt64(dr["CreBy"].ToString());
     this.CreDate          = Convert.ToDateTime(dr["CreDate"]);
     this.UpdBy            = Convert.ToInt64(dr["UpdBy"].ToString());
     this.UpdDate          = Convert.ToDateTime(dr["UpdDate"]);
     this.UpdPgm           = dr["UpdPgm"].ToString();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the FnExpenseMileageInvoice class
 /// </summary>
 /// <param name="active">Initial <see cref="FnExpenseMileageInvoice.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="FnExpenseMileageInvoice.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="FnExpenseMileageInvoice.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="FnExpenseMileageInvoice.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="FnExpenseMileageInvoice.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="FnExpenseMileageInvoice.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="FnExpenseMileageInvoice.RowVersion" /> value</param>
 /// <param name="expenseMileage">Initial <see cref="FnExpenseMileageInvoice.ExpenseMileage" /> value</param>
 /// <param name="invoice">Initial <see cref="FnExpenseMileageInvoice.Invoice" /> value</param>
 public FnExpenseMileageInvoice(bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.FnExpenseMileage expenseMileage, SCG.eAccounting.DTO.FnExpenseInvoice invoice)
 {
     this.active         = active;
     this.creBy          = creBy;
     this.creDate        = creDate;
     this.updBy          = updBy;
     this.updDate        = updDate;
     this.updPgm         = updPgm;
     this.rowVersion     = rowVersion;
     this.expenseMileage = expenseMileage;
     this.invoice        = invoice;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the FnExpensePerdiem class
 /// </summary>
 /// <param name="description">Initial <see cref="FnExpensePerdiem.Description" /> value</param>
 /// <param name="perdiemRateUSD">Initial <see cref="FnExpensePerdiem.PerdiemRateUSD" /> value</param>
 /// <param name="perdiemRateUSDHigh">Initial <see cref="FnExpensePerdiem.PerdiemRateUSDHigh" /> value</param>
 /// <param name="totalFullDayPerdiem">Initial <see cref="FnExpensePerdiem.TotalFullDayPerdiem" /> value</param>
 /// <param name="fullDayPerdiemRate">Initial <see cref="FnExpensePerdiem.FullDayPerdiemRate" /> value</param>
 /// <param name="totalFullDayPerdiemAmount">Initial <see cref="FnExpensePerdiem.TotalFullDayPerdiemAmount" /> value</param>
 /// <param name="totalHalfDayPerdiem">Initial <see cref="FnExpensePerdiem.TotalHalfDayPerdiem" /> value</param>
 /// <param name="halfDayPerdiemRate">Initial <see cref="FnExpensePerdiem.HalfDayPerdiemRate" /> value</param>
 /// <param name="totalHalfDayPerdiemAmount">Initial <see cref="FnExpensePerdiem.TotalHalfDayPerdiemAmount" /> value</param>
 /// <param name="totalFullDayPerdiemHigh">Initial <see cref="FnExpensePerdiem.TotalFullDayPerdiemHigh" /> value</param>
 /// <param name="fullDayPerdiemRateHigh">Initial <see cref="FnExpensePerdiem.FullDayPerdiemRateHigh" /> value</param>
 /// <param name="totalFullDayPerdiemAmountHigh">Initial <see cref="FnExpensePerdiem.TotalFullDayPerdiemAmountHigh" /> value</param>
 /// <param name="totalHalfDayPerdiemHigh">Initial <see cref="FnExpensePerdiem.TotalHalfDayPerdiemHigh" /> value</param>
 /// <param name="halfDayPerdiemRateHigh">Initial <see cref="FnExpensePerdiem.HalfDayPerdiemRateHigh" /> value</param>
 /// <param name="totalHalfDayPerdiemAmountHigh">Initial <see cref="FnExpensePerdiem.TotalHalfDayPerdiemAmountHigh" /> value</param>
 /// <param name="perdiemGov">Initial <see cref="FnExpensePerdiem.PerdiemGov" /> value</param>
 /// <param name="perdiemGovHigh">Initial <see cref="FnExpensePerdiem.PerdiemGovHigh" /> value</param>
 /// <param name="perdiemGovernmentAmount">Initial <see cref="FnExpensePerdiem.PerdiemGovernmentAmount" /> value</param>
 /// <param name="perdiemPrivateAmount">Initial <see cref="FnExpensePerdiem.PerdiemPrivateAmount" /> value</param>
 /// <param name="perdiemTotalAmount">Initial <see cref="FnExpensePerdiem.PerdiemTotalAmount" /> value</param>
 /// <param name="perdiemTaxAmount">Initial <see cref="FnExpensePerdiem.PerdiemTaxAmount" /> value</param>
 /// <param name="active">Initial <see cref="FnExpensePerdiem.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="FnExpensePerdiem.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="FnExpensePerdiem.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="FnExpensePerdiem.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="FnExpensePerdiem.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="FnExpensePerdiem.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="FnExpensePerdiem.RowVersion" /> value</param>
 /// <param name="expense">Initial <see cref="FnExpensePerdiem.Expense" /> value</param>
 public FnExpensePerdiem(string description, double?perdiemRateUSD, double?perdiemRateUSDHigh, double totalFullDayPerdiem, double fullDayPerdiemRate, double totalFullDayPerdiemAmount, double totalHalfDayPerdiem, double halfDayPerdiemRate, double totalHalfDayPerdiemAmount, double totalFullDayPerdiemHigh, double fullDayPerdiemRateHigh, double totalFullDayPerdiemAmountHigh, double totalHalfDayPerdiemHigh, double halfDayPerdiemRateHigh, double totalHalfDayPerdiemAmountHigh, double perdiemGov, double perdiemGovHigh, double perdiemGovernmentAmount, double perdiemPrivateAmount, double perdiemTotalAmount, double perdiemTaxAmount, bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.FnExpenseDocument expense, SCG.DB.DTO.DbCostCenter costCenter, SCG.DB.DTO.DbAccount account, SCG.DB.DTO.DbInternalOrder iO, SCG.eAccounting.DTO.FnExpenseInvoice invoice, string referenceNo, string saleOrder, string saleItem, double perdiemRate, double perdiemTotalAmountHigh, double perdiemTotalAmountLocalCurrency, double perdiemTotalAmountMainCurrency, double perdiemRateUSDThaiZone, double perdiemTotalAmountThaiZone, double totalFullDayPerdiemThaiZone, double fullDayPerdiemRateThaiZone, double totalFullDayPerdiemAmountThaiZone, double totalHalfDayPerdiemThaiZone, double halfDayPerdiemRateThaiZone, double totalHalfDayPerdiemAmountThaiZone)
 {
     this.description                   = description;
     this.perdiemRateUSD                = perdiemRateUSD;
     this.perdiemRateUSDHigh            = perdiemRateUSDHigh;
     this.totalFullDayPerdiem           = totalFullDayPerdiem;
     this.fullDayPerdiemRate            = fullDayPerdiemRate;
     this.totalFullDayPerdiemAmount     = totalFullDayPerdiemAmount;
     this.totalHalfDayPerdiem           = totalHalfDayPerdiem;
     this.halfDayPerdiemRate            = halfDayPerdiemRate;
     this.totalHalfDayPerdiemAmount     = totalHalfDayPerdiemAmount;
     this.totalFullDayPerdiemHigh       = totalFullDayPerdiemHigh;
     this.fullDayPerdiemRateHigh        = fullDayPerdiemRateHigh;
     this.totalFullDayPerdiemAmountHigh = totalFullDayPerdiemAmountHigh;
     this.totalHalfDayPerdiemHigh       = totalHalfDayPerdiemHigh;
     this.halfDayPerdiemRateHigh        = halfDayPerdiemRateHigh;
     this.totalHalfDayPerdiemAmountHigh = totalHalfDayPerdiemAmountHigh;
     this.perdiemGov              = perdiemGov;
     this.perdiemGovHigh          = perdiemGovHigh;
     this.perdiemGovernmentAmount = perdiemGovernmentAmount;
     this.perdiemPrivateAmount    = perdiemPrivateAmount;
     this.perdiemTotalAmount      = perdiemTotalAmount;
     this.perdiemTaxAmount        = perdiemTaxAmount;
     this.active                            = active;
     this.creBy                             = creBy;
     this.creDate                           = creDate;
     this.updBy                             = updBy;
     this.updDate                           = updDate;
     this.updPgm                            = updPgm;
     this.rowVersion                        = rowVersion;
     this.expense                           = expense;
     this.invoice                           = invoice;
     this.costCenter                        = costCenter;
     this.account                           = account;
     this.iO                                = iO;
     this.saleOrder                         = saleOrder;
     this.saleItem                          = saleItem;
     this.referenceNo                       = referenceNo;
     this.perdiemRate                       = perdiemRate;
     this.perdiemTotalAmountHigh            = perdiemTotalAmountHigh;
     this.perdiemTotalAmountLocalCurrency   = perdiemTotalAmountLocalCurrency;
     this.perdiemTotalAmountMainCurrency    = perdiemTotalAmountMainCurrency;
     this.perdiemRateUSDThaiZone            = perdiemRateUSDThaiZone;
     this.perdiemTotalAmountThaiZone        = perdiemTotalAmountThaiZone;
     this.totalFullDayPerdiemThaiZone       = totalFullDayPerdiemThaiZone;
     this.fullDayPerdiemRateThaiZone        = fullDayPerdiemRateThaiZone;
     this.totalFullDayPerdiemAmountThaiZone = totalFullDayPerdiemAmountThaiZone;
     this.totalHalfDayPerdiemThaiZone       = totalHalfDayPerdiemThaiZone;
     this.halfDayPerdiemRateThaiZone        = halfDayPerdiemRateThaiZone;
     this.totalHalfDayPerdiemAmountThaiZone = totalHalfDayPerdiemAmountThaiZone;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the FnExpenseInvoiceItem class
 /// </summary>
 /// <param name="currencyID">Initial <see cref="FnExpenseInvoiceItem.CurrencyID" /> value</param>
 /// <param name="description">Initial <see cref="FnExpenseInvoiceItem.Description" /> value</param>
 /// <param name="currencyAmount">Initial <see cref="FnExpenseInvoiceItem.CurrencyAmount" /> value</param>
 /// <param name="amount">Initial <see cref="FnExpenseInvoiceItem.Amount" /> value</param>
 /// <param name="exchangeRate">Initial <see cref="FnExpenseInvoiceItem.ExchangeRate" /> value</param>
 /// <param name="referenceNo">Initial <see cref="FnExpenseInvoiceItem.ReferenceNo" /> value</param>
 /// <param name="saleOrder">Initial <see cref="FnExpenseInvoiceItem.SaleOrder" /> value</param>
 /// <param name="saleItem">Initial <see cref="FnExpenseInvoiceItem.SaleItem" /> value</param>
 /// <param name="active">Initial <see cref="FnExpenseInvoiceItem.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="FnExpenseInvoiceItem.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="FnExpenseInvoiceItem.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="FnExpenseInvoiceItem.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="FnExpenseInvoiceItem.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="FnExpenseInvoiceItem.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="FnExpenseInvoiceItem.RowVersion" /> value</param>
 /// <param name="invoice">Initial <see cref="FnExpenseInvoiceItem.Invoice" /> value</param>
 /// <param name="costCenter">Initial <see cref="FnExpenseInvoiceItem.CostCenter" /> value</param>
 /// <param name="account">Initial <see cref="FnExpenseInvoiceItem.Account" /> value</param>
 /// <param name="iO">Initial <see cref="FnExpenseInvoiceItem.IO" /> value</param>
 public FnExpenseInvoiceItem(long?currencyID, string description, double?currencyAmount, double?amount, double?exchangeRate, string referenceNo, string vendorCodeAP, string saleOrder, string saleItem, bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.FnExpenseInvoice invoice, SCG.DB.DTO.DbCostCenter costCenter, SCG.DB.DTO.DbAccount account, SCG.DB.DTO.DbInternalOrder iO, double nonDeductAmount)
 {
     this.currencyID      = currencyID;
     this.description     = description;
     this.currencyAmount  = currencyAmount;
     this.amount          = amount;
     this.exchangeRate    = exchangeRate;
     this.referenceNo     = referenceNo;
     this.vendorCodeAP    = vendorCodeAP;
     this.saleOrder       = saleOrder;
     this.saleItem        = saleItem;
     this.active          = active;
     this.creBy           = creBy;
     this.creDate         = creDate;
     this.updBy           = updBy;
     this.updDate         = updDate;
     this.updPgm          = updPgm;
     this.rowVersion      = rowVersion;
     this.invoice         = invoice;
     this.costCenter      = costCenter;
     this.account         = account;
     this.iO              = iO;
     this.nonDeductAmount = nonDeductAmount;
 }