zhoufan 7 年 前
コミット
f275e16243

+ 8 - 3
codegit/CallCenterApi/CallCenterApi.BLL/T_Bus_WorkOrder.cs

@@ -147,10 +147,15 @@ namespace CallCenterApi.BLL
147 147
         #region  ExtensionMethod
148 148
 
149 149
         //根据坐席号获取新的工单号
150
-        
151
-        public string GetNewWorkOrderID(string Code,string UserCode)
150
+
151
+        //public string GetNewWorkOrderID(string Code,string UserCode)
152
+        //{
153
+        //    return dal.GetNewWorkOrderID(Code,UserCode);
154
+        //}
155
+
156
+        public string GetNewWorkOrderID(string Code)
152 157
         {
153
-            return dal.GetNewWorkOrderID(Code,UserCode);
158
+            return dal.GetNewWorkOrderID(Code);
154 159
         }
155 160
 
156 161
         #endregion  ExtensionMethod

+ 16 - 3
codegit/CallCenterApi/CallCenterApi.DAL/T_Bus_WorkOrder.cs

@@ -693,14 +693,27 @@ namespace CallCenterApi.DAL
693 693
         /// <param name="Code"></param>
694 694
         /// <param name="p_UserCode"></param>
695 695
         /// <returns></returns>
696
-        public string GetNewWorkOrderID(string Code,string UserCode)
696
+        //public string GetNewWorkOrderID(string Code,string UserCode)
697
+        //{
698
+        //    string newWorkOrderID = string.Empty;//新工单号
699
+        //    //newWorkOrderID = DbHelperSQL.GetSingle("select dbo.GetNewWorkOrderId('" + p_UserCode + "')").ToString();
700
+
701
+        //    Dictionary<string, string> paras = new Dictionary<string, string>();
702
+        //    paras.Add("@sdate", Code);
703
+        //    paras.Add("@edate", UserCode);
704
+        //    var dt = DbHelperSQL.RunProcedure("P_GetNewWorkOrderId", paras, "GetNewWorkOrderId").Tables[0];
705
+        //    newWorkOrderID = dt.Rows[0]["WorkOrderId"].ToString();
706
+
707
+        //    return newWorkOrderID;
708
+        //}
709
+
710
+        public string GetNewWorkOrderID(string Code)
697 711
         {
698 712
             string newWorkOrderID = string.Empty;//新工单号
699 713
             //newWorkOrderID = DbHelperSQL.GetSingle("select dbo.GetNewWorkOrderId('" + p_UserCode + "')").ToString();
700 714
 
701 715
             Dictionary<string, string> paras = new Dictionary<string, string>();
702
-            paras.Add("@sdate", Code);
703
-            paras.Add("@edate", UserCode);
716
+            paras.Add("@Code", Code);
704 717
             var dt = DbHelperSQL.RunProcedure("P_GetNewWorkOrderId", paras, "GetNewWorkOrderId").Tables[0];
705 718
             newWorkOrderID = dt.Rows[0]["WorkOrderId"].ToString();
706 719
 

+ 2 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -447,7 +447,8 @@ namespace CallCenterApi.Interface.Controllers.workorder
447 447
             {
448 448
                 #region 保存工单信息
449 449
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = new Model.T_Bus_WorkOrder();
450
-                modelT_Bus_WorkOrder.F_WorkOrderId = workorderBLL.GetNewWorkOrderID(valuecode,userModel.F_UserCode);
450
+                //modelT_Bus_WorkOrder.F_WorkOrderId = workorderBLL.GetNewWorkOrderID(valuecode,userModel.F_UserCode);
451
+                modelT_Bus_WorkOrder.F_WorkOrderId = workorderBLL.GetNewWorkOrderID(valuecode);
451 452
 
452 453
                 modelT_Bus_WorkOrder.F_Source = source;//信息来源
453 454
                 modelT_Bus_WorkOrder.F_Type = type;//信息类别