예제 #1
0
        //生成领料单
        private void btnTwo_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txtRAA001.Text))
            {
                XtraMessageBox.Show("请选择订单号");
                return;
            }
            if (string.IsNullOrEmpty(txtRAA015.Text))
            {
                XtraMessageBox.Show("请选择住件品号");
                return;
            }
            int resu =/* _bll . SavePick ( txtRAA001 . Text ,txtRAA015 . Text );*/
                       _bll.SavePickOne(txtRAA001.Text, txtDEA002.Text, txtIBB961.Text, txtDEL018.Text);

            if (resu == -1)
            {
                XtraMessageBox.Show("单身无数据");
            }
            else if (resu == -2)
            {
                XtraMessageBox.Show("标准系统已经存在领料单");
            }
            else if (resu == 1)
            {
                XtraMessageBox.Show("成功写入领料单");
            }
            else
            {
                XtraMessageBox.Show("写入领料单失败");
            }
        }