Changeset 416 for gssim_ui/branches
- Timestamp:
- 08/20/12 11:50:08 (13 years ago)
- Location:
- gssim_ui/branches/vine/gssimstudio/src/web/ui/flex
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/GSSimStudio.mxml
r395 r416 36 36 37 37 [Bindable] 38 public var showDebug : Boolean = true;38 public var showDebug : Boolean = false; 39 39 40 40 /** … … 89 89 </mx:ViewStack> 90 90 91 <mx:ColorPicker selectedColor="0xEBE9E1" id="backgroundColorPicker" y="288" />91 <mx:ColorPicker selectedColor="0xEBE9E1" id="backgroundColorPicker" y="288" visible="false" includeInLayout="false"/> 92 92 93 93 <components:RollOutMenu width="100%" height="100%" selectable="true" y="256" id="languageMenu"> -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/GSSimStudioConfig.mxml
r395 r416 7 7 xmlns:vine="org.vinetoolkit.vine.*" 8 8 creationComplete="initApp();" 9 backgroundColor="#EBE9E1"10 9 preloader="gssim.gssimstudio.editor.script.preloader.CustomPreloader" 11 10 xmlns:components="gssim.gssimstudio.editor.gssim.components.*"> … … 78 77 <mx:TextArea id="property_value" text="{model.value}" width="100%" height="100%" /> 79 78 <mx:Button label="{resourceManager.getString('Common', 'Change')}" click="{service.saveProperty(property_combo.text, property_value.text);}" /> 80 <mx:TextArea text="{model.error}" width="100%" />79 <mx:TextArea text="{model.error}" width="100%" height="100%"/> 81 80 82 81 <components:RollOutMenu width="100%" height="100%" selectable="true" id="languageMenu"> … … 84 83 <components:IconToggleButton skinClass="gssim.gssimstudio.editor.gssim.skins.IconToggleButtonSkin" click="changeLocale('pl_PL')" id="plLocale" height="32" width="32" toolTip="{resourceManager.getString('Common', 'Polish')}" iconUp="assets/icon/pl_PL.png"/> 85 84 </components:RollOutMenu> 86 87 <mx:ColorPicker selectedColor="0xEBE9E1" id="backgroundColorPicker"/>88 89 85 </mx:VBox> 90 86 -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/editors/experiment/ExperimentPropertiesPanel.mxml
r209 r416 56 56 if (workloadSelectedCB.selected) 57 57 { 58 var iterW : int = 0; 58 59 for each (var workload : Object in parentApplication.experimentEditor.workspaceWorkloadsFileList) 59 60 { 60 61 var inner : ExperimentProperties = exp.clone(); 61 62 inner.setWorkloadFile(workload.fileName); 63 inner.name += "_" + iterW; 62 64 list.addItem(inner); 63 65 } … … 79 81 else innerR = propR.clone(); 80 82 innerR.setResourceFile(resource.fileName); 83 innerR.name += "_" + iterR; 81 84 if (iterR != 0) innerListR.addItem(innerR); 82 85 } … … 97 100 else innerT = propT.clone(); 98 101 innerT.setTopologyFile(topology.fileName); 102 innerT.name += "_" + iterT; 99 103 if (iterT != 0) innerListT.addItem(innerT); 100 104 } -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/editors/experiment/FileManager.mxml
r377 r416 188 188 <mx:Component> 189 189 <mx:HBox paddingLeft="4" horizontalGap="0" verticalGap="0"> 190 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.workloadFilesDG, parentApplication.experimentEditor.workspaceWorkloadsFileList)" height="30" width="33"/>191 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.workloadFilesDG)" height="30" width="33"/>192 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.workloadFilesDG)" height="30" width="33"/>190 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.workloadFilesDG, parentApplication.experimentEditor.workspaceWorkloadsFileList)" height="30"/> 191 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.workloadFilesDG)" height="30"/> 192 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.workloadFilesDG)" height="30"/> 193 193 </mx:HBox> 194 194 </mx:Component> … … 210 210 <mx:Component> 211 211 <mx:HBox paddingLeft="4" horizontalGap="0" verticalGap="0"> 212 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.resourceFilesDG, parentApplication.experimentEditor.workspaceResourcesFileList)" height="30" width="33"/>213 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.resourceFilesDG)" height="30" width="33"/>214 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.resourceFilesDG)" height="30" width="33"/>212 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.resourceFilesDG, parentApplication.experimentEditor.workspaceResourcesFileList)" height="30"/> 213 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.resourceFilesDG)" height="30"/> 214 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.resourceFilesDG)" height="30"/> 215 215 </mx:HBox> 216 216 </mx:Component> … … 231 231 <mx:Component> 232 232 <mx:HBox paddingLeft="4" horizontalGap="0" verticalGap="0"> 233 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.topologyFilesDG, parentApplication.experimentEditor.workspaceTopologiesFileList)" height="30" width="33"/>234 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.topologyFilesDG)" height="30" width="33"/>235 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.topologyFilesDG)" height="30" width="33"/>233 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Add')}" toolTip="{resourceManager.getString('ExperimentEditor', 'AddFileTooltip')}" click="outerDocument.addItemToWorkspace(outerDocument.topologyFilesDG, parentApplication.experimentEditor.workspaceTopologiesFileList)" height="30"/> 234 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeFileItem(outerDocument.topologyFilesDG)" height="30"/> 235 <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Download')}" toolTip="{resourceManager.getString('ExperimentEditor', 'DownloadTooltip')}" click="outerDocument.itemDownload(outerDocument.topologyFilesDG)" height="30"/> 236 236 </mx:HBox> 237 237 </mx:Component> -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/views/ArchiveViewer.mxml
r389 r416 78 78 } 79 79 80 private function experimentsRemoved(event : ResultEvent) : void 81 { 82 Alert.show(resourceManager.getString("ArchiveViewer", "ExperimentsRemovedMessage")); 83 } 84 80 85 public function addExperimentsToExperimentEditor() : void 81 86 { 82 87 var array:ArrayCollection = getSelectedExperimentsPKs(); 83 88 parentApplication.addModelUpdatedSingleCallbacks(parentApplication.service.getExperimentConfiguration(array), configurationsLoaded); 89 } 90 91 public function removeAll() : void 92 { 93 var array:ArrayCollection = getSelectedExperimentsPKs(); 94 parentApplication.addModelUpdatedSingleCallbacks(parentApplication.service.deleteExperiments(array), experimentsRemoved); 84 95 } 85 96 … … 133 144 parentApplication.service.changeExperimentsMetaexperiment(getSelectedExperimentsPKs(), moveToFolderInput.text); 134 145 } 146 showMoveToFolderPrompt(false); 147 } 148 149 public function showMoveToFolderPrompt(show : Boolean = true) : void 150 { 151 moveToFolderPrompt.visible = show; 152 moveToFolderPrompt.includeInLayout = show; 135 153 } 136 154 … … 243 261 <s:Button label="{resourceManager.getString('ArchiveViewer', 'Refresh')}" click="getExperiments()"/> 244 262 245 <!--246 <mx:TabNavigator paddingLeft="5" creationPolicy="all" width="100%">247 <mx:VBox label="Allocations" width="100%">248 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.allocationList}" rowHeight="35" id="allocationsDataGrid" width="100%" >249 <mx:columns>250 <mx:DataGridColumn dataField="PK" headerText="PK"/>251 <mx:DataGridColumn dataField="taskId" headerText="Task ID"/>252 <mx:DataGridColumn dataField="unitId" headerText="Unit ID"/>253 <mx:DataGridColumn dataField="begin" headerText="begin"/>254 <mx:DataGridColumn dataField="end" headerText="end"/>255 </mx:columns>256 </mx:DataGrid>257 <s:Button label="Get allocations from DB" click="{parentApplication.service.getAllocationsFromDb(null, null)}"/>258 </mx:VBox>259 260 <mx:VBox label="Allocation details" width="100%">261 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.allocationDetailsList}" rowHeight="35" id="allocationDetailsDataGrid" width="100%" >262 <mx:columns>263 <mx:DataGridColumn dataField="fkAllocationId" headerText="Allocation Id"/>264 <mx:DataGridColumn dataField="name" headerText="Name"/>265 <mx:DataGridColumn dataField="value" headerText="Value"/>266 </mx:columns>267 </mx:DataGrid>268 <s:Button label="Get allocation details from DB" click="{parentApplication.service.getAllocationDetailsFromDb(null)}"/>269 </mx:VBox>270 271 <mx:VBox label="Configuration" width="100%">272 <mx:TextArea id="net" text="{parentApplication.gsSimStudioModel.extendedConfiguration.networkTopology}" width="100%" height="100%" editable="false"/>273 <s:Button label="Get configuration with id 2 from DB" click="{parentApplication.service.getExtendedConfigurationFromDb(2); ln.enabled=true;}"/>274 <s:Button label="Load the configuration to Network Editor" click="{loadNetwork();}" enabled="false" id="ln"/>275 </mx:VBox>276 277 <mx:VBox label="{resourceManager.getString('ArchiveViewer', 'Experiments')}" width="100%">278 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.experimentList}" rowHeight="35" id="experimentsDataGrid" width="100%" >279 <mx:columns>280 <mx:DataGridColumn dataField="PK" headerText="{resourceManager.getString('ArchiveViewer', 'ID')}"/>281 <mx:DataGridColumn dataField="status" headerText="{resourceManager.getString('ArchiveViewer', 'Status')}"/>282 <mx:DataGridColumn dataField="commissionDate" headerText="{resourceManager.getString('ArchiveViewer', 'Description')}"/>283 </mx:columns>284 </mx:DataGrid>285 <s:Button label="Get experiments from DB" click="{parentApplication.service.getExperimentsFromDb(null, null, null)}"/>286 </mx:VBox>287 288 <mx:VBox label="Experiment stats" width="100%">289 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.experimentStatsList}" rowHeight="35" id="experimentStatsDataGrid" width="100%" >290 <mx:columns>291 <mx:DataGridColumn dataField="id" headerText="Experiment Id"/>292 <mx:DataGridColumn dataField="name" headerText="Name"/>293 <mx:DataGridColumn dataField="value" headerText="Value"/>294 </mx:columns>295 </mx:DataGrid>296 <s:Button label="Get experiment stats from DB" click="{parentApplication.service.getExperimentStatsFromDb(null)}"/>297 </mx:VBox>298 299 <mx:VBox label="Queues" width="100%">300 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.queuesList}" rowHeight="35" id="queuesDataGrid" width="100%" >301 <mx:columns>302 <mx:DataGridColumn dataField="fkResourceId" headerText="Resource Id"/>303 <mx:DataGridColumn dataField="name" headerText="Name"/>304 <mx:DataGridColumn dataField="avgLength" headerText="Avg length"/>305 </mx:columns>306 </mx:DataGrid>307 <s:Button label="Get queues from DB" click="{parentApplication.service.getQueuesFromDb(null)}"/>308 </mx:VBox>309 310 311 <mx:VBox label="Reservations" width="100%">312 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.reservationList}" rowHeight="35" id="reservationsDataGrid" width="100%" >313 <mx:columns>314 <mx:DataGridColumn dataField="PK" headerText="PK"/>315 <mx:DataGridColumn dataField="taskId" headerText="Task Id"/>316 <mx:DataGridColumn dataField="unitId" headerText="Unit Id"/>317 <mx:DataGridColumn dataField="begin" headerText="Begin"/>318 <mx:DataGridColumn dataField="end" headerText="End"/>319 </mx:columns>320 </mx:DataGrid>321 <s:Button label="Get reservations from DB" click="{parentApplication.service.getReservationsFromDb(null, null)}"/>322 </mx:VBox>323 324 <mx:VBox label="Reservation details" width="100%">325 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.reservationDetailsList}" rowHeight="35" id="reservationDetailsDataGrid" width="100%" >326 <mx:columns>327 <mx:DataGridColumn dataField="fkReservationId" headerText="Reservation Id"/>328 <mx:DataGridColumn dataField="name" headerText="Name"/>329 <mx:DataGridColumn dataField="value" headerText="Value"/>330 </mx:columns>331 </mx:DataGrid>332 <s:Button label="Get reservations from DB" click="{parentApplication.service.getReservationDetailsFromDb(null)}"/>333 </mx:VBox>334 335 <mx:VBox label="Resources" width="100%">336 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.resourceList}" rowHeight="35" id="resourcesDataGrid" width="100%" >337 <mx:columns>338 <mx:DataGridColumn dataField="PK" headerText="PK"/>339 <mx:DataGridColumn dataField="expId" headerText="Experiment Id"/>340 <mx:DataGridColumn dataField="name" headerText="Name"/>341 <mx:DataGridColumn dataField="type" headerText="Type"/>342 <mx:DataGridColumn dataField="allocationLoad" headerText="Allocation load"/>343 <mx:DataGridColumn dataField="reservationLoad" headerText="Reservation load"/>344 </mx:columns>345 </mx:DataGrid>346 <s:Button label="Get resources from DB" click="{parentApplication.service.getResourcesFromDb(null, null, null)}"/>347 </mx:VBox>348 349 <mx:VBox label="Resource alloctaion timeline" width="100%">350 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.resourceAllTimelineList}" rowHeight="35" id="resourceAllTimelinesDetailsDataGrid" width="100%" >351 <mx:columns>352 <mx:DataGridColumn dataField="fkResourceId" headerText="Resource Id"/>353 <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/>354 <mx:DataGridColumn dataField="usage" headerText="Usage"/>355 </mx:columns>356 </mx:DataGrid>357 <s:Button label="Get resource allocation timeline from DB" click="{parentApplication.service.getResourceAllTimelineFromDb(null, null, null)}"/>358 </mx:VBox>359 360 <mx:VBox label="Resource energy timeline" width="100%">361 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.resourceEnTimelineList}" rowHeight="35" id="resourceEnTimelinesDetailsDataGrid" width="100%" >362 <mx:columns>363 <mx:DataGridColumn dataField="fkResourceId" headerText="Resource Id"/>364 <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/>365 <mx:DataGridColumn dataField="usage" headerText="Usage"/>366 </mx:columns>367 </mx:DataGrid>368 <s:Button label="Get resource energy timeline from DB" click="{parentApplication.service.getResourceEnTimelineFromDb(null, null, null)}"/>369 </mx:VBox>370 371 <mx:VBox label="Tasks" width="100%">372 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.taskList}" rowHeight="35" id="tasksDataGrid" width="100%" >373 <mx:columns>374 <mx:DataGridColumn dataField="PK" headerText="PK"/>375 <mx:DataGridColumn dataField="expId" headerText="Experiment Id"/>376 <mx:DataGridColumn dataField="jobId" headerText="Job Id"/>377 <mx:DataGridColumn dataField="taskId" headerText="Task Id"/>378 <mx:DataGridColumn dataField="procSetId" headerText="Proceess set Id"/>379 <mx:DataGridColumn dataField="parentId" headerText="Parent Id"/>380 <mx:DataGridColumn dataField="execStartDate" headerText="Exec start date"/>381 <mx:DataGridColumn dataField="execFinishDate" headerText="Exec finish date"/>382 <mx:DataGridColumn dataField="execEndDate" headerText="Exec end date"/>383 <mx:DataGridColumn dataField="gbSubmitDate" headerText="Gb submit date"/>384 <mx:DataGridColumn dataField="lbSubmitDate" headerText="Lb Submit Date"/>385 <mx:DataGridColumn dataField="completionTime" headerText="Completion Time"/>386 <mx:DataGridColumn dataField="execStartTime" headerText="Exec start time"/>387 <mx:DataGridColumn dataField="executionTime" headerText="Execution time"/>388 <mx:DataGridColumn dataField="startTime" headerText="Start time"/>389 <mx:DataGridColumn dataField="readyTime" headerText="Ready time"/>390 <mx:DataGridColumn dataField="flowTime" headerText="Flow time"/>391 <mx:DataGridColumn dataField="waitingTime" headerText="Waiting time"/>392 <mx:DataGridColumn dataField="gqWaitingTime" headerText="Gq waiting time"/>393 <mx:DataGridColumn dataField="lateness" headerText="Lateness"/>394 <mx:DataGridColumn dataField="tardiness" headerText="Tardiness"/>395 <mx:DataGridColumn dataField="makespan" headerText="Makespan"/>396 </mx:columns>397 </mx:DataGrid>398 <s:Button label="Get tasks from DB" click="{parentApplication.service.getTasksFromDb(null, null, null, null, null)}"/>399 </mx:VBox>400 401 <mx:VBox label="Text properties" width="100%">402 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.textPropertyList}" rowHeight="35" id="textPropertiesDataGrid" width="100%" >403 <mx:columns>404 <mx:DataGridColumn dataField="configId" headerText="Configuration Id"/>405 <mx:DataGridColumn dataField="name" headerText="Name"/>406 <mx:DataGridColumn dataField="value" headerText="Value"/>407 </mx:columns>408 </mx:DataGrid>409 <s:Button label="Get text properties from DB" click="{parentApplication.service.getTextPropertiesFromDb(null)}"/>410 </mx:VBox>411 412 <mx:VBox label="Units" width="100%">413 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitList}" rowHeight="35" id="unitsDataGrid" width="100%" >414 <mx:columns>415 <mx:DataGridColumn dataField="PK" headerText="PK"/>416 <mx:DataGridColumn dataField="resourceId" headerText="Resource Id"/>417 <mx:DataGridColumn dataField="name" headerText="Name"/>418 <mx:DataGridColumn dataField="type" headerText="Type"/>419 <mx:DataGridColumn dataField="allocationLoad" headerText="Allocation load"/>420 <mx:DataGridColumn dataField="reservationLoad" headerText="Reservation load"/>421 </mx:columns>422 </mx:DataGrid>423 <s:Button label="Get reservations from DB" click="{parentApplication.service.getUnitsFromDb(null, null, null)}"/>424 </mx:VBox>425 426 <mx:VBox label="Unit alloctaion timeline" width="100%">427 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitAllTimelineList}" rowHeight="35" id="unitAllTimelinesDetailsDataGrid" width="100%" >428 <mx:columns>429 <mx:DataGridColumn dataField="fkUnitId" headerText="Unit Id"/>430 <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/>431 <mx:DataGridColumn dataField="usage" headerText="Usage"/>432 </mx:columns>433 </mx:DataGrid>434 <s:Button label="Get unit allocation timeline from DB" click="{parentApplication.service.getUnitAllTimelineFromDb(null, null, null)}"/>435 </mx:VBox>436 437 <mx:VBox label="Unit details" width="100%">438 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitDetailsList}" rowHeight="35" id="unitDetailsDataGrid" width="100%" >439 <mx:columns>440 <mx:DataGridColumn dataField="fkUnitId" headerText="Unit Id"/>441 <mx:DataGridColumn dataField="name" headerText="Name"/>442 <mx:DataGridColumn dataField="value" headerText="Value"/>443 </mx:columns>444 </mx:DataGrid>445 <s:Button label="Get units from DB" click="{parentApplication.service.getUnitDetailsFromDb(null)}"/>446 </mx:VBox>447 448 <mx:VBox label="Unit energy timeline" width="100%">449 <mx:DataGrid dataProvider="{parentApplication.gsSimStudioModel.unitEnTimelineList}" rowHeight="35" id="unitEnTimelinesDetailsDataGrid" width="100%" >450 <mx:columns>451 <mx:DataGridColumn dataField="fkUnitId" headerText="Unit Id"/>452 <mx:DataGridColumn dataField="timestamp" headerText="Timestamp"/>453 <mx:DataGridColumn dataField="usage" headerText="Usage"/>454 </mx:columns>455 </mx:DataGrid>456 <s:Button label="Get unit energy timeline from DB" click="{parentApplication.service.getUnitEnTimelineFromDb(null, null, null)}"/>457 </mx:VBox>458 459 </mx:TabNavigator>460 -->461 462 <mx:Button id="accumulatedStatsWindow" click="showAccumulatedStatsWindow()" label="View stats"/>463 263 <s:Group> 464 264 <s:Rect width="100%" height="100%"> … … 473 273 <s:Label text="{resourceManager.getString('ArchiveViewer', 'WithSelected')}"/> 474 274 <mx:HBox> 475 <mx:ComboBox id="moveToFolderInput" width="150" restrict="0-9a-zA-Z" dataProvider="{parentApplication.gsSimStudioModel.metaexperimentList}" editable="true" /> 476 <mx:Button id="moveToFolderButton" click="moveToFolder()" label="{resourceManager.getString('ArchiveViewer', 'Move')}"/> 275 276 <mx:Button id="moveToFolderButton" click="showMoveToFolderPrompt()" label="{resourceManager.getString('ArchiveViewer', 'Move')}"/> 277 <mx:Button click="addExperimentsToExperimentEditor()" label="{resourceManager.getString('ArchiveViewer', 'RunAgain')}"/> 278 <mx:Button click="removeAll()" label="{resourceManager.getString('ArchiveViewer', 'RemoveAll')}"/> 279 <mx:Button id="accumulatedStatsWindow" click="showAccumulatedStatsWindow()" label="{resourceManager.getString('ArchiveViewer', 'GroupStatistics')}"/> 477 280 </mx:HBox> 478 <mx:Button click="addExperimentsToExperimentEditor()" label="{resourceManager.getString('ArchiveViewer', 'RunAgain')}"/> 281 <mx:HBox id="moveToFolderPrompt"> 282 <mx:VBox> 283 <mx:Label text="{resourceManager.getString('ArchiveViewer', 'NewName')}" /> 284 <mx:HBox> 285 <mx:ComboBox id="moveToFolderInput" width="150" restrict="0-9a-zA-Z" dataProvider="{parentApplication.gsSimStudioModel.metaexperimentList}" editable="true" /> 286 <mx:Button click="moveToFolder()" label="{resourceManager.getString('ArchiveViewer', 'OK')}"/> 287 <mx:Button click="showMoveToFolderPrompt(false)" label="{resourceManager.getString('ArchiveViewer', 'Cancel')}"/> 288 </mx:HBox> 289 </mx:VBox> 290 </mx:HBox> 479 291 </mx:VBox> 480 292 </s:Group> -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java
r415 r416 749 749 750 750 @BlazeDsMethod() 751 public GSSimStudioModel deleteExperiments(List PKs) { 752 GSSimStudioModel model = getModel(); 753 Connection connection = null; 754 try { 755 connection = factory().createDBConnection(dbAddress, dbUser, 756 dbPassword); 757 758 ExperimentDAO experimentDAO = factory.createExperiment(); 759 for (int i = 0; i < PKs.size(); i++) { 760 deleteExperiment(experimentDAO, (Integer) PKs.get(i)); 761 } 762 connection.commit(); 763 764 } catch (SQLException e) { 765 setSqlError("Experiments", model, e); 766 } catch (InstantiationException e) { 767 setDbConnectionError(model, e); 768 } catch (IllegalAccessException e) { 769 setDbConnectionError(model, e); 770 } catch (ClassNotFoundException e) { 771 setDbConnectionError(model, e); 772 } catch (Exception e) { 773 setError("Unexpected error occured", model, e); 774 } finally { 775 closeConnection(connection, model); 776 } 777 778 return getExperimentsFromDb(model, null, null, null); 779 } 780 781 @BlazeDsMethod() 751 782 public GSSimStudioModel updateExperiment(Integer PK, Integer userID, Integer configID, String name, Timestamp commissionDate, String description, String status, Integer metaexpID) { 752 783 GSSimStudioModel model = getModel(); -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/en_US/ArchiveViewer.properties
r63 r416 10 10 Status=Status 11 11 Refresh=Refresh 12 13 OK=Confirm 14 Cancel=Cancel 15 NewName=Fill in the name of new folder or pick one from the list: 12 16 13 17 Basic=Basic info … … 23 27 WithSelected=Selected experiments 24 28 ExperimentsAddedMessage=Selected experiments have been added to Experiment Editor and can be runned again. 29 ExperimentsRemovedMessage=Selected experiments have been removed. 30 31 GroupStatistics=Group statistics 32 RemoveAll=Delete -
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/locale/pl_PL/ArchiveViewer.properties
r63 r416 12 12 Refresh=OdÅwieÅŒ 13 13 14 OK=Zatwierdź 15 Cancel=Anuluj 16 NewName=Podaj nowÄ 17 nazwÄ folderu lub wybierz jednÄ 18 z istniejÄ 19 cych: 20 14 21 Basic=Informacje podstawowe 15 22 Resource=Wykres zasobów … … 24 31 WithSelected=Zaznaczone eksperymenty 25 32 ExperimentsAddedMessage=Dodano zaznaczone eksperymenty do Edytora Eksperymentów, moÅŒna je ponownie uruchomiÄ z poziomu tego edytora. 33 ExperimentsRemovedMessage=PomyÅlnie usuniÄto zaznaczone eksperymenty. 34 35 GroupStatistics=Statystyki zbiorcze 36 RemoveAll=UsuÅ
Note: See TracChangeset
for help on using the changeset viewer.