Esempio n. 1
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();
            }
        }
Esempio n. 2
0
 public void Loading()
 {
     if (Database.IsConnected())
     {
         ItemTag tag = cboFilter.SelectedItem as ItemTag;
         if (tag != null)
         {
             inventoryMasterView.KeyWords  = txtKeyWords.Text.Trim();
             inventoryMasterView.FilterSql = tag.Key;
         }
         inventoryMasterView.Loading();
         shelfInventoryView.LoadShelfInventory(txtShelfNo.Text.Trim());
     }
 }