private void button3_Click(object sender, EventArgs e) { StorageItemRow row = StorageItemDT.NewRowDefault(); row.WorkSpaceID = 17; row.Save(); }
public void CheckSimilarStorageItems() { StorageItemDT storageItem = new StorageItemDT(); StorageItemList.GetSimilarStorageItems(txtDescription.Text); DisplayStorageItemList(); }
public void OpenSelectedNode() { if (SelectedNode == null) { return; } TreeNodeQuickList node = (TreeNodeQuickList)SelectedNode; View_ListStorageItemRow view_ListStorageItem = node.View_ListStorageItem; //mListViewStorage.EnsureHasItem(view_ListStorageItem.StorageItemID, color, false, true); StorageItemDT storageItem = new StorageItemDT(); storageItem.LoadByPrimaryKey(view_ListStorageItem.StorageItemID); storageItem[0].Open(); }
public ListViewStorageItem AddNewStorageItem(long pStorageItemID) { StorageItemDT storageItem = new StorageItemDT(); storageItem.Query.AddWhereParameter(StorageItemDT.ColumnNames.ID, MyOperand.Equal, StorageItemDT.Parameters.ID, pStorageItemID); if (storageItem.Query.Load()) { ListViewStorageItem item = GetListViewItemFromStorageItem(storageItem[0]); this.Items.Add(item); return(item); } return(null); }
public ListViewStorageItem AddNewStorageItem(long pStorageItemID, Color pColor, bool pIsEnsueVisible) { StorageItemDT lStorageItem = new StorageItemDT(); ListViewStorageItem newListViewStorageItem = null; if (lStorageItem.LoadByPrimaryKey(pStorageItemID)) { newListViewStorageItem = this.GetListViewItemFromStorageItem(lStorageItem[0]); newListViewStorageItem.BackColor = pColor; this.Items.Add(newListViewStorageItem); if (pIsEnsueVisible) { newListViewStorageItem.EnsureVisible(); } } return(newListViewStorageItem); }
private void button1_Click(object sender, EventArgs e) { //dt = new StorageItemDT(); //dt.LoadAll(); //dt.Query.ResetWhereParameters(); //dt.Query.AddWhereParameter(StorageItemDT.ColumnNames.ID, MyOperand.GreaterThan, StorageItemDT.Parameters.ID, 300); //dt.Query.AddWhereParameter(StorageItemDT.ColumnNames.WorkSpaceID, MyOperand.Equal, StorageItemDT.Parameters.WorkSpaceID, 14); //dt.Query.Load(); StorageItemRow row = StorageItemDT.NewRowDefault(); row.WorkSpaceID = 14; row.FullPath = "FFFFFFFF"; row.Save(); Helper.OKMSG(row.FullPath); StorageItemRow row2 = StorageItemDT.NewRowDefault(); row2.WorkSpaceID = 14; row2.FullPath = "SSSSSSSSS"; row2.Save(); StorageItemDT.GetDefaultStorageItemDT().Clear(); Helper.OKMSG(row.FullPath); dataGridView1.DataSource = StorageItemDT.GetDefaultStorageItemDT(); }