Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
 private void Ini_gys_TextChanged(object sender, EventArgs e)
 {
     Wxtime = Ifnn.CheaTxttoini((sender as TextBox), Wxtime);
 }