Beispiel #1
0
        //private void Cmb_Manufacture_Click(object sender, EventArgs e)
        //{
        //    //DataTable dt = this.cntrl.Fill_manufactureCombo();
        //    //Fill_ManufactureCombo(dt);
        //}

        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            if (doctor_id != "1")
            {
                string id = this.cntrl.privilge_for_inventory(doctor_id);
                if (int.Parse(id) > 0)
                {
                    MessageBox.Show("There is No Privilege to View the Inventory", "Security Role", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                }
                else
                {
                    var form2 = new StockReport();
                    form2.doctor_id = doctor_id;
                    form2.Closed   += (sender1, args) => this.Close();
                    this.Hide();
                    form2.Show();
                }
            }
            else
            {
                var form2 = new StockReport();
                form2.doctor_id = doctor_id;
                form2.Closed   += (sender1, args) => this.Close();
                this.Hide();
                form2.Show();
            }
        }
Beispiel #2
0
 private void toolStripButton5_Click(object sender, EventArgs e)
 {
     try
     {
         string id = this.ctrlr.getprev(doctor_id);
         if (doctor_id != "1")
         {
             if (int.Parse(id) > 0)
             {
                 MessageBox.Show("There is No Privilege to View the Inventory", "Security Role", MessageBoxButtons.OK, MessageBoxIcon.Stop);
             }
             else
             {
                 var form2 = new StockReport();
                 form2.doctor_id = doctor_id;
                 form2.Closed   += (sender1, args) => this.Close();
                 this.Hide();
                 form2.Show();
             }
         }
         else
         {
             var form2 = new StockReport();
             form2.doctor_id = doctor_id;
             form2.Closed   += (sender1, args) => this.Close();
             this.Hide();
             form2.Show();
         }
     }
     catch (Exception ex)
     { MessageBox.Show(ex.Message, "Error!...", MessageBoxButtons.OK, MessageBoxIcon.Error); }
 }
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            var form2 = new StockReport();

            form2.doctor_id = doctor_id;
            form2.Closed   += (sender1, args) => this.Close();
            this.Hide();
            form2.Show();
        }
 private void stockReportsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         StockReport myStockReport = new StockReport();
         myStockReport.MdiParent = this;
         MessageBox.Show("The Stock Reports Table was loaded Succcessfully. Please Press OK. to continue.");
         myStockReport.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }