Example #1
0
        private void testSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmParameter objpara = new frmParameter();

            objpara.MdiParent = this;
            objpara.Show();
        }
Example #2
0
        private void ClickEvent(string ID, string NAME, string Group)
        {
            switch (Group.ToUpper())
            {
            case "MASTER":
                if (NAME == "NEW ENTRY")
                {
                    frmPatientMas ObjPatientMas = new frmPatientMas();
                    ObjPatientMas.MdiParent = this;
                    ObjPatientMas.Show();
                }
                else if (NAME == "PRINT BILL")
                {
                    frmBill objbill = new frmBill();
                    objbill.MdiParent = this;
                    objbill.Show();
                }
                break;

            case "REPORT":
                DataRow[] rw = GLOBAL.ds.Tables["PARA_TYPE_MAS"].Select("PARA_TYPE='" + NAME + "'");
                if (rw.Length != 0)
                {
                    frmReport objReport = new frmReport(Convert.ToInt32(rw[0]["PARA_TYPE_CODE"]));
                    objReport.MdiParent = this;
                    objReport.Show();
                }
                break;

            case "USER":
                if (NAME == "USER SETTINGS")
                {
                    frmUserSettings objUser = new frmUserSettings();
                    objUser.MdiParent = this;
                    objUser.Show();
                }
                else if (NAME == "DATABASE")
                {
                    frmDatabase objDB = new frmDatabase();
                    objDB.MdiParent = this;
                    objDB.Show();
                }
                else if (NAME == "VIEW")
                {
                    frmExtraReport objDB = new frmExtraReport();
                    objDB.MdiParent = this;
                    objDB.Show();
                }
                break;

            case "SETTINGS":
                if (NAME == "REPORT SETTINGS")
                {
                    frmParameter objpara = new frmParameter();
                    objpara.MdiParent = this;
                    objpara.Show();
                }
                else if (NAME == "LABORATORY SETTINGS")
                {
                    frmCompanySettings objpara = new frmCompanySettings();
                    objpara.MdiParent = this;
                    objpara.Show();
                }
                else if (NAME == "MENU SETTINGS")
                {
                    frmMenuSettings objpara = new frmMenuSettings();
                    objpara.MdiParent = this;
                    objpara.Show();
                }
                else if (NAME == "TEST PRICE SETTINGS")
                {
                    frmPriceList objpara = new frmPriceList();
                    objpara.MdiParent = this;
                    objpara.Show();
                }
                break;
            }
        }
Example #3
0
        private void btnTestDetail_Click(object sender, EventArgs e)
        {
            frmParameter objpara = new frmParameter();

            objpara.ShowDialog();
        }