protected bool Validate()
{
bool _CanGoOn = true;
//验证数据的完整性和合法性
if(this.TxTTexture.Text == ""){
error += " 物料材质一定要填写";
_CanGoOn = false;
}
if(this.TxTPlanPrice.Text != ""){
try{
if(double.Parse(this.TxTPlanPrice.Text) < 0)
{
Alert("计划价格必须大于0!");
_CanGoOn = false;
}
}
catch{
Alert("计划价格必须为数字!");
_CanGoOn = false;
}
}
return _CanGoOn;
}