private void DoRowDoubleClick(GridView view, Point pt)
        {
            GridHitInfo info = view.CalcHitInfo(pt);

            if (info.InRow || info.InRowCell)
            {
                DataRow               v_dr   = m_grv_ds_don_dat_hang_can_nghiem_thu.GetDataRow(m_grv_ds_don_dat_hang_can_nghiem_thu.FocusedRowHandle);
                US_GD_DAT_HANG        v_us   = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
                f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
                v_f100.displayForUpdate2(v_us);
                this.Show();
            }
        }
예제 #2
0
        /// <Chú ý cho tất cả các hàm ghi log>
        /// trong tất cả các hàm ghi lại log thì cần xem xét lại người ghi log và id của loại thao tác
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        ///

        #region thêm mới đơn hàng
        private void m_cmd_them_moi_don_hang_Click(object sender, EventArgs e)
        {
            try
            {
                f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
                v_f100.displayForInsert();
                load_data_2_grid();
            }
            catch (Exception v_e)
            {
                CSystemLog_100.ExceptionHandle(v_e);
            }
        }
예제 #3
0
 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);
     }
 }
예제 #4
0
 private void m_cmd_chinh_sua_don_hang_Click(object sender, EventArgs e)
 {
     try
     {
         DataRow               v_dr   = m_grv_ds_don_dat_hang.GetDataRow(m_grv_ds_don_dat_hang.FocusedRowHandle);
         US_GD_DAT_HANG        v_us   = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
         f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
         v_f100.displayForUpdate(v_us, v_deadline);
         load_data_2_grid();
     }
     catch (Exception v_e)
     {
         CSystemLog_100.ExceptionHandle(v_e);
     }
 }
예제 #5
0
        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);
            }
        }
예제 #6
0
        //private void update_log_PM_tiep_nhan()
        //{
        //    US_GD_LOG_DAT_HANG v_us = new US_GD_LOG_DAT_HANG(m_us.dcID);
        //    v_us.strTHAO_TAC_HET_HAN_YN = "Y";
        //    //v_us.strGHI_CHU = "PM đã tiếp nhận xử lý";
        //    v_us.Update();
        //}
        #endregion

        #region TD tiếp nhận đơn hàng và xử lý
        private void m_cmd_admin_tiep_nhan_xu_ly_Click(object sender, EventArgs e)
        {
            try
            {
                fill_data_to_m_us();
                DataRow               v_dr   = m_grv_gd_dat_hang_gd_log_dat_hang.GetDataRow(m_grv_gd_dat_hang_gd_log_dat_hang.FocusedRowHandle);
                US_GD_DAT_HANG        v_us   = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID_DON_HANG"].ToString()));
                f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
                v_f100.displayForUpdate(v_us, 1);
                update_log_tiep_nhan();
                ghi_log_admin_da_nhan_xu_ly();
                load_data_2_grid();
                MessageBox.Show("Đã tiếp nhận đơn hàng!");
            }
            catch (Exception v_e)
            {
                CSystemLog_100.ExceptionHandle(v_e);
            }
        }