/*******************************************************************************************************************\ * * \*******************************************************************************************************************/ private void frmSched_Load(object sender, EventArgs e) { //load_data(); tlpCrew.AutoScroll = true; tlpCrew.RowStyles.Clear(); tlpCrew.ColumnStyles.Clear(); tlpCrew.RowCount = 0; tlpCrew.ColumnCount = 0; //load_crew_from_row(RefWeek, row); //load_crew_from_file(RefWeek); //load_shift(); //load_totals(); DataTable dtToff = dacToff.GetDS().Tables[0]; cbxLegend.DataSource = dtToff; cbxLegend.ValueMember = "ToffKey"; cbxLegend.DisplayMember = "ToffDesc"; // Kludge : have to fix the auto select problem cbxLegend.SelectedIndex = -1; cbxLegend.SelectedIndexChanged += new EventHandler(cbxLegend_SelectedIndexChanged); //update_timebook(); this.Text = string.Format("Schedule for Weeks [{0} to {1}]", RefWeek.ToShortDateString(), RefWeek.AddDays(7).ToShortDateString()); }
/*******************************************************************************************************************\ * * \*******************************************************************************************************************/ private void frmStaff_Load(object sender, EventArgs e) { //load_data(); //tlpCrew.AutoScroll = true; //tlpCrew.RowStyles.Clear(); //tlpCrew.ColumnStyles.Clear(); //tlpCrew.RowCount = 0; //tlpCrew.ColumnCount = 0; //load_crew_from_row(RefWeek, row); //load_crew_from_file(RefWeek); //load_shift(); //load_totals(); //update_timebook(); this.Text = string.Format("Salary Hours for [{0} to {1}]", RefWeek.ToShortDateString(), RefWeek.AddDays(7).ToShortDateString()); }
/*******************************************************************************************************************\ * * \*******************************************************************************************************************/ private void frmStaff_Load(object sender, EventArgs e) { //load_data(); //tlpCrew.AutoScroll = true; //tlpCrew.RowStyles.Clear(); //tlpCrew.ColumnStyles.Clear(); //tlpCrew.RowCount = 0; //tlpCrew.ColumnCount = 0; //load_crew_from_row(RefWeek, row); //load_crew_from_file(RefWeek); //load_shift(); //load_totals(); //update_timebook(); InitLoadReady(); tlpStaff.Show(); // GS180907 - Modify Version using GapLib //this.Text = string.Format("PayCodes for [{0} to {1}] V1.18.2.0", this.Text = string.Format("PayCodes for [{0} to {1}] V{2}", RefWeek.ToShortDateString(), RefWeek.AddDays(7).ToShortDateString(), GAPP.GapLib.AssemblyVersion); }
/*******************************************************************************************************************\ * * \*******************************************************************************************************************/ private void frmBoats_Load(object sender, EventArgs e) { //load_data(); //load_crew_from_row(RefWeek, row); //load_crew_from_file(RefWeek); //load_shift(); //load_totals(); //update_timebook(); this.Text = string.Format("Boats for Weeks [{0} to {1}]", RefWeek.ToShortDateString(), RefWeek.AddDays(7).ToShortDateString()); }
private void dtpLogDate_ValueChanged(object sender, EventArgs e) { DateTime user_day = ((DateTimePicker)sender).Value; RefWeek = set_date(user_day); draw_head(RefWeek.AddDays(7), DateTime.Now, SetAsCurrent, lblWeek2, tbxMon2, tbxTue2, tbxWed2, tbxThu2, tbxFri2, tbxSat2, tbxSun2); draw_head(RefWeek, DateTime.Now, SetAsCurrent, lblWeek, tbxMon, tbxTue, tbxWed, tbxThu, tbxFri, tbxSat, tbxSun); //update_timebook(); this.Text = string.Format("Schedule for Weeks [{0} to {1}]", RefWeek.ToShortDateString(), RefWeek.AddDays(7).ToShortDateString()); }
private void dtpLogDate_CloseUp(object sender, EventArgs e) { DateTime user_day = ((DateTimePicker)sender).Value; RefWeek = set_date(user_day); DataSet ds = dacTimebook.GetDS(RefWeek, 14); _dt_crew = ds.Tables[0]; reset_week(RefWeek); refresh_data(RefWeek, _show_all); draw_head(RefWeek.AddDays(7), DateTime.Now, SetAsCurrent, lblWeek2, tbxMon2, tbxTue2, tbxWed2, tbxThu2, tbxFri2, tbxSat2, tbxSun2); draw_head(RefWeek, DateTime.Now, SetAsCurrent, lblWeek, tbxMon, tbxTue, tbxWed, tbxThu, tbxFri, tbxSat, tbxSun); update_timebook(_show_all); // after date change on form this.Text = string.Format("Schedule for Weeks [{0} to {1}]", RefWeek.ToShortDateString(), RefWeek.AddDays(7).ToShortDateString()); }