CapNhatHetHieuLucCongTac() public method

public CapNhatHetHieuLucCongTac ( decimal ip_dc_id_nhan_vien, System.DateTime ip_dat_ngay_ket_thuc ) : void
ip_dc_id_nhan_vien decimal
ip_dat_ngay_ket_thuc System.DateTime
return void
        private void cap_nhat_gd_cong_tac()
        {
            US_GD_CONG_TAC v_us = new US_GD_CONG_TAC();
            v_us.dcID_NHAN_VIEN = CIPConvert.ToDecimal(m_sle_chon_nhan_vien.EditValue);
            v_us.dcID_DON_VI = CIPConvert.ToDecimal(m_sle_don_vi.EditValue);
            v_us.datNGAY_BAT_DAU = m_dat_ngay_bat_dau.DateTime.Date;
            if (m_dat_ngay_ket_thuc.DateTime.Date != DateTime.MinValue.Date)
                v_us.datNGAY_KET_THUC = m_dat_ngay_ket_thuc.DateTime.Date;
            v_us.datNGAY_LAP = DateTime.Now.Date;
            v_us.strNGUOI_LAP = CAppContext_201.getCurrentUserName();
            v_us.strDA_XOA = "N";
            v_us.dcID_LOAI_CONG_TAC = 157;
            v_us.dcID_VI_TRI = CIPConvert.ToDecimal(m_sle_chuc_vu.EditValue);
            v_us.dcSO_HO_SO = ExecuteFuntion.GetSoHoSoNext(v_us.dcID_DON_VI, v_us.dcID_VI_TRI, v_us.dcID_NHAN_VIEN);

            v_us.UseTransOfUSObject(m_us_gd_hd);
            v_us.CapNhatHetHieuLucCongTac(v_us.dcID_NHAN_VIEN, m_dat_ngay_bat_dau.DateTime.Date);
            v_us.Insert();

            //v_us.CommitTransaction();
        }
 private void save_for_cham_dut_cong_tac(US_GD_CONG_TAC ip_us_ct_hien_tai)
 {
     ip_us_ct_hien_tai.CapNhatHetHieuLucCongTac(ip_us_ct_hien_tai.dcID_NHAN_VIEN, ip_us_ct_hien_tai.datNGAY_KET_THUC);
     CHRM_BaseMessages.MsgBox_Infor(CONST_ID_MSGBOX.INFOR_LUU_DU_LIEU_THANH_CONG);
     Close();
 }