Changeset 32 for gssim_ui/branches/vine/gssimstudio/src/web/ui/flex
- Timestamp:
- 08/25/11 13:58:35 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/charts/GanntChart.mxml
r31 r32 87 87 } 88 88 89 protected function initChart( ) : void89 protected function initChart(event : ResultEvent) : void 90 90 { 91 91 Alert.show("initChart"); … … 134 134 135 135 var data : ArrayCollection = parentApplication.gsSimStudioModel.ganntChartComponents['' + expId].allocationList; 136 Alert.show("getRowsData");136 137 137 startDate = new Date(3000); 138 138 endDate = new Date(0); … … 141 141 tempRowDataProvider = new ArrayCollection(); 142 142 var resMap : Object = new Object(); 143 Alert.show("iterate!");144 143 for( var i : Number = 0; i < data.length; i++ ) 145 144 { 146 Alert.show("check in dictionary " + i);147 145 if (!resMap.hasOwnProperty(data[i].unitId)) 148 146 { … … 153 151 var dummycolor : uint = 0x999999 + randomInt( 0x777777 ); 154 152 155 Alert.show("add schedule entry " + i);156 153 resMap[data[i].unitId].addItem(createColoredEntry(data[i].taskId, data[i].begin, data[i].end, dummycolor, 1,0,1)); 157 154 158 Alert.show("set begin/end " + i);159 155 if (data[i].begin < startDate) startDate = data[i].begin; 160 156 if (data[i].end > endDate) endDate = data[i].end; … … 325 321 <mx:HBox> 326 322 <mx:Button label="PNG" click="saveAsPNG();"/> 327 <mx:Button label="do it!" click="initChart();"/>328 323 </mx:HBox> 329 324 <mx:VBox width="100%" height="100%" verticalGap="1" id="fullChart"> … … 357 352 entryRenderer="flexlib.scheduling.scheduleClasses.renderers.ColoredSolidScheduleEntryRenderer" 358 353 horizontalLinesViewer="flexlib.scheduling.samples.AlternatingHorizontalLinesViewer" 359 horizontalScrollPolicy="off"itemScroll="scrollList( event )"354 itemScroll="scrollList( event )" 360 355 pixelScroll="onScrollScheduleViewer( event )" 361 356 pixelScrollEnabled="false" startDate="{ startDate }" … … 389 384 </s:HGroup> 390 385 </s:HGroup> 391 <s:Group>392 <s:Rect width="100%" height="100%">393 <s:stroke>394 <s:SolidColorStroke color="0x999999" weight="1"/>395 </s:stroke>396 </s:Rect>397 <!--398 <s:HGroup width="{ scheduleViewerWidth }" left="10" top="10" right="10" bottom="10">399 400 <s:Label text="Goto:" top="5"/>401 <s:Button label="Now" click="gotoNow();"/>402 <s:Button label="Selected" click="gotoSelectedEntry();"/>403 <s:Rect width="100%"/>404 <s:Button label="Matrix" click="openMatrix()"/>405 <s:Label text="History (days):" top="5"/>406 <s:TextInput id="srcHistory" width="25" text="2"/>407 <s:Button label="Apply"408 click="historyLength = int(srcHistory.text); onReservationsReady();"/>409 </s:HGroup>410 -->411 </s:Group>412 <s:Group>413 <s:Rect width="100%" height="100%">414 <s:stroke>415 <s:SolidColorStroke color="0x999999" weight="1"/>416 </s:stroke>417 </s:Rect>418 <!--419 <s:HGroup width="{ scheduleViewerWidth }" left="10" top="10" right="10" bottom="10">420 <s:Label text="Show:" top="15"/>421 422 <s:RadioButton id="onlyJob" label="Only Reservations" groupName="groupByType" selected="true"423 value="onlyJob"/>424 <s:RadioButton id="onlyTask" label="Only Tasks" groupName="groupByType" value="onlyTask"/>425 <s:RadioButton id="both" label="Reservations and Tasks" groupName="groupByType"426 value="both"/>427 <s:Rect width="33%" height="1"/>428 <s:Label text="Group by:" top="5"/>429 430 <s:RadioButton id="Job" label="Job" groupName="groupByRBG" selected="true" value="Job"/>431 <s:RadioButton id="Task" label="Task" groupName="groupByRBG" value="Task"/>432 <s:RadioButton id="ProcessGroup" label="Process Group" groupName="groupByRBG"433 value="ProcessGroup"/>434 </s:HGroup>435 -->436 </s:Group>437 386 438 387 </s:VGroup>
Note: See TracChangeset
for help on using the changeset viewer.