Example #1
0
        private void frm_PlateZaposlenika_Load(object sender, EventArgs e)
        {
            DA_Zaposlenici.getZaposlenike(ds_Zaposlenici.view_Zaposlenici);

            dGV_Zaposlenici.AutoGenerateColumns = false;
            dGV_Zaposlenici.DataSource          = ds_Zaposlenici.view_Zaposlenici;
        }
Example #2
0
 private void btn_Search_Click(object sender, EventArgs e)
 {
     if (txt_fName.TextLength > 0 || txt_lName.TextLength > 0)
     {
         DA_Zaposlenici.getZaposlenike_by_fNameAndlName(ds_Zaposlenici.view_Zaposlenici, txt_fName.Text, txt_lName.Text);
         dGV_Zaposlenici.DataSource = ds_Zaposlenici.view_Zaposlenici;
     }
 }
Example #3
0
        private void btn_DateClear_Click(object sender, EventArgs e)
        {
            DS_Zaposlenici.EmployeePayHistoryDataTable dt_EmployeePayHistory = ds_Zaposlenici.EmployeePayHistory;

            DA_Zaposlenici.getPlate_by_EmployeeID(dt_EmployeePayHistory, (int)dGV_Zaposlenici.SelectedRows[0].Cells["EmployeeID"].Value);
            dGV_Plate.DataSource = dt_EmployeePayHistory;

            dTP_From.Value = new DateTime(2000, 1, 1);
            dTP_To.Value   = DateTime.Today;
        }
Example #4
0
        private void dGV_Zaposlenici_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            DS_Zaposlenici.EmployeePayHistoryDataTable dt_EmployeePayHistory = ds_Zaposlenici.EmployeePayHistory;
            DA_Zaposlenici.getPlate_by_EmployeeID(dt_EmployeePayHistory, (int)dGV_Zaposlenici.SelectedRows[0].Cells["EmployeeID"].Value);

            dGV_Plate.AutoGenerateColumns = false;
            dGV_Plate.DataSource          = dt_EmployeePayHistory;
            if (dt_EmployeePayHistory.Count > 1)
            {
                enable_buttons(true);
            }
            else
            {
                enable_buttons(true);
            }
        }
Example #5
0
 private void btn_DateSearch_Click(object sender, EventArgs e)
 {
     DA_Zaposlenici.getPlate_by_EmployeeIDAndDate(ds_Zaposlenici.EmployeePayHistory, (int)dGV_Zaposlenici.SelectedRows[0].Cells["EmployeeID"].Value, dTP_From.Value, dTP_To.Value);
     dGV_Plate.DataSource = ds_Zaposlenici.EmployeePayHistory;
 }