public WordReplacePage() { InitializeComponent(); model = SoftwareConfig.GetRedis <WordReplacePageViewModel>(WordReplacePageViewModel.RedisKey); model.Fileter = FileUtils.WordFileter; this.DataContext = model; //if(model.ReplaceViewModels == null) //{ // //} model.ReplaceViewModels = new ObservableCollection <ReplaceViewModel>(); replacePagerPage.SetPagerPage <ReplaceViewModel>(model.ReplaceViewModels, ReplaceCustom.GetWordReplaceFieldCustoms(), true); replacePagerPage.HideFloot(); ReplacePagerPageGrid.Children.Add(replacePagerPage); addFilePage.Init(model, model.Fileter); ContextMenu menu = new ContextMenu(); MenuItem lookOldEmploeeItem = new MenuItem(); lookOldEmploeeItem.Header = "删除"; lookOldEmploeeItem.Click += DeleteItem_Click; menu.Items.Add(lookOldEmploeeItem); replacePagerPage.ContextMenu = menu; }
public ExcelMergePage() { InitializeComponent(); model = SoftwareConfig.GetRedis <ExcelMergeModel>(ExcelMergeModel.RedisKey); this.DataContext = model; //filePagerPage.SetPagerPage<FileNameCustom>(model.FileNameCustoms, FileNameCustom.GetFieldCustoms()); filePagerPage.Init(model, FileUtils.ExcelFileter); }
public TifToImagePage() { InitializeComponent(); MapForm mapForm = MapForm.GetInstance(); axMapControl = MapForm.GetAxMapControl(); model = SoftwareConfig.GetRedis <TifToImageViewModel>(TifToImageViewModel.RedisKey); filePagerPage.Init(model, "TIF|*.tif;"); this.DataContext = model; }
public ZJDExportDataPage(ZJDDataSourceViewModel DataSourceViewModel) { InitializeComponent(); var jsydCustom = JSYDPagerPageViewModel.GetViewModel(zjdController.GetJSYD(DataSourceViewModel)); pagerPage.SetPagerPage <JSYDPagerPageViewModel>(jsydCustom, JSYDPagerPageViewModel.GetFieldCustoms(), true, true); pagerPage.SetDataSourceViewModel(DataSourceViewModel); model = SoftwareConfig.GetRedis <ZJDExportDataViewModel>(ZJDExportDataViewModel.RedisKey); this.DataContext = model; }
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; }
public ExcelReplacePage() { InitializeComponent(); model = SoftwareConfig.GetRedis <RepalcePageViewModel>(RepalcePageViewModel.RedisKey); this.DataContext = model; //IList<ReplaceViewModel> test = new List<ReplaceViewModel>(); //test.Add(new ReplaceViewModel { OldText = "1", NewText = "345", Rel = Relation.Contains }); //model.ReplaceViewModels = test; replacePagerPage.SetPagerPage <ReplaceViewModel>(model.ReplaceViewModels, ReplaceCustom.GetFieldCustoms(), true); replacePagerPage.HideFloot(); ReplacePagerPageGrid.Children.Add(replacePagerPage); filePagerPage.Init(model, FileUtils.ExcelFileter); }
public JTSYQCheckDataPage() { InitializeComponent(); model = SoftwareConfig.GetRedis <JTSYQCheckDataViewModel>(JTSYQCheckDataViewModel.RedisKey); this.DataContext = model; }