Browse Source

git-svn-id: https://192.168.57.71/svn/jsgkj@756 931142cf-59ea-a443-aa0e-51397b428577

xt_xuhao 8 năm trước cách đây
mục cha
commit
2badfcbabe

+ 2 - 2
gkaq/yjpt-flex/trunk/.actionScriptProperties

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <actionScriptProperties analytics="false" mainApplicationPath="Main.mxml" projectUUID="fe1e1578-3966-4ead-8333-729eba30b1cb" version="10">
-  <compiler additionalCompilerArguments="-services &quot;G:\yjptjs\yjpt\yjpt\WEB-INF\flex\services-config.xml&quot; -locale=en_US,zh_CN -source-path=./locale/{locale} -allow-source-path-overlap=true -keep-all-type-selectors=true" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderLocation="G:/yjptjs/yjpt/bin-debug" outputFolderPath="bin-debug" removeUnusedRSL="true" rootURL="" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
+  <compiler additionalCompilerArguments="-services &quot;E:\code\jsyjpt\yjpt\yjpt\WEB-INF\flex\services-config.xml&quot; -locale=en_US,zh_CN -source-path=./locale/{locale} -allow-source-path-overlap=true -keep-all-type-selectors=true" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderLocation="E:/code/jsyjpt/yjpt/bin-debug" outputFolderPath="bin-debug" removeUnusedRSL="true" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
     <compilerSourcePath>
       <compilerSourcePathEntry kind="1" linkType="1" path="src"/>
       <compilerSourcePathEntry kind="1" linkType="1" path="locale/{locale}"/>
@@ -8,8 +8,8 @@
     <libraryPath defaultLinkType="1">
       <libraryPathEntry kind="4" path="">
         <excludedEntries>
-          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
           <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
+          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/>
         </excludedEntries>
       </libraryPathEntry>
       <libraryPathEntry kind="1" linkType="1" path="libs"/>

+ 1 - 1
gkaq/yjpt-flex/trunk/.flexProperties

@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<flexProperties enableServiceManager="false" flexServerFeatures="4" flexServerType="2" serverContextRoot="/yjpt" serverRoot="G:/yjptjs/yjpt/yjpt" serverRootURL="http://localhost:8080/yjpt" toolCompile="true" useServerFlexSDK="false" version="2"/>
+<flexProperties enableServiceManager="false" flexServerFeatures="4" flexServerType="2" serverContextRoot="/yjpt" serverRoot="E:/code/jsyjpt/yjpt/yjpt" serverRootURL="http://localhost:8080/yjpt" toolCompile="true" useServerFlexSDK="false" version="2"/>

+ 6 - 1
gkaq/yjpt-flex/trunk/.project

@@ -19,12 +19,17 @@
 		<link>
 			<name>bin-debug</name>
 			<type>2</type>
-			<location>G:/yjptjs/yjpt/bin-debug</location>
+			<location>E:/code/jsyjpt/yjpt/bin-debug</location>
 		</link>
 		<link>
 			<name>bin-release</name>
 			<type>2</type>
 			<location>E:/release/yjpt-flex</location>
 		</link>
+		<link>
+			<name>bin-release1</name>
+			<type>2</type>
+			<location>E:/code/jsyjpt/flex_release</location>
+		</link>
 	</linkedResources>
 </projectDescription>

+ 12 - 0
gkaq/yjpt-flex/trunk/.settings/org.eclipse.wst.xsl.core.prefs

@@ -0,0 +1,12 @@
+#Mon Aug 01 16:37:11 CST 2016
+CHECK_CALL_TEMPLATES=2
+CHECK_XPATHS=2
+CIRCULAR_REF=2
+DUPLICATE_PARAMETER=2
+EMPTY_PARAM=1
+MISSING_INCLUDE=2
+MISSING_PARAM=1
+NAME_ATTRIBUTE_EMPTY=2
+NAME_ATTRIBUTE_MISSING=2
+TEMPLATE_CONFLICT=2
+eclipse.preferences.version=1

+ 1 - 0
gkaq/yjpt-flex/trunk/locale/zh_CN/select.properties

@@ -202,6 +202,7 @@ SZD.YANCHENGKAIFAQU=\u7ecf\u6d4e\u5f00\u53d1\u533a
 SZD.DONGTAI=\u4e1c\u53f0\u5e02
 SZD.JIANHU=\u5efa\u6e56\u53bf
 SZD.GKJ.ZHENJIANGNEIHE=\u9547\u6c5f\u5185\u6cb3\u6e2f\u53e3\u5c40
+SZD.TAIXINGNEIHE=\u6cf0\u5174\u5185\u6cb3
 
 T_YJPT_GKWXHWZYFZBLHHZ_CQ_CB=\u627f\u5305
 T_YJPT_GKWXHWZYFZBLHHZ_CQ_ZL=\u79df\u8d41

+ 7 - 1
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/SuperMapMain.mxml

@@ -58,6 +58,7 @@
 			import com.jtgh.yjpt.view.map.YangzhouMap;
 			import com.jtgh.yjpt.view.map.ZhenjiangMap;
 			import com.jtgh.yjpt.view.map.ZhenjiangneiheMap;
+			import com.jtgh.yjpt.view.map.TaixingneiheMap;
 			import com.jtgh.yjpt.vo.sys.MenuVo;
 			
 			import mx.collections.ArrayCollection;
@@ -222,7 +223,12 @@
 						taixingMap.percentWidth=100;
 						mapView.addElement(taixingMap);
 					}
-					
+					if(Global.szd.id.toString().indexOf("90029")==0){
+						var taixingneiheMap:TaixingneiheMap=new TaixingneiheMap();
+						taixingneiheMap.percentHeight=100;
+						taixingneiheMap.percentWidth=100;
+						mapView.addElement(taixingneiheMap);
+					}
 					// 市级部署
 				}
 				/* 浮窗定位 */

+ 123 - 0
gkaq/yjpt-flex/trunk/src/com/jtgh/yjpt/view/map/TaixingneiheMap.mxml

@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="utf-8"?>
+<mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009" 
+		   xmlns:s="library://ns.adobe.com/flex/spark" 
+		   xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" 
+		   initialize="init()"
+		   backgroundColor="#B2D2FE">
+	<fx:Declarations>
+		<!-- 将非可视元素(例如服务、值对象)放在此处 -->
+	</fx:Declarations>
+	<fx:Script>
+		<![CDATA[
+			import com.jtgh.yjpt.common.BusinessContext;
+			import com.jtgh.yjpt.common.Global;
+			import com.jtgh.yjpt.common.util.Constants;
+			import com.jtgh.yjpt.common.util.Utils;
+			import com.jtgh.yjpt.model.map.Shape;
+			import com.jtgh.yjpt.view.SuperMapMain;
+			import com.jtgh.yjpt.view.access.Aqzrr;
+			import com.jtgh.yjpt.view.workflow.component.util.ImagesDataLoader;
+			import com.jtgh.yjpt.view.workflow.component.util.ImagesInfo;
+			import com.jtgh.yjpt.view.yjgl.zdwxyfb.xxlr.SuperMap;
+			import com.jtgh.yjpt.vo.access.UserVo;
+			
+			import flash.net.navigateToURL;
+			
+			import mx.collections.ArrayCollection;
+			import mx.controls.Alert;
+			import mx.core.UIComponent;
+			import mx.effects.Glow;
+			import mx.events.CloseEvent;
+			import mx.graphics.SolidColor;
+			import mx.graphics.SolidColorStroke;
+			import mx.managers.PopUpManager;
+			import mx.rpc.events.ResultEvent;
+			
+			import spark.components.Image;
+			import spark.components.Label;
+			import spark.primitives.Path;
+			private var glow:Glow;
+			private var urlLoader:URLLoader = new URLLoader();
+			private var tip:TipWindow=new TipWindow();
+			private var tipFlag:Boolean=false;
+			private var imgX:Number=0;
+			private var imgY:Number=0;
+			private var tipFlag1:Boolean=false;
+			private var img1X:Number=0;
+			private var img1Y:Number=0;
+			[Bindable]
+			private var shapes:ArrayCollection = new ArrayCollection();
+			/* 初始化 */
+			private function init():void{
+				/* 初始化效果 */
+				var mapMain:SuperMapMain = this.parentDocument as SuperMapMain;
+				//				mapMain.aqzrr.visible = false;
+				/* 加载标点信息 */
+				var loader:ImagesDataLoader = new ImagesDataLoader();
+				loader.load("resource/custom_map/gq-data-suqian.xml", gkDataLoadComplete);
+				
+				
+			}
+			
+			
+			private var gkData:ArrayCollection;
+			/**
+			 * 标点图片数据加载完成
+			 */
+			private function gkDataLoadComplete(imagesData:ArrayCollection):void{
+				gkData = new ArrayCollection();
+				var img:Image;
+				var lbl:Label;
+				for(var i:int=0; i<imagesData.length; i++){
+					var imgInfo:ImagesInfo = imagesData[i] as ImagesInfo;
+					img = new Image();
+					img.name=imgInfo.name;
+					img.x=imgInfo.x;
+					img.y=imgInfo.y;
+					img.source = imgInfo.bitmapData;
+					img.alpha=0;
+					//
+					img.addEventListener(MouseEvent.CLICK, imgOnClick);
+					
+					//
+					gkData.addItem(img);
+					map.addElement(img);
+					
+				}
+			}
+			/* 区域切片点击处理 */
+			private function imgOnClick(event:MouseEvent):void{
+				//trace(event.target);
+				var ui:UIComponent = event.target as UIComponent;
+				var img:Image = ui.parent as Image;// img 
+				if(imgX==img.x&&imgY==img.y&&tipFlag){
+					map.removeElement(tip);
+					tipFlag=false;
+					imgX=0;
+					imgY=0;
+				}
+				else{
+					imgX=img.x;
+					imgY=img.y;
+					tip.target = img;
+					tip.data = img.name;
+					tip.closeFn=function(tip:TipWindow):void{
+						map.removeElement(tip);
+						tipFlag=false;
+					};
+					tip.doQuery();
+					if(tip.aqsssbList)
+						tip.initTip();
+					tip.moveTip();
+					if(!tipFlag){
+						map.addElement(tip);
+						tipFlag=true;
+					}
+				}
+			}
+		]]>
+	</fx:Script>
+	<s:BorderContainer id="map" left="0" top="60" bottom="0" right="0" borderVisible="false">
+		<s:Image width="100%" height="100%" source="resource/yjpt/map/taixingneihe.jpg" fillMode="clip" />
+	</s:BorderContainer>
+</mx:Canvas>

BIN
gkaq/yjpt-flex/trunk/src/resource/yjpt/map/taixingneihe.jpg