try
{ index_point = efLabelTextord_thick.EFEnterText.Trim().IndexOf(".",0);
if(index_point > -1)
{ s_point = efLabelTextord_thick.EFEnterText.Trim().Substring(index_point+3,1);
if(s_point != "")
{ if(System.Convert.ToDecimal(s_point) > 0)
{ this.qualitycheckflag=false;
this.efTextBoxorder_num.Text="";
this.efLabelTextorder_wt.EFEnterText="";
MessageBox.Show("输入的订金比例不能精确到小数点后三位,无法进行极限规格检查!","错误信息");
return; }
else
{ this.qualitycheckflag=false;
this.efTextBoxorder_num.Text="";
this.efLabelTextorder_wt.EFEnterText="";
return; }
}
}
}
catch
{
}
上面控件的属性是我们自己封装的,在应用时需要修改一下哦!!!!