public void RefreshRoster() { this.SuspendLayout(); int n=frmRoster.WeekNo; if (!frmRoster.IsDisposed) { frmRoster.Close(); } frmRoster.initData(oUser); frmRoster.SetEmployeeRecord(employee); frmRoster.SetTerminalUser(terminalUser); frmRoster = new ACMS.ACMSManager.Human_Resource.frmRosterMain(); frmRoster.WeekNo = n; panel2.Controls.Clear(); frmRoster.TopLevel = false; frmRoster.Dock = DockStyle.Fill; frmRoster.Parent = panel2; frmRoster.Show(); panel2.Refresh(); this.ResumeLayout(); }
private void frmManager_Load(object sender, System.EventArgs e) { barstaticCurrentLogin.Caption = string.Format(barstaticCurrentLogin.Caption, employee.StrEmployeeName, DateTime.Now.ToString("dd MMMM yyyy")); connectionString = (string)ConfigurationSettings.AppSettings["Main.ConnectionString"]; connection = new SqlConnection(connectionString); TabManager_init(); FontStyle FontStyle001; FontStyle001 = FontStyle.Bold; FontStyle001 = (System.Drawing.FontStyle) System.Convert.ToInt32(FontStyle001)+System.Convert.ToInt32(FontStyle.Underline); Font001 = new Font("Microsoft Sans Serif", 10, FontStyle001); Font002 = new Font("Microsoft Sans Serif", 10, FontStyle.Bold); Font003 = new Font("Microsoft Sans Serif", (float)8.25, FontStyle001); Font004 = new Font("Microsoft Sans Serif", (float)8.25, FontStyle.Bold); myCommon = new ACMS.Utils.Common(); frmRoster = new ACMS.ACMSManager.Human_Resource.frmRosterMain(); frmTimeSheet = new ACMS.ACMSManager.Human_Resource.frmTimeSheetMain(); frmOvertime = new ACMS.ACMSManager.Human_Resource.frmOvertimeMain(); frmHRLeave = new ACMS.ACMSManager.Human_Resource.frmLeave(); frmHRAppointment = new ACMS.ACMSManager.Human_Resource.frmAppointment(); //IPP InitIPP(); LoadIPP(); //Payroll Init_Payroll_cmbJob(); //Master Data mdInit(); Init_Master_lookUp(); }