partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0d9da8e9651a38c6f19caee11b0cfca81d8103a1
parent 6288df98ff7956415701fb50e87016f57a05e868
Author: Felicitus <felicitus@felicitus.org>
Date:   Sat,  1 Aug 2015 13:19:54 +0200

Renamed entities to match current bundles

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartAttachmentGrid.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartDistributorGrid.js | 4++--
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js | 8++++----
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartManufacturerGrid.js | 4++--
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js | 4++--
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartCategoryTree.js | 4++--
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsGrid.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js | 6+++---
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/RemotePartComboBox.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/StorageLocationComboBox.js | 2+-
10 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartAttachmentGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartAttachmentGrid.js @@ -2,5 +2,5 @@ Ext.define('PartKeepr.PartAttachmentGrid', { extend: 'PartKeepr.AttachmentGrid', alias: 'widget.PartAttachmentGrid', - model: "PartKeepr.Part.PartAttachment" + model: "PartKeepr.PartBundle.Entity.PartAttachment" }); \ No newline at end of file diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartDistributorGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartDistributorGrid.js @@ -4,7 +4,7 @@ Ext.define('PartKeepr.PartDistributorGrid', { border : false, initComponent : function() { this.store = Ext.create("Ext.data.Store", { - model : 'PartKeepr.Part.PartDistributor', + model : 'PartKeepr.PartBundle.Entity.PartDistributor', proxy : { type : 'memory', reader : { @@ -152,7 +152,7 @@ Ext.define('PartKeepr.PartDistributorGrid', { onAddClick : function() { this.editing.cancelEdit(); - var rec = new PartKeepr.Part.PartDistributor({ + var rec = new PartKeepr.PartBundle.Entity.PartDistributor({ packagingUnit : 1 }); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartEditor.js @@ -7,7 +7,7 @@ Ext.define('PartKeepr.PartEditor', { extend: 'PartKeepr.Editor', // Assigned model - model: 'PartKeepr.Part.Part', + model: 'PartKeepr.PartBundle.Entity.Part', // Layout stuff border: false, @@ -409,18 +409,18 @@ Ext.define('PartKeepr.PartEditor', { if (this.copyPartDataCheckbox.getValue() === true) { data = this.record.getData(true); data.id = null; - newItem = Ext.create("PartKeepr.Part.Part"); + newItem = Ext.create("PartKeepr.PartBundle.Entity.Part"); newItem.setDataWithAssociations(data); this.editItem(newItem); } else { - newItem = Ext.create("PartKeepr.Part.Part", this.partDefaults); + newItem = Ext.create("PartKeepr.PartBundle.Entity.Part", this.partDefaults); this.editItem(newItem); } } else { var data = this.record.getData(true); data.id = null; - newItem = Ext.create("PartKeepr.Part.Part"); + newItem = Ext.create("PartKeepr.PartBundle.Entity.Part"); newItem.setDataWithAssociations(data); this.editItem(newItem); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartManufacturerGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartManufacturerGrid.js @@ -4,7 +4,7 @@ Ext.define('PartKeepr.PartManufacturerGrid', { border: false, initComponent: function () { this.store = Ext.create("Ext.data.Store", { - model: 'PartKeepr.Part.PartManufacturer', + model: 'PartKeepr.PartBundle.Entity.PartManufacturer', proxy: { type: 'memory', reader: { @@ -79,7 +79,7 @@ Ext.define('PartKeepr.PartManufacturerGrid', { onAddClick: function () { this.editing.cancelEdit(); - var rec = new PartKeepr.Part.PartManufacturer({ + var rec = new PartKeepr.PartBundle.Entity.PartManufacturer({ packagingUnit: 1 }); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/Editor/PartParameterGrid.js @@ -4,7 +4,7 @@ Ext.define('PartKeepr.PartParameterGrid', { border: false, initComponent: function () { this.store = Ext.create("Ext.data.Store", { - model: 'PartKeepr.Part.PartParameter', + model: 'PartKeepr.PartBundle.Entity.PartParameter', proxy: { type: 'memory', reader: { @@ -115,7 +115,7 @@ Ext.define('PartKeepr.PartParameterGrid', { onAddClick: function () { this.editing.cancelEdit(); - var rec = new PartKeepr.Part.PartParameter({ + var rec = new PartKeepr.PartBundle.Entity.PartParameter({ }); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartCategoryTree.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartCategoryTree.js @@ -3,7 +3,7 @@ Ext.define("PartKeepr.PartCategoryTree", { alias: 'widget.PartCategoryTree', ddGroup: 'PartTree', - categoryModel: 'PartKeepr.Part.PartCategory', + categoryModel: 'PartKeepr.PartBundle.Entity.PartCategory', categoryService: 'PartCategory', initComponent: function () { this.callParent(); @@ -23,7 +23,7 @@ Ext.define("PartKeepr.PartCategoryTree", { var draggedRecord = data.records[0]; var droppedOn = this.getView().getRecord(node); - if (draggedRecord.modelName == "PartKeepr.Part.Part") { + if (draggedRecord.modelName == "PartKeepr.PartBundle.Entity.Part") { /* Move Part */ var call = new PartKeepr.ServiceCall("Part", "movePart"); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsGrid.js @@ -468,7 +468,7 @@ Ext.define('PartKeepr.PartsGrid', { * Load the part from the database. */ loadPart: function (id, opts) { - PartKeepr.Part.Part.load(id, { + PartKeepr.PartBundle.Entity.Part.load(id, { scope: this, success: this.onPartLoaded }); diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Part/PartsManager.js @@ -28,7 +28,7 @@ Ext.define('PartKeepr.PartManager', { * Create the store with the default sorter "name ASC" */ this.createStore({ - model: 'PartKeepr.Part.Part', + model: 'PartKeepr.PartBundle.Entity.Part', groupField: 'categoryPath', sorters: [{ property: 'name', @@ -231,7 +231,7 @@ Ext.define('PartKeepr.PartManager', { createFullPartDuplicate: function (rec) { var data = rec.getData(true); data.id = null; - newItem = Ext.create("PartKeepr.Part.Part"); + newItem = Ext.create("PartKeepr.PartBundle.Entity.Part"); newItem.setDataWithAssociations(data); var j = Ext.create("PartKeepr.PartEditorWindow", { @@ -344,7 +344,7 @@ Ext.define('PartKeepr.PartManager', { */ loadPart: function (id, handler) { // @todo we have this method duplicated in PartEditor - var model = Ext.ModelManager.getModel("PartKeepr.Part.Part"); + var model = Ext.ModelManager.getModel("PartKeepr.PartBundle.Entity.Part"); model.load(id, { scope: this, diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/RemotePartComboBox.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/RemotePartComboBox.js @@ -20,7 +20,7 @@ Ext.define("PartKeepr.RemotePartComboBox",{ * Create the store with the default sorter "name ASC" */ this.createStore({ - model: 'PartKeepr.Part.Part', + model: 'PartKeepr.PartBundle.Entity.Part', groupField: 'categoryPath', sorters: [{ property: 'name', diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/StorageLocationComboBox.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/StorageLocationComboBox.js @@ -18,7 +18,7 @@ Ext.define("PartKeepr.StorageLocationComboBox",{ initComponent: function () { this.store = Ext.create("Ext.data.Store", { - model: 'PartKeepr.StorageLocation.StorageLocation', + model: 'PartKeepr.StorageLocationBundle.Entity.StorageLocation', pageSize: -1, autoLoad: true });