Browse Source

修改bug

zhoufan 7 years ago
parent
commit
f275e16243

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

147
         #region  ExtensionMethod
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
         #endregion  ExtensionMethod
161
         #endregion  ExtensionMethod

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

693
         /// <param name="Code"></param>
693
         /// <param name="Code"></param>
694
         /// <param name="p_UserCode"></param>
694
         /// <param name="p_UserCode"></param>
695
         /// <returns></returns>
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
             string newWorkOrderID = string.Empty;//新工单号
712
             string newWorkOrderID = string.Empty;//新工单号
699
             //newWorkOrderID = DbHelperSQL.GetSingle("select dbo.GetNewWorkOrderId('" + p_UserCode + "')").ToString();
713
             //newWorkOrderID = DbHelperSQL.GetSingle("select dbo.GetNewWorkOrderId('" + p_UserCode + "')").ToString();
700
 
714
 
701
             Dictionary<string, string> paras = new Dictionary<string, string>();
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
             var dt = DbHelperSQL.RunProcedure("P_GetNewWorkOrderId", paras, "GetNewWorkOrderId").Tables[0];
717
             var dt = DbHelperSQL.RunProcedure("P_GetNewWorkOrderId", paras, "GetNewWorkOrderId").Tables[0];
705
             newWorkOrderID = dt.Rows[0]["WorkOrderId"].ToString();
718
             newWorkOrderID = dt.Rows[0]["WorkOrderId"].ToString();
706
 
719
 

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

447
             {
447
             {
448
                 #region 保存工单信息
448
                 #region 保存工单信息
449
                 Model.T_Bus_WorkOrder modelT_Bus_WorkOrder = new Model.T_Bus_WorkOrder();
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
                 modelT_Bus_WorkOrder.F_Source = source;//信息来源
453
                 modelT_Bus_WorkOrder.F_Source = source;//信息来源
453
                 modelT_Bus_WorkOrder.F_Type = type;//信息类别
454
                 modelT_Bus_WorkOrder.F_Type = type;//信息类别