瀏覽代碼

工单调整

zhengbingbing 7 年之前
父節點
當前提交
d34414ffb9

+ 13 - 0
codegit/CallCenterApi/CallCenterApi.BLL/T_Wo_WorkOrder.cs

@@ -155,6 +155,19 @@ namespace CallCenterApi.BLL
155 155
         {
156 156
             return dal.DealWorkOrder(strorderid, isend, strcont, jsbm, jsgh, clgh, isaudit, infotype,infotypeid,unitid,unit);
157 157
         }
158
+        /// <summary>
159
+        /// 处理工单
160
+        /// </summary>
161
+        public int DealWorkOrder1(string strorderid, int isend
162
+           , string customer, string custel, DateTime? inqtime, string inquser, string country, string address
163
+           , string detail, string strcont, string answer, string remark
164
+           , int jsbm, string jsgh, string clgh, string infotype, int infotypeid, int unitid, string unit
165
+           )
166
+        {
167
+
168
+            return dal.DealWorkOrder1(strorderid, isend, customer, custel, inqtime, inquser, country, address
169
+           , detail, strcont, answer, remark, jsbm, jsgh, clgh, infotype, infotypeid, unitid, unit);
170
+        }
158 171
         public bool UpdateReward(long woid, int isreward, string amount, string time)
159 172
         {
160 173
             return dal.UpdateReward(woid, isreward, amount, time);

+ 55 - 40
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs

@@ -748,44 +748,6 @@ namespace CallCenterApi.DAL
748 748
             ,int isaudit, string infotype,int infotypeid,int unitid,string unit
749 749
             )
750 750
         {
751
-            //        工单编号
752
-            //工单来源 Source
753
-            //工单状态 State
754
-            //姓 名 Customer
755
-            //电 话 CustomerTel
756
-            //调查时间 InqTime
757
-            //调查员  InqUser
758
-            //信息分类 InfoType
759
-            //交办单位 Unit
760
-            //县镇 country
761
-            //住 址 Address
762
-            //反映问题:问题里不安全、不满意原因;多选题和选中答案直接同步过来 Detail(工单内容)
763
-            //问题处理情况 Clcontent
764
-            //回访反馈情况 Answer
765
-            //备注 Remark
766
-            //调查对象签字
767
-            //调查人签字
768
-            //回访人签字
769
-
770
-            //@orderid VARCHAR(50), --工单编号
771
-            //@isend INT, --是否结束
772
-            //@Customer VARCHAR(50), --姓 名
773
-            //@CustomerTel VARCHAR(50), --电 话
774
-            //@country VARCHAR(50), --县镇
775
-            //@Address VARCHAR(50), --住 址
776
-            //@cont NVARCHAR(MAX), --处理内容(问题处理情况)
777
-            //@Answer NVARCHAR(MAX),--回访反馈情况
778
-            //@Detail NVARCHAR(MAX),--反映问题(工单内容)
779
-            //@Remark NVARCHAR(MAX),--备注
780
-            //@InqUser VARCHAR(50), 调查员
781
-            //@InqTime datetime, 调查时间
782
-            //@jsbm INT, --接收部门ID
783
-            //@jsgh VARCHAR(50), --接收人工号(多个用, 隔开)
784
-            //@clgh VARCHAR(MAX), --处理人工号
785
-            //@InfoTypeID int, --信息分类ID
786
-            //@InfoType VARCHAR(50), --信息分类
787
-            //@UnitID int, --交办单位ID
788
-            //@Unit varchar(50)--交办单位
789 751
             SqlParameter[] parameters = {
790 752
                     new SqlParameter("@orderid", SqlDbType.VarChar, 50),
791 753
                     new SqlParameter("@isend", SqlDbType.Int),
@@ -793,7 +755,7 @@ namespace CallCenterApi.DAL
793 755
                     new SqlParameter("@jsbm", SqlDbType.Int),
794 756
                     new SqlParameter("@jsgh", SqlDbType.VarChar,-1),
795 757
                     new SqlParameter("@clgh", SqlDbType.VarChar,50),
796
-                    
758
+                    new SqlParameter("@IsAudit", SqlDbType.Int),
797 759
                     new SqlParameter("@InfoTypeID", SqlDbType.Int),
798 760
                     new SqlParameter("@InfoType", SqlDbType.VarChar,50),
799 761
                     new SqlParameter("@UnitID", SqlDbType.Int),
@@ -805,7 +767,7 @@ namespace CallCenterApi.DAL
805 767
             parameters[3].Value = jsbm;
806 768
             parameters[4].Value = jsgh;
807 769
             parameters[5].Value = clgh;
808
-            
770
+            parameters[6].Value = isaudit;
809 771
             parameters[7].Value = infotypeid;
810 772
             parameters[8].Value = infotype;
811 773
             parameters[9].Value = unitid;
@@ -815,6 +777,59 @@ namespace CallCenterApi.DAL
815 777
         }
816 778
 
817 779
         /// <summary>
780
+        /// 处理工单
781
+        /// </summary>
782
+        public int DealWorkOrder1(string strorderid, int isend
783
+           , string customer, string custel, DateTime? inqtime, string inquser, string country, string address
784
+           , string detail, string strcont, string answer, string remark
785
+           , int jsbm, string jsgh, string clgh, string infotype, int infotypeid, int unitid, string unit
786
+           )
787
+        {
788
+            SqlParameter[] parameters = {
789
+                    new SqlParameter("@orderid", SqlDbType.VarChar, 50),
790
+                    new SqlParameter("@isend", SqlDbType.Int),
791
+                    new SqlParameter("@Customer", SqlDbType.VarChar, 50),//姓 名
792
+                    new SqlParameter("@CustomerTel", SqlDbType.VarChar, 50),//电 话
793
+                    new SqlParameter("@country", SqlDbType.VarChar, 50),//县镇
794
+                    new SqlParameter("@Address", SqlDbType.VarChar, 50),//住 址
795
+                    new SqlParameter("@cont", SqlDbType.NVarChar,-1),//处理内容(问题处理情况)
796
+                    new SqlParameter("@Answer", SqlDbType.NVarChar,-1),//回访反馈情况
797
+                    new SqlParameter("@Detail", SqlDbType.NVarChar,-1),//反映问题(工单内容)
798
+                    new SqlParameter("@Remark", SqlDbType.NVarChar,-1),//备注
799
+                    new SqlParameter("@InqUser", SqlDbType.VarChar, 50),//调查员
800
+                    new SqlParameter("@InqTime", SqlDbType.DateTime),//调查时间
801
+                    new SqlParameter("@jsbm", SqlDbType.Int),
802
+                    new SqlParameter("@jsgh", SqlDbType.VarChar,-1),
803
+                    new SqlParameter("@clgh", SqlDbType.VarChar,50),
804
+                    new SqlParameter("@InfoTypeID", SqlDbType.Int),
805
+                    new SqlParameter("@InfoType", SqlDbType.VarChar,50),
806
+                    new SqlParameter("@UnitID", SqlDbType.Int),
807
+                    new SqlParameter("@Unit", SqlDbType.VarChar,50)
808
+                    };
809
+            parameters[0].Value = strorderid;
810
+            parameters[1].Value = isend;
811
+            parameters[2].Value = customer;
812
+            parameters[3].Value = custel;
813
+            parameters[4].Value = country;
814
+            parameters[5].Value = address;
815
+            parameters[6].Value = strcont;
816
+            parameters[7].Value = answer;
817
+            parameters[8].Value = detail;
818
+            parameters[9].Value = remark;
819
+            parameters[10].Value = inquser;
820
+            parameters[11].Value = inqtime;
821
+            parameters[12].Value = jsbm;
822
+            parameters[13].Value = jsgh;
823
+            parameters[14].Value = clgh;
824
+            parameters[15].Value = infotypeid;
825
+            parameters[16].Value = infotype;
826
+            parameters[17].Value = unitid;
827
+            parameters[18].Value = unit;
828
+            int n = 0;
829
+            return DbHelperSQL.RunProcedure("DealWorkOrder", parameters, out n);
830
+        }
831
+
832
+        /// <summary>
818 833
         /// 更新一条数据
819 834
         /// </summary>
820 835
         public bool UpdateReward(long woid,int isreward,string amount,string time)

+ 14 - 7
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/weixin/WxLoginController.cs

@@ -230,7 +230,8 @@ namespace CallCenterApi.Interface.Controllers.weixin
230 230
 
231 231
             string cusname = RequestString.GetFormString("cusname");
232 232
             string cusphone = RequestString.GetFormString("cusphone");//GetFormString
233
-
233
+            string country = RequestString.GetFormString("country");
234
+            string address = RequestString.GetFormString("address");
234 235
             string content = RequestString.GetFormString("content");
235 236
             string files = RequestString.GetFormString("files");
236 237
             int type = RequestString.GetInt("type", 3);//默认为3投诉建议
@@ -239,7 +240,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
239 240
             var wxuser = new BLL.T_Sys_Users().GetModelList(" F_OpenId='" + stropenid.Trim() + "'  and F_Type=1 ").FirstOrDefault();
240 241
 
241 242
             workorder.WorkOrderController wo = new workorder.WorkOrderController();
242
-            string workorderid = wo.AddWorkOrders(type, cusname, cusphone, content, files);
243
+            string workorderid = wo.AddWorkOrders(type, cusname, cusphone,country,address, content, files);
243 244
             if (string.IsNullOrEmpty(workorderid))
244 245
             {
245 246
                 return Error("新增失败");
@@ -265,16 +266,22 @@ namespace CallCenterApi.Interface.Controllers.weixin
265 266
         {
266 267
             DataTable dt = new DataTable();
267 268
             string orderid = RequestString.GetFormString("orderid");//GetFormString
268
-            string clcont = HttpUtility.UrlDecode(RequestString.GetFormString("clcont"));
269
-
270
-            int isaudit = RequestString.GetFormInt("isaudit", 0);
269
+            string customer= HttpUtility.UrlDecode(RequestString.GetFormString("customer"));
270
+            string inqtime = HttpUtility.UrlDecode(RequestString.GetFormString("inqtime"));
271
+            string inquser = HttpUtility.UrlDecode(RequestString.GetFormString("inquser"));
272
+            string country = HttpUtility.UrlDecode(RequestString.GetFormString("country"));
273
+            string address = HttpUtility.UrlDecode(RequestString.GetFormString("address"));
274
+            string detail = HttpUtility.UrlDecode(RequestString.GetFormString("detail"));
275
+            string cont = HttpUtility.UrlDecode(RequestString.GetFormString("cont"));
276
+            string answer = HttpUtility.UrlDecode(RequestString.GetFormString("answer"));
277
+            string remark = HttpUtility.UrlDecode(RequestString.GetFormString("remark"));
271 278
             int infotypeid = RequestString.GetFormInt("infotypeid", 0);
272 279
             int unitid = RequestString.GetFormInt("unitid", 0);
273 280
 
274 281
             string stropenid = HttpUtility.UrlDecode(RequestString.GetFormString("openid"));
275 282
 
276 283
             workorder.WorkOrderController wo = new workorder.WorkOrderController();
277
-            bool res = wo.DealWorkOrders(orderid, clcont, stropenid, isaudit, infotypeid, unitid);
284
+            bool res = wo.DealWorkOrders(orderid, customer,inqtime,inquser,country,address,detail,detail,answer,remark, infotypeid, unitid, stropenid);
278 285
 
279 286
             if (res)
280 287
             {
@@ -377,7 +384,7 @@ namespace CallCenterApi.Interface.Controllers.weixin
377 384
             var dt = DbHelperSQL.Query(sql).Tables[0];
378 385
             return Success("列表加载成功", dt);
379 386
         }
380
-
387
+        
381 388
         #endregion
382 389
 
383 390
         #region 附件和语音文件

File diff suppressed because it is too large
+ 721 - 183
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs