Пример #1
0
        private void Shift_HrApprove()
        {

            HRDOCS.Shift_ApproveHR shifthrapprove = new Shift_ApproveHR();
            //if (!ActivateForm(shifthrapprove))
            if (!this.CheckOpened(shifthrapprove.Name))
            {
                shifthrapprove.EmplId = ClassCurUser.LogInEmplId;
                shifthrapprove.EmplName = ClassCurUser.LogInEmplName;
                shifthrapprove.Key = ClassCurUser.LogInEmplKey;

                shifthrapprove.SysOutoffice = ClassCurUser.SysOutoffice;
                shifthrapprove.Section = ClassCurUser.LogInSection;
                shifthrapprove.HrApproveOut = ClassCurUser.SysHrApproveOut;

                shifthrapprove.StartPosition = FormStartPosition.CenterParent;
                shifthrapprove.WindowState = FormWindowState.Maximized;
                //if (HrApproveOut.Section == "02" || HrApproveOut.EmplId == "M9999999")
                //{
                if (shifthrapprove.HrApproveOut == "1")
                {
                    shifthrapprove.MdiParent = this;
                    shifthrapprove.Show();
                }
                else
                {
                    MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
                }
            }




        }
Пример #2
0
        void Btn_HRApprove_Click(object sender, EventArgs e)
        {
            using (Shift_ApproveHR frm = new Shift_ApproveHR())
            {
                frm.Text = "บุคคล อนุมัติ";

                if (ClassForm.ShowDialog(frm) == DialogResult.Yes)
                {

                }
            }
        }