partkeepr

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

commit bce090fd803287837fb9069e7a2e1bc1a1f3aecb
parent 51086ff46b9f381ae5721a8d78641325d540c64f
Author: Felicitus <felicitus@felicitus.org>
Date:   Fri, 22 May 2015 17:30:13 +0200

Renamed entities to proper namespaces

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/PartUnit/PartUnitEditorComponent.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/StorageLocation/StorageLocationEditor.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/RemotePartComboBox.js | 2+-
Msrc/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js | 10+++++-----
12 files changed, 25 insertions(+), 25 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.PartAttachment" + model: "PartKeepr.Part.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.PartDistributor', + model : 'PartKeepr.Part.PartDistributor', proxy : { type : 'memory', reader : { @@ -152,7 +152,7 @@ Ext.define('PartKeepr.PartDistributorGrid', { onAddClick : function() { this.editing.cancelEdit(); - var rec = new PartKeepr.PartDistributor({ + var rec = new PartKeepr.Part.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', + model: 'PartKeepr.Part.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"); + newItem = Ext.create("PartKeepr.Part.Part"); newItem.setDataWithAssociations(data); this.editItem(newItem); } else { - newItem = Ext.create("PartKeepr.Part", this.partDefaults); + newItem = Ext.create("PartKeepr.Part.Part", this.partDefaults); this.editItem(newItem); } } else { var data = this.record.getData(true); data.id = null; - newItem = Ext.create("PartKeepr.Part"); + newItem = Ext.create("PartKeepr.Part.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.PartManufacturer', + model: 'PartKeepr.Part.PartManufacturer', proxy: { type: 'memory', reader: { @@ -79,7 +79,7 @@ Ext.define('PartKeepr.PartManufacturerGrid', { onAddClick: function () { this.editing.cancelEdit(); - var rec = new PartKeepr.PartManufacturer({ + var rec = new PartKeepr.Part.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.PartParameter', + model: 'PartKeepr.Part.PartParameter', proxy: { type: 'memory', reader: { @@ -115,7 +115,7 @@ Ext.define('PartKeepr.PartParameterGrid', { onAddClick: function () { this.editing.cancelEdit(); - var rec = new PartKeepr.PartParameter({ + var rec = new PartKeepr.Part.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.PartCategory', + categoryModel: 'PartKeepr.Part.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") { + if (draggedRecord.modelName == "PartKeepr.Part.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.load(id, { + PartKeepr.Part.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', + model: 'PartKeepr.Part.Part', proxy: PartKeepr.getRESTProxy("Part"), groupField: 'categoryPath', sorters: [{ @@ -232,7 +232,7 @@ Ext.define('PartKeepr.PartManager', { createFullPartDuplicate: function (rec) { var data = rec.getData(true); data.id = null; - newItem = Ext.create("PartKeepr.Part"); + newItem = Ext.create("PartKeepr.Part.Part"); newItem.setDataWithAssociations(data); var j = Ext.create("PartKeepr.PartEditorWindow", { @@ -345,7 +345,7 @@ Ext.define('PartKeepr.PartManager', { */ loadPart: function (id, handler) { // @todo we have this method duplicated in PartEditor - var model = Ext.ModelManager.getModel("PartKeepr.Part"); + var model = Ext.ModelManager.getModel("PartKeepr.Part.Part"); model.load(id, { scope: this, diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/PartUnit/PartUnitEditorComponent.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/PartUnit/PartUnitEditorComponent.js @@ -6,7 +6,7 @@ Ext.define('PartKeepr.PartUnitEditorComponent', { newItemText: i18n("New Part Measurement Unit"), deleteMessage: i18n("Do you really wish to delete the part measurement unit'%s'?"), deleteTitle: i18n("Delete Part Measurement Unit"), - model: 'PartKeepr.PartUnit', + model: 'PartKeepr.Part.PartUnit', initComponent: function () { this.createStore({ sorters: [{ diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/StorageLocation/StorageLocationEditor.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/StorageLocation/StorageLocationEditor.js @@ -10,7 +10,7 @@ Ext.define('PartKeepr.StorageLocationEditor', { Ext.Object.merge(config, { autoLoad: false, - model: "PartKeepr.Part", + model: "PartKeepr.Part.Part", autoSync: false, // Do not change. If true, new (empty) records would be immediately commited to the database. remoteFilter: true, remoteSort: true, 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', + model: 'PartKeepr.Part.Part', proxy: PartKeepr.getRESTProxy("Part"), groupField: 'categoryPath', sorters: [{ diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js b/src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js @@ -226,35 +226,35 @@ Ext.application({ createGlobalStores: function () { this.footprintStore = Ext.create("Ext.data.Store", { - model: 'PartKeepr.Footprint', + model: 'PartKeepr.Footprint.Footprint', pageSize: -1, autoLoad: false }); this.siPrefixStore = Ext.create("Ext.data.Store", { - model: 'PartKeepr.SiPrefix', + model: 'PartKeepr.SiPrefixBundle.Entity.SiPrefix', pageSize: -1, autoLoad: true }); this.distributorStore = Ext.create("Ext.data.Store", { - model: 'PartKeepr.Distributor', + model: 'PartKeepr.Distributor.Distributor', pageSize: -1, autoLoad: false }); this.manufacturerStore = Ext.create("Ext.data.Store", { - model: 'PartKeepr.Manufacturer', + model: 'PartKeepr.Manufacturer.Manufacturer', pageSize: -1, autoLoad: false }); this.partUnitStore = Ext.create("Ext.data.Store", { - model: 'PartKeepr.PartUnit', + model: 'PartKeepr.PartUnit.PartUnit', pageSize: -1, autoLoad: false });