Explorar el Código

修改工单类型接口

machenyang %!s(int64=8) %!d(string=hace) años
padre
commit
560f7f30c7

+ 4 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkTypeController.cs

51
             return res;
51
             return res;
52
         }
52
         }
53
         /// <summary>
53
         /// <summary>
54
-        /// 删除工单
54
+        /// 删除工单类型
55
         /// </summary>
55
         /// </summary>
56
         /// <returns></returns>
56
         /// <returns></returns>
57
         public ActionResult DeleteById()
57
         public ActionResult DeleteById()
167
         /// </summary>
167
         /// </summary>
168
         /// <param name="f_catagoryid">要删除的工单类别的类别id</param>
168
         /// <param name="f_catagoryid">要删除的工单类别的类别id</param>
169
         /// <returns></returns>
169
         /// <returns></returns>
170
-        public ActionResult DeleteWoType(string f_catagoryid)
170
+        public string DeleteWoType(string f_catagoryid)
171
         {
171
         {
172
             //获取它下面的子类别
172
             //获取它下面的子类别
173
-            ActionResult res = NoToken("未知错误,请重新登录");
173
+            string res = string.Empty;
174
             DataTable dt = new BLL.T_RepositoryCategory().GetList("F_DeleteFlag=0 and F_ParentId=" + Convert.ToInt32(f_catagoryid) + " and F_CategoryType=1").Tables[0];
174
             DataTable dt = new BLL.T_RepositoryCategory().GetList("F_DeleteFlag=0 and F_ParentId=" + Convert.ToInt32(f_catagoryid) + " and F_CategoryType=1").Tables[0];
175
             string rid = string.Empty;
175
             string rid = string.Empty;
176
             if (dt.Rows.Count > 0)
176
             if (dt.Rows.Count > 0)
194
                             }
194
                             }
195
                         }
195
                         }
196
                     }
196
                     }
197
-                    res = Success("删除成功");
198
                 }
197
                 }
199
                 catch (Exception e)
198
                 catch (Exception e)
200
                 {
199
                 {
201
-                    res = Error("删除失败");
200
+                    res = e.Message;
202
                 }
201
                 }
203
             }
202
             }
204
             return res;
203
             return res;