mengjie лет назад: 6
Родитель
Сommit
81bc7d5097

+ 6 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerBaseNew.cs

@@ -351,7 +351,7 @@ namespace CallCenterApi.DAL
351 351
         {
352 352
 
353 353
             StringBuilder strSql = new StringBuilder();
354
-            strSql.Append("select  top 1 *,dbo.GetCusType(F_CusType) as F_CusType from T_Cus_CustomerBaseNew ");
354
+            strSql.Append("select  top 1 *,dbo.GetCusType(F_CusType) as F_CusTypeName from T_Cus_CustomerBaseNew ");
355 355
             strSql.Append(" where F_CustomerId=@F_CustomerId");
356 356
             SqlParameter[] parameters = {
357 357
                     new SqlParameter("@F_CustomerId", SqlDbType.Int,4)
@@ -557,6 +557,10 @@ namespace CallCenterApi.DAL
557 557
                 {
558 558
                     model.F_CusType = int.Parse(row["F_CusType"].ToString());
559 559
                 }
560
+                if (row["F_CusTypeName"] != null)
561
+                {
562
+                    model.F_CusTypeName = row["F_CusTypeName"].ToString();
563
+                }
560 564
             }
561 565
             return model;
562 566
         }
@@ -567,7 +571,7 @@ namespace CallCenterApi.DAL
567 571
         public DataSet GetList(string strWhere)
568 572
         {
569 573
             StringBuilder strSql = new StringBuilder();
570
-            strSql.Append("select *,dbo.GetCusType(F_CusType) as F_CusType ");
574
+            strSql.Append("select *,dbo.GetCusType(F_CusType) as F_CusTypeName ");
571 575
             strSql.Append(" FROM T_Cus_CustomerBaseNew ");
572 576
             if (strWhere.Trim() != "")
573 577
             {

+ 10 - 0
codegit/CallCenterApi/CallCenterApi.Model/T_Cus_CustomerBaseNew.cs

@@ -60,6 +60,7 @@ namespace CallCenterApi.Model
60 60
         private string _f_taxnumber;
61 61
         private DateTime? _f_feeexpires;
62 62
         private int? _f_custype;
63
+        private string _f_custypename;
63 64
         /// <summary>
64 65
         /// 自增ID
65 66
         /// </summary>
@@ -428,6 +429,15 @@ namespace CallCenterApi.Model
428 429
             set { _f_custype = value; }
429 430
             get { return _f_custype; }
430 431
         }
432
+
433
+        /// <summary>
434
+        /// 客户类名
435
+        /// </summary>
436
+        public string F_CusTypeName
437
+        {
438
+            set { _f_custypename = value; }
439
+            get { return _f_custypename; }
440
+        }
431 441
         #endregion Model
432 442
     }
433 443
 }