예제 #1
0
        private void fld_dteHRRewardFromDate_Validated(object sender, EventArgs e)
        {
            int      n1           = fld_dteHRTimeSheetDate.DateTime.Year;
            int      n2           = fld_dteHRTimeSheetDate.DateTime.Month;
            DateTime date         = new DateTime(n1, n2, 1);
            DateTime dateEndMonth = VinaUtil.GetMonthEndDate(date);

            fld_dteHRTimeSheetToDate.DateTime   = dateEndMonth;
            fld_dteHRTimeSheetFromDate.DateTime = date;
            ((TimeSheetModule)Module).ChangeTimeSheetTime();
        }
예제 #2
0
        public override void SetDefaultMainObject()
        {
            base.SetDefaultMainObject();
            HRTimeSheetsInfo objTimeSheetsInfo = (HRTimeSheetsInfo)MainObject;

            objTimeSheetsInfo.HRTimeSheetDate     = DateTime.Now;
            objTimeSheetsInfo.HRTimeSheetFromDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            objTimeSheetsInfo.HRTimeSheetToDate   = VinaUtil.GetMonthEndDate(DateTime.Now);
            objTimeSheetsInfo.HRTimeSheetType     = TimeSheetType.Day.ToString();
            objTimeSheetsInfo.HRTimeSheetStatus   = TimeSheetStatus.New.ToString();
            objTimeSheetsInfo.FK_HREmployeeID     = VinaApp.CurrentUserInfo.FK_HREmployeeID;
        }