Пример #1
0
        private void MasterView_FocusedColumnChanged(object sender, FocusedColumnChangedEventArgs e)
        {
            splitContainer.Collapsed = false;
            int rowHandle = masterView.FocusedRowHandle;

            if (rowHandle < 0)
            {
                return;
            }
            if (e.FocusedColumn == null)
            {
                return;
            }

            FocusedColumn = e.FocusedColumn;

            string lotNo = masterView.GetFocusedRowCellValue("LotNo").ToString();

            if (inventoryMasterView.IsSizeNoColumn(FocusedColumn) == true)
            {
                string sizeNo = FocusedColumn.FieldName;
                inventoryDetialView.LoadInventory(lotNo, sizeNo);
            }
            else
            {
                inventoryDetialView.LoadInventory(lotNo);
            }
        }
Пример #2
0
        private void RecordView_FocusedColumnChanged(object sender, FocusedColumnChangedEventArgs e)
        {
            int rowHandle = recordView.FocusedRowHandle;

            if (rowHandle < 0)
            {
                return;
            }
            if (e.FocusedColumn == null)
            {
                return;
            }

            GridColumn FocusedColumn = e.FocusedColumn;

            string lotNo = recordView.GetFocusedRowCellValue("LotNo").ToString();

            if (e.FocusedColumn.FieldName == "SizeNo")
            {
                string sizeNo = recordView.GetFocusedRowCellValue("SizeNo").ToString();
                invtDetailView.LoadInventory(lotNo, sizeNo);
            }
            else if (e.FocusedColumn.FieldName == "LotNo")
            {
                invtDetailView.LoadInventory(lotNo);
            }
            else if (e.FocusedColumn.FieldName == "ShelfNo")
            {
                string shelfNo = recordView.GetFocusedRowCellValue("ShelfNo").ToString();
                invtDetailView.LoadShelfInventory(shelfNo);
            }
            else
            {
                invtDetailView.ClearRows();
            }
        }