123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/mx"
- xmlns:service="com.jtgh.yjpt.common.service.*"
- xmlns:access="com.jtgh.yjpt.view.access.*"
- xmlns:common="com.jtgh.yjpt.common.*"
- xmlns:core="com.jtgh.yjpt.view.core.*"
- initialize="appInit(event)">
- <fx:Metadata>
- [ResourceBundle("common")]
- [ResourceBundle("system")]
- [ResourceBundle("menu")]
- [ResourceBundle("select")]
- [ResourceBundle("module")]
- [ResourceBundle("yjgl")]
- [ResourceBundle("sgalgl")]
- [ResourceBundle("zysqbp")]
- [ResourceBundle("jlrxxgl")]
- [ResourceBundle("yjzyxxgl")]
- [ResourceBundle("aqsszxys")]
- [ResourceBundle("bagl")]
- [ResourceBundle("check")]
- [ResourceBundle("task")]
- [ResourceBundle("aqsc")]
- [ResourceBundle("gq")]
- [ResourceBundle("author")]
- [ResourceBundle("workflow")]
- [ResourceBundle("gkjsxmaqsc")]
- [ResourceBundle("Gkwxhwzyfzblhhz")]
- [ResourceBundle("fileType")]
- [ResourceBundle("qlyg")]
- [ResourceBundle("gg")]
- </fx:Metadata>
- <fx:Style>
- @namespace s "library://ns.adobe.com/flex/spark";
- @namespace mx "library://ns.adobe.com/flex/mx";
- @namespace ui "com.jtgh.yjpt.common.component.ui.*";
- mx|ToolTip{
- fontSize:14;
- }
- mx|Alert
- {
- title-style-name:alertTitle;
- buttonStyleName:alertButton;
- borderSkin:ClassReference("skins.AlertBorderSkin");
- }
- .alertTitle
- {
- show-border:false;
- show-shadow:false;
- color:#ffffff;
- font-weight:bold;
- font-size:16;
- }
- mx|Button.alertButton {
- upSkin: Embed('/resource/yjpt/list/btn.png');
- downSkin: Embed("/resource/yjpt/list/btn_hover.png");
- overSkin: Embed("/resource/yjpt/list/btn_hover.png");
- disabledSkin: Embed("/resource/yjpt/list/btn.png");
- }
- .AccordionHeader
- {
- skin:ClassReference("skins.cus.AccordionSkin");
- }
- mx|AccordionHeader{
- chrome-color:#ffffff ;
- color: #148fa2;
- fontFamily:"微软雅黑" ;
- fontWeight: bold;
- fontSize:14;
- paddingLeft:20;
- textSelectedColor:"0x23A5B8";
- text-roll-over-color:"0x23A5B8" ;
- textAlign: "left";
- selectedFillColors:"0x23A5B8","0x23A5B8";
- }
- mx|LegendItem{
- fontFamily:"宋体";
- fontSize:12;
- color:#000000;
- fontWeight:normal;
- }
- mx|AxisRenderer{
- fontFamily:"微软雅黑";
- fontSize:14;
- color:#000000;
- fontWeight:normal;
- canStagger:false;
- kerning:true;
- }
- @font-face
- {
- src:url("resource/yjpt/font/hzgbSimple.ttf");
- fontFamily: hzgb;
- embedAsCFF: false;
- }
- </fx:Style>
- <fx:Script>
- <![CDATA[
- import com.jtgh.yjpt.common.BusinessContext;
- import com.jtgh.yjpt.common.Global;
- import com.jtgh.yjpt.common.component.ui.MapView;
- import com.jtgh.yjpt.common.util.Constants;
- import com.jtgh.yjpt.common.util.Utils;
- import com.jtgh.yjpt.model.SystemModel;
- import com.jtgh.yjpt.view.SuperMapMain;
- import com.jtgh.yjpt.view.Workspace;
- import com.jtgh.yjpt.vo.access.UserVo;
- import com.jtgh.yjpt.vo.common.CodeVo;
- import com.jtgh.yjpt.vo.sys.MenuVo;
-
- import mx.controls.Alert;
- import mx.core.FlexGlobals;
- import mx.events.FlexEvent;
- import mx.managers.BrowserManager;
- import mx.rpc.events.ResultEvent;
- import mx.utils.Base64Decoder;
- import mx.utils.Base64Encoder;
- protected function appInit(event:FlexEvent):void
- {
- Alert.buttonWidth=58;
- Alert.buttonHeight=28;
- BrowserManager.getInstance().setTitle(resourceManager.getString('common','login.title'));
- SystemModel.getInstance().setMainPane(mainPane);
- Utils.callRemote("authenticateController","checkSession",resultCallBack);
- }
- public function showMap():void
- {
- var map:MapView = Global.mapView;
- map.source = "gis/Main.html?from=yjpt";
- if(Global.deployMode==Constants.DEPLOY_MODE_1)
- {
- var szd:String = Global.szd.localeName;
- if(szd.indexOf("内河")>0)
- {
- szd = szd.replace("内河","市");
- }else{
- szd =szd+"市";
- }
- var url:String = "&action=location&layer=L_ID_SJ&name="+encodeURIComponent(szd);
- // map.source+=url; 地市定位会有遮罩,所以去掉
- }
- Utils.popupWindow(resourceManager.getString('common','btn.showMap'),Global.mapView,FlexGlobals.topLevelApplication as DisplayObject,null,0,0);
- map.iframe.visible=true;
- }
- private function resultCallBack(r:ResultEvent):void{
- var bc:BusinessContext = r.result as BusinessContext;
- if(bc.getAttribute("status"))
- {
- SystemModel.doLoginSuccess(bc);
- }
- else
- {
- Global.szd = bc.getAttribute("szd") as CodeVo;
- Global.deploySzd = bc.getAttribute("szd") as CodeVo;
- Global.deployMode = bc.getAttribute("deployMode") as String;
- Global.upload_file_size=bc.getAttribute("uploadFileSize") as Number;
- Global.upload_image_size=bc.getAttribute("uploadImageSize") as Number;
- Global.btyyj=bc.getAttribute("btyyj") as String;
- Global.thyj=bc.getAttribute("thyj") as String;
- Global.version=bc.getAttribute("version") as String;
- var defaultUser:UserVo = bc.getAttribute("user") as UserVo;
- login.NeedCheckCode=true;
- if(defaultUser !=null){
- login.username.text = defaultUser.code;
- login.password.text = defaultUser.password;
- login.NeedCheckCode=false;
- }
- this.login.visible=true;
- login.username.setFocus();
- }
- }
- ]]>
- </fx:Script>
- <fx:Declarations>
- <!-- 将非可视元素(例如服务、值对象)放在此处 -->
- <service:Service/>
- <common:ClassRegistry/>
- </fx:Declarations>
- <s:Group id="mainPane" width="100%" height="100%">
- <core:LoginPanel id="login" visible="false"/>
- </s:Group>
- </s:Application>
|