示例#1
0
        public MapForm()
        {
            ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
            InitializeComponent();

            m_menuMap = new ToolbarMenuClass();

            //添加事件
            AddEnvet();
            mapControlTemp           = this.axMapControl1;
            ArcGisUtils.axMapControl = this.axMapControl1;

            ArcGisUtils.axPageLayoutControl = PageLayoutForm.GetInstance().GetAxPageLayoutControl();
            //检查数据库以前是否有
            SoftwareConfig mxdConfig = SoftwareConfig.FindConfig(JTSYQMxdPathReids);

            if (mxdConfig != null)
            {
                if (this.axMapControl1.CheckMxFile(mxdConfig.Value))
                {
                    LoadMXD(mxdConfig.Value);
                    ArcGisUtils.MXDPath = mxdConfig.Value;
                }
                else
                {
                    SoftwareConfig.Delete(JTSYQMxdPathReids);
                }
            }
        }
示例#2
0
        public static ExportDataPageViewModel GetRedis()
        {
            SoftwareConfig config = SoftwareConfig.FindConfig(ExportDataPageRides);

            if (config != null)
            {
                ExportDataPageViewModel model = JObejctReflect.ToObejct <ExportDataPageViewModel>(config.Value);
                return(model);
            }
            else
            {
                return(new ExportDataPageViewModel());
            }
        }
示例#3
0
        public static FileConfigPageViewModel GetRedis()
        {
            SoftwareConfig config = SoftwareConfig.FindConfig(FileConfigPageRides);

            if (config != null)
            {
                FileConfigPageViewModel model = JObejctReflect.ToObejct <FileConfigPageViewModel>(config.Value);
                if (!MyUtils.Utils.CheckFileExists(model.PhotoExcelPath))
                {
                    model.PhotoExcelPath = "";
                }

                return(model);
            }
            else
            {
                return(new FileConfigPageViewModel());
            }
        }