| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- <?xml version="1.0" encoding="utf-8"?>
- <mx:VBox
- xmlns:mx="http://www.adobe.com/2006/mxml"
- xmlns:helpers="com.imt.intimamedia.helpers.*"
- xmlns:components="com.hillelcoren.components.*"
- horizontalAlign="center" verticalAlign="top"
- verticalScrollPolicy="auto" horizontalScrollPolicy="auto"
- creationComplete="initListeners()"
- show="showView()"
- paddingTop="10" paddingLeft="50" paddingRight="10">
-
- <mx:Script>
- <![CDATA[
- import com.imt.intimamedia.helpers.ComboBoxHelper;
- ]]>
- </mx:Script>
-
- <mx:Script source="../../../scripts/physician/profil/profilView.as" />
-
- <mx:StringValidator id="hospitalValidator" source="{hospitalTextInput}" maxLength="49" property="text" trigger="{hospitalTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="invoiceAddressValidator" source="{invoiceAddressTextInput}" maxLength="99" property="text" trigger="{invoiceAddressTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="shippingAddressValidator" source="{shippingAddressTextInput}" maxLength="99" property="text" trigger="{shippingAddressTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="cityValidator" source="{cityTextInput}" property="text" maxLength="29" trigger="{cityTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="zipCodeValidator" source="{zipCodeTextInput}" property="text" maxLength="9" trigger="{zipCodeTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:NumberValidator id="countryValidator" source="{countryComboBox}" property="selectedIndex" minValue="0" lowerThanMinError="{resourceManager.getString('labels', 'required')}" trigger="{countryComboBox}" triggerEvent="close" />
- <mx:StringValidator id="phoneCenterValidator" source="{phoneCenterTextInput}" maxLength="14" property="text" trigger="{phoneCenterTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="lastNameValidator" source="{lastNameTextInput}" maxLength="49" property="text" trigger="{lastNameTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="firstNameValidator" source="{firstNameTextInput}" maxLength="49" property="text" trigger="{firstNameTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="phoneValidator" source="{phoneTextInput}" maxLength="14" property="text" trigger="{phoneTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:NumberValidator id="activityValidator" source="{activityComboBox}" property="selectedIndex" minValue="0" lowerThanMinError="{resourceManager.getString('labels', 'required')}" trigger="{activityComboBox}" triggerEvent="close" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="otherActivityValidator" source="{otherActivityTextInput}" property="text" trigger="{otherActivityTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:StringValidator id="brandValidator" source="{brandTextInput}" maxLength="100" property="text" trigger="{brandTextInput}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
- <mx:NumberValidator id="frequencyValidator" source="{frequencyNumericStepper}" property="value" trigger="{frequencyNumericStepper}" triggerEvent="focusOut" requiredFieldError="{resourceManager.getString('labels', 'required')}" />
-
- <mx:VBox width="100%" styleName="containerZoneWithTitleAndBackground">
- <mx:HBox height="100%">
- <mx:Canvas>
- <mx:Image source="@Embed('images/general/leftTitle.png')" />
- <mx:Label text="{resourceManager.getString('labels', 'label.myinformation')}" styleName="titlePanel" />
- </mx:Canvas>
-
- <mx:HBox>
- <mx:Label text="ID : " />
- <mx:Label fontWeight="bold" text="{_model.connectedUser.uid.substring(0, 8)}" />
- <mx:Label text="{resourceManager.getString('labels', 'email')} : " />
- <mx:Label fontWeight="bold" text="{_model.connectedUser.login}" />
- <mx:Label text="{resourceManager.getString('labels', 'versionLabel')}" />
- <mx:Label fontWeight="bold" text="{resourceManager.getString('labels', 'version')}" />
- </mx:HBox>
- </mx:HBox>
-
- <mx:VBox width="100%" height="100%" verticalAlign="top" horizontalAlign="center"
- verticalGap="2" paddingLeft="2" paddingRight="2" paddingBottom="2" horizontalScrollPolicy="off" verticalScrollPolicy="off">
-
- <mx:HBox width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
- <mx:VBox width="30" height="100%" styleName="containerZone" click="actionOnZones(event, 'ZoneTwo')">
- <mx:LinkButton id="partTwo" visible="{_partTwoValid}" styleName="statusIcon" click="actionOnZonesFromErrors(event, 'ZoneTwo')" />
- </mx:VBox>
-
- <mx:HBox width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
- <helpers:WindowShade id="organization" label="{resourceManager.getString('labels', 'titleOrganization')}" width="100%" opened="true" styleName="titlePanelDynamic" click="actionOnZones(event, 'ZoneTwo')">
- <mx:Canvas styleName="containerRedCompact" height="305" width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
-
- <mx:VBox height="300" width="100%" verticalScrollPolicy="off" horizontalScrollPolicy="off" styleName="containerRedContentSync">
-
- <mx:FormItem id="hospitalLabel" required="true" label="{resourceManager.getString('labels', 'hospitalName')}" width="100%" labelWidth="90">
- <helpers:TextInputWithSkin id="hospitalTextInput" maxChars="49" text="{_model.connectedUser.hospital.name}" tabIndex="8" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:FormItem id="countryLabel" required="true" label="{resourceManager.getString('labels', 'country')}" width="100%" labelWidth="90" >
- <mx:ComboBox id="countryComboBox" selectedIndex="{ComboBoxHelper.findIndex( _model.connectedUser.hospital.country, _model.countries )}" tabIndex="9" prompt="{resourceManager.getString('labels', 'chooseCountry')}" dataProvider="{_model.countries}" width="100%" />
- </mx:FormItem>
-
- <mx:FormItem id="zipCodeLabel" required="true" label="{resourceManager.getString('labels', 'zipCode')}" width="100%" labelWidth="90">
- <mx:HBox width="100%" verticalAlign="middle">
- <helpers:TextInputWithSkin id="zipCodeTextInput" text="{_model.connectedUser.hospital.zipCode}" maxChars="9" tabIndex="10" width="100%" styleName="textInput" />
- <!--mx:LinkButton icon="@Embed('images/general/search.png')" width="16" click="searchCityWithZipCode()" toolTip="{resourceManager.getString('labels', 'search.country')}" /-->
- </mx:HBox>
- </mx:FormItem>
-
- <mx:FormItem id="cityLabel" required="true" label="{resourceManager.getString('labels', 'city')}" width="100%" labelWidth="90">
- <mx:HBox width="100%" verticalAlign="middle">
- <helpers:TextInputWithSkin id="cityTextInput" text="{_model.connectedUser.hospital.city}" maxChars="29" tabIndex="11" width="100%" styleName="textInput" />
- <!--mx:LinkButton icon="@Embed('images/general/search.png')" width="16" click="searchZipCodeWithCity()" toolTip="{resourceManager.getString('labels', 'search.zipcode')}" /-->
- </mx:HBox>
- </mx:FormItem>
-
- <mx:FormItem id="invoiceAddressLabel" required="true" label="{resourceManager.getString('labels', 'addressInvoicing')}" width="100%" labelWidth="90">
- <helpers:TextAreaWithSkin id="invoiceAddressTextInput" text="{_model.connectedUser.hospital.addressInvoicing}" maxChars="99" tabIndex="12" width="100%" height="60" styleName="textInput" focusOut="copyAddress(invoiceAddressTextInput.text)" />
- </mx:FormItem>
-
- <mx:HBox width="100%" verticalAlign="middle">
- <mx:Spacer width="100%" />
- <mx:CheckBox id="different" labelPlacement="left" label="{resourceManager.getString('labels', 'addressDifferent')}" styleName="checkBoxForm" width="100%" click="displayShippingAddress(different.selected)" selected="{_model.connectedUser.hospital.addressInvoicing != _model.connectedUser.hospital.addressShipping ? true : false}" />
- </mx:HBox>
-
- <mx:FormItem id="shippingAddressLabel" required="true" label="{resourceManager.getString('labels', 'addressShipping')}" includeInLayout="false" visible="false" width="100%" labelWidth="90" moveEffect="Move" hideEffect="Fade" showEffect="Fade">
- <helpers:TextAreaWithSkin id="shippingAddressTextInput" text="{_model.connectedUser.hospital.addressShipping}" maxChars="99" tabIndex="13" width="100%" height="60" styleName="textInput" visible="{different.selected}" />
- </mx:FormItem>
-
- <mx:FormItem id="phoneCenterLabel" required="true" label="{resourceManager.getString('labels', 'phone')}" width="100%" labelWidth="90" moveEffect="Move">
- <helpers:TextInputWithSkin id="phoneCenterTextInput" text="{_model.connectedUser.hospital.phone}" maxChars="14" tabIndex="14" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:FormItem label="{resourceManager.getString('labels', 'fax')}" width="100%" labelWidth="90" moveEffect="Move">
- <mx:TextInput id="faxCenterTextInput" tabIndex="20" text="{_model.connectedUser.hospital.fax}" maxChars="14" width="100%" />
- </mx:FormItem>
-
- </mx:VBox>
-
- </mx:Canvas>
- </helpers:WindowShade>
-
- <helpers:WindowShade id="user" label="{resourceManager.getString('labels', 'titleUser')}" width="100%" opened="true" styleName="titlePanelDynamic" click="actionOnZones(event, 'ZoneTwo')">
- <mx:Canvas styleName="containerRedCompact" height="305" width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
-
- <mx:VBox height="300" width="100%" styleName="containerRedContentSync">
-
- <mx:FormItem id="lastNameLabel" required="true" label="{resourceManager.getString('labels', 'lastName')}:" width="100%" labelWidth="80">
- <helpers:TextInputWithSkin id="lastNameTextInput" text="{_model.connectedUser.person.lastName}" maxChars="49" tabIndex="16" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:FormItem id="firstNameLabel" required="true" label="{resourceManager.getString('labels', 'firstName')}" width="100%" labelWidth="80">
- <helpers:TextInputWithSkin id="firstNameTextInput" text="{_model.connectedUser.person.firstName}" maxChars="49" tabIndex="17" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:FormItem id="phoneLabel" required="true" label="{resourceManager.getString('labels', 'phone')}" width="100%" labelWidth="80">
- <helpers:TextInputWithSkin id="phoneTextInput" text="{_model.connectedUser.person.phone}" maxChars="14" tabIndex="18" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:FormItem label="{resourceManager.getString('labels', 'fax')}" width="100%" labelWidth="80">
- <mx:TextInput id="faxTextInput" text="{_model.connectedUser.person.fax}" tabIndex="19" maxChars="14" width="100%" />
- </mx:FormItem>
-
- <mx:FormItem id="activityLabel" required="true" label="{resourceManager.getString('labels', 'activity')}" width="100%" labelWidth="80">
- <mx:ComboBox id="activityComboBox" selectedIndex="{ComboBoxHelper.findIndexFromLabel( _model.connectedUser.person.activity, _model.specialities )}" tabIndex="20" dataProvider="{_model.specialities}" prompt="{resourceManager.getString('labels', 'chooseActivity')}" width="100%" change="onChangeActivity(event)" />
- </mx:FormItem>
-
- <mx:FormItem id="otherActivityLabel" required="true" label="{resourceManager.getString('labels', 'activity.other')}" width="100%" labelWidth="80" visible="{_otherActivityActive}" includeInLayout="{_otherActivityActive}" hideEffect="Fade" showEffect="Fade">
- <helpers:TextInputWithSkin id="otherActivityTextInput" text="{_model.connectedUser.person.activity}" tabIndex="21" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:HBox width="100%" verticalAlign="middle">
- <mx:Spacer width="100%" />
- <mx:CheckBox id="buyer" labelPlacement="left" label="{resourceManager.getString('labels', 'buyer')}" styleName="checkBoxForm" width="100%" click="displayShippingAddress(different.selected)" selected="{_model.connectedUser.buyer}" />
- </mx:HBox>
-
- </mx:VBox>
-
- </mx:Canvas>
- </helpers:WindowShade>
-
- <helpers:WindowShade id="scanner" label="{resourceManager.getString('labels', 'titleScanner')}" width="100%" opened="true" styleName="titlePanelDynamic" click="actionOnZones(event, 'ZoneTwo')">
- <mx:Canvas styleName="containerRedCompact" height="305" width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
-
- <mx:VBox height="300" width="100%" styleName="containerRedContentSync" horizontalScrollPolicy="off" verticalScrollPolicy="off">
-
- <mx:FormItem label="{resourceManager.getString('labels', 'nameScanner')}" width="100%" labelWidth="130">
- <helpers:TextInputWithSkin id="nameTextInput" text="{_model.connectedUser.ultraSoundScanner.name}" maxChars="99" tabIndex="23" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:FormItem id="brandLabel" required="true" label="{resourceManager.getString('labels', 'brand')}" width="100%" labelWidth="130">
- <helpers:TextInputWithSkin id="brandTextInput" text="{_model.connectedUser.ultraSoundScanner.brand}" maxChars="99" tabIndex="24" width="100%" styleName="textInput" />
- </mx:FormItem>
-
- <mx:FormItem label="{resourceManager.getString('labels', 'type')}" width="100%" labelWidth="130" >
- <mx:TextInput id="typeTextInput" text="{_model.connectedUser.ultraSoundScanner.type}" maxChars="99" tabIndex="25" width="100%" />
- </mx:FormItem>
-
- <mx:FormItem label="{resourceManager.getString('labels', 'age')}" width="100%" labelWidth="130">
- <mx:NumericStepper id="ageNumericStepper" tabIndex="26" width="100" minimum="1980" maximum="{_maxYear}" stepSize="1" />
- </mx:FormItem>
-
- <mx:FormItem required="true" label="{resourceManager.getString('labels', 'frequency')}" width="100%" labelWidth="130">
- <mx:NumericStepper id="frequencyNumericStepper" tabIndex="27" width="100" minimum="0" maximum="15" stepSize="1" />
- </mx:FormItem>
-
- <mx:Spacer height="100%" />
-
- <mx:VBox>
- <mx:Button width="200" height="30" visible="false" label="{resourceManager.getString('labels', 'label.addScanner')}" alpha="30" toolTip="{resourceManager.getString('labels', 'label.feature.available.later')}" />
- <mx:Spacer height="15" />
- <mx:Button width="200" height="30" visible="false" label="{resourceManager.getString('labels', 'label.defaultScanner')}" alpha="30" toolTip="{resourceManager.getString('labels', 'label.feature.available.later')}" />
- </mx:VBox>
- <!--mx:Text width="100%" selectable="false" text="{resourceManager.getString('labels', 'textScanner')}" /-->
- </mx:VBox>
- </mx:Canvas>
- </helpers:WindowShade>
- </mx:HBox>
- </mx:HBox>
-
- <mx:HBox width="100%" visible="false" includeInLayout="false" horizontalScrollPolicy="off" verticalScrollPolicy="off">
- <mx:VBox width="30" height="100%" styleName="containerZone" click="actionOnZones(event, 'ZoneThree')">
- <mx:LinkButton id="partThree" visible="{_partThreeValid}" styleName="statusIcon" />
- </mx:VBox>
-
- <mx:HBox width="100%" horizontalScrollPolicy="off" verticalScrollPolicy="off">
-
- <helpers:WindowShade id="mathContainer" label="{resourceManager.getString('labels', 'titleMath')}" width="100%" opened="true" styleName="titlePanelDynamic" click="actionOnZones(event, 'ZoneThree')">
- <mx:Canvas styleName="containerRedCompact" height="45" width="100%">
-
- <mx:VBox height="25" width="100%" styleName="containerRedContentSync">
-
- <mx:FormItem required="{_model.clinicalStudies}" label="{resourceManager.getString('labels', 'math')}" width="100%" labelWidth="130">
- <mx:TextInput id="math" width="100%" />
- </mx:FormItem>
-
- </mx:VBox>
-
- </mx:Canvas>
- </helpers:WindowShade>
-
- <helpers:WindowShade id="vatContainer" label="{resourceManager.getString('labels', 'titleVAT')}" width="100%" opened="true" styleName="titlePanelDynamic" click="actionOnZones(event, 'ZoneThree')">
- <mx:Canvas styleName="containerRedCompact" height="45" width="100%">
- <mx:VBox height="25" width="100%" styleName="containerRedContentSync">
- <mx:FormItem required="true" label="{resourceManager.getString('labels', 'vat')}" width="100%">
- <mx:CheckBox id="vatCheckBox" />
- </mx:FormItem>
- </mx:VBox>
- </mx:Canvas>
- </helpers:WindowShade>
- </mx:HBox>
- </mx:HBox>
-
- <mx:HBox paddingBottom="10" paddingTop="10" width="100%" horizontalAlign="center">
- <mx:Button id="registerButton" tabIndex="28" label="{resourceManager.getString('labels', 'update')}" width="120" click="update(event)" buttonMode="true" useHandCursor="true"/>
- </mx:HBox>
-
- </mx:VBox>
- </mx:VBox>
-
- <mx:HBox width="100%" height="100%">
- <mx:VBox width="70%" height="100%" styleName="containerZoneWithTitleAndBackground">
- <mx:Canvas>
- <mx:Image source="@Embed('images/general/leftTitle.png')" />
- <mx:Label text="{resourceManager.getString('labels', 'label.history')}" styleName="titlePanel" />
- </mx:Canvas>
-
- <mx:VBox width="100%" height="100%" verticalAlign="top" horizontalAlign="center"
- verticalGap="0" horizontalScrollPolicy="off" verticalScrollPolicy="off">
-
- <mx:DataGrid id="dg" width="95%" height="95%" rowCount="15">
- <mx:columns>
- <mx:DataGridColumn dataField="date" headerText="Date" />
- <mx:DataGridColumn dataField="type" headerText="Type" />
- <mx:DataGridColumn dataField="number" headerText="{resourceManager.getString('labels', 'label.profile.number')}" />
- <mx:DataGridColumn dataField="amount" headerText="{resourceManager.getString('labels', 'label.profile.amount')}" />
- </mx:columns>
- </mx:DataGrid>
-
- </mx:VBox>
- </mx:VBox>
- <mx:VBox width="30%" height="100%" styleName="containerZoneWithTitleAndBackground">
- <mx:Canvas>
- <mx:Image source="@Embed('images/general/leftTitle.png')" />
- <mx:Label text="{resourceManager.getString('labels', 'label.settings')}" styleName="titlePanel" />
- </mx:Canvas>
- <mx:VBox width="100%" height="100%" verticalAlign="top" horizontalAlign="center"
- verticalGap="20" paddingBottom="2" horizontalScrollPolicy="off" verticalScrollPolicy="off">
- <!--mx:Button width="150" height="30" label="{resourceManager.getString('labels', 'label.conditions')}" click="onDisplayConditions()" toolTip="{resourceManager.getString('labels', 'label.conditions.tooltip')}" /-->
- <mx:Button width="150" height="30" label="{resourceManager.getString('labels', 'label.data.export')}" click="exportData()" toolTip="{resourceManager.getString('labels', 'label.data.export.tooltip')}" />
- <mx:Button width="150" height="30" label="{resourceManager.getString('labels', 'label.recommend')}" toolTip="{resourceManager.getString('labels', 'label.feature.available.later')}" />
- <mx:Button width="150" height="30" label="{resourceManager.getString('labels', 'label.parameters')}" toolTip="{resourceManager.getString('labels', 'label.feature.available.later')}" />
- </mx:VBox>
- </mx:VBox>
- </mx:HBox>
-
- <mx:Spacer height="20" />
-
- </mx:VBox>
|