|
|
@@ -51,7 +51,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
51
|
51
|
return res;
|
|
52
|
52
|
}
|
|
53
|
53
|
/// <summary>
|
|
54
|
|
- /// 删除工单
|
|
|
54
|
+ /// 删除工单类型
|
|
55
|
55
|
/// </summary>
|
|
56
|
56
|
/// <returns></returns>
|
|
57
|
57
|
public ActionResult DeleteById()
|
|
|
@@ -167,10 +167,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
167
|
167
|
/// </summary>
|
|
168
|
168
|
/// <param name="f_catagoryid">要删除的工单类别的类别id</param>
|
|
169
|
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
|
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
|
175
|
string rid = string.Empty;
|
|
176
|
176
|
if (dt.Rows.Count > 0)
|
|
|
@@ -194,11 +194,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
194
|
194
|
}
|
|
195
|
195
|
}
|
|
196
|
196
|
}
|
|
197
|
|
- res = Success("删除成功");
|
|
198
|
197
|
}
|
|
199
|
198
|
catch (Exception e)
|
|
200
|
199
|
{
|
|
201
|
|
- res = Error("删除失败");
|
|
|
200
|
+ res = e.Message;
|
|
202
|
201
|
}
|
|
203
|
202
|
}
|
|
204
|
203
|
return res;
|