Bladeren bron

微信工单添加信息分类字段;修改手机号/固话字段

mengjie 7 jaren geleden
bovenliggende
commit
0353cfd336

+ 13 - 4
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -237,12 +237,15 @@ namespace CallCenterApi.Interface.Controllers.weixin
237 237
             string address = HttpUtility.UrlDecode(RequestString.GetFormString("address"));
238 238
             string content = HttpUtility.UrlDecode(RequestString.GetFormString("content"));
239 239
             string files = RequestString.GetFormString("files");
240
-
240
+            //2018-7-5
241
+            string infotype = HttpUtility.UrlDecode(RequestString.GetFormString("infotype"));
242
+            string infotypeid = HttpUtility.UrlDecode(RequestString.GetFormString("infotypeid"));
243
+            
241 244
             string stropenid = HttpUtility.UrlDecode(RequestString.GetFormString("openid"));
242 245
             var wxuser = new BLL.T_Sys_Users().GetModelList(" F_OpenId='" + stropenid.Trim() + "'  and F_Type=1 ").FirstOrDefault();
243 246
 
244 247
             workorder.WorkOrderController wo = new workorder.WorkOrderController();
245
-            string workorderid = wo.AddWorkOrders(cusname, cusphone,country,address, content, files);
248
+            string workorderid = wo.AddWorkOrders(cusname, cusphone,country,address, content, files,infotype, infotypeid);
246 249
             if (string.IsNullOrEmpty(workorderid))
247 250
             {
248 251
                 return Error("新增失败");
@@ -308,13 +311,18 @@ namespace CallCenterApi.Interface.Controllers.weixin
308 311
         {
309 312
             string strworkorderid = HttpUtility.UrlDecode(RequestString.GetQueryString("workorderid"));
310 313
             string stropenid = HttpUtility.UrlDecode(RequestString.GetQueryString("openid"));
314
+            //测试
315
+            //strworkorderid = "2";
316
+            //stropenid = "oVaSiv_rmKGU4fITAOEzhGrRU8M0";
317
+
318
+
311 319
             var wxuser = new BLL.T_Sys_Users().GetModelList(" F_OpenId='" + stropenid.Trim() + "' and F_Type=1 ").FirstOrDefault();
312 320
 
313 321
             var tbu = new BLL.T_WO_UserWorkOrder().GetList(" F_UserId='" + wxuser.F_Id + "' and F_WorkOrderId=" + strworkorderid + " ").Tables[0];
314 322
 
315 323
             if (tbu.Rows.Count > 0)
316 324
             {
317
-                string sql = "select *,dbo.GetUserName(CreateUser) as CreateUserName "
325
+                string sql = "select *,dbo.GetUserName(CreateUser) as CreateUserName,dbo.GetCountry(County) CountryName "
318 326
                     + " from T_Wo_WorkOrder where id =" + strworkorderid + " ";
319 327
                 var dt = DbHelperSQL.Query(sql).Tables[0];
320 328
                 if (dt.Rows.Count > 0)
@@ -373,7 +381,8 @@ namespace CallCenterApi.Interface.Controllers.weixin
373 381
         [WechatActionFilter]
374 382
         public ActionResult GetPagers()
375 383
         {
376
-            int pagerid = int.Parse(Configs.GetValue("WXPagerID"));
384
+            //int pagerid = int.Parse(Configs.GetValue("WXPagerID"));
385
+            int pagerid = 8;
377 386
             var model = pagerInfoBLL.GetModel(pagerid);
378 387
             if (model != null)
379 388
             {

+ 6 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -1129,7 +1129,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1129 1129
 
1130 1130
         #region 微信工单
1131 1131
         //微信添加工单
1132
-        public string AddWorkOrders(string customer, string custel, string country, string address, string detail, string file)
1132
+        public string AddWorkOrders(string customer, string custel, string country, string address, string detail, string file,string infotype, string infotypeid)
1133 1133
         {
1134 1134
             string workorderid = string.Empty;
1135 1135
             Model.T_Wo_WorkOrder model = new Model.T_Wo_WorkOrder();
@@ -1140,7 +1140,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
1140 1140
             model.Address = address;
1141 1141
             model.Detail = detail;
1142 1142
             model.Files = file;
1143
-
1143
+            model.InfoType = infotype;
1144
+            if (!string.IsNullOrWhiteSpace(infotypeid))
1145
+            {
1146
+                model.InfoTypeID = Convert.ToInt32(infotypeid);
1147
+            }
1144 1148
             #region 无需参数字段
1145 1149
             model.Type = 3;//默认为投诉工单
1146 1150
             model.Source = "微信";