/// <summary> /// 智能匹配控件的构造函数 /// </summary> public ZhinengPipeiUserControl() { InitializeComponent(); dc_gjc_dt = MainWindow.dc_gjc_dt; dc_gjc_ta = MainWindow.dc_gjc_ta; dc_dt = MainWindow.dc_dt; dc_ta = MainWindow.dc_ta; dc_ta.Adapter.RowUpdated += Adapter_RowUpdated; dy_dt = MainWindow.dy_dt; dy_ta = MainWindow.dy_ta; dy_gjc_dt = MainWindow.dy_gjc_dt; dy_gjc_ta = MainWindow.dy_gjc_ta; yd_dt = MainWindow.yd_dt; yd_ta = MainWindow.yd_ta; gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; gjc_ta.Adapter.RowUpdated += Adapter_RowUpdated; //shoujiComboBox.SelectedItem = lblDc; allRadioButton.IsChecked = true; }
public ProjectMappingUserControl() { InitializeComponent(); xm_dt = MainWindow.xm_dt; xm_ta = MainWindow.xm_ta; xm_gjc_dt = MainWindow.xm_gjc_dt; xm_gjc_ta = MainWindow.xm_gjc_ta; fz_dt = MainWindow.fz_dt; fz_ta = MainWindow.fz_ta; wjwz_dt = MainWindow.wjwz_dt; wjwz_ta = MainWindow.wjwz_ta; gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; tpcz_dt = MainWindow.tpcz_dt; tpcz_ta = MainWindow.tpcz_ta; wz_dt = MainWindow.wz_dt; wz_ta = MainWindow.wz_ta; var data = from xm in xm_dt select xm; projectDataGrid.ItemsSource = data; projectDataGrid.CanUserAddRows = false; projectDataGrid.CanUserDeleteRows = false; }
public ParagraphResourceClass() { yd_gjc_dt = MainWindow.yd_gjc_dt; yd_gjc_ta = MainWindow.yd_gjc_ta; gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; yd_dt = MainWindow.yd_dt; yd_ta = MainWindow.yd_ta; }
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"; }
string path_wz; //文章路径 #endregion #region 构造函数 /// <summary> /// 加载数据库 /// </summary> protected void LoadDataBase() { yd_dt = MainWindow.yd_dt; yd_ta = MainWindow.yd_ta; yd_ta.Adapter.RowUpdated += Adapter_RowUpdated; yd_gjc_dt = MainWindow.yd_gjc_dt; yd_gjc_ta = MainWindow.yd_gjc_ta; gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; wz_gjc_dt = MainWindow.wz_gjc_dt; wz_gjc_ta = MainWindow.wz_gjc_ta; xm_gjc_dt = MainWindow.xm_gjc_dt; xm_gjc_ta = MainWindow.xm_gjc_ta; wz_dt = MainWindow.wz_dt; }
public ReferUserControl(string _type) { type = _type; InitializeComponent(); scienceResearchKey = MainWindow.scienceResearchKey; gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; gjc_ta.Adapter.RowUpdated += Adapter_RowUpdated; dc_dt = MainWindow.dc_dt; dc_ta = MainWindow.dc_ta; dc_ta.Adapter.RowUpdated += Adapter_RowUpdated; dc_gjc_dt = MainWindow.dc_gjc_dt; dc_gjc_ta = MainWindow.dc_gjc_ta; color_mode = ColorManager.color_mode_word; color_black = Colors.Black; }
/// <summary> /// 构造函数 /// </summary> public KeywordTreeUserControl() { InitializeComponent(); gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; gjc_ta.Adapter.RowUpdated += Adapter_RowUpdated; dc_dt = MainWindow.dc_dt; dc_ta = MainWindow.dc_ta; dc_ta.Adapter.RowUpdated += Adapter_RowUpdated; 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_ta.Adapter.RowUpdated += Adapter_RowUpdated; dy_gjc_dt = MainWindow.dy_gjc_dt; dy_gjc_ta = MainWindow.dy_gjc_ta; creat_tree(); linkComboBox.SelectedItem = lblKeywordMapping; }
public ProjectLiteratureUserControl() { InitializeComponent(); gjc_dt = MainWindow.gjc_dt; gjc_ta = MainWindow.gjc_ta; xm_gjc_dt = MainWindow.xm_gjc_dt; xm_gjc_ta = MainWindow.xm_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; if (MainWindow.projectId != -1) { SetKeyword(); } keywordList = new ObservableCollection <Keyword>(); keywordSelectedDataGrid.ItemsSource = keywordList; projectPaperRadioButton.IsChecked = true; }
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(); } }
public WriteReferUserControl(int _paperId) { InitializeComponent(); yd_dt = MainWindow.yd_dt; yd_ta = MainWindow.yd_ta; yd_gjc_dt = MainWindow.scienceResearchDataSetNew.语段_关键词; yd_gjc_ta = new ScienceResearchDataSetNewTableAdapters.语段_关键词TableAdapter(); gjc_dt = MainWindow.scienceResearchDataSetNew.关键词; gjc_ta = new ScienceResearchDataSetNewTableAdapters.关键词TableAdapter(); //每个语段对应一个文本框 paperId = _paperId; if (paperId != -1) { //存储语段和关键词数据 paragraphIdKeywords = new List <ParagraphIdKeyword>(); var yd_paper = from yd in yd_dt where yd.文章ID == paperId orderby yd.排序 ascending select yd; foreach (var yd in yd_paper) { int yd_id = yd.ID; var gjc_yd = from yd_gjc in yd_gjc_dt join gjc in gjc_dt on yd_gjc.关键词ID equals gjc.ID where yd_gjc.语段ID == yd.ID select new Keyword { 关键词 = gjc.关键词 }; if (gjc_yd.Count() == 0) { paragraphIdKeywords.Add(new ParagraphIdKeyword(yd.ID, null)); } else { foreach (var gjc in gjc_yd) { paragraphIdKeywords.Add(new ParagraphIdKeyword(yd.ID, gjc.关键词)); } } } startPoint = 0; sectionLength = 2; length = paragraphIdKeywords.Count; int page = length / sectionLength + 1; pageTextBlock.Text = "/" + page; pageTextBox.Text = 1.ToString(); //载入初始页面 if (length != 0) { pageLoad(startPoint, sectionLength); } } }