ScalePopUp.mxml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:TitleWindow
  3. xmlns:mx="http://www.adobe.com/2006/mxml"
  4. addedEffect="Fade" removedEffect="Fade"
  5. showCloseButton="true"
  6. width="450" height="260"
  7. title="{resourceManager.getString( 'labels', 'measure.scale.popup.title' )}"
  8. creationComplete="creation()"
  9. close="closeHandler()">
  10. <mx:Script source="../../../scripts/physician/measure/scalePopUp.as" />
  11. <mx:NumberFormatter id="formatNumber" precision="4"
  12. thousandsSeparatorFrom="," thousandsSeparatorTo=" "
  13. decimalSeparatorFrom="." decimalSeparatorTo=","
  14. rounding="nearest" />
  15. <mx:NumberFormatter id="formatNumberPercentage" precision="0"
  16. thousandsSeparatorFrom="," thousandsSeparatorTo=" "
  17. decimalSeparatorFrom="." decimalSeparatorTo=","
  18. rounding="nearest" />
  19. <mx:VBox width="100%" verticalGap="5"
  20. paddingTop="10" paddingBottom="5"
  21. paddingLeft="10" paddingRight="5">
  22. <mx:HBox>
  23. <mx:Label text="{scaleVo.type}" />
  24. <mx:Spacer width="20" />
  25. <mx:Label text="{scaleVo.color}" />
  26. <mx:Spacer width="20" />
  27. <mx:Label text="{formatNumberPercentage.format( scaleVo.regularity )} %" />
  28. <mx:Spacer width="20" />
  29. <mx:Label text="{formatNumberPercentage.format( scaleVo.ratio )} %" />
  30. </mx:HBox>
  31. <mx:Label text="{resourceManager.getString( 'labels', 'measure.scale.popup.label' )}" />
  32. <mx:FormItem label="{resourceManager.getString( 'labels', 'measure.scale.popup.item' )}" width="100%" labelWidth="50" horizontalAlign="center">
  33. <mx:HBox>
  34. <mx:NumericStepper id="scaleNumericStepper" width="100" minimum="0" maximum="150" stepSize="5" />
  35. <mx:Label text="{resourceManager.getString( 'labels', 'measure.scale.popup.unit' )}" />
  36. </mx:HBox>
  37. </mx:FormItem>
  38. <!--mx:Label text="{resourceManager.getString( 'labels', 'measure.scale.popup.label.ultraSoundScanner' )}" />
  39. <mx:HBox width="100%" horizontalAlign="center">
  40. <mx:ComboBox id="scanners" dataProvider="{_model.listUltraSoundScanner}" labelField="name" width="200" change="changeScanner(event)" />
  41. <mx:ComboBox id="probes" dataProvider="{_model.listUltraSoundScanner.getItemAt(0).probes}" labelField="frequency" width="200" />
  42. </mx:HBox-->
  43. <mx:HBox width="100%" paddingTop="25" horizontalAlign="center">
  44. <mx:Button click="addScale()" label="{resourceManager.getString( 'labels', 'measure.scale.popup.button.valid' )}"/>
  45. </mx:HBox>
  46. <mx:Spacer height="100%" />
  47. <mx:HBox width="100%" horizontalAlign="right">
  48. <mx:LinkButton click="closeHandler()" label="{resourceManager.getString( 'labels', 'measure.scale.popup.button.try.again' )}"/>
  49. </mx:HBox>
  50. </mx:VBox>
  51. </mx:TitleWindow>