コード例 #1
0
ファイル: frmManager.cs プロジェクト: kimykunjun/test
        private void lblFour_2_Click(object sender, System.EventArgs e)
        {
            int_lblFour();
            lblFour_2.ForeColor=System.Drawing.Color.Firebrick;

            if (!frmTimeSheet.IsDisposed)
            {
                frmTimeSheet.Close();
            }
            frmTimeSheet = new ACMS.ACMSManager.Human_Resource.frmTimeSheetMain();
            frmTimeSheet.initData(oUser);
            frmTimeSheet.SetEmployeeRecord(employee);
            frmTimeSheet.SetTerminalUser(terminalUser);
            frmTimeSheet.TopLevel = false;
            frmTimeSheet.Dock = DockStyle.Fill;
            frmTimeSheet.Parent = panel2;
            frmTimeSheet.Show();
            panel2.Refresh();
        }
コード例 #2
0
ファイル: frmManager.cs プロジェクト: kimykunjun/test
        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();
        }