private bool check_client(int chi_so_hang, int chi_so_cot)
{
//neu loai hop dong la thu viec hoac vo thoi han thi dc null
//if (chi_so_cot == 12)
//{
// var loai_hop_dong = m_grv_hop_dong.GetDataRow(chi_so_hang)[3];
// if (loai_hop_dong != null)
// {
// if (!String.IsNullOrEmpty(loai_hop_dong.ToString()))
// {
// string ma = loai_hop_dong.ToString();
// if (check_ma_ok(m_list_dt_table[2], ma))
// {
// if (ma != "HDTV" | ma != "HDKX")
// {
// if (String.IsNullOrEmpty(m_grv_hop_dong.GetDataRow(chi_so_hang)[12].ToString()))
// {
// m_list_vi_tri_sai.Add(new ViTriTrenLuoi(chi_so_hang, chi_so_cot, " Chưa điền thông tin "));
// return false;
// }
// }
// }
// }
// }
// return true;
//}
//if(chi_so_cot == 6 | chi_so_cot == 7)
//{
// var ma_lns = m_grv_hop_dong.GetDataRow(chi_so_hang)[6].ToString();
// var muc_lns = m_grv_hop_dong.GetDataRow(chi_so_hang)[7].ToString();
// if(String.IsNullOrEmpty(ma_lns) & String.IsNullOrEmpty(muc_lns))
// {
// return true;
// }
//}
if (String.IsNullOrEmpty(m_grv_hop_dong.GetDataRow(chi_so_hang)[chi_so_cot].ToString()))
{
m_list_vi_tri_sai.Add(new ViTriTrenLuoi(chi_so_hang, chi_so_cot, " Chưa điền thông tin "));
return false;
}
return true;
}