private void CheckOrder() { List <MaterialInfo> materialsList = new List <MaterialInfo>(); if ((this.textProdNo.Text.Trim().Length > 0) && (RegularHelper.isNumericString(this.textOrderCount.Text.Trim().ToString()))) { OrderInfo.CheckOrderExsit(this.txtOrderNo.Text.Trim(), this.textProdNo.Text.Trim(), int.Parse(this.textOrderCount.Text.Trim().ToString())); } else { SpMessageBox.Show("请检查是否输入了产品号和订单数量?", "订单查询"); } }