string keywordSource; //关键词来源,all——数据表,shaixuan——筛选 public KeywordMappingUserControl() { InitializeComponent(); gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; dc_dt = MainWindow.dc_dt; dc_ta = MainWindow.dc_ta; dc_gjc_dt = MainWindow.dc_gjc_dt; dc_gjc_ta = MainWindow.dc_gjc_ta; dy_dt = MainWindow.dy_dt; dy_ta = MainWindow.dy_ta; dy_gjc_dt = MainWindow.dy_gjc_dt; dy_gjc_ta = MainWindow.dy_gjc_ta; jx_dt = MainWindow.jx_dt; jx_ta = MainWindow.jx_ta; jx_gjc_dt = MainWindow.jx_gjc_dt; jx_gjc_ta = MainWindow.jx_gjc_ta; yd_dt = MainWindow.yd_dt; yd_ta = MainWindow.yd_ta; yd_gjc_dt = MainWindow.yd_gjc_dt; yd_gjc_ta = MainWindow.yd_gjc_ta; wz_dt = MainWindow.wz_dt; wz_ta = MainWindow.wz_ta; wz_gjc_dt = MainWindow.wz_gjc_dt; wz_gjc_ta = MainWindow.wz_gjc_ta; xm_dt = MainWindow.xm_dt; xm_ta = MainWindow.xm_ta; xm_gjc_dt = MainWindow.xm_gjc_dt; xm_gjc_ta = MainWindow.xm_gjc_ta; tp_dt = MainWindow.tp_dt; tp_ta = MainWindow.tp_ta; tp_gjc_dt = MainWindow.tp_gjc_dt; tp_gjc_ta = MainWindow.tp_gjc_ta; tpcz_dt = MainWindow.tpcz_dt; tpcz_ta = MainWindow.tpcz_ta; tpcz_gjc_dt = MainWindow.tpcz_gjc_dt; tpcz_gjc_ta = MainWindow.tpcz_gjc_ta; //var data = from gjc in gjc_dt // select gjc; //keywordDataGrid.ItemsSource = data; keywordDataGrid.ItemsSource = gjc_dt.DefaultView; keywordSource = "all"; }
public FigureCreateUserControl() { InitializeComponent(); tpcz_dt = MainWindow.tpcz_dt; tpcz_ta = MainWindow.tpcz_ta; gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; tpcz_gjc_dt = MainWindow.tpcz_gjc_dt; tpcz_gjc_ta = MainWindow.tpcz_gjc_ta; tp_dt = MainWindow.tp_dt; tp_ta = MainWindow.tp_ta; tp_gjc_dt = MainWindow.tp_gjc_dt; tp_gjc_ta = MainWindow.tp_gjc_ta; yd_dt = MainWindow.yd_dt; yd_ta = MainWindow.yd_ta; yd_gjc_dt = MainWindow.yd_gjc_dt; yd_gjc_ta = MainWindow.yd_gjc_ta; if (MainWindow.projectId != -1) { SetFigureWrite(); } }