|
|
@@ -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
|
{
|