private bool check_grid_data_ok()
{
if (!check_ma_ko_trung_lap(1))
{
DevExpress.XtraEditors.XtraMessageBox.Show("Một số mã nhân viên bị trùng nhau. Vui lòng kiểm tra lại");
co_ma_nhan_vien_trung = true;
}
if (!check_ma_ko_trung_lap(2))
{
DevExpress.XtraEditors.XtraMessageBox.Show("Một số mã hợp đồng bị trùng nhau. Vui lòng kiểm tra lại");
co_ma_hop_dong_trung = true;
}
for (int chi_so_hang = 0; chi_so_hang < m_grv_hop_dong.RowCount; chi_so_hang++)
{
for (int chi_so_cot = 1; chi_so_cot < 14; chi_so_cot++)
{
if(chi_so_cot == 4 || chi_so_cot == 5 || chi_so_cot == 6 || chi_so_cot == 7 || chi_so_cot == 12 || chi_so_cot == 13)
{
continue;
}
else
{
check_client(chi_so_hang, chi_so_cot);
}
//if (check_client(chi_so_hang, chi_so_cot))
//{
// check_logic(chi_so_hang, chi_so_cot);
//}
}
}
if (m_list_vi_tri_sai.Count == 0 & !co_ma_nhan_vien_trung & !co_ma_hop_dong_trung)
{
return true;
}
hien_thi_vi_tri_sai();
return false;
}