Пример #1
0
 /// <summary>
 /// 是否存在指定条件的记录
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsWhere(string where)
 {
     if (!string.IsNullOrEmpty(where))
     {
         string w = where.Trim().ToLower();
         if (!w.StartsWith("where "))
         {
             w = "where " + w;
         }
         return(sqlHelper.Exists("select 1 from TF_PersonalTrain " + w));
     }
     return(false);
 }
Пример #2
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_FormType where TypeName='" + name + "'"));
 }
Пример #3
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_Attachment where Name='" + name + "'"));
 }
Пример #4
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TaskInfo where Name='" + name + "'"));
 }
Пример #5
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_StaffCondition where 状态='" + name + "'"));
 }
Пример #6
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_Property where 名称='" + name + "'"));
 }
Пример #7
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_FollowupType where 方式='" + name + "'"));
 }
Пример #8
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_Member where 姓名='" + name + "'"));
 }
Пример #9
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from FlowTemplate where Name='" + name + "'"));
 }
Пример #10
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_CardType where 卡种='" + name + "'"));
 }
Пример #11
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_FieldMap where Name='" + name + "'"));
 }
Пример #12
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_Alert where 提醒项目='" + name + "'"));
 }
Пример #13
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_Permission where Name='" + name + "'"));
 }
Пример #14
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name)
 {
     return(sqlHelper.Exists("select 1 from TF_ProductType where 类型='" + name + "'"));
 }
Пример #15
0
 /// <summary>
 /// 是否存在同名
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public bool ExistsName(string name, string mobile)
 {
     return(sqlHelper.Exists("select 1 from TF_MemberMoney where 会员姓名='" + name + "' and 会员电话='" + mobile + "'"));
 }