Exemplo n.º 1
0
        private void PagerPage_DBClick(object sender, MouseButtonEventArgs e)
        {
            DirPagerCustom dirPagerCustom = (sender as GridControl).CurrentItem as DirPagerCustom;

            if (dirPagerCustom != null)
            {
                DirAna(dirPagerCustom.Dir);
            }
        }
Exemplo n.º 2
0
        public ZJDDataSourcePage()
        {
            InitializeComponent();
            model = SoftwareConfig.GetRedis <ZJDDataSourceViewModel>(ZJDDataSourceViewModel.RedisKey);


            pagerPage.SetPagerPage <DirPagerCustom>(model.DirPagerCustoms, DirPagerCustom.GetFieldCustoms());
            pagerPage.HideFloot();
            this.DataContext = model;
            pagerPage.AddObject(model.DirPagerCustoms);
            this.pagerPageGird.Children.Add(pagerPage);
            pagerPage.GetTabGrid().MouseDoubleClick += PagerPage_DBClick;
        }
Exemplo n.º 3
0
        private void DirAna(string dir)
        {
            if (!MyUtils.Utils.CheckDirExists(dir))
            {
                return;
            }
            model.JTCYTablePath = "";
            model.JSYDTablePath = "";
            model.NFTablePath   = "";
            model.ZdinfoMDBPath = "";
            model.QZ_BSMDBPath  = "";

            DirPagerCustom dirPagerCustom = new DirPagerCustom(dir);

            pagerPage.AddObject(dirPagerCustom);

            DirClass dirClass = new DirClass(dir);

            foreach (string path in dirClass.FindFileAll())
            {
                string name = System.IO.Path.GetFileName(path);
                if (name.Contains("家庭"))
                {
                    model.JTCYTablePath = path;
                }
                else if (name.Contains("建设"))
                {
                    model.JSYDTablePath = path;
                }
                else if (name.Contains("房"))
                {
                    model.NFTablePath = path;
                }
                else if (name.Contains("宗地") && name.EndsWith(".mdb"))
                {
                    model.ZdinfoMDBPath = path;
                }
                else if (name.Contains("两表") && name.EndsWith(".mdb"))
                {
                    model.QZ_BSMDBPath = path;
                }
                else if (name.Contains("地籍") && name.EndsWith(".dwg"))
                {
                    model.DWGPath = path;
                }
            }
        }