private void textBox7_KeyPress(object sender, KeyPressEventArgs e)//需求数量栏位,只能输入数字,并且可以输入小数
{
if (e.KeyChar != 13 && e.KeyChar != 8 && !char.IsDigit(e.KeyChar) && e.KeyChar != 46) e.Handled = true;
int a = textBox7.Text.IndexOf('.');
if (e.KeyChar == 46 && a > 0) e.Handled = true;
}