Ejemplo n.º 1
0
        public static bool CheckCodeUniq(string tableName, string columnName, string codeValue, string Condition)
        {
            string companyCD = string.Empty;

            //获取公司代码
            try
            {
                companyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD;
            }
            catch (System.Exception)
            {
                companyCD = "AAAAAA";;
            }


            //校验存在性
            return(PrimekeyVerifyDBHelper.CheckCodeUniq(tableName, columnName, codeValue, companyCD, Condition));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 不根据企业编码验证唯一
 /// </summary>
 /// <param name="tableName"></param>
 /// <param name="columnName"></param>
 /// <param name="codeValue"></param>
 /// <param name="Condition"></param>
 /// <returns></returns>
 public static bool CheckUserUniq(string tableName, string columnName, string codeValue)
 {
     return(PrimekeyVerifyDBHelper.CheckUserUniq(tableName, columnName, codeValue));
 }