internal void DisPlayForUpdate(US_DM_MAU_EMAIL v_us) { m_e_form_mode = DataEntryFormMode.UpdateDataState; us_to_form(v_us); m_us = v_us; this.ShowDialog(); }
private void us_to_form(US_DM_MAU_EMAIL v_us) { m_txt_gui_cc.Text = v_us.strGUI_CC; m_txt_tieu_de_mail.Text = v_us.strTIEU_DE_MAIL; m_txt_ma_email.Text = v_us.strMA_EMAIL; m_richedit_noi_dung_email.HtmlText = v_us.strNOI_DUNG_EMAIL; }
private void simpbtn_xoa_Click(object sender, EventArgs e) { try { DataRow v_dr = m_grv_dm_mau_email.GetDataRow(m_grv_dm_mau_email.FocusedRowHandle); decimal v_id = CIPConvert.ToDecimal(v_dr[DM_MAU_EMAIL.ID].ToString()); US_DM_MAU_EMAIL v_us = new US_DM_MAU_EMAIL(v_id); v_us.Delete(); MessageBox.Show("Da xoa thanh cong " + v_dr[DM_MAU_EMAIL.ID].ToString()); load_data_grid(); } catch (Exception v_e) { CSystemLog_301.ExceptionHandle(v_e); } }
private void DoRowDoubleClick(GridView view, Point pt) { GridHitInfo info = view.CalcHitInfo(pt); if (info.InRow || info.InRowCell) { DataRow v_dr_grv = m_grv_dm_mau_email.GetDataRow(m_grv_dm_mau_email.FocusedRowHandle); if (v_dr_grv == null) { try { f101_dm_mau_email_de v_f = new f101_dm_mau_email_de(); v_f.DisPlayForInsert(); load_data_grid(); } catch (Exception v_e) { CSystemLog_301.ExceptionHandle(v_e); } } else { try { DataRow v_dr = m_grv_dm_mau_email.GetDataRow(m_grv_dm_mau_email.FocusedRowHandle); US_DM_MAU_EMAIL v_us = new US_DM_MAU_EMAIL(CIPConvert.ToDecimal(v_dr[DM_MAU_EMAIL.ID].ToString())); f101_dm_mau_email_de v_f = new f101_dm_mau_email_de(); v_f.DisPlayForUpdate(v_us); load_data_grid(); } catch (Exception v_e) { CSystemLog_301.ExceptionHandle(v_e); } } } }