예제 #1
0
        protected override int Add( )
        {
            controlClear( );
            controlEnable( );
            gridControl1.DataSource = null;
            txtDEL015.Enabled       = false;
            btn.Enabled             = false;

            state = "add";
            addTool( );

            txtDEL015.Tag = _bll.getOdd( );
            //txtDEL015 . Tag = txtDEL015 . Text;

            tableView = _bll.getTableView(" DEL015='" + txtDEL015.Text + "'");
            gridControl1.DataSource = tableView;
            model.DEL015            = txtDEL015.Text;
            btn.Text = "审核";

            strW       = "1=1";
            strW       = " AND IBB015='N' AND IBB023='T' AND IBB965=''";
            tableQuery = _bll.getTableQuery(strW);
            txtRAA001.Properties.DataSource    = tableQuery;
            txtRAA001.Properties.DisplayMember = "IBB001";
            txtRAA001.Properties.ValueMember   = "IBB001";

            return(base.Add( ));
        }