Beispiel #1
0
        private void m_cmd_xoa_Click(object sender, EventArgs e)
        {
            DataRow          v_dr = m_grv_ds_blacklist.GetDataRow(m_grv_ds_blacklist.FocusedRowHandle);
            US_DM_BLACK_LIST v_us = new US_DM_BLACK_LIST(CIPConvert.ToDecimal(v_dr["ID"].ToString()));

            v_us.strADD_YN      = "Y";
            v_us.datNGAY_REMOVE = System.DateTime.Now;
            v_us.Update();
            load_data_2_grid();
        }
Beispiel #2
0
 private void m_cmd_OK_Click(object sender, EventArgs e)
 {
     if (kiem_tra_truoc_luu() == true)
     {
         US_DM_BLACK_LIST v_us = new US_DM_BLACK_LIST();
         v_us.strSO_DIEN_THOAI         = m_txt_so_dien_thoai.Text;
         v_us.strHO_TEN_CHU_DIEN_THOAI = m_txt_ho_ten.Text;
         v_us.strGHI_CHU_LY_DO         = m_txt_ly_do.Text;
         v_us.strADD_YN      = "N";
         v_us.datNGAY_ADD    = System.DateTime.Now;
         v_us.dcID_NGUOI_ADD = us_user.dcID;
         v_us.Insert();
         this.Close();
     }
 }