/// <summary>
        /// Bind IDataReader to Entity
        /// </summary>
        public static ExpandTimeSheetsEntity ReaderBind(IDataReader dataReader)
        {
            TimeSheetsEntity       model       = TimeSheetsEntity.ReaderBind(dataReader);
            ExpandTimeSheetsEntity expandModel = (ExpandTimeSheetsEntity)model;

            expandModel.TicketDescription = dataReader["TicketDescription"].ToString();
            return(expandModel);
        }
Esempio n. 2
0
        public static ExpandTimeSheetsEntity CreateExpandTimeSheet(int createUserID, ISystemDateTime datetimeProvider)
        {
            ExpandTimeSheetsEntity model = new ExpandTimeSheetsEntity();

            model.ID         = 0;
            model.CreatedBy  = createUserID;
            model.CreatedOn  = datetimeProvider.Now;
            model.ModifiedBy = createUserID;
            model.ModifiedOn = datetimeProvider.Now;

            model.Description       = string.Empty;
            model.Hours             = 0;
            model.IsMeeting         = false;
            model.IsSubmitted       = false;
            model.Percentage        = 0;
            model.ProjectID         = 0;
            model.SheetDate         = datetimeProvider.Now;
            model.TicketID          = 0;
            model.TicketDescription = string.Empty;
            model.UserID            = 0;

            return(model);
        }