Ejemplo n.º 1
0
        void Btn_Search_Click(object sender, EventArgs e)
        {
            using (Shift_SearchData frm = new Shift_SearchData())
            {
                frm.Text = "ดูข้อมูล";

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

                }
            }
        }
Ejemplo n.º 2
0
        private void Shift_StatusNewDoc()
        {
            //if (ClassCurUser.LogInSection == "32" || ClassCurUser.LogInSection == "322")
            //{
            //if (CheckShiftLogIn() == true)
            if (CheckLogIn() == true)
            {

                HRDOCS.Shift_SearchData shiftstatus = new Shift_SearchData();
                if (!this.CheckOpened(shiftstatus.Name))
                {
                    shiftstatus.StartPosition = FormStartPosition.CenterParent;
                    shiftstatus.WindowState = FormWindowState.Maximized;
                    shiftstatus.MdiParent = this;
                    shiftstatus.Show();
                }

                //HRDOCS.Shift_SearchData shiftstatus = new Shift_SearchData();
                //if (!ActivateForm(shiftstatus))
                //{
                //    shiftstatus.StartPosition = FormStartPosition.CenterParent;
                //    shiftstatus.WindowState = FormWindowState.Maximized;
                //    shiftstatus.MdiParent = this;
                //    shiftstatus.Show();
                //}
            }
            //}
            else
            {
                MessageBox.Show("คุณไม่มีสิทธิเข้าถึงหน้านี้ได้");
            }

        }