Explorar el Código

20180820 修改文档bug

lihai %!s(int64=7) %!d(string=hace) años
padre
commit
06c44d650a

+ 4 - 4
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerBase.cs

@@ -105,8 +105,8 @@ namespace CallCenterApi.DAL
105 105
                     new SqlParameter("@F_AfterSaleName", SqlDbType.NVarChar,20),
106 106
                     new SqlParameter("@F_CustomerNature", SqlDbType.NVarChar,20),
107 107
                     new SqlParameter("@F_CustomerClass", SqlDbType.NVarChar,10),
108
-                    new SqlParameter("@F_CustomerIndustry", SqlDbType.NVarChar,10),
109
-                    new SqlParameter("@F_RelationShipClass", SqlDbType.NVarChar,10),
108
+                    new SqlParameter("@F_CustomerIndustry", SqlDbType.NVarChar,100),
109
+                    new SqlParameter("@F_RelationShipClass", SqlDbType.NVarChar,100),
110 110
                     new SqlParameter("@F_CurrentVersion", SqlDbType.VarChar,100),
111 111
                     new SqlParameter("@F_SystemStartTime", SqlDbType.DateTime),
112 112
                     new SqlParameter("@F_QualityGuaranteeEndTime", SqlDbType.DateTime),
@@ -387,8 +387,8 @@ namespace CallCenterApi.DAL
387 387
                     new SqlParameter("@F_AfterSaleName", SqlDbType.NVarChar,20),
388 388
                     new SqlParameter("@F_CustomerNature", SqlDbType.NVarChar,20),
389 389
                     new SqlParameter("@F_CustomerClass", SqlDbType.NVarChar,10),
390
-                    new SqlParameter("@F_CustomerIndustry", SqlDbType.NVarChar,10),
391
-                    new SqlParameter("@F_RelationShipClass", SqlDbType.NVarChar,10),
390
+                    new SqlParameter("@F_CustomerIndustry", SqlDbType.NVarChar,100),
391
+                    new SqlParameter("@F_RelationShipClass", SqlDbType.NVarChar,100),
392 392
                     new SqlParameter("@F_CurrentVersion", SqlDbType.VarChar,100),
393 393
                     new SqlParameter("@F_SystemStartTime", SqlDbType.DateTime),
394 394
                     new SqlParameter("@F_QualityGuaranteeEndTime", SqlDbType.DateTime),

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs

@@ -74,7 +74,7 @@ namespace CallCenterApi.DAL
74 74
                     new SqlParameter("@City", SqlDbType.VarChar,1000),
75 75
                     new SqlParameter("@County", SqlDbType.VarChar,1000),
76 76
                     new SqlParameter("@Address", SqlDbType.VarChar,200),
77
-                    new SqlParameter("@Source", SqlDbType.VarChar,50),
77
+                    new SqlParameter("@Source", SqlDbType.VarChar,100),
78 78
                     new SqlParameter("@Answer", SqlDbType.NVarChar,-1),
79 79
                     new SqlParameter("@State", SqlDbType.Int,4),
80 80
                     new SqlParameter("@LastDealUser", SqlDbType.VarChar,50),
@@ -216,7 +216,7 @@ namespace CallCenterApi.DAL
216 216
                     new SqlParameter("@City", SqlDbType.VarChar,1000),
217 217
                     new SqlParameter("@County", SqlDbType.VarChar,1000),
218 218
                     new SqlParameter("@Address", SqlDbType.VarChar,200),
219
-                    new SqlParameter("@Source", SqlDbType.VarChar,50),
219
+                    new SqlParameter("@Source", SqlDbType.VarChar,100),
220 220
                     new SqlParameter("@Answer", SqlDbType.NVarChar,-1),
221 221
                     new SqlParameter("@State", SqlDbType.Int,4),
222 222
                     new SqlParameter("@LastDealUser", SqlDbType.VarChar,50),

+ 2 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerController.cs

@@ -201,6 +201,8 @@ namespace CallCenterApi.Interface.Controllers.customer
201 201
                         return Error("省份不能为空!");
202 202
                     if (!Validate.IsHasCHZN(province))
203 203
                         return Error("请输入有效的省份!");
204
+                    if (Validate.GetStringLength(province) <= 2)
205
+                        return Error("省份名称不能少于2个字!");
204 206
                     if (string.IsNullOrEmpty(mobile))
205 207
                         return Error("联系电话不能为空!");
206 208
                     if (string.IsNullOrEmpty(customerindustry))

+ 6 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/tel/CallInScreenController.cs

@@ -599,6 +599,12 @@ namespace CallCenterApi.Interface.Controllers.tel
599 599
                             return Error("电话不能为空!");
600 600
                         if (string.IsNullOrEmpty(lddep))
601 601
                             return Error("来电单位不能为空!");
602
+                        if(Validate.GetStringLength(lddep)>100)
603
+                            return Error("来电单位不能超过50个字!");
604
+                        if (string.IsNullOrEmpty(fkdep))
605
+                            return Error("反馈单位不能为空!");
606
+                        if (Validate.GetStringLength(fkdep)> 100)
607
+                            return Error("反馈单位不能超过50个字!");
602 608
 
603 609
                         Model.T_Wo_WorkOrder model = new Model.T_Wo_WorkOrder();
604 610
                         model.WorkOrderID = DateTime.Now.ToString("yyyyMMddHHmmssms");//工单编号

+ 5 - 0
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -1015,9 +1015,14 @@ namespace CallCenterApi.Interface.Controllers.workorder
1015 1015
                                 if (gdztmodel != null)
1016 1016
                                 {
1017 1017
                                     if (gdztmodel.F_Name == "待处理")
1018
+                                    {
1018 1019
                                         ordermodel.State = 0;
1020
+                                    }
1019 1021
                                     else
1022
+                                    {
1023
+                                        ordermodel.LastDealUser = ua.F_UserCode;
1020 1024
                                         ordermodel.State = 1;
1025
+                                    }
1021 1026
                                 }
1022 1027
                                 if(!string.IsNullOrEmpty(customer))
1023 1028
                                     ordermodel.Customer = customer;

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Web.config

@@ -17,7 +17,7 @@
17 17
     <add key="smssign" value="中鑫之宝"/>
18 18
   </appSettings>
19 19
   <connectionStrings>
20
-    <add name="ConnectionString" connectionString="Data Source=192.168.5.8;User ID=sa;pwd=hykj800100;Initial Catalog=ANTU20480330;"/>
20
+    <add name="ConnectionString" connectionString="Data Source=192.168.5.8;User ID=sa;pwd=hykj800100;Initial Catalog=CallCenter_Anto_20180820;"/>
21 21
 	  <!--<add name="ConnectionString" connectionString="Data Source=192.168.4.18;User ID=sa;pwd=800100;Initial Catalog=CallCenter_Anto;"/>-->
22 22
     
23 23
   </connectionStrings>