private void lblFour_3_Click(object sender, System.EventArgs e) { int_lblFour(); lblFour_3.ForeColor=System.Drawing.Color.Firebrick; if (!frmOvertime.IsDisposed) { frmOvertime.Close(); } frmOvertime.initData(oUser); frmOvertime.SetEmployeeRecord(employee); frmOvertime.SetTerminalUser(terminalUser); frmOvertime = new ACMS.ACMSManager.Human_Resource.frmOvertimeMain(); frmOvertime.TopLevel = false; frmOvertime.Dock = DockStyle.Fill; frmOvertime.Parent = panel2; frmOvertime.Show(); panel2.Refresh(); }
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(); }