private void cho_us_gd_hs_lns_da_xoa_Y() { US_GD_HE_SO_LNS v_us = new US_GD_HE_SO_LNS(m_id_gd_hs_lns_hien_tai); DateTime v_dat_ngay_ket_thuc_hs_lns_hien_tai = m_dat_ngay_bat_dau_lns.Value.AddDays(-1); v_us.dcID = m_id_gd_hs_lns_hien_tai; v_us.datNGAY_KET_THUC = v_dat_ngay_ket_thuc_hs_lns_hien_tai.Date; v_us.datNGAY_SUA = DateTime.Now.Date; v_us.BeginTransaction(); v_us.Update(); v_us.CommitTransaction(); }
private void cho_gd_hs_lns_da_co_da_xoa_Y() { US_GD_HE_SO_LNS v_us = new US_GD_HE_SO_LNS(m_id_gd_hs_lns); v_us.datNGAY_KET_THUC = m_dat_ngay_bat_dau_lns.Value.AddDays(-1); try { v_us.BeginTransaction(); v_us.Update(); v_us.CommitTransaction(); } catch (Exception v_e) { throw v_e; } }
private void cho_gd_hs_lns_da_xoa_Y() { decimal v_id_gd_hs_lns = 0; v_id_gd_hs_lns = find_id_gd_hs_lns(m_id_gd_hd); US_GD_HE_SO_LNS v_us = new US_GD_HE_SO_LNS(v_id_gd_hs_lns); v_us.datNGAY_SUA = DateTime.Now.Date; //nguoi sua v_us.BeginTransaction(); v_us.Update(); v_us.CommitTransaction(); }