예제 #1
0
        //生成工单
        private void btnOne_Click(object sender, EventArgs e)
        {
            if (txtDEL015.Enabled == false || txtDEL015.Text.Equals("审核"))
            {
                XtraMessageBox.Show("请审核");
                return;
            }
            if (string.IsNullOrEmpty(txtRAA001.Text))
            {
                XtraMessageBox.Show("工单单号不可为空");
                return;
            }

            int resu = _bll.SaveOrder(txtRAA001.Text);

            if (resu == -1)
            {
                XtraMessageBox.Show("标准系统没有此工单");
            }
            else if (resu == -2)
            {
                XtraMessageBox.Show("单身无数据");
            }
            else if (resu == 1)
            {
                XtraMessageBox.Show("成功写入工单");
            }
            else
            {
                XtraMessageBox.Show("写入工单失败");
            }
        }