Esempio n. 1
0
        private void RemoveRows(GridView gridView, InventoryDetialView editView)
        {
            int[] rows = gridView.GetSelectedRows();

            if (MsgBox.Confirm("您确定要删除所有选中的库存数据吗? ") == false)
            {
                return;
            }
            editView.RemoveRows(rows);
        }
Esempio n. 2
0
        public FrmInventory()
        {
            InitializeComponent();

            InitFilterComboBox();
            inventoryMasterView = new InventoryMasterView(this.masterView);
            inventoryDetialView = new InventoryDetialView(this.detailView);
            shelfInventoryView  = new InventoryDetialView(this.shelfView);

            splitContainer.Panel2.Height = 250;
            splitContainer.Collapsed     = true;

            this.masterView.FocusedRowChanged    += new FocusedRowChangedEventHandler(this.MasterView_FocusedRowChanged);
            this.masterView.FocusedColumnChanged += new FocusedColumnChangedEventHandler(this.MasterView_FocusedColumnChanged);
            this.masterView.RowCellStyle         += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(this.MasterView_RowCellStyle);
        }
Esempio n. 3
0
        public FrmBackbound()
        {
            InitializeComponent();

            returnMasterView = new ReturnMasterView(this.masterView);
            returnDetailView = new ReturnDetailView(this.detailView);
            returnRecordView = new ReturnRecordView(this.recordView);
            invtDetailView   = new InventoryDetialView(this.invtView);

            returnRecordView.invtView = invtView;

            splitContainer.Collapsed = false;


            this.tpProperty.Resize            += new System.EventHandler(this.tpProperty_Resize);
            this.masterView.FocusedRowChanged += new FocusedRowChangedEventHandler(this.MasterView_FocusedRowChanged);
            this.masterView.CustomDrawCell    += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(this.MasterView_CustomDrawCell);
            this.masterView.RowStyle          += new DevExpress.XtraGrid.Views.Grid.RowStyleEventHandler(this.MasterView_RowStyle);
            this.xtraTab.SelectedPageChanged  += new DevExpress.XtraTab.TabPageChangedEventHandler(this.xtraTab_SelectedPageChanged);


            this.recordView.FocusedRowChanged    += new FocusedRowChangedEventHandler(this.RecordView_FocusedRowChanged);
            this.recordView.FocusedColumnChanged += new FocusedColumnChangedEventHandler(this.RecordView_FocusedColumnChanged);
        }