Пример #1
0
 public void tx(mgmt_opr opr, string log_ID)
 {
     ID       = log_ID;
     opr_temp = opr;
     this.Show();
     try
     {
         dt_temp.Clear();
         string SqlString = "Select * From Prod_mgmt";
         if (Main.Amatrix.mgt == "")
         {
             using (SqlCeConnection conn = new SqlCeConnection(Properties.Settings.Default.Amdtbse_4ConnectionString))
             {
                 using (SqlCeCommand cmd = new SqlCeCommand(SqlString, conn))
                 {
                     cmd.CommandType = CommandType.Text;
                     conn.Open();
                     SqlCeDataReader reader = cmd.ExecuteReader();
                     dt_temp.Load(reader, LoadOption.PreserveChanges, "Prod_mgmt");
                     dataGridView1.DataSource = dt_temp.Tables[0];
                     conn.Close();
                 }
             }
         }
         else
         {
             using (SqlConnection conn = new SqlConnection(Main.Amatrix.mgt))
             {
                 using (SqlCommand cmd = new SqlCommand(SqlString, conn))
                 {
                     cmd.CommandType = CommandType.Text;
                     conn.Open();
                     SqlDataReader reader = cmd.ExecuteReader();
                     dt_temp.Load(reader, LoadOption.PreserveChanges, "Prod_mgmt");
                     dataGridView1.DataSource = dt_temp.Tables[0];
                     conn.Close();
                 }
             }
         }
     }
     catch (Exception erty) {  }
 }
Пример #2
0
 private void employeeAndCompanyInformationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (sender.Equals(employeeAndCompanyInformationToolStripMenuItem) == true)
     {
         First_use fs = new First_use();
         fs.Show();
     }
     if (sender.Equals(connectionSettingsToolStripMenuItem1) == true)
     {
         First_use_optn op = new First_use_optn();
         op.Show();
     }
     if (sender.Equals(connectionSettingsToolStripMenuItem) == true)
     {
         loggy lg = new loggy();
         lg.Show();
     }
     if (sender.Equals(runApplicationToolStripMenuItem) == true)
     {
         try
         {
             System.Diagnostics.Process.Start(Environment.CurrentDirectory + "\\ShareP\\Amatrix Document Server.exe");
         }
         catch (Exception erty) { Am_err ner = new Am_err(); ner.tx("Unable to open Share Point, the .exe is missing, Call maintenance for Check-up."); }
     }
     if (sender.Equals(vvmmkt) == true)
     {
         mgmt_opr op = new mgmt_opr();
         op.Show();
     }
     if (sender.Equals(projectManagmentToolStripMenuItem) == true)
     {
         mgmt_stratgy st = new mgmt_stratgy();
         st.Show();
     }
     if (sender.Equals(openHumanResourcesToolStripMenuItem) == true)
     {
         mgmt_hr hr = new mgmt_hr();
         hr.Show();
     }
     if (sender.Equals(openCustomerManagmentToolStripMenuItem) == true)
     {
         mgmt_pr pr = new mgmt_pr();
         pr.Show();
     }
     if (sender.Equals(openProductManagmentToolStripMenuItem) == true)
     {
         mgmt_supch sh = new mgmt_supch();
         sh.Show();
     }
     if (sender.Equals(jrnlstrt) == true)
     {
         acc_journ jrn = new acc_journ();
         jrn.Show();
     }
     if (sender.Equals(ldg) == true)
     {
         acc_ledg ld_g = new acc_ledg();
         ld_g.Show();
     }
     if (sender.Equals(incvd) == true)
     {
         acc_invce vce = new acc_invce();
         vce.Show();
     }
     if (sender.Equals(openRePartitionerToolStripMenuItem) == true)
     {
         reparttn tn = new reparttn();
         tn.Show();
     }
 }
Пример #3
0
        private void btnacc_Click(object sender, EventArgs e)
        {
            mgmt_opr opr = new mgmt_opr();

            opr.Show();
        }