Пример #1
0
        private void FrmBackbound_Load(object sender, EventArgs e)
        {
            InitUI_FormLoad();
            returnRecordView.Initialize();
            returnDetailView.Initialize();
            returnMasterView.Initialize();
            invtDetailView.Initialize();

            InitInventoryView();

            if (Database.IsConnected())
            {
                returnMasterView.Loading();
            }


            returnRecordView.SetGridEditStatus(false);
        }
Пример #2
0
        private void FrmInventory_Load(object sender, EventArgs e)
        {
            inventoryMasterView.Initialize();
            inventoryDetialView.Initialize();
            shelfInventoryView.Initialize();

            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());
            }
        }