private check_thoi_gian_hop_dong_Insert ( ) : bool | ||
return | bool |
private bool check_thoi_gian_hop_dong_Insert()
{
//Hợp đồng hợp lệ khi trong một khoảng thời gian chỉ có một hợp đồng
US_GD_HOP_DONG v_us = new US_GD_HOP_DONG();
DateTime v_dat_den_ngay = m_dat_ngay_ket_thuc.EditValue == null ? new DateTime(2100, 01, 01).Date : m_dat_ngay_ket_thuc.DateTime.Date;
return v_us.KiemTraThoiGianHopDongHopLeForInsert(Convert.ToDecimal(m_sle_chon_nhan_vien.EditValue), m_dat_ngay_bat_dau.DateTime.Date, v_dat_den_ngay);
}