/// <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;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the TADocumentAdvance class
 /// </summary>
 /// <param name="updBy">Initial <see cref="TADocumentAdvance.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="TADocumentAdvance.UpdDate" /> value</param>
 /// <param name="creBy">Initial <see cref="TADocumentAdvance.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="TADocumentAdvance.CreDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="TADocumentAdvance.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="TADocumentAdvance.RowVersion" /> value</param>
 /// <param name="active">Initial <see cref="TADocumentAdvance.Active" /> value</param>
 /// <param name="taDocument">Initial <see cref="TADocument.TADocumentID" /> value</param>
 /// <param name="advance">Initial <see cref="AvAdvanceDocument.AdvanceID" /> value</param>
 public TADocumentAdvance(long updBy, DateTime updDate, long creBy, DateTime creDate, string updPgm, byte[] rowVersion, bool active, SCG.eAccounting.DTO.TADocument taDocument, SCG.eAccounting.DTO.AvAdvanceDocument advance)
 {
     this.updBy      = updBy;
     this.updDate    = updDate;
     this.creBy      = creBy;
     this.creDate    = creDate;
     this.updPgm     = updPgm;
     this.rowVersion = rowVersion;
     this.active     = active;
     this.taDocument = taDocument;
     this.advance    = advance;
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the TADocumentTraveller class
 /// </summary>
 /// <param name="employeeNameEng">Initial <see cref="TADocumentTraveller.EmployeeNameEng" /> value</param>
 /// <param name="airLineMember">Initial <see cref="TADocumentTraveller.AirLineMember" /> value</param>
 /// <param name="updBy">Initial <see cref="TADocumentTraveller.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="TADocumentTraveller.UpdDate" /> value</param>
 /// <param name="creBy">Initial <see cref="TADocumentTraveller.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="TADocumentTraveller.CreDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="TADocumentTraveller.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="TADocumentTraveller.RowVersion" /> value</param>
 /// <param name="active">Initial <see cref="TADocumentTraveller.Active" /> value</param>
 /// <param name="taDocumentID">Initial <see cref="TADocument.TADocumentID" /> value</param>
 /// <param name="userID">Initial <see cref="SuUser.UserID" /> value</param>
 public TADocumentTraveller(string employeeNameEng, string airLineMember, long updBy, DateTime updDate, long creBy, DateTime creDate, string updPgm, byte[] rowVersion, bool active, SCG.eAccounting.DTO.TADocument taDocumentID, SS.SU.DTO.SuUser userID)
 {
     this.employeeNameEng = employeeNameEng;
     this.airLineMember   = airLineMember;
     this.updBy           = updBy;
     this.updDate         = updDate;
     this.creBy           = creBy;
     this.creDate         = creDate;
     this.updPgm          = updPgm;
     this.rowVersion      = rowVersion;
     this.active          = active;
     this.taDocumentID    = taDocumentID;
     this.userID          = userID;
 }
 /// <summary>
 /// Initializes a new instance of the TADocumentSchedule class
 /// </summary>
 /// <param name="date">Initial <see cref="TADocumentSchedule.Date" /> value</param>
 /// <param name="departureFrom">Initial <see cref="TADocumentSchedule.DepartureFrom" /> value</param>
 /// <param name="arrivalAt">Initial <see cref="TADocumentSchedule.ArrivalAt" /> value</param>
 /// <param name="travelBy">Initial <see cref="TADocumentSchedule.TravelBy" /> value</param>
 /// <param name="time">Initial <see cref="TADocumentSchedule.Time" /> value</param>
 /// <param name="flightNo">Initial <see cref="TADocumentSchedule.FlightNo" /> value</param>
 /// <param name="travellingDetail">Initial <see cref="TADocumentSchedule.TravellingDetail" /> value</param>
 /// <param name="updBy">Initial <see cref="TADocumentSchedule.UpdBy" /> value</param>
 /// <param name="updDate">Initial <see cref="TADocumentSchedule.UpdDate" /> value</param>
 /// <param name="creBy">Initial <see cref="TADocumentSchedule.CreBy" /> value</param>
 /// <param name="creDate">Initial <see cref="TADocumentSchedule.CreDate" /> value</param>
 /// <param name="updPgm">Initial <see cref="TADocumentSchedule.UpdPgm" /> value</param>
 /// <param name="rowVersion">Initial <see cref="TADocumentSchedule.RowVersion" /> value</param>
 /// <param name="active">Initial <see cref="TADocumentSchedule.Active" /> value</param>
 /// <param name="taDocumentID">Initial <see cref="TADocument.TADocumentID" /> value</param>
 public TADocumentSchedule(DateTime?date, string departureFrom, string arrivalAt, string travelBy, string time, string flightNo, string travellingDetail, long updBy, DateTime updDate, long creBy, DateTime creDate, string updPgm, byte[] rowVersion, bool active, SCG.eAccounting.DTO.TADocument taDocumentID)
 {
     this.date             = date;
     this.departureFrom    = departureFrom;
     this.arrivalAt        = arrivalAt;
     this.travelBy         = travelBy;
     this.time             = time;
     this.flightNo         = flightNo;
     this.travellingDetail = travellingDetail;
     this.updBy            = updBy;
     this.updDate          = updDate;
     this.creBy            = creBy;
     this.creDate          = creDate;
     this.updPgm           = updPgm;
     this.rowVersion       = rowVersion;
     this.active           = active;
     this.taDocumentID     = taDocumentID;
 }
        //public TADocumentSchedule(TADocumentDataSet.TADocumentScheduleRow taDocumentScheduleRow)
        //{
        //this.scheduleID = taDocumentScheduleRow.ScheduleID;
        //this.taDocumentID = new TADocument(taDocumentScheduleRow.TADocumentID);
        //this.date = taDocumentScheduleRow.Date;
        //this.departureFrom = taDocumentScheduleRow.DepartureFrom;
        //this.arrivalAt = taDocumentScheduleRow.ArrivalAt;
        //this.travelBy = taDocumentScheduleRow.TravelBy;
        //this.time = taDocumentScheduleRow.Time;
        //this.flightNo = taDocumentScheduleRow.FlightNo;
        //this.travellingDetail = taDocumentScheduleRow.TravellingDetail;
        //this.Active = taDocumentScheduleRow.Active;
        //this.CreBy = taDocumentScheduleRow.CreBy;
        //this.CreDate = taDocumentScheduleRow.CreDate;
        //this.UpdBy = taDocumentScheduleRow.UpdBy;
        //this.UpdDate = taDocumentScheduleRow.UpdDate;
        //this.UpdPgm = taDocumentScheduleRow.UpdPgm;
        //}
        #endregion Constructors of DataSet

        #region INHibernateAdapterDTO<int> Members
        public void LoadFromDataRow(DataRow dr)
        {
            this.ScheduleID = Convert.ToInt32(dr["ScheduleID"]);
            if (!string.IsNullOrEmpty(dr["TADocumentID"].ToString()))
            {
                this.TADocumentID = new TADocument(Convert.ToInt64(dr["TADocumentID"]));
            }
            this.Date             = Convert.ToDateTime(dr["Date"]);
            this.DepartureFrom    = dr["DepartureFrom"].ToString();
            this.ArrivalAt        = dr["ArrivalAt"].ToString();
            this.TravelBy         = dr["TravelBy"].ToString();
            this.Time             = dr["Time"].ToString();
            this.FlightNo         = dr["FlightNo"].ToString();
            this.TravellingDetail = dr["TravellingDetail"].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();
        }