|
|
@@ -325,9 +325,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
325
|
325
|
var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_OldWorkOrderId 工单号,F_ComTitle 诉求标题,F_CusName 反映人,F_CusPhone 电话号码,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
|
|
326
|
326
|
+ " dbo.GetDeptNames(F_MainDeptId) 承办单位, "
|
|
327
|
327
|
+ " (select top 1 F_Situation from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and F_WorkOrderId =wo.F_WorkOrderId order by F_CreateTime) 办理结果,"
|
|
328
|
|
- + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果, case F_Satisfaction when 0 then '不满意'when 1 then" +
|
|
329
|
|
- "'基本满意' when 2 then '满意' else '未评价'end 郑州回访结果"
|
|
330
|
|
- + " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + sort).Tables[0];
|
|
|
328
|
+ + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果" +
|
|
|
329
|
+ " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + sort).Tables[0];
|
|
331
|
330
|
|
|
332
|
331
|
var msg = new NPOIHelper().ExportToExcel("工单列表", dtdc);
|
|
333
|
332
|
if (msg == "")
|
|
|
@@ -797,9 +796,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
797
|
796
|
var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_OldWorkOrderId 工单号,F_ComTitle 诉求标题,F_CusName 反映人,F_CusPhone 电话号码,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
|
|
798
|
797
|
+ " dbo.GetDeptNames(F_MainDeptId) 承办单位, "
|
|
799
|
798
|
+ " (select top 1 F_Situation from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and F_WorkOrderId =wo.F_WorkOrderId order by F_CreateTime) 办理结果,"
|
|
800
|
|
- + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果, case F_Satisfaction when 0 then '不满意'when 1 then" +
|
|
801
|
|
- "'基本满意' when 2 then '满意' else '未评价'end 郑州回访结果"
|
|
802
|
|
- + " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + sort).Tables[0];
|
|
|
799
|
+ + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果" +
|
|
|
800
|
+ " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + sort).Tables[0];
|
|
803
|
801
|
|
|
804
|
802
|
var msg = new NPOIHelper().ExportToExcel("工单列表", dtdc);
|
|
805
|
803
|
if (msg == "")
|
|
|
@@ -862,7 +860,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
862
|
860
|
var dtjb = DbHelperSQL.Query(sqljb).Tables[0];
|
|
863
|
861
|
if (dtjb.Rows.Count > 0)
|
|
864
|
862
|
{
|
|
865
|
|
- //if (dtjb.Rows[0]["F_MainDeptId"].ToString().Split(',').Contains(userModel.F_DeptId.ToString())) { iszbdw = "1"; }
|
|
|
863
|
+
|
|
866
|
864
|
if (dr["F_MainDeptId"].ToString() == userModel.F_DeptId.ToString()) { iszbdw = "1"; }
|
|
867
|
865
|
dr["DeptName"] = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + dr["F_MainDeptId"].ToString() + "')");
|
|
868
|
866
|
if (dr["F_OtherDeptIds"] != null && dr["F_OtherDeptIds"].ToString() != "")
|
|
|
@@ -870,43 +868,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
870
|
868
|
dr["OtherDeptName"] = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + dr["F_OtherDeptIds"].ToString() + "')");
|
|
871
|
869
|
}
|
|
872
|
870
|
#region 20191016
|
|
873
|
|
- //if (dtjb.Rows[0]["F_MainDeptId"].ToString() == userModel.F_DeptId.ToString()) { iszbdw = "1"; }
|
|
874
|
|
- //dr["DeptName"] = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + dtjb.Rows[0]["F_MainDeptId"].ToString() + "')");
|
|
875
|
|
- //if (dtjb.Rows[0]["F_OtherDeptIds"] != null && dtjb.Rows[0]["F_OtherDeptIds"].ToString() != "")
|
|
876
|
|
- //{
|
|
877
|
|
- // dr["OtherDeptName"] = DbHelperSQL.GetSingle(" select dbo.GetDeptNames('" + dtjb.Rows[0]["F_OtherDeptIds"].ToString() + "')");
|
|
878
|
|
- //}
|
|
|
871
|
+
|
|
879
|
872
|
#endregion
|
|
880
|
873
|
dr["AssignTime"] = dtjb.Rows[0]["F_CreateTime"].ToString();
|
|
881
|
874
|
#region
|
|
882
|
|
- //int did = Int32.Parse(dtjb.Rows[0]["F_MainDeptId"].ToString());
|
|
883
|
|
- //var deptinfo = new BLL.T_Sys_Department().GetModel(did);
|
|
884
|
|
- //if (deptinfo != null)
|
|
885
|
|
- //{
|
|
886
|
|
- // if (did == userModel.F_DeptId) { iszbdw = "1"; }
|
|
887
|
|
- // dr["DeptName"] = deptinfo.F_DeptName;//交办单位
|
|
888
|
|
- //}
|
|
889
|
|
- //if (dtjb.Rows[0]["F_OtherDeptIds"] != null && dtjb.Rows[0]["F_OtherDeptIds"].ToString() != "")
|
|
890
|
|
- //{
|
|
891
|
|
- // string[] strids = dtjb.Rows[0]["F_OtherDeptIds"].ToString().Split(',');
|
|
892
|
|
- // string dns = string.Empty;
|
|
893
|
|
- // foreach (string strid in strids)
|
|
894
|
|
- // {
|
|
895
|
|
- // var dinfo = new BLL.T_Sys_Department().GetModel(Int32.Parse(strid));
|
|
896
|
|
- // if (dinfo != null)
|
|
897
|
|
- // {
|
|
898
|
|
- // if (string.IsNullOrEmpty(dns))
|
|
899
|
|
- // {
|
|
900
|
|
- // dns = dinfo.F_DeptName;//交办单位
|
|
901
|
|
- // }
|
|
902
|
|
- // else
|
|
903
|
|
- // {
|
|
904
|
|
- // dns += "," + dinfo.F_DeptName;//交办单位
|
|
905
|
|
- // }
|
|
906
|
|
- // }
|
|
907
|
|
- // }
|
|
908
|
|
- // dr["OtherDeptName"] = dns;
|
|
909
|
|
- //}
|
|
|
875
|
+
|
|
910
|
876
|
#endregion
|
|
911
|
877
|
var lt = dr["F_LimitTime"].ToString();//限制时间
|
|
912
|
878
|
dr["LimitTime"] = lt;
|
|
|
@@ -2409,9 +2375,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
2409
|
2375
|
var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_OldWorkOrderId 工单号,F_ComTitle 诉求标题,F_CusName 反映人,F_CusPhone 电话号码,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
|
|
2410
|
2376
|
+ " dbo.GetDeptNames(F_MainDeptId) 承办单位, "
|
|
2411
|
2377
|
+ " (select top 1 F_Situation from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and F_WorkOrderId =wo.F_WorkOrderId order by F_CreateTime) 办理结果,"
|
|
2412
|
|
- + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果, case F_Satisfaction when 0 then '不满意'when 1 then" +
|
|
2413
|
|
- "'基本满意' when 2 then '满意' else '未评价'end 郑州回访结果"
|
|
2414
|
|
- + " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + sort).Tables[0];
|
|
|
2378
|
+ + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果" +
|
|
|
2379
|
+ " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + sort).Tables[0];
|
|
2415
|
2380
|
|
|
2416
|
2381
|
//var dtdc = DbHelperSQL.Query(" select " + colst + " from T_Bus_WorkOrder WITH(NOLOCK) where 1=1 " + sql).Tables[0];
|
|
2417
|
2382
|
var msg = new NPOIHelper().ExportToExcel("工单列表", dtdc);
|
|
|
@@ -3053,9 +3018,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3053
|
3018
|
var dtdc = DbHelperSQL.Query(" select " + top + " F_CreateTime 日期, F_OldWorkOrderId 工单号,F_ComTitle 诉求标题,F_CusName 反映人,F_CusPhone 电话号码,F_ComContent 诉求内容,dbo.GetDictionaryName(F_Key) 主题词, "
|
|
3054
|
3019
|
+ " dbo.GetDeptNames(F_MainDeptId) 承办单位, "
|
|
3055
|
3020
|
+ " (select top 1 F_Situation from T_Bus_Feedback WITH(NOLOCK) where F_State=1 and F_Type!=3 and F_IsDelete=0 and F_WorkOrderId =wo.F_WorkOrderId order by F_CreateTime) 办理结果,"
|
|
3056
|
|
- + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果, case F_Satisfaction when 0 then '不满意'when 1 then" +
|
|
3057
|
|
- "'基本满意' when 2 then '满意' else '未评价'end 郑州回访结果"
|
|
3058
|
|
- + " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + orderby).Tables[0];
|
|
|
3021
|
+ + " (select top 1 (case F_IsSatisfie when 1 then'满意' when 0 then '不满意'when 2 then '基本满意' else '未评价' end) F_Satisfie from T_Bus_VisitResult WITH(NOLOCK) where F_State = 1 and F_IsDelete = 0 and F_WorkOrderId = wo.F_WorkOrderId order by F_Id desc) 承办单位回访结果" +
|
|
|
3022
|
+ " from T_Bus_WorkOrder wo WITH(NOLOCK) where 1=1 " + sql + orderby).Tables[0];
|
|
3059
|
3023
|
var msg = new NPOIHelper().ExportToExcel("工单列表", dtdc);
|
|
3060
|
3024
|
if (msg == "")
|
|
3061
|
3025
|
{
|
|
|
@@ -3244,11 +3208,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3244
|
3208
|
var butt = btns.Find(c => c.key == ButtonGroup.turnsee().key);
|
|
3245
|
3209
|
if (recount > 0 && butt != null)
|
|
3246
|
3210
|
btns.Remove(butt);
|
|
3247
|
|
- if (dr["F_Files"].ToString() == "")
|
|
3248
|
|
- {
|
|
3249
|
|
- if (userModel.F_RoleCode.ToUpper() == "WLDW")
|
|
3250
|
|
- btns.Add(ButtonGroup.Upload());
|
|
3251
|
|
- }
|
|
|
3211
|
+
|
|
3252
|
3212
|
#endregion
|
|
3253
|
3213
|
}
|
|
3254
|
3214
|
else
|
|
|
@@ -3269,11 +3229,11 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
3269
|
3229
|
{//履职界定待审核
|
|
3270
|
3230
|
if (dr["F_WorkState"].ToString()=="6")
|
|
3271
|
3231
|
btns.Add(ButtonGroup.visit());
|
|
3272
|
|
- if (dr["F_Files"].ToString() == "")
|
|
3273
|
|
- {
|
|
3274
|
|
- if (userModel.F_RoleCode.ToUpper() == "WLDW")
|
|
3275
|
|
- btns.Add(ButtonGroup.Upload());
|
|
3276
|
|
- }
|
|
|
3232
|
+ //if (dr["F_Files"].ToString() == "")
|
|
|
3233
|
+ //{
|
|
|
3234
|
+ // if (userModel.F_RoleCode.ToUpper() == "WLDW")
|
|
|
3235
|
+ // btns.Add(ButtonGroup.Upload());
|
|
|
3236
|
+ //}
|
|
3277
|
3237
|
|
|
3278
|
3238
|
}
|
|
3279
|
3239
|
else if (Int32.Parse(strtab) == 7 && strisaudit=="0")
|
|
|
@@ -7538,7 +7498,33 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
7538
|
7498
|
modelT_Bus_WorkOrder.F_IsClosed = 1;
|
|
7539
|
7499
|
modelT_Bus_WorkOrder.F_CloseUser = userModel.F_UserCode;
|
|
7540
|
7500
|
modelT_Bus_WorkOrder.F_CloseTime = DateTime.Now;
|
|
|
7501
|
+
|
|
|
7502
|
+
|
|
|
7503
|
+
|
|
|
7504
|
+
|
|
7541
|
7505
|
}
|
|
|
7506
|
+ //else if(userModel .F_RoleCode =="WLDW")
|
|
|
7507
|
+ //{
|
|
|
7508
|
+ // #region 插入交办记录
|
|
|
7509
|
+ // Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = new T_Bus_AssignedInfo();
|
|
|
7510
|
+ // modelT_Bus_AssignedInfo.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
|
|
|
7511
|
+ // modelT_Bus_AssignedInfo.F_LimitTime = limittime;//办理时限
|
|
|
7512
|
+ // modelT_Bus_AssignedInfo.F_MainDeptId = maindeptid;//主办单位id
|
|
|
7513
|
+ // modelT_Bus_AssignedInfo.F_OtherDeptIds = otherdeptids;//协办单位id
|
|
|
7514
|
+ // modelT_Bus_AssignedInfo.F_AssignedOpinion = assignedopinion;//交办意见
|
|
|
7515
|
+ // modelT_Bus_AssignedInfo.F_State = 1;//0草稿 1正式
|
|
|
7516
|
+ // modelT_Bus_AssignedInfo.F_CreateUser = userModel.F_UserCode;
|
|
|
7517
|
+ // modelT_Bus_AssignedInfo.F_CreateTime = DateTime.Now;
|
|
|
7518
|
+ // modelT_Bus_AssignedInfo.F_IsDelete = 0;
|
|
|
7519
|
+ // modelT_Bus_AssignedInfo.F_IsOverdue = 0;
|
|
|
7520
|
+ // modelT_Bus_AssignedInfo.F_IsSure = 0;
|
|
|
7521
|
+ // modelT_Bus_AssignedInfo.F_IsReload = 0;
|
|
|
7522
|
+ // modelT_Bus_AssignedInfo.F_IsNext = 0;
|
|
|
7523
|
+ // modelT_Bus_AssignedInfo.F_TimeResp = assignBLL.GetRepTimly(DateTime.Now);//及时查收时间点
|
|
|
7524
|
+ // int aid = assignBLL.Add(modelT_Bus_AssignedInfo);
|
|
|
7525
|
+ // #endregion
|
|
|
7526
|
+
|
|
|
7527
|
+ //}
|
|
7542
|
7528
|
else if (issubmit == 1)
|
|
7543
|
7529
|
{
|
|
7544
|
7530
|
modelT_Bus_WorkOrder.F_SubmitTime = DateTime.Now;
|
|
|
@@ -8898,7 +8884,6 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
8898
|
8884
|
int state = RequestString.GetInt("state", 0);
|
|
8899
|
8885
|
int assignid = RequestString.GetInt("assignid", 0);
|
|
8900
|
8886
|
int maindeptid = RequestString.GetInt("maindeptid", 0);
|
|
8901
|
|
- //string maindeptid = RequestString.GetFormString("maindeptid");
|
|
8902
|
8887
|
string otherdeptids = RequestString.GetFormString("otherdeptids");
|
|
8903
|
8888
|
DateTime limittime = DateTime.Parse(RequestString.GetFormString("limittime") + " 23:59:59");
|
|
8904
|
8889
|
string assignedopinion = RequestString.GetFormString("assignedopinion");
|
|
|
@@ -10204,6 +10189,115 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
10204
|
10189
|
}
|
|
10205
|
10190
|
}
|
|
10206
|
10191
|
|
|
|
10192
|
+
|
|
|
10193
|
+
|
|
|
10194
|
+
|
|
|
10195
|
+
|
|
|
10196
|
+
|
|
|
10197
|
+
|
|
|
10198
|
+ /// <summary>
|
|
|
10199
|
+ /// 上报工单
|
|
|
10200
|
+ /// </summary>
|
|
|
10201
|
+ /// <returns></returns>
|
|
|
10202
|
+ [Authority]
|
|
|
10203
|
+ public ActionResult Escalation()
|
|
|
10204
|
+ {
|
|
|
10205
|
+ int userId = Utils.StrToInt(User.UserData["F_UserID"], 0);
|
|
|
10206
|
+
|
|
|
10207
|
+ Model.T_Sys_UserAccount userModel = userBLL.GetModel(userId);
|
|
|
10208
|
+
|
|
|
10209
|
+ if (userModel.F_RoleCode == "WLDW" )
|
|
|
10210
|
+ {
|
|
|
10211
|
+ string workorderid = RequestString.GetFormString("workorderid");
|
|
|
10212
|
+
|
|
|
10213
|
+ Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = workorderBLL.GetModel(workorderid);
|
|
|
10214
|
+ Model.T_Bus_AssignedInfo modelT_Bus_AssignedInfo = assignBLL.GetNewModelByWorkOrderID(workorderid);
|
|
|
10215
|
+
|
|
|
10216
|
+ if (modelT_Bus_WorkOrder != null && modelT_Bus_AssignedInfo != null)
|
|
|
10217
|
+ {
|
|
|
10218
|
+ if (modelT_Bus_AssignedInfo.F_CreateUser != userModel.F_UserCode)
|
|
|
10219
|
+ {
|
|
|
10220
|
+ return Error("操作失败");
|
|
|
10221
|
+ }
|
|
|
10222
|
+
|
|
|
10223
|
+ //if (modelT_Bus_AssignedInfo.F_IsSure == 0 || (modelT_Bus_AssignedInfo.F_IsSure == 1 && modelT_Bus_WorkOrder.F_WorkState == 4))
|
|
|
10224
|
+ if (modelT_Bus_AssignedInfo.F_IsSure == 0 || (modelT_Bus_AssignedInfo.F_IsSure == 1 && modelT_Bus_WorkOrder.F_WorkState == (int)EnumWorkState.dealing))
|
|
|
10225
|
+ {
|
|
|
10226
|
+ using (TransactionScope trans = new TransactionScope())
|
|
|
10227
|
+ {
|
|
|
10228
|
+
|
|
|
10229
|
+
|
|
|
10230
|
+ #region 保存工单信息
|
|
|
10231
|
+ //modelT_Bus_WorkOrder.F_WorkState = 1;//待交办
|
|
|
10232
|
+ modelT_Bus_WorkOrder.F_WorkState = (int)EnumWorkState.submit;//待交办
|
|
|
10233
|
+ modelT_Bus_WorkOrder.F_MainDeptId = null;
|
|
|
10234
|
+ modelT_Bus_WorkOrder.F_OtherDeptIds = "";
|
|
|
10235
|
+ modelT_Bus_WorkOrder.ReminderNum = 0;//清空催办记录
|
|
|
10236
|
+ workorderBLL.Update(modelT_Bus_WorkOrder);
|
|
|
10237
|
+ #endregion
|
|
|
10238
|
+
|
|
|
10239
|
+ #region 删除交办信息
|
|
|
10240
|
+ modelT_Bus_AssignedInfo.F_State = 0;
|
|
|
10241
|
+
|
|
|
10242
|
+ assignBLL.Update(modelT_Bus_AssignedInfo);
|
|
|
10243
|
+ #endregion
|
|
|
10244
|
+
|
|
|
10245
|
+ #region 删除派单信息
|
|
|
10246
|
+ var pdlist = new BLL.T_Bus_AssignedInfo_Next().GetModelList
|
|
|
10247
|
+ (" F_IsDelete=0 and F_WorkOrderId='" + modelT_Bus_WorkOrder.F_WorkOrderId + "' ");
|
|
|
10248
|
+
|
|
|
10249
|
+ foreach (var cg in pdlist)
|
|
|
10250
|
+ {
|
|
|
10251
|
+ cg.F_State = 0;
|
|
|
10252
|
+ new BLL.T_Bus_AssignedInfo_Next().Update(cg);
|
|
|
10253
|
+ }
|
|
|
10254
|
+ #endregion
|
|
|
10255
|
+
|
|
|
10256
|
+ #region 删除二级单位处理信息
|
|
|
10257
|
+ var cglist = new BLL.T_Bus_Feedback_Next().GetModelList(" F_IsDelete=0 and F_WorkOrderId='" + modelT_Bus_WorkOrder.F_WorkOrderId + "' ");
|
|
|
10258
|
+
|
|
|
10259
|
+ foreach (var cg in cglist)
|
|
|
10260
|
+ {
|
|
|
10261
|
+ cg.F_State = 0;
|
|
|
10262
|
+ new BLL.T_Bus_Feedback_Next().Update(cg);
|
|
|
10263
|
+ }
|
|
|
10264
|
+ #endregion
|
|
|
10265
|
+
|
|
|
10266
|
+ #region 插入操作记录
|
|
|
10267
|
+ Model.T_Bus_Operation oper = new Model.T_Bus_Operation();
|
|
|
10268
|
+ oper.F_WorkOrderId = modelT_Bus_WorkOrder.F_WorkOrderId;
|
|
|
10269
|
+ oper.F_AssignedId = modelT_Bus_AssignedInfo.F_Id;
|
|
|
10270
|
+ oper.F_State = modelT_Bus_WorkOrder.F_WorkState;
|
|
|
10271
|
+
|
|
|
10272
|
+ string userinfo = userModel.depname + "-" + userModel.F_UserName + "(" + userModel.F_UserCode + ")";
|
|
|
10273
|
+ oper.F_Message = userinfo + " 上报了工单";
|
|
|
10274
|
+ oper.F_CreateUser = userModel.F_UserCode;
|
|
|
10275
|
+ oper.F_CreateTime = DateTime.Now;
|
|
|
10276
|
+ oper.F_IsDelete = 0;
|
|
|
10277
|
+
|
|
|
10278
|
+ operBLL.Add(oper);
|
|
|
10279
|
+ #endregion
|
|
|
10280
|
+
|
|
|
10281
|
+ trans.Complete();
|
|
|
10282
|
+ }
|
|
|
10283
|
+ return Success("操作成功");
|
|
|
10284
|
+ }
|
|
|
10285
|
+ else
|
|
|
10286
|
+ {
|
|
|
10287
|
+ return Error("单位已查收,不能收回");
|
|
|
10288
|
+ }
|
|
|
10289
|
+ }
|
|
|
10290
|
+ else
|
|
|
10291
|
+ {
|
|
|
10292
|
+ return Error("操作失败");
|
|
|
10293
|
+ }
|
|
|
10294
|
+ }
|
|
|
10295
|
+ else
|
|
|
10296
|
+ {
|
|
|
10297
|
+ return Error("权限不足");
|
|
|
10298
|
+ }
|
|
|
10299
|
+ }
|
|
|
10300
|
+
|
|
10207
|
10301
|
/// <summary>
|
|
10208
|
10302
|
/// 查收工单
|
|
10209
|
10303
|
/// </summary>
|