コード例 #1
0
ファイル: CustomerMgm.cs プロジェクト: WISD/WisdCar
        public bool CheckPhoneNo(string phoneNo)
        {
            CustomerData customerData = new CustomerData();

            StringBuilder strSql = new StringBuilder();
            string strWhere = "";
            if (!string.IsNullOrEmpty(phoneNo.Trim()))
            {
                strSql.AppendFormat(" MobileNO = '{0}' ", phoneNo);
            }

            strWhere = strSql.ToString();
            int cnt = customerData.GetRecordCount(strWhere);

            if (cnt > 0)
                return true;
            else
                return false;
        }
コード例 #2
0
ファイル: CustomerMgm.cs プロジェクト: WISD/WisdCar
 public int GetRecordCount(CustomerQueryEntity filter)
 {
     CustomerData custdata = new CustomerData();
     return custdata.GetRecordCount(filter);
 }