|
|
@@ -7504,7 +7504,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
7504
|
7504
|
|
|
7505
|
7505
|
string workorderid = RequestString.GetFormString("workorderid"); //工单编号
|
|
7506
|
7506
|
int id = RequestString.GetInt("id", 0); //编号
|
|
7507
|
|
-
|
|
|
7507
|
+ string time = RequestString.GetFormString("time");
|
|
7508
|
7508
|
|
|
7509
|
7509
|
string title = RequestString.GetFormString("title"); //题目
|
|
7510
|
7510
|
string cusname = RequestString.GetFormString("cusname");//作者
|
|
|
@@ -7568,7 +7568,20 @@ namespace CallCenterApi.Interface.Controllers.workorder
|
|
7568
|
7568
|
var istrue = new BLL.T_Bus_WorkOrder().Exists(workorderid);
|
|
7569
|
7569
|
if (istrue)
|
|
7570
|
7570
|
return Error("工单编号重复");
|
|
7571
|
|
- modelT_Bus_WorkOrder.F_WorkOrderId = workorderBLL.GetNewWorkOrderID(DbHelperSQL.GetSingle($"exec [GetNewWorkOrderIdByYear1] '{id}'").ToString());
|
|
|
7571
|
+ if (string.IsNullOrEmpty(time))
|
|
|
7572
|
+ return Error("请选择年份");
|
|
|
7573
|
+ DateTime times = DateTime.Now ;
|
|
|
7574
|
+ try
|
|
|
7575
|
+ {
|
|
|
7576
|
+ times = DateTime.Parse(time + DateTime.Now.ToString("MM-dd HH:mm:ss"));
|
|
|
7577
|
+ }
|
|
|
7578
|
+ catch
|
|
|
7579
|
+ {
|
|
|
7580
|
+ return Error("请输入正确年份");
|
|
|
7581
|
+ }
|
|
|
7582
|
+
|
|
|
7583
|
+ modelT_Bus_WorkOrder.F_WorkOrderId = workorderBLL.GetNewWorkOrderID
|
|
|
7584
|
+ (DbHelperSQL.GetSingle($"exec [GetNewWorkOrderIdByYear1] '{id}','{times.ToString ("yyyy-MM-dd HH:mm:ss")}'").ToString());
|
|
7572
|
7585
|
|
|
7573
|
7586
|
}
|
|
7574
|
7587
|
else
|