string[] select_everytime = new string[] { "事件主旨", "志工姓名", "運用單位", "通報時間", "結案時間", "志工督導" }; //常用輸出項目 public Abnormal_event_analysis_View() { InitializeComponent(); choose_unit_analysis_ViewModel choose_Unit_Analysis_ViewModel = new choose_unit_analysis_ViewModel(); List <string> event_categorys = choose_Unit_Analysis_ViewModel.Selectevent_category(); this.cbb_category.ItemsSource = event_categorys; this.dp_startdate.SelectedDate = DateTime.Now.Date.AddMonths(-3); this.dp_enddate.SelectedDate = DateTime.Now.Date; }
public choose_unit_analysis_View() { InitializeComponent(); choose_unit_analysis_ViewModel choose_Unit_Analysis_ViewModel = new choose_unit_analysis_ViewModel(); List<string> unit_Names = choose_Unit_Analysis_ViewModel.SelectApplication_unit_Name(); foreach (var row in unit_Names) { Unit_Name_lists.Add(new Application_unit_Name() { 運用單位 = row }); } this.dg_unit_analysis.ItemsSource = Unit_Name_lists; }