public static void open_form_sinh_vien_call(CallInfor ip_call_info) { try { SinhVien v_obj_sinhvien = new SinhVien(); SyncData v_ws_scm = new SyncData(); string v_str_search = HelpUtils.gen_string_call_scm_get_sinh_vien_ws(ip_call_info.mobile_phone, "", "", "", "10", "TOPICA"); DataSet v_ds = v_ws_scm.TOS_search_info_hoc_vien(v_str_search); v_obj_sinhvien.get_sinh_vien_by_ds(v_ds); // // Nếu ko tìm được học viên thì Số điện thoại sẽ được bảo toàn, tránh bị Null // if (v_obj_sinhvien.Dien_thoai == null) { v_obj_sinhvien.Dien_thoai = ip_call_info.mobile_phone; } //f200_sinh_vien_goi_den v_f200 = new f200_sinh_vien_goi_den(); // v_f200.display(v_obj_sinhvien, ip_call_info.call_id); string v_str_thong_tin_goi_vao = ""; if (v_obj_sinhvien.Ho_ten != "") { v_str_thong_tin_goi_vao += "Họ tên: " + v_obj_sinhvien.Ho_ten + "; "; } if (v_obj_sinhvien.Dien_thoai != "") { v_str_thong_tin_goi_vao += "ĐT: " + v_obj_sinhvien.Dien_thoai; } // HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.HOC_VIEN_GOI_DEN, v_str_thong_tin_goi_vao, "Gọi vào", f002_main_form.m_str_stationId); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_BO_tu_choi_Click(object sender, EventArgs e) { decimal id_nguoi_tao; try { fill_data_to_m_us(); if (m_us.dcID_LOAI_THAO_TAC == 313) { US_DUNG_CHUNG v_us_dung_chung = new US_DUNG_CHUNG(); DataSet v_ds = new DataSet(); v_ds.Tables.Add(new DataTable()); v_us_dung_chung.FillDatasetWithQuery(v_ds, "SELECT id FROM GD_LOG_DAT_HANG gldh WHERE gldh.ID_LOAI_THAO_TAC in (295,311) AND gldh.ID_GD_DAT_HANG = " + m_us.dcID_DON_HANG + "ORDER BY id DESC"); US_GD_LOG_DAT_HANG v_us_log = new US_GD_LOG_DAT_HANG(CIPConvert.ToDecimal(v_ds.Tables[0].Rows[0]["ID"].ToString())); id_nguoi_tao = v_us_log.dcID_NGUOI_TAO_THAO_TAC; } else { id_nguoi_tao = m_us.dcID_NGUOI_TAO; } f107_tu_choi_don_hang v_f107 = new f107_tu_choi_don_hang(); v_f107.displayForRefuse(m_us, id_nguoi_tao); load_data_2_grid(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_luu_Click(object sender, EventArgs e) { try { if (kiemtradulieu()) { if (m_e_form_mode == DataEntryFormMode.InsertDataState) { //insert dich vu insert_dich_vu(); insert_nguoi_xu_ly_cap(grv_danh_sach_bo, 2); insert_nguoi_xu_ly_cap(grv_danh_sach_pm, 3); insert_nguoi_xu_ly_cap(grv_danh_sach_td, 5); } else { //update dich vu update_dich_vu(); update_nguoi_xu_ly_cap(grv_danh_sach_bo, 2); update_nguoi_xu_ly_cap(grv_danh_sach_pm, 3); update_nguoi_xu_ly_cap(grv_danh_sach_td, 5); } MessageBox.Show("thành công"); this.Close(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void simpbtn_luu_Click(object sender, EventArgs e) { try { if (kiemtradulieu() == true) { if (m_e_form_mode == DataEntryFormMode.InsertDataState) { form_to_us(); m_us.Insert(); } else { form_to_us(); m_us.Update(); } MessageBox.Show("Thành công!"); this.Close(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_view_Click(object sender, EventArgs e) { try{ view_v_dm_cau_hoi_ko_tra_loi(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_exit_Click(object sender, EventArgs e) { try{ this.Close(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
// // // EVENT HANLDERS // // private void f500_ds_nguoi_dai_dien_Load(object sender, System.EventArgs e) { try{ set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
// // // EVENT HANLDERS // // private void f110_dm_cau_hoi_Load(object sender, System.EventArgs e) { try{ set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_delete_Click(object sender, EventArgs e) { try{ delete_nguoi_dai_dien(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_update_Click(object sender, EventArgs e) { try { gui_danh_gia_cua_khach_hang(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_them_cau_tra_loi_Click(object sender, EventArgs e) { try { them_cau_tra_loi(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_fg_Click(object sender, EventArgs e) { try { load_ds_cau_tra_loi(m_fg.Row); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void btnFilter_Click(object sender, EventArgs e) { try { load_data_2_grid(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f102_chon_danh_sach_nguoi_xu_ly_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_oke_Click(object sender, EventArgs e) { try { chon_danh_sach_nguoi_xu_ly(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_luu_Click(object sender, EventArgs e) { try { save_data(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f501_dm_nguoi_dai_dien_Load(object sender, EventArgs e) { try { set_inital_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f100_dat_hang_moi_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f111_dm_cau_hoi_de_Load(object sender, EventArgs e) { try { set_inital_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_chk_nhieu_nguoi_xu_ly_yn_CheckedChanged(object sender, EventArgs e) { try { chon_nhieu_nguoi_xu_ly(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_txt_nguoi_dat_hang_Leave(object sender, EventArgs e) { try { load_thong_tin_nguoi_dat_hang_by_user(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_chb_dung_so_khac_CheckedChanged(object sender, EventArgs e) { try { change_status_enable_dien_thoai_ndd(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_tab2_thoat_Click(object sender, EventArgs e) { try { this.Close(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_chon_qlht_khac_Click(object sender, EventArgs e) { try { chon_qlht_khac(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_pic_call_ndd_Click(object sender, EventArgs e) { try { call_2_nguoi_dai_dien(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_tab1_cmd_assign_cho_qlht_Click(object sender, EventArgs e) { try { tab1_save_data(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f400_gd_xu_ly_noi_bo_Load(object sender, EventArgs e) { try { set_inital_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_them_nguoi_dai_dien_Click(object sender, EventArgs e) { try { insert_nguoi_dai_dien(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_fg_Click(object sender, EventArgs e) { try { load_ds_nguoi_dai_dien(m_fg.Row); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_insert_Click(object sender, EventArgs e) { try{ m_us.dcID_LOAI_TU_DIEN = LOAI_TU_DIEN_ID.PHONG_BAN_NOI_BO; f102_TuDien_DE v_f102_detail = new f102_TuDien_DE(); v_f102_detail.InsertObj(m_us); load_data_2_grid(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }