示例#1
0
文件: FormMain.cs 项目: SUPCDEV/HROS
        //...............

        //<Payment>
        #region Payment
        private void PayCreat()
        {
            if (CheckPayLogIn() == true)
            {
                HRDOCS.Pay_Creat creat = new Pay_Creat();

                if (!this.CheckOpened(creat.Name))
                {
                    creat.EmplId = ClassCurUser.LogInEmplId;
                    creat.EmplName = ClassCurUser.LogInEmplName;
                    creat.Key = ClassCurUser.LogInEmplKey;
                    creat.Section = ClassCurUser.LogInSection;

                    creat.StartPosition = FormStartPosition.CenterParent;
                    creat.WindowState = FormWindowState.Maximized;

                    if ((creat.Section == "01") || (creat.EmplId == "M9999999"))
                    {
                        creat.MdiParent = this;
                        creat.Show();
                    }
                    else
                    {
                        MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
                    }
                }
            }
            else
            {
                // MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
                return;
            }
        }
示例#2
0
文件: Pay_Menu.cs 项目: SUPCDEV/HROS
 private void lbl_Creat_Click(object sender, EventArgs e)
 {
     Pay_Creat frm = new Pay_Creat();
     frm.Show();
 }