예제 #1
0
        public void LoadFromDataRow(System.Data.DataRow dr)
        {
            this.CADocumentID = Convert.ToInt64(dr["CADocumentID"]);
            if (!string.IsNullOrEmpty(dr["DocumentID"].ToString()))
            {
                this.DocumentID = new SCGDocument(Convert.ToInt64(dr["DocumentID"]));
            }
            this.StartDate = Convert.ToDateTime(dr["StartDate"]);
            this.EndDate   = Convert.ToDateTime(dr["EndDate"]);

            this.IsTemporary  = (bool)dr["IsTemporary"];
            this.CarLicenseNo = dr["CarLicenseNo"].ToString();
            this.Brand        = dr["Brand"].ToString();
            this.Model        = dr["Model"].ToString();
            if (!string.IsNullOrEmpty(dr["IsWorkArea"].ToString()))
            {
                this.IsWorkArea = (bool)dr["IsWorkArea"];
            }
            this.Remark    = dr["Remark"].ToString();
            this.CarType   = dr["CarType"].ToString();
            this.OwnerType = dr["OwnerType"].ToString();
            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();
        }
 /// <summary>
 /// Initializes a new instance of the FnExpenseDocument class
 /// </summary>
 /// <param name="expenseType">Initial <see cref="FnExpenseDocument.ExpenseType" /> value</param>
 /// <param name="paymentType">Initial <see cref="FnExpenseDocument.PaymentType" /> value</param>
 /// <param name="totalExpense">Initial <see cref="FnExpenseDocument.TotalExpense" /> value</param>
 /// <param name="totalAdvance">Initial <see cref="FnExpenseDocument.TotalAdvance" /> value</param>
 /// <param name="isBusinessPurpose">Initial <see cref="FnExpenseDocument.IsBusinessPurpose" /> value</param>
 /// <param name="isTrainningPurpose">Initial <see cref="FnExpenseDocument.IsTrainningPurpose" /> value</param>
 /// <param name="isOtherPurpose">Initial <see cref="FnExpenseDocument.IsOtherPurpose" /> value</param>
 /// <param name="otherPurposeDescription">Initial <see cref="FnExpenseDocument.OtherPurposeDescription" /> value</param>
 /// <param name="fromDate">Initial <see cref="FnExpenseDocument.FromDate" /> value</param>
 /// <param name="toDate">Initial <see cref="FnExpenseDocument.ToDate" /> value</param>
 /// <param name="country">Initial <see cref="FnExpenseDocument.Country" /> value</param>
 /// <param name="personalLevel">Initial <see cref="FnExpenseDocument.PersonalLevel" /> value</param>
 /// <param name="exchangeRateForUSD">Initial <see cref="FnExpenseDocument.ExchangeRateForUSD" /> value</param>
 /// <param name="exchangeRateForUSDAdvance">Initial <see cref="FnExpenseDocument.ExchangeRateForUSDAdvance" /> value</param>
 /// <param name="totalRemittance">Initial <see cref="FnExpenseDocument.TotalRemittance" /> value</param>
 /// <param name="differenceAmount">Initial <see cref="FnExpenseDocument.DifferenceAmount" /> value</param>
 /// <param name="active">Initial <see cref="FnExpenseDocument.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="FnExpenseDocument.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="FnExpenseDocument.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="FnExpenseDocument.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="FnExpenseDocument.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="FnExpenseDocument.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="FnExpenseDocument.RowVersion" /> value</param>
 /// <param name="document">Initial <see cref="FnExpenseDocument.Document" /> value</param>
 /// <param name="tADocument">Initial <see cref="FnExpenseDocument.TADocument" /> value</param>
 /// <param name="serviceTeam">Initial <see cref="FnExpenseDocument.ServiceTeam" /> value</param>
 /// <param name="pB">Initial <see cref="FnExpenseDocument.PB" /> value</param>
 public FnExpenseDocument(string expenseType, string paymentType, double totalExpense, double totalAdvance, bool?isBusinessPurpose, bool?isTrainningPurpose, bool?isOtherPurpose, string otherPurposeDescription, DateTime?fromDate, DateTime?toDate, string country, string personalLevel, double?exchangeRateForUSD, double?exchangeRateForUSDAdvance, double totalRemittance, double differenceAmount, bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.SCGDocument document, SCG.eAccounting.DTO.TADocument tADocument, SCG.DB.DTO.DbServiceTeam serviceTeam, SCG.DB.DTO.Dbpb pB, string boxID, string payInGLAccount, string receivedMethod, DateTime?payInValueDate)
 {
     this.expenseType             = expenseType;
     this.paymentType             = paymentType;
     this.totalExpense            = totalExpense;
     this.totalAdvance            = totalAdvance;
     this.isBusinessPurpose       = isBusinessPurpose;
     this.isTrainningPurpose      = isTrainningPurpose;
     this.isOtherPurpose          = isOtherPurpose;
     this.otherPurposeDescription = otherPurposeDescription;
     this.fromDate                  = fromDate;
     this.toDate                    = toDate;
     this.country                   = country;
     this.personalLevel             = personalLevel;
     this.exchangeRateForUSD        = exchangeRateForUSD;
     this.exchangeRateForUSDAdvance = exchangeRateForUSDAdvance;
     this.totalRemittance           = totalRemittance;
     this.differenceAmount          = differenceAmount;
     this.active                    = active;
     this.creBy          = creBy;
     this.creDate        = creDate;
     this.updBy          = updBy;
     this.updDate        = updDate;
     this.updPgm         = updPgm;
     this.rowVersion     = rowVersion;
     this.document       = document;
     this.tADocument     = tADocument;
     this.serviceTeam    = serviceTeam;
     this.pB             = pB;
     this.boxID          = boxID;
     this.payInGLAccount = payInGLAccount;
     this.payInValueDate = payInValueDate;
     this.receivedMethod = receivedMethod;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the DocumentAttachment class
 /// </summary>
 /// <param name="attachFileName">Initial <see cref="DocumentAttachment.AttachFileName" /> value</param>
 /// <param name="attachFilePath">Initial <see cref="DocumentAttachment.AttachFilePath" /> value</param>
 /// <param name="active">Initial <see cref="DocumentAttachment.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="DocumentAttachment.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="DocumentAttachment.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="DocumentAttachment.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="DocumentAttachment.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="DocumentAttachment.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="DocumentAttachment.RowVersion" /> value</param>
 /// <param name="documentID">Initial <see cref="DocumentAttachment.DocumentID" /> value</param>
 public DocumentAttachment(string attachFileName, string attachFilePath, bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.SCGDocument documentID)
 {
     this.attachFileName = attachFileName;
     this.attachFilePath = attachFilePath;
     this.active         = active;
     this.creBy          = creBy;
     this.creDate        = creDate;
     this.updBy          = updBy;
     this.updDate        = updDate;
     this.updPgm         = updPgm;
     this.rowVersion     = rowVersion;
     this.documentID     = documentID;
 }
예제 #4
0
 public void LoadFromDataRow(DataRow dr)
 {
     this.AttachmentID   = Convert.ToInt64(dr["AttachmentID"]);
     this.AttachFileName = dr["AttachFileName"].ToString();
     this.AttachFilePath = dr["AttachFilePath"].ToString();
     this.DocumentID     = new SCGDocument(Convert.ToInt64(dr["DocumentID"]));
     this.Active         = Convert.ToBoolean(dr["Active"]);
     this.CreBy          = Convert.ToInt64(dr["CreBy"]);
     this.CreDate        = Convert.ToDateTime(dr["CreDate"]);
     this.UpdBy          = Convert.ToInt64(dr["UpdBy"]);
     this.UpdDate        = Convert.ToDateTime(dr["UpdDate"]);
     this.UpdPgm         = dr["UpdPgm"].ToString();
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the FnRemittance class
 /// </summary>
 /// <param name="tADocumentID">Initial <see cref="FnRemittance.TADocumentID" /> value</param>
 /// <param name="active">Initial <see cref="FnRemittance.Active" /> value</param>
 /// <param name="updBy">Initial <see cref="FnRemittance.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="FnRemittance.UpdDate" /> value</param>
 /// <param name="creBy">Initial <see cref="FnRemittance.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="FnRemittance.CreDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="FnRemittance.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="FnRemittance.RowVersion" /> value</param>
 /// <param name="document">Initial <see cref="FnRemittance.Document" /> value</param>
 /// <param name="pB">Initial <see cref="FnRemittance.PB" /> value</param>
 public FnRemittance(long tADocumentID, bool isFullClearing, bool active, long updBy, DateTime updDate, long creBy, DateTime creDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.SCGDocument document, SCG.DB.DTO.Dbpb pB, double maincurrencyamount, short mainCurrencyID)
 {
     this.tADocumentID       = tADocumentID;
     this.isFullClearing     = isFullClearing;
     this.active             = active;
     this.updBy              = updBy;
     this.updDate            = updDate;
     this.creBy              = creBy;
     this.creDate            = creDate;
     this.updPgm             = updPgm;
     this.rowVersion         = rowVersion;
     this.document           = document;
     this.pB                 = pB;
     this.mainCurrencyAmount = maincurrencyamount;
     this.mainCurrencyID     = mainCurrencyID;
 }
예제 #6
0
        public void LoadFromDataRow(System.Data.DataRow dr)
        {
            this.MPADocumentID = Convert.ToInt64(dr["MPADocumentID"]);
            if (!string.IsNullOrEmpty(dr["DocumentID"].ToString()))
            {
                this.DocumentID = new SCGDocument(Convert.ToInt64(dr["DocumentID"]));
            }
            this.StartDate = Convert.ToDateTime(dr["StartDate"]);
            this.EndDate   = Convert.ToDateTime(dr["EndDate"]);

            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();
        }
예제 #7
0
 /// <summary>
 /// Initializes a new instance of the DocumentInitiator class
 /// </summary>
 /// <param name="seq">Initial <see cref="DocumentInitiator.Seq" /> value</param>
 /// <param name="initiatorType">Initial <see cref="DocumentInitiator.InitiatorType" /> value</param>
 /// <param name="doApprove">Initial <see cref="DocumentInitiator.DoApprove" /> value</param>
 /// <param name="active">Initial <see cref="DocumentInitiator.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="DocumentInitiator.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="DocumentInitiator.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="DocumentInitiator.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="DocumentInitiator.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="DocumentInitiator.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="DocumentInitiator.RowVersion" /> value</param>
 /// <param name="documentID">Initial <see cref="DocumentInitiator.DocumentID" /> value</param>
 /// <param name="userID">Initial <see cref="DocumentInitiator.UserID" /> value</param>
 public DocumentInitiator(short seq, string initiatorType, bool doApprove, bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, bool isSkip, string skipReason, SCG.eAccounting.DTO.SCGDocument documentID, SS.SU.DTO.SuUser userID)
 {
     this.seq           = seq;
     this.initiatorType = initiatorType;
     this.doApprove     = doApprove;
     this.active        = active;
     this.creBy         = creBy;
     this.creDate       = creDate;
     this.updBy         = updBy;
     this.updDate       = updDate;
     this.updPgm        = updPgm;
     this.rowVersion    = rowVersion;
     this.isSkip        = isSkip;
     this.skipReason    = skipReason;
     this.documentID    = documentID;
     this.userID        = userID;
 }
예제 #8
0
 /// <summary>
 /// Initializes a new instance of the FnAutoPayment class
 /// </summary>
 /// <param name="fIDoc">Initial <see cref="FnAutoPayment.FIDoc" /> value</param>
 /// <param name="status">Initial <see cref="FnAutoPayment.Status" /> value</param>
 /// <param name="chequeNumber">Initial <see cref="FnAutoPayment.ChequeNumber" /> value</param>
 /// <param name="chequeBankName">Initial <see cref="FnAutoPayment.ChequeBankName" /> value</param>
 /// <param name="chequeDate">Initial <see cref="FnAutoPayment.ChequeDate" /> value</param>
 /// <param name="payeeBankName">Initial <see cref="FnAutoPayment.PayeeBankName" /> value</param>
 /// <param name="payeeBankAccountNumber">Initial <see cref="FnAutoPayment.PayeeBankAccountNumber" /> value</param>
 /// <param name="amount">Initial <see cref="FnAutoPayment.Amount" /> value</param>
 /// <param name="paymentDate">Initial <see cref="FnAutoPayment.PaymentDate" /> value</param>
 /// <param name="currencyDoc">Initial <see cref="FnAutoPayment.CurrencyDoc" /> value</param>
 /// <param name="currencyPay">Initial <see cref="FnAutoPayment.CurrencyPay" /> value</param>
 /// <param name="_companycode">Initial <see cref="FnAutoPayment.companycode" /> value</param>
 /// <param name="_year">Initial <see cref="FnAutoPayment.year" /> value</param>
 /// <param name="active">Initial <see cref="FnAutoPayment.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="FnAutoPayment.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="FnAutoPayment.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="FnAutoPayment.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="FnAutoPayment.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="FnAutoPayment.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="FnAutoPayment.RowVersion" /> value</param>
 /// <param name="document">Initial <see cref="FnAutoPayment.Document" /> value</param>
 public FnAutoPayment(string fIDoc, int status, string chequeNumber, string chequeBankName, DateTime?chequeDate, string payeeBankName, string payeeBankAccountNumber, double amount, DateTime?paymentDate, string currencyDoc, string currencyPay, string _companycode, string _year, bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.SCGDocument document)
 {
     this.fIDoc                  = fIDoc;
     this.status                 = status;
     this.chequeNumber           = chequeNumber;
     this.chequeBankName         = chequeBankName;
     this.chequeDate             = chequeDate;
     this.payeeBankName          = payeeBankName;
     this.payeeBankAccountNumber = payeeBankAccountNumber;
     this.amount                 = amount;
     this.paymentDate            = paymentDate;
     this.currencyDoc            = currencyDoc;
     this.currencyPay            = currencyPay;
     this._companycode           = _companycode;
     this._year                  = _year;
     this.active                 = active;
     this.creBy                  = creBy;
     this.creDate                = creDate;
     this.updBy                  = updBy;
     this.updDate                = updDate;
     this.updPgm                 = updPgm;
     this.rowVersion             = rowVersion;
     this.document               = document;
 }
 /// <summary>
 /// Initializes a new instance of the AvAdvanceDocument class
 /// </summary>
 /// <param name="tADocumentID">Initial <see cref="AvAdvanceDocument.TADocumentID" /> value</param>
 /// <param name="requestDateOfAdvance">Initial <see cref="AvAdvanceDocument.RequestDateOfAdvance" /> value</param>
 /// <param name="dueDateOfRemittance">Initial <see cref="AvAdvanceDocument.DueDateOfRemittance" /> value</param>
 /// <param name="requestDateOfRemittance">Initial <see cref="AvAdvanceDocument.RequestDateOfRemittance" /> value</param>
 /// <param name="arrivalDate">Initial <see cref="AvAdvanceDocument.ArrivalDate" /> value</param>
 /// <param name="reason">Initial <see cref="AvAdvanceDocument.Reason" /> value</param>
 /// <param name="perDiemExRateUSD">Initial <see cref="AvAdvanceDocument.PerDiemExRateUSD" /> value</param>
 /// <param name="advanceType">Initial <see cref="AvAdvanceDocument.AdvanceType" /> value</param>
 /// <param name="active">Initial <see cref="AvAdvanceDocument.Active" /> value</param>
 /// <param name="creBy">Initial <see cref="AvAdvanceDocument.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="AvAdvanceDocument.CreDate" /> value</param>
 /// <param name="updBy">Initial <see cref="AvAdvanceDocument.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="AvAdvanceDocument.UpdDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="AvAdvanceDocument.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="AvAdvanceDocument.RowVersion" /> value</param>
 /// <param name="documentID">Initial <see cref="AvAdvanceDocument.DocumentID" /> value</param>
 /// <param name="pBID">Initial <see cref="AvAdvanceDocument.PBID" /> value</param>
 /// <param name="serviceTeamID">Initial <see cref="AvAdvanceDocument.ServiceTeamID" /> value</param>
 public AvAdvanceDocument(long tADocumentID, DateTime requestDateOfAdvance, DateTime dueDateOfRemittance, DateTime requestDateOfRemittance, DateTime arrivalDate, string reason, double perDiemExRateUSD, double amount, double remittanceAmount, double expenseAmount, string advanceType, bool active, long creBy, DateTime creDate, long updBy, DateTime updDate, string updPgm, Byte[] rowVersion, SCG.eAccounting.DTO.SCGDocument documentID, SCG.DB.DTO.Dbpb pBID, SCG.DB.DTO.DbServiceTeam serviceTeamID)
 {
     this.tADocumentID            = tADocumentID;
     this.requestDateOfAdvance    = requestDateOfAdvance;
     this.dueDateOfRemittance     = dueDateOfRemittance;
     this.requestDateOfRemittance = requestDateOfRemittance;
     this.arrivalDate             = arrivalDate;
     this.reason           = reason;
     this.perDiemExRateUSD = perDiemExRateUSD;
     this.advanceType      = advanceType;
     this.amount           = amount;
     this.remittanceAmount = remittanceAmount;
     this.expenseAmount    = expenseAmount;
     this.active           = active;
     this.creBy            = creBy;
     this.creDate          = creDate;
     this.updBy            = updBy;
     this.updDate          = updDate;
     this.updPgm           = updPgm;
     this.rowVersion       = rowVersion;
     this.documentID       = documentID;
     this.pBID             = pBID;
     this.serviceTeamID    = serviceTeamID;
 }
예제 #10
0
 /// <summary>
 /// Initializes a new instance of the TADocument class
 /// </summary>
 /// <param name="fromDate">Initial <see cref="TADocument.FromDate" /> value</param>
 /// <param name="toDate">Initial <see cref="TADocument.ToDate" /> value</param>
 /// <param name="isBusinessPurpose">Initial <see cref="TADocument.IsBusinessPurpose" /> value</param>
 /// <param name="isTrainningPurpose">Initial <see cref="TADocument.IsTrainningPurpose" /> value</param>
 /// <param name="isOtherPurpose">Initial <see cref="TADocument.IsOtherPurpose" /> value</param>
 /// <param name="otherPurposeDescription">Initial <see cref="TADocument.OtherPurposeDescription" /> value</param>
 /// <param name="travelBy">Initial <see cref="TADocument.TravelBy" /> value</param>
 /// <param name="province">Initial <see cref="TADocument.Province" /> value</param>
 /// <param name="country">Initial <see cref="TADocument.Country" /> value</param>
 /// <param name="ticketing">Initial <see cref="TADocument.Ticketing" /> value</param>
 /// <param name="updBy">Initial <see cref="TADocument.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="TADocument.UpdDate" /> value</param>
 /// <param name="creBy">Initial <see cref="TADocument.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="TADocument.CreDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="TADocument.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="TADocument.RowVersion" /> value</param>
 /// <param name="active">Initial <see cref="TADocument.Active" /> value</param>
 /// <param name="documentID">Initial <see cref="SCGDocument.DocumentID" /> value</param>
 /// <param name="costCenterID">Initial <see cref="DbCostCenter.CostCenterID" /> value</param>
 /// <param name="account">Initial <see cref="DbExpenseGroup.Account" /> value</param>
 /// <param name="ioID">Initial <see cref="DbInternalOrder.IOID" /> value</param>
 public TADocument(DateTime fromDate, DateTime toDate, bool isBusinessPurpose, bool isTrainningPurpose, bool isOtherPurpose, string otherPurposeDescription, string travelBy, string province, string country, string ticketing, long updBy, DateTime updDate, long creBy, DateTime creDate, string updPgm, byte[] rowVersion, bool active, SCG.eAccounting.DTO.SCGDocument documentID, SCG.DB.DTO.DbCostCenter costCenterID, SCG.DB.DTO.DbAccount account, SCG.DB.DTO.DbInternalOrder ioID)
 {
     this.fromDate                = fromDate;
     this.toDate                  = toDate;
     this.isBusinessPurpose       = isBusinessPurpose;
     this.isTrainningPurpose      = isTrainningPurpose;
     this.isOtherPurpose          = isOtherPurpose;
     this.otherPurposeDescription = otherPurposeDescription;
     this.travelBy                = travelBy;
     this.province                = province;
     this.country                 = country;
     this.ticketing               = ticketing;
     this.updBy        = updBy;
     this.updDate      = updDate;
     this.creBy        = creBy;
     this.creDate      = creDate;
     this.updPgm       = updPgm;
     this.rowVersion   = rowVersion;
     this.active       = active;
     this.documentID   = documentID;
     this.costCenterID = costCenterID;
     this.account      = account;
     this.ioID         = ioID;
 }