예제 #1
0
 private void lblFour_5_Click(object sender, System.EventArgs e)
 {
     int_lblFour();
     lblFour_5.ForeColor=System.Drawing.Color.Firebrick;
     if (!frmHRLeave.IsDisposed)
     {
         frmHRLeave.Close();
     }
     frmHRAppointment.initData(oUser);
     frmHRAppointment.SetEmployeeRecord(employee);
     frmHRAppointment.SetTerminalUser(terminalUser);
     frmHRAppointment = new ACMS.ACMSManager.Human_Resource.frmAppointment();
     frmHRAppointment.TopLevel = false;
     frmHRAppointment.Dock = DockStyle.Fill;
     frmHRAppointment.Parent = panel2;
     frmHRAppointment.Show();
     panel2.Refresh();
 }
예제 #2
0
        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();
        }