|
@@ -7,6 +7,9 @@
|
|
|
<fx:Script>
|
|
|
<![CDATA[
|
|
|
import com.jtgh.yjpt.common.Global;
|
|
|
+
|
|
|
+ import mx.formatters.DateFormatter;
|
|
|
+
|
|
|
import com.jtgh.yjpt.common.util.Utils;
|
|
|
|
|
|
import mx.events.CloseEvent;
|
|
@@ -14,8 +17,15 @@
|
|
|
import mx.resources.ResourceManager;
|
|
|
[Bindable]
|
|
|
public var thisView:PassWordYxq;
|
|
|
+ [Bindable]
|
|
|
+ public var arr:Array = new Array;
|
|
|
protected function creationCompleteHandler(event:FlexEvent):void
|
|
|
{
|
|
|
+ var forString:String="YYYY-MM-DD";
|
|
|
+ var format:DateFormatter=new DateFormatter();
|
|
|
+ format.formatString=forString;
|
|
|
+ arr[0]=format.format(Global.user.pdyxq);
|
|
|
+ tx.text=' '+resourceManager.getString('common','password.yxq',arr);
|
|
|
}
|
|
|
|
|
|
protected function doChange(event:MouseEvent):void{
|
|
@@ -35,7 +45,7 @@
|
|
|
]]>
|
|
|
</fx:Script>
|
|
|
<s:VGroup width="100%" height="100%" horizontalAlign="center" verticalAlign="middle" top="10" bottom="10" >
|
|
|
- <s:Label id="tx" text="{' '+resourceManager.getString('common','password.yxq')}" width="100%" />
|
|
|
+ <s:Label id="tx" text="{' '+resourceManager.getString('common','password.yxq',arr)}" width="100%" />
|
|
|
<s:Group height="100%"/>
|
|
|
<s:HGroup width="100%" height="40" horizontalAlign="center">
|
|
|
<s:Button id="saveBtn" label="修改" click="doChange(event)" enabled="true" skinClass="skins.cus.ButtonSkin"/>
|