private void txtPumpNum_TextChanged(object sender, EventArgs e)
{
//获取发货方量
decimal SendNumber = Convert.ToDecimal(txtSendNumber.Text.Trim() == "" ? "0" : txtSendNumber.Text.Trim());
decimal pumNum = Convert.ToDecimal(txtPumpNum.Text.Trim() == "" ? "0" : txtPumpNum.Text.Trim());
if (pumNum> SendNumber)
{
MessageBox.Show("已超出发货方量");
txtPumpNum.Text = "0";
}
}
控制textbox里的值大于35,小于52
最新推荐文章于 2020-12-08 09:43:26 发布