Beispiel #1
0
        /// 获取操作信息
        /// <summary>
        /// 获取操作信息
        /// </summary>
        /// <param name="status_nm"></param>
        /// <returns></returns>
        public string GetLinkOper(string status_nm, string recid, string tel, string datasource,
                                  string orderversion, string orderid,
                                  string old_Category, string old_OrderStatus,
                                  string new_OrderStatus, string new_LastRecid, string new_createuserid)
        {
            string info = "";
            int    v    = CommonFunction.ObjectToInteger(orderversion);

            if (status_nm == "待处理" || status_nm == "处理中")
            {
                //编辑状态 处理
                info += "<span id='span1_" + recid + "' style='display:inline-block'><a href=\"javascript:void(0);\" onclick=\"ModifyStatus('" + recid + "')\">编辑状态</a>&nbsp;&nbsp;</span>";
                info += "<span id='span2_" + recid + "' style='display:none'><a href=\"javascript:void(0);\" onclick=\"SaveStatus('" + recid + "')\">保存</a>&nbsp;&nbsp;";
                info += "<a href=\"javascript:void(0);\" onclick=\"CancelStatus('" + recid + "')\">取消</a>&nbsp;&nbsp;</span>";
                //没有工单,需要处理按钮
                if (v == 0)
                {
                    WorkOrderDataSource d   = (WorkOrderDataSource)Enum.Parse(typeof(WorkOrderDataSource), CommonFunction.ObjectToInteger(datasource, -1).ToString());
                    BLL.WOrderRequest   req = BLL.WOrderRequest.AddWOrderComeIn_MissedCall(CommonFunction.ObjectToInteger(recid), tel, d);
                    info += "<span id='span_cl_" + recid + "' style='display:inline-block'><a href=\"/WOrderV2/AddWOrderInfo.aspx?" +
                            req.ToString() + " \" target='_blank'>添加工单</a>&nbsp;&nbsp;</span>";
                }
            }
            if (v == 1)
            {
                info += Old_Order(status_nm, CommonFunction.ObjectToInteger(recid), orderid, CommonFunction.ObjectToInteger(old_Category), CommonFunction.ObjectToInteger(old_OrderStatus));
            }
            else if (v == 2)
            {
                info += New_Order(status_nm, CommonFunction.ObjectToInteger(recid), orderid, CommonFunction.ObjectToInteger(new_OrderStatus), CommonFunction.ObjectToInteger(new_LastRecid), CommonFunction.ObjectToInteger(new_createuserid));
            }
            return(info);
        }
        /// 创建热线管理类
        /// <summary>
        /// 创建热线管理类
        /// </summary>
        /// <returns></returns>
        public TelNumManage CreateTelNumManage()
        {
            DataTable dt_call  = GetAllXianCallDisplay();
            DataTable dt_skill = GetAllSkillGroup();

            TelSkillGroup skillinfo = new TelSkillGroup();

            skillinfo.SkillDic = new Dictionary <int, List <TelSkill> >();
            foreach (DataRow dr_call in dt_call.Select("", "CDID"))
            {
                int             CDID = CommonFunction.ObjectToInteger(dr_call["CDID"]);
                List <TelSkill> list = new List <TelSkill>();
                foreach (DataRow dr_skill in dt_skill.Select("CDID=" + CDID, "SGID"))
                {
                    string key  = dr_skill["ManufacturerSGID"].ToString();
                    string name = dr_skill["Name"].ToString();
                    list.Add(new TelSkill(key, name));
                }
                skillinfo.SkillDic[CDID] = list;
            }

            TelNumManage manage = new TelNumManage(skillinfo);

            manage.TelNumList = new List <TelNum>();
            foreach (DataRow dr_call in dt_call.Select("", "OrderNum"))
            {
                int    CDID     = CommonFunction.ObjectToInteger(dr_call["CDID"]);
                string tel      = dr_call["TelMainNum"].ToString();
                string _out     = dr_call["OutCallNum"].ToString();
                string name     = dr_call["Remark"].ToString();
                string longname = dr_call["CallNum"].ToString();
                int    no       = CommonFunction.ObjectToInteger(dr_call["HotlineID"]);
                int    mutilid  = CommonFunction.ObjectToInteger(dr_call["MutilID"]);
                string areacode = dr_call["AreaCode"].ToString();

                WorkOrderDataSource datasource = WorkOrderDataSource.Other;
                int d = CommonFunction.ObjectToInteger(dr_call["WorkOrderDataSourceID"]);
                if (Enum.IsDefined(typeof(WorkOrderDataSource), d))
                {
                    datasource = (WorkOrderDataSource)d;
                }

                manage.TelNumList.Add(new TelNum()
                {
                    Tel        = tel,
                    Out        = _out,
                    Name       = name,
                    LongName   = longname,
                    HotlineID  = no,
                    Skills     = skillinfo.SkillDic[CDID],
                    DataSource = datasource,
                    MutilID    = mutilid,
                    AreaCode   = areacode
                });
            }

            return(manage);
        }
Beispiel #3
0
        protected void Button43_Click(object sender, EventArgs e)
        {
            HyperLink2.Text        = "http://ncc.sys1.bitauto.com/WOrderV2/WOrderProcess.aspx?OrderID=" + TextBox7.Text;;
            HyperLink2.NavigateUrl = HyperLink2.Text;

            WorkOrderDataSource a = (WorkOrderDataSource)102;
            WorkOrderDataSource b = (WorkOrderDataSource)102222;
            bool c = Enum.IsDefined(typeof(WorkOrderDataSource), 102);
        }
Beispiel #4
0
        /// 获取跳转地址
        /// <summary>
        /// 获取跳转地址
        /// </summary>
        /// <returns></returns>
        private string GetAddWOrderUrl(WorkOrderDataSource dataSource)
        {
            //查询客户
            CTIHandlerHelper.GetCustIDByTel(CallerNum);
            //生成参数
            string param = BLL.WOrderRequest.AddWOrderComeIn_CallIn(dataSource, CallerNum).ToString();

            //返回链接
            return("/WOrderV2/AddWOrderInfo.aspx?" + param);
        }
        /// 呼入弹屏入口
        /// <summary>
        /// 呼入弹屏入口
        /// </summary>
        /// <returns></returns>
        public static WOrderRequest AddWOrderComeIn_CallIn(WorkOrderDataSource dataSource, string phone)
        {
            if (Enum.IsDefined(typeof(WorkOrderDataSource), (int)dataSource) == false)
            {
                dataSource = WorkOrderDataSource.None;
            }
            WOrderRequest info = new WOrderRequest(CallSourceEnum.C01_呼入, ModuleSourceEnum.M00_无);

            info.Phone                 = phone;
            info.IsPhoneCanModify      = false;
            info.IsShowCallOutBtn      = false;
            info.DataSource            = dataSource;
            info.IsDataSourceCanModify = dataSource == WorkOrderDataSource.None;
            return(info);
        }
Beispiel #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Stopwatch sw = new Stopwatch();
                sw.Start();

                //获取工单类型
                WorkOrderDataSource dataSource = GetDataSource();
                //获取跳转地址
                string url = GetAddWOrderUrl(dataSource);

                sw.Stop();
                logmsg += "查询客户ID选择页面耗时s:" + sw.Elapsed.TotalSeconds.ToString("0.00");
                gotourl = url;
            }
        }
        /// 未接来电工单入口
        /// <summary>
        /// 未接来电工单入口
        /// </summary>
        /// <param name="misscall_recid"></param>
        /// <param name="phone"></param>
        /// <returns></returns>
        public static WOrderRequest AddWOrderComeIn_MissedCall(int misscall_recid, string phone, WorkOrderDataSource dataSource)
        {
            if (Enum.IsDefined(typeof(WorkOrderDataSource), (int)dataSource) == false)
            {
                dataSource = WorkOrderDataSource.None;
            }
            WOrderRequest info = new WOrderRequest(CallSourceEnum.C00_无, ModuleSourceEnum.M04_未接来电);

            info.Phone                 = phone;
            info.IsPhoneCanModify      = false;
            info.IsShowCallOutBtn      = true;
            info.DataSource            = dataSource;
            info.IsDataSourceCanModify = dataSource == WorkOrderDataSource.None;
            info.RelatedData           = misscall_recid.ToString();
            return(info);
        }