Exemple #1
0
 public string GetAddWOrderComeIn_IMJXS_SC_URL(string Verifycode, CallSourceEnum callsource, string phone, long csid, string cbname, int cbsex, int province, int city, int county, string membercode)
 {
     BLL.Util.LogForWeb("info", "IM经销商版添加工单url:GetAddWOrderComeIn_IMJXS_URL " + phone + " " + csid);
     try
     {
         string msg = "";
         if (!BLL.CallRecord_ORIG_Authorizer.Instance.Verify(Verifycode, 0, ref msg, "权限错误"))
         {
             BLL.Util.LogForWeb("info", "权限验证失败:" + msg + "  传递参数:Verifycode(" + Verifycode + ")");
             return("");
         }
         else
         {
             string            root = BitAuto.Utils.Config.ConfigurationUtil.GetAppSettingValue("ExitAddress", false);
             BLL.WOrderRequest q    = BLL.WOrderRequest.AddWOrderComeIn_IMJXS(callsource, ModuleSourceEnum.M07_IM经销商_二手车, phone, csid, cbname, cbsex, province, city, county, membercode);
             return(root + "/WOrderV2/AddWOrderInfo.aspx?" + q.ToString());
         }
     }
     catch (Exception ex)
     {
         BLL.Util.LogForWeb("info", ex.Message);
         BLL.Util.LogForWeb("info", ex.StackTrace);
         return("");
     }
 }
Exemple #2
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);
        }