示例#1
0
        /// <summary>
        /// 验证公司编号 唯一性
        /// </summary>
        /// <param name="Name"></param>
        /// <returns></returns>
        public string CheckNameIsExist(string Name, int?Id, string ProjectID, bool IsEdit)
        {
            CustomerAccessor accessor    = new CustomerAccessor();
            string           ReturnValue = string.Empty;

            try
            {
                if (!accessor.CheckNameIsExist(Name, Id, ProjectID, IsEdit))
                {
                    ReturnValue = "该客户名称已存在!";
                }
            }
            catch (Exception ex)
            {
                ReturnValue = ex.Message;
                LogError(ex);
            }
            return(ReturnValue);
        }