private void m_cmd_ds_don_hang_can_tiep_nhan_BO_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { us_user.dcIDNhom = 2; if (v_don_hang_can_tiep_nhan_BO == null || !IsFormOpen(v_don_hang_can_tiep_nhan_BO)) { CloseFormTM(); CloseFormFO(); v_don_hang_can_tiep_nhan_BO = new f0000_gd_dat_hang_gd_log_dat_hang(1); v_don_hang_can_tiep_nhan_BO.MdiParent = this; v_don_hang_can_tiep_nhan_BO.Text = "Đơn hàng cần tiếp nhận"; v_don_hang_can_tiep_nhan_BO.m_lab_tieu_de.Text = "Danh sách đơn hàng cần tiếp nhận"; v_don_hang_can_tiep_nhan_BO.m_panel_BO_hoan_thanh.Visible = false; v_don_hang_can_tiep_nhan_BO.m_panel_bo_cap_nhat_xu_ly.Visible = false; v_don_hang_can_tiep_nhan_BO.Show(); } else { v_don_hang_can_tiep_nhan_BO.Focus(); v_don_hang_can_tiep_nhan_BO.load_data_2_grid(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void remove_v_dm_black_list() { if (!HelpUtils.is_validated_edit_grid_row(m_fg.Row, m_fg)) { return; } if (!BaseMessages.MsgBox_Confirm(THONG_BAO.CF_REMOVE_BLACKLIST)) { return; } US_V_DM_BLACK_LIST v_us = new US_V_DM_BLACK_LIST(); grid2us_object(v_us, m_fg.Row); try { v_us.BeginTransaction(); CAddRemoveBlackListData v_add_bl_data = new CAddRemoveBlackListData(); v_add_bl_data = CallCenterUtils.add_remove_blacklist(v_us.strSO_DIEN_THOAI, 20); if (v_add_bl_data.Status == TRANG_THAI_GOI_WS.THAT_BAI) { BaseMessages.MsgBox_Infor(THONG_BAO.ER_REMOVE_BLACKLIST_KO_THANH_CONG); HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.REMOVE_BLACKLIST, "BLACK_LIST", "Remove blacklist: " + m_us.strSO_DIEN_THOAI, "Error"); return; } v_us.dcID_NGUOI_REMOVE = CAppContext_201.getCurrentUserID(); v_us.Update(); HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.REMOVE_BLACKLIST, "BLACK_LIST", "Remove blacklist: " + m_us.strSO_DIEN_THOAI, "Remove"); BaseMessages.MsgBox_Infor(THONG_BAO.SC_REMOVE_BLACKLIST_THANH_CONG); v_us.CommitTransaction(); load_data_2_grid(); } catch (Exception v_e) { v_us.Rollback(); CSystemLog_100.ExceptionHandle(v_e); } }
void m_cbo_trang_thai_thanh_toan_SelectedIndexChanged(object sender, EventArgs e) { try { if (m_e_cbo_trang_thai_tt_state == e_cbo_state_data.DANG_FILL_DATA) { return; } if (CIPConvert.ToDecimal(m_cbo_trang_thai_thanh_toan.SelectedValue) == C_TU_DIEN_TRANG_THAI_TT_ONLINE.DA_CHUYEN_CT) { m_lbl_ngay_thuc_hien.Visible = true; m_lbl_ngay_thuc_hien.Text = "Ngày chuyển chứng từ"; m_dat_ngay_thuc_hien.Visible = true; } else if (CIPConvert.ToDecimal(m_cbo_trang_thai_thanh_toan.SelectedValue) == C_TU_DIEN_TRANG_THAI_TT_ONLINE.DA_THANH_TOAN) { m_lbl_ngay_thuc_hien.Visible = true; m_lbl_ngay_thuc_hien.Text = "Ngày thanh toán"; m_dat_ngay_thuc_hien.Visible = true; } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_fg_KeyDown(object sender, KeyEventArgs e) { try { switch (e.KeyCode) { case Keys.Enter: if (!HelpUtils.is_validated_edit_grid_row(m_fg.Row, m_fg)) { return; } grid2us_object(m_us_cau_hoi, m_fg.Row); m_dlg_result = DialogResult.OK; this.Close(); break; default: break; } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void barButtonItem8_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { us_user.dcIDNhom = 4; if (v_tat_ca_don_hang == null || !IsFormOpen(v_tat_ca_don_hang)) { CloseFormFO(); CloseFormBO(); v_tat_ca_don_hang = new f117_ds_tat_ca_don_dat_hang(); v_tat_ca_don_hang.MdiParent = this; v_tat_ca_don_hang.m_pan_button.Visible = false; v_tat_ca_don_hang.Show(); } else { v_tat_ca_don_hang.Focus(); v_tat_ca_don_hang.load_data_2_grid(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_ds_don_hang_dieu_phoi_lai_FO_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { us_user.dcIDNhom = 1; try { if (v_don_hang_dieu_phoi_lai_FO == null || !IsFormOpen(v_don_hang_dieu_phoi_lai_FO)) { CloseFormBO(); CloseFormTM(); v_don_hang_dieu_phoi_lai_FO = new f0000_gd_dat_hang_gd_log_dat_hang(1); v_don_hang_dieu_phoi_lai_FO.MdiParent = this; v_don_hang_dieu_phoi_lai_FO.Text = "f000_Đơn hàng điều phối lại"; v_don_hang_dieu_phoi_lai_FO.m_lab_tieu_de.Text = "Danh sách đơn hàng cần điều phối lại"; v_don_hang_dieu_phoi_lai_FO.Show(); } else { v_don_hang_dieu_phoi_lai_FO.Focus(); v_don_hang_dieu_phoi_lai_FO.load_data_2_grid(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_ds_don_hang_dang_xu_ly_TD_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (v_don_hang_dang_xu_ly_TD == null || !IsFormOpen(v_don_hang_dang_xu_ly_TD)) { v_don_hang_dang_xu_ly_TD = new f0000_gd_dat_hang_gd_log_dat_hang(2); v_don_hang_dang_xu_ly_TD.MdiParent = this; v_don_hang_dang_xu_ly_TD.Text = "Đơn hàng đang xử lý"; v_don_hang_dang_xu_ly_TD.m_lab_tieu_de.Text = "Danh sách đơn hàng đang xử lý"; v_don_hang_dang_xu_ly_TD.m_panel_TD_tu_choi.Visible = false; v_don_hang_dang_xu_ly_TD.m_panel_TD_tiep_nhan.Visible = false; v_don_hang_dang_xu_ly_TD.Show(); } else { v_don_hang_dang_xu_ly_TD.Focus(); v_don_hang_dang_xu_ly_TD.load_data_2_grid(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_ds_don_hang_can_xu_ly_PM_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (v_don_hang_can_xu_ly_PM == null || !IsFormOpen(v_don_hang_can_xu_ly_PM)) { // v_don_hang_can_xu_ly_PM = new f0000_gd_dat_hang_gd_log_dat_hang(2); v_don_hang_can_xu_ly_PM = new f0000_gd_dat_hang_gd_log_dat_hang(1); v_don_hang_can_xu_ly_PM.MdiParent = this; v_don_hang_can_xu_ly_PM.Text = "Đơn hàng cần xử lý"; v_don_hang_can_xu_ly_PM.m_lab_tieu_de.Text = "Danh sách đơn hàng cần xử lý"; v_don_hang_can_xu_ly_PM.m_panel_PM_hoan_thanh.Visible = false; v_don_hang_can_xu_ly_PM.m_cmd_cap_nhat_PM.Visible = false; v_don_hang_can_xu_ly_PM.m_cmd_PM_cap_nhat_xu_ly.Visible = false; v_don_hang_can_xu_ly_PM.Show(); } else { v_don_hang_can_xu_ly_PM.Focus(); v_don_hang_can_xu_ly_PM.load_data_2_grid(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void insert_v_dm_black_list() { int v_i_check_validate = check_validate(); switch (v_i_check_validate) { case 0: break; case 1: if (!BaseMessages.MsgBox_Confirm(THONG_BAO.CF_ADD_BLACKLIST)) { return; } form_2_us_obj(); try { CAddRemoveBlackListData v_add_bl_data = new CAddRemoveBlackListData(); v_add_bl_data = CallCenterUtils.add_remove_blacklist(m_us.strSO_DIEN_THOAI, 10); if (v_add_bl_data.Status == TRANG_THAI_GOI_WS.THAT_BAI) { BaseMessages.MsgBox_Infor(THONG_BAO.ER_KHONG_ADD_BLACKLIST_DUOC); HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.ADD_BLACKLIST, "BLACK_LIST", "Add blacklist: " + m_us.strSO_DIEN_THOAI, "Error"); break; } m_us.readd_black_list(); HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.ADD_BLACKLIST, "BLACK_LIST", "Add blacklist: " + m_us.strSO_DIEN_THOAI, "Readd"); BaseMessages.MsgBox_Infor(THONG_BAO.SC_ADD_BLACKLIST_THANH_CONG); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } break; case 2: form_2_us_obj(); try { CAddRemoveBlackListData v_add_bl_data = new CAddRemoveBlackListData(); v_add_bl_data = CallCenterUtils.add_remove_blacklist(m_us.strSO_DIEN_THOAI, 10); if (v_add_bl_data.Status == TRANG_THAI_GOI_WS.THAT_BAI) { BaseMessages.MsgBox_Infor(THONG_BAO.ER_KHONG_ADD_BLACKLIST_DUOC); HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.ADD_BLACKLIST, "BLACK_LIST", "Add blacklist: " + m_us.strSO_DIEN_THOAI, "Error"); break; } m_us.Insert(); HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.ADD_BLACKLIST, "BLACK_LIST", "Add blacklist: " + m_us.strSO_DIEN_THOAI, "Add"); BaseMessages.MsgBox_Infor(THONG_BAO.SC_ADD_BLACKLIST_THANH_CONG); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } break; } load_data_2_grid(); reset_form(); }
public static void gui_mail_thong_bao_cap_nhat_xu_ly_don_hang(US_V_GD_DAT_HANG_GD_LOG_DAT_HANG v_us_log, decimal v_id_nguoi_xu_ly) { US_DUNG_CHUNG v_us = new US_DUNG_CHUNG(); DataSet v_ds = new DataSet(); v_ds.Tables.Add(new DataTable()); v_us.FillDatasetWithQuery(v_ds, "select * from dm_mau_email where id = 16"); string TIEU_DE = v_ds.Tables[0].Rows[0]["TIEU_DE_MAIL"].ToString(); string NOI_DUNG = v_ds.Tables[0].Rows[0]["NOI_DUNG_EMAIL"].ToString(); string GUI_CC = v_ds.Tables[0].Rows[0]["GUI_CC"].ToString(); TIEU_DE = TIEU_DE.Replace("MA_DON_HANG", v_us_log.strMA_DON_HANG); NOI_DUNG = NOI_DUNG.Replace("NOI_DUNG_CAP_NHAT", v_us_log.strGHI_CHU); NOI_DUNG = NOI_DUNG.Replace("MA_DON_HANG", v_us_log.strMA_DON_HANG); NOI_DUNG = NOI_DUNG.Replace("USER_NHAN_VIEN", v_us_log.strHO_TEN_USER_DAT_HANG); NOI_DUNG = NOI_DUNG.Replace("USER_DON_VI", v_us_log.strMA_DON_VI); NOI_DUNG = NOI_DUNG.Replace("USER_DIEN_THOAI", v_us_log.strDIEN_THOAI); NOI_DUNG = NOI_DUNG.Replace("USER_THOI_GIAN_DAT_HANG", v_us_log.datTHOI_GIAN_TAO.ToString()); NOI_DUNG = NOI_DUNG.Replace("LOAI_DICH_VU_HO_TRO", v_us_log.strTEN_NHOM_DICH_VU_YEU_CAU); NOI_DUNG = NOI_DUNG.Replace("YEU_CAU_CU_THE", v_us_log.strNOI_DUNG_DAT_HANG); NOI_DUNG = NOI_DUNG.Replace("THOI_GIAN_HOAN_THANH_THUC_TE", "Chưa Có"); NOI_DUNG = NOI_DUNG.Replace("LICH_SU_TRAO_DOI", "Hoàn thành đơn hàng chờ TM nghiệm thu"); NOI_DUNG = NOI_DUNG.Replace("THOI_GIAN_MONG_MUON_SUA_XONG", v_us_log.datTHOI_DIEM_CAN_HOAN_THANH + "hoặc thời gian hoàn thành là:" + v_us_log.datTHOI_GIAN_HOAN_THANH); NOI_DUNG = NOI_DUNG.Replace("PHAN_HOI_CUA_DVMC", v_us_log.strPHAN_HOI_TU_DVMC); IPCOREUS.US_HT_NGUOI_SU_DUNG v_us_nguoi_xu_ly = new IPCOREUS.US_HT_NGUOI_SU_DUNG(v_id_nguoi_xu_ly); NOI_DUNG = NOI_DUNG.Replace("NGUOI_XU_LY_DON_HANG", v_us_nguoi_xu_ly.strTEN_TRUY_CAP); NOI_DUNG = NOI_DUNG.Replace("NGUOI_NHAN_DAT_HANG", v_us_log.strNGUOI_TAO_THAO_TAC); string to_cc = ""; US_DUNG_CHUNG v_us_tm = new US_DUNG_CHUNG(); DataSet v_ds_tm = new DataSet(); v_ds_tm.Tables.Add(new DataTable()); v_us_tm.FillDatasetWithQuery(v_ds_tm, "SELECT HT_NGUOI_SU_DUNG.ID,HT_NGUOI_SU_DUNG.EMAIL FROM HT_NGUOI_SU_DUNG_NHOM_CHI_NHANH,HT_NGUOI_SU_DUNG WHERE HT_NGUOI_SU_DUNG_NHOM_CHI_NHANH.ID_NGUOI_SU_DUNG = HT_NGUOI_SU_DUNG.ID AND HT_NGUOI_SU_DUNG_NHOM_CHI_NHANH.ID_NHOM = 4"); for (int i = 0; i < v_ds_tm.Tables[0].Rows.Count; i++) { if (i == 0) { to_cc = v_ds_tm.Tables[0].Rows[i]["EMAIL"].ToString(); } else { GUI_CC += "," + v_ds_tm.Tables[0].Rows[i]["EMAIL"].ToString(); } } try { string user_email = "*****@*****.**"; string password = "******"; IPCOREUS.US_HT_NGUOI_SU_DUNG v_us_fo = new IPCOREUS.US_HT_NGUOI_SU_DUNG(v_us_log.dcID_NGUOI_TAO); GUI_CC += "," + v_us_fo.strEMAIL; HelpUtils.send_mail("Dịch Vụ Một Cửa<Hoàn tất xử lý>", user_email, password, to_cc, GUI_CC, TIEU_DE, NOI_DUNG); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_view_Click(object sender, EventArgs e) { try{ view_v_gd_cau_hoi_yeu_cau(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void f300_dm_yeu_cau_hoc_vien_Load(object sender, System.EventArgs e) { try{ set_initial_form_load(); } 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); } }
public static void gui_mail_huy_don_hang(US_V_GD_DAT_HANG v_us_log_gd, string v_ly_do) { US_DUNG_CHUNG v_us = new US_DUNG_CHUNG(); DataSet v_ds = new DataSet(); v_ds.Tables.Add(new DataTable()); v_us.FillDatasetWithQuery(v_ds, "select * from dm_mau_email where id =7"); string TIEU_DE = v_ds.Tables[0].Rows[0]["TIEU_DE_MAIL"].ToString(); string NOI_DUNG = v_ds.Tables[0].Rows[0]["NOI_DUNG_EMAIL"].ToString(); string GUI_CC = v_ds.Tables[0].Rows[0]["GUI_CC"].ToString(); TIEU_DE = TIEU_DE.Replace("MA_DON_HANG", v_us_log_gd.strMA_DON_HANG); NOI_DUNG = NOI_DUNG.Replace("MA_DON_HANG", v_us_log_gd.strMA_DON_HANG); NOI_DUNG = NOI_DUNG.Replace("USER_NHAN_VIEN", v_us_log_gd.strHO_TEN_USER_DAT_HANG); NOI_DUNG = NOI_DUNG.Replace("USER_DON_VI", v_us_log_gd.strMA_DON_VI); NOI_DUNG = NOI_DUNG.Replace("USER_DIEN_THOAI", v_us_log_gd.strDIEN_THOAI); NOI_DUNG = NOI_DUNG.Replace("USER_THOI_GIAN_DAT_HANG", v_us_log_gd.datTHOI_GIAN_TAO.ToString()); NOI_DUNG = NOI_DUNG.Replace("LOAI_DICH_VU_HO_TRO", v_us_log_gd.strTEN_YEU_CAU); NOI_DUNG = NOI_DUNG.Replace("YEU_CAU_CU_THE", v_us_log_gd.strNOI_DUNG_DAT_HANG); NOI_DUNG = NOI_DUNG.Replace("THOI_GIAN_HOAN_THANH_THUC_TE", "chưa có"); NOI_DUNG = NOI_DUNG.Replace("LICH_SU_TRAO_DOI", "Vừa tiếp nhận."); NOI_DUNG = NOI_DUNG.Replace("THOI_GIAN_MONG_MUON_SUA_XONG", v_us_log_gd.datTHOI_DIEM_CAN_HOAN_THANH + " hoặc thời gian hoàn thành là:" + v_us_log_gd.datTHOI_GIAN_HOAN_THANH); NOI_DUNG = NOI_DUNG.Replace("PHAN_HOI_CUA_DVMC", "Đơn hàng của bạn đã bị hủy với lý do: " + v_ly_do); string nguoi_xu_ly = ""; US_DUNG_CHUNG v_us_3 = new US_DUNG_CHUNG(); DataSet v_ds_3 = new DataSet(); v_ds_3.Tables.Add(new DataTable()); v_us_3.FillDatasetWithQuery(v_ds_3, "select * from V_GD_DAT_HANG_GD_LOG_DAT_HANG where ten_nguoi_tao_thao_tac_log is not null and THAO_TAC_HET_HAN_YN ='N' and ID_DON_HANG=" + v_us_log_gd.dcID); for (int i = 0; i < v_ds_3.Tables[0].Rows.Count; i++) { nguoi_xu_ly += "," + v_ds_3.Tables[0].Rows[i]["TEN_NGUOI_TAO_THAO_TAC_LOG"].ToString(); } NOI_DUNG = NOI_DUNG.Replace("NGUOI_XU_LY_DON_HANG", nguoi_xu_ly); NOI_DUNG = NOI_DUNG.Replace("NGUOI_NHAN_DAT_HANG", v_us_log_gd.strNGUOI_TAO); US_DUNG_CHUNG v_us_kh = new US_DUNG_CHUNG(); DataSet v_ds_kh = new DataSet(); v_ds_kh.Tables.Add(new DataTable()); v_us_kh.FillDatasetWithQuery(v_ds_kh, "select * from dm_khach_hang where id=" + v_us_log_gd.dcID_USER_NV_DAT_HANG); string to_cc = ""; to_cc = v_ds_kh.Tables[0].Rows[0]["EMAIL"].ToString(); try { string user_email = "*****@*****.**"; string password = "******"; HelpUtils.send_mail("Dịch Vụ Một Cửa<Thông báo hủy đơn hàng>", user_email, password, to_cc, GUI_CC, TIEU_DE, NOI_DUNG); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f225_tim_kiem_cau_hoi_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f200_sinh_vien_goi_den_Load(object sender, EventArgs e) { try { set_inital_form_load(); } 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 f121_dm_loai_phoi_chung_chi_DE_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f420_search_chon_qlht_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_loc_Click(object sender, EventArgs e) { try { load_data_2_grid(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void f430_dm_quan_ly_hoc_tap_Load(object sender, EventArgs e) { try { set_initial_form_load(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void barButtonItem9_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { //F345_danh_sach_cuoc_goi v_f = new F345_danh_sach_cuoc_goi(); //v_f.MdiParent = this; //v_f.Show(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void timer1_Tick(object sender, EventArgs e) { try { if (us_user.dcIDNhom == 1 && us_user.ipphone != "" && us_user.ipphone != null) { check_incoming_call(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void m_cmd_xu_ly_noi_bo_Click(object sender, EventArgs e) { try{ if (!HelpUtils.is_validated_edit_grid_row(m_fg.Row, m_fg)) { return; } f400_gd_xu_ly_noi_bo v_frm = new f400_gd_xu_ly_noi_bo(); v_frm.display_xu_ly_cau_hoi(CIPConvert.ToDecimal(m_fg[m_fg.Row, (int)e_col_Number.ID])); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cbo_truong_SelectedIndexChanged(object sender, EventArgs e) { try { if (m_txt_key_search.Text.Trim() != "") { load_data_2_grid(); } } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void barButtonItem7_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { us_user.dcIDNhom = 1; CloseFormBO(); CloseFormTM(); f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new(); v_f100.displayForInsert(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_tim_kiem_Click(object sender, EventArgs e) { try { if (m_txt_key_cau_hoi.Text.Trim() == "") { return; } load_data_2_grid(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cmd_end_call_Click(object sender, EventArgs e) { try { if (BaseMessages.MsgBox_Confirm("Bạn có chắc chắn là đã lưu câu hỏi và muốn kết thúc cuộc gọi không?") == true) { update_info_cuoc_goi(); } load_call_history_hoc_vien(m_txt_dien_thoai.Text); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
void m_cbo_qlht_truong_SelectedIndexChanged(object sender, EventArgs e) { try { if (m_e_trang_thai_cbo_truong == e_trang_thai_cbo_truong.DANG_KHOI_TAO) { return; } load_data_2_grid(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void check_incoming_call() { try { string m_str_stationId = us_user.ipphone; //ip-phone string v_str_link_services = ""; v_str_link_services = "http://203.162.121.70:8080/TPCServer/tpc/DoAction.jsp?event=" + WEB_URL_CALL_CENTER.GET_INCOMING_CALL(m_str_stationId); string v_str_output = CallCenterUtils.get_incoming_call(v_str_link_services).Data; US_GD_CUOC_GOI_YEU_CAU m_us_gd_cuoc_goi_yc = new US_GD_CUOC_GOI_YEU_CAU(); if (v_str_output == "") { return; } CallInfor v_obj_callinfo = HelpUtils.get_start_callinfo_from_client_string_call(v_str_output); if (v_obj_callinfo.mobile_phone == "Anonymous") { return; } if (m_us_gd_cuoc_goi_yc.is_call_id_exist(v_obj_callinfo.call_id)) { return; } if (v_obj_callinfo.call_id == "" || v_obj_callinfo.call_id == null) { return; } HelpUtils.ghi_log_he_thong(v_str_output, ""); //// ghi log gọi điện m_timer_imcoming_call.Enabled = false; f100_don_dat_hang_new v_f = new f100_don_dat_hang_new(); v_f.display_for_ipphone(v_obj_callinfo); // HelpUtils.open_form_sinh_vien_call(v_obj_callinfo); m_timer_imcoming_call.Enabled = true; } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }