public override void Checked()
{
string vInputName = “XXXX”;
string vValue = ObjectHelper.GetString(this.Value, vInputName);
string regCall = @"^(0\d{2,3}-\d{7,8})+(\-[0-9]{1,4})?$|^[1][358][0-9]{9}$";
if (!Regex.IsMatch(vValue.Trim(), regCall))
{
string vFormat = this.SqlCheck.Format;
string vTitle = this.GetTitle();
if (string.IsNullOrEmpty(vFormat))
{
vFormat = "[{0}]的电话格式错误!";
}
}
{
string vInputName = “XXXX”;
string vValue = ObjectHelper.GetString(this.Value, vInputName);
string regCall = @"^(0\d{2,3}-\d{7,8})+(\-[0-9]{1,4})?$|^[1][358][0-9]{9}$";
if (!Regex.IsMatch(vValue.Trim(), regCall))
{
string vFormat = this.SqlCheck.Format;
string vTitle = this.GetTitle();
if (string.IsNullOrEmpty(vFormat))
{
vFormat = "[{0}]的电话格式错误!";
}
}
}
public override void Checked()
{
string vInputName = "XXXXX";
string vValue = ObjectHelper.GetString(this.Value, vInputName);
string regMobile = @"^[1][358][0-9]{9}$";
if (!Regex.IsMatch(vValue.Trim(), regMobile))
{
string vFormat = this.SqlCheck.Format;
string vTitle = this.GetTitle();
if (string.IsNullOrEmpty(vFormat))
{
vFormat = "[{0}]的手机格式错误!";
}
}
}