private void update_info_cuoc_goi() { CallInfor v_call_info = new CallInfor(); v_call_info = HelpUtils.get_call_infor(m_us_cuoc_goi.strCALL_ID , m_txt_dien_thoai.Text , f002_main_form.m_str_stationId , CAppContext_201.getCurrentUserName()); m_us_cuoc_goi.strERROR_CODE = v_call_info.error_code; m_us_cuoc_goi.strERROR_DESC = v_call_info.error_desc; //m_us_cuoc_goi.strNOI_DUNG_TRAO_DOI = ??? m_us_cuoc_goi.strSTATUS = v_call_info.status; m_us_cuoc_goi.strVOICE_CALL_LINK = v_call_info.link_down_record; m_us_cuoc_goi.datDATETIME_RESPOND = HelpUtils.string_2_datetime(v_call_info.datetime_response); m_us_cuoc_goi.datEND_TIME = HelpUtils.string_2_datetime(v_call_info.end_time); m_us_cuoc_goi.datSTART_TIME = HelpUtils.string_2_datetime(v_call_info.start_time); m_us_cuoc_goi.dcDURATION = CIPConvert.ToDecimal(v_call_info.duration); m_us_cuoc_goi.dcRINGTIME = CIPConvert.ToDecimal(v_call_info.ringtime); m_us_cuoc_goi.BeginTransaction(); m_us_cuoc_goi.Update(); m_us_cuoc_goi.CommitTransaction(); BaseMessages.MsgBox_Infor("Đã lưu thông tin cuộc gọi thành công"); }
private void show_change_password() { string v_str_ten_truy_cap = CAppContext_201.getCurrentUserName(); US_HT_NGUOI_SU_DUNG v_us_ht_nguoi_dung = new US_HT_NGUOI_SU_DUNG(); v_us_ht_nguoi_dung.InitByTenTruyCap(v_str_ten_truy_cap); f998_ht_nguoi_su_dung_de v_f998_change_password = new f998_ht_nguoi_su_dung_de(); v_f998_change_password.change_password(v_us_ht_nguoi_dung, "Y", "Y"); }
private void set_inital_form_load() { load_data_2_cbo_don_vi_truong(); load_data_2_cbo_nhom_cau_hoi(); load_data_2_cbo_trang_thai_cau_tra_loi(); us_object_2_form(); switch (m_e_form_mode) { case e_form_mode.THEM_CAU_HOI: m_cmd_luu.Text = "Lưu"; m_cbo_trang_thai_cau_tra_loi.SelectedIndex = 0; m_cbo_trang_thai_cau_tra_loi.Enabled = false; break; case e_form_mode.SUA_CAU_HOI: m_lbl_username.Text = "Người cập nhật"; m_cmd_luu.Text = "Lưu"; break; case e_form_mode.DUYET_CAU_TRA_LOI: m_lbl_username.Text = "Người cập nhật"; m_cmd_luu.Text = "Duyệt"; m_txt_noi_dung_cau_hoi.Enabled = false; m_cbo_don_vi_truong.Enabled = false; m_cbo_nhom_cau_hoi.Enabled = false; break; case e_form_mode.THEM_CAU_TRA_LOI: m_lbl_username.Text = "Người cập nhật"; m_cmd_luu.Text = "Lưu"; m_txt_noi_dung_cau_hoi.Enabled = false; m_cbo_don_vi_truong.Enabled = false; m_cbo_nhom_cau_hoi.Enabled = false; break; } m_txt_nguoi_tao.Text = CAppContext_201.getCurrentUserName(); m_dat_ngay_tao.Enabled = false; }
void m_pic_call_hoc_vien_Click(object sender, EventArgs e) { try { CallInfor v_call_info_obj = new CallInfor(); v_call_info_obj = HelpUtils.call_2_contact(m_txt_dien_thoai.Text.Trim() , f002_main_form.m_str_stationId , CAppContext_201.getCurrentUserName()); m_us_cuoc_goi.strCALL_ID = v_call_info_obj.call_id; m_us_cuoc_goi.strCUOC_GOI_VAO_YN = "N"; m_us_cuoc_goi.strHO_TEN_SINH_VIEN = m_txt_ho_ten.Text; m_us_cuoc_goi.strLOP = m_txt_ma_lop.Text; m_us_cuoc_goi.strMA_SINH_VIEN = m_txt_ma_hoc_vien.Text; m_us_cuoc_goi.strNOI_SINH = m_txt_noi_sinh.Text; m_us_cuoc_goi.strSO_DIEN_THOAI = m_txt_dien_thoai.Text; if (m_cbo_truong.SelectedValue != null) { m_us_cuoc_goi.strTRUONG = m_cbo_truong.SelectedValue.ToString(); } else { m_us_cuoc_goi.strTRUONG = "------"; } m_us_cuoc_goi.dcID_NGUOI_DUNG = CAppContext_201.getCurrentUserID(); m_us_cuoc_goi.dcSTATION_ID = CIPConvert.ToDecimal(f002_main_form.m_str_stationId); m_us_cuoc_goi.dcID_TRANG_THAI = -1; m_us_cuoc_goi.dcID_CAU_HOI_LIEN_QUAN = CIPConvert.ToDecimal(m_fg[m_fg.Row, (int)e_col_Number.ID_CAU_HOI]); m_us_cuoc_goi.dcID_CUOC_GOI_LIEN_QUAN = CIPConvert.ToDecimal(m_fg[m_fg.Row, (int)e_col_Number.ID_YEU_CAU]); m_us_cuoc_goi.Insert(); } catch (Exception v_e) { CSystemLog_100.ExceptionHandle(v_e); } }
private void call_2_nguoi_dai_dien() { m_e_form_state = e_form_state.DA_CALL_NDD; string v_str_so_dien_thoai = ""; v_str_so_dien_thoai = m_txt_dien_thoai_ndd.Text; m_call_infor = HelpUtils.call_2_contact(v_str_so_dien_thoai, m_str_stationcode, CAppContext_201.getCurrentUserName()); // Insert vào GD xử lý nội bộ form_2_usobject_goi_noi_bo(); m_us_gd_xu_ly_noi_bo.Insert(); HelpUtils.ghi_log_he_thong(LOG_TRUY_CAP.USER_GOI_NOI_BO, m_cbo_nguoi_dai_dien.SelectedItem.ToString(), "Gọi nội bộ", ""); }
private void tab2_save_data() { if (tab2_check_validate_data_is_ok() == false) { return; } m_us_gd_xu_ly_noi_bo.dcID = 1; // giá trị bất kỳ; update dựa vào call id m_call_infor = HelpUtils.get_call_infor(m_call_infor.call_id, m_call_infor.mobile_phone, m_call_infor.station_id, CAppContext_201.getCurrentUserName()); form_2_usobject_goi_noi_bo(); m_us_gd_xu_ly_noi_bo.Update(); load_data_2_grid(); reset_form_tab2(); m_e_form_state = e_form_state.DA_LUU_THONG_TIN_CALL; }