Esempio n. 1
0
 public Oklad(MySqlOperations mySqlOperations, MySqlQueries mySqlQueries)
 {
     InitializeComponent();
     MySqlOperations         = mySqlOperations;
     MySqlQueries            = mySqlQueries;
     dateTimePicker1.Value   = DateTime.Now;
     dateTimePicker1.MaxDate = DateTime.Parse(DateTime.Now.ToShortDateString());
 }
 public Main(string login, string password)
 {
     InitializeComponent();
     MySqlOperations = new MySqlOperations(MySqlQueries);
     MySqlQueries    = new MySqlQueries();
     Login           = login;
     Password        = password;
 }
 public Print_Tabel_Dialog(string iD, MySqlOperations mySqlOperations, MySqlQueries mySqlQueries)
 {
     InitializeComponent();
     ID = iD;
     MySqlOperations       = mySqlOperations;
     MySqlQueries          = mySqlQueries;
     dateTimePicker1.Value = DateTime.Now;
 }
 public Vyplaty(MySqlOperations mySqlOperations, MySqlQueries mySqlQueries)
 {
     InitializeComponent();
     MySqlOperations       = mySqlOperations;
     MySqlQueries          = mySqlQueries;
     dateTimePicker1.Value = DateTime.Now;
     dateTimePicker2.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
     MySqlOperations.Select_ComboBox(MySqlQueries.Select_Sotrudniki_ComboBox, comboBox1);
 }
 public Print_Vedomost_Dialog(MySqlOperations mySqlOperations, MySqlQueries mySqlQueries, string iD = null)
 {
     InitializeComponent();
     ID = iD;
     MySqlOperations       = mySqlOperations;
     MySqlQueries          = mySqlQueries;
     dateTimePicker1.Value = DateTime.Now;
     mySqlOperations.Select_ComboBox(mySqlQueries.Select_Otdely_ComboBox, comboBox1);
 }
Esempio n. 6
0
 public Sotrudniki(MySqlOperations mySqlOperations, MySqlQueries mySqlQueries)
 {
     InitializeComponent();
     MySqlOperations = mySqlOperations;
     MySqlQueries    = mySqlQueries;
     MySqlOperations.Select_ComboBox(MySqlQueries.Select_Otdely_ComboBox, comboBox1);
     MySqlOperations.Select_ComboBox(MySqlQueries.Select_Doljnosti_ComboBox, comboBox2);
     MySqlOperations.Select_ComboBox(MySqlQueries.Select_Oklad_ComboBox, comboBox3);
     MySqlOperations.Select_ComboBox(MySqlQueries.Select_Rasch_Scheta_ComboBox, comboBox4);
 }
 public Tabel(string id, MySqlOperations mySqlOperations, MySqlQueries mySqlQueries, string query)
 {
     InitializeComponent();
     ID = id;
     MySqlOperations = mySqlOperations;
     MySqlQueries    = mySqlQueries;
     MySqlOperations.Select_DataGridView(query, dataGridView1, ID);
     if (int.TryParse(ID, out int result) != true)
     {
         MySqlOperations.Select_Text(MySqlQueries.Select_ID_Sotrudnika, ref ID, null, ID);
     }
     Cancel_Update();
 }
 public Doljnosti(MySqlOperations mySqlOperations, MySqlQueries mySqlQueries)
 {
     InitializeComponent();
     MySqlOperations = mySqlOperations;
     MySqlQueries    = mySqlQueries;
 }
Esempio n. 9
0
 public LogIn()
 {
     InitializeComponent();
     MySqlQueries    = new MySqlQueries();
     MySqlOperations = new MySqlOperations(MySqlQueries);
 }
 public Otdely(MySqlOperations mySqlOperations, MySqlQueries mySqlQueries)
 {
     InitializeComponent();
     MySqlOperations = mySqlOperations;
     MySqlQueries    = mySqlQueries;
 }
 public Raschetniki(MySqlOperations mySqlOperations, MySqlQueries mySqlQueries)
 {
     InitializeComponent();
     MySqlOperations = mySqlOperations;
     MySqlQueries    = mySqlQueries;
 }