Changeset 32 for gssim_ui/branches


Ignore:
Timestamp:
08/25/11 13:58:35 (14 years ago)
Author:
mcichenski
Message:
 
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  
    8787                        } 
    8888                         
    89                         protected function initChart() : void 
     89                        protected function initChart(event : ResultEvent) : void 
    9090                        { 
    9191                                Alert.show("initChart"); 
     
    134134                                 
    135135                                var data : ArrayCollection = parentApplication.gsSimStudioModel.ganntChartComponents['' + expId].allocationList; 
    136                                 Alert.show("getRowsData"); 
     136                                 
    137137                                startDate = new Date(3000); 
    138138                                endDate = new Date(0); 
     
    141141                                tempRowDataProvider = new ArrayCollection(); 
    142142                                var resMap : Object = new Object(); 
    143                                 Alert.show("iterate!"); 
    144143                                for( var i : Number = 0; i < data.length; i++ ) 
    145144                                { 
    146                                         Alert.show("check in dictionary " + i); 
    147145                                        if (!resMap.hasOwnProperty(data[i].unitId)) 
    148146                                        { 
     
    153151                                        var dummycolor : uint = 0x999999 + randomInt( 0x777777 ); 
    154152                                         
    155                                         Alert.show("add schedule entry " + i); 
    156153                                        resMap[data[i].unitId].addItem(createColoredEntry(data[i].taskId, data[i].begin, data[i].end, dummycolor, 1,0,1)); 
    157154                                         
    158                                         Alert.show("set begin/end " + i); 
    159155                                        if (data[i].begin < startDate) startDate = data[i].begin; 
    160156                                        if (data[i].end > endDate) endDate = data[i].end; 
     
    325321                <mx:HBox> 
    326322                        <mx:Button label="PNG" click="saveAsPNG();"/> 
    327                         <mx:Button label="do it!" click="initChart();"/> 
    328323                </mx:HBox> 
    329324                <mx:VBox width="100%" height="100%" verticalGap="1" id="fullChart"> 
     
    357352                                                                                        entryRenderer="flexlib.scheduling.scheduleClasses.renderers.ColoredSolidScheduleEntryRenderer" 
    358353                                                                                        horizontalLinesViewer="flexlib.scheduling.samples.AlternatingHorizontalLinesViewer" 
    359                                                                                         horizontalScrollPolicy="off" itemScroll="scrollList( event )" 
     354                                                                                        itemScroll="scrollList( event )" 
    360355                                                                                        pixelScroll="onScrollScheduleViewer( event )" 
    361356                                                                                        pixelScrollEnabled="false" startDate="{ startDate }" 
     
    389384                                                </s:HGroup> 
    390385                                        </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> 
    437386                                         
    438387                                </s:VGroup> 
Note: See TracChangeset for help on using the changeset viewer.