|
|
@@ -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
|
{
|