private void Tbnum_TextChanged(object sender, EventArgs e) { num = Ifnn.CheaTxttoini((sender as TextBox), num, oldNum); if (num > oldNum) { Msg Err = new Msg(3, "当前数量已超过系统允许的数量!\n\r 请输入<=" + oldNum + "的数量", "数量错误", 1); (sender as TextBox).Text = oldNum.ToString(); num = oldNum; } else { num = decimal.Parse((sender as TextBox).Text); } }
/// <summary> /// 处理维修费用 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void FYBox_TextChanged(object sender, EventArgs e) { WxFy = Ifnn.CheaTxttoini((sender as TextBox), WxFy); }
private void Ini_gys_TextChanged(object sender, EventArgs e) { Wxtime = Ifnn.CheaTxttoini((sender as TextBox), Wxtime); }