public C_STORAGE_ITEM GetDataObject() { C_STORAGE_ITEM DataObject = new C_STORAGE_ITEM(); DataObject.ID = this.ID; DataObject.ITEM_NAME = this.ITEM_NAME; DataObject.ITEM_SON = this.ITEM_SON; DataObject.STORAGE_CODE = this.STORAGE_CODE; DataObject.EDIT_TIME = this.EDIT_TIME; DataObject.EDIT_EMP = this.EDIT_EMP; return(DataObject); }
public int Add(C_STORAGE_ITEM NewStorageItem, OleExec DB) { Row_C_STORAGE_ITEM NewStorageItemRow = (Row_C_STORAGE_ITEM)NewRow(); NewStorageItemRow.ID = NewStorageItem.ID; NewStorageItemRow.ITEM_NAME = NewStorageItem.ITEM_NAME; NewStorageItemRow.ITEM_SON = NewStorageItem.ITEM_SON; NewStorageItemRow.STORAGE_CODE = NewStorageItem.STORAGE_CODE; NewStorageItemRow.EDIT_EMP = NewStorageItem.EDIT_EMP; NewStorageItemRow.EDIT_TIME = NewStorageItem.EDIT_TIME; int result = DB.ExecuteNonQuery(NewStorageItemRow.GetInsertString(DBType), CommandType.Text); return(result); }