private void button1_Click(object sender, RoutedEventArgs e) { TubesDetailView _TubesDetailView = new TubesDetailView(); _TubesDetailView.BatchID = new Guid("65dae092-ea75-11e0-a989-001ec94c5271"); _TubesDetailView.ShowDialog(); }
private void OnHyperlinkClick(object sender, RoutedEventArgs e) { int selectedIndex = rotation_dataGrid.SelectedIndex; string TubesBatchID = dataTable.Rows[selectedIndex]["TubesBatchID"].ToString(); TubesDetailView detailView = new TubesDetailView(); detailView.BatchID = new Guid(TubesBatchID); detailView.ShowDialog(); }
private void btn_detail_Click(object sender, RoutedEventArgs e) { // Tubes.Namespace = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); foreach (TubeGroup tubeGroup in dg_TubesGroup.Items) { foreach (string TubesPosition in tubeGroup.TubesPosition.Split(']')) { if (string.IsNullOrEmpty(TubesPosition)) { continue; } string str = TubesPosition.Remove(0, 1); int ColumnIndex = int.Parse(str.Split(',')[0]); int RowIndex = int.Parse(str.Split(',')[1]) - 1; if (DateTime.Parse(Tubes.Rows[RowIndex]["DetailViewTime" + ColumnIndex.ToString()].ToString()) < DateTime.Parse(Tubes.Namespace)) { Tubes.Rows[RowIndex]["DetailView" + ColumnIndex.ToString()] = tubeGroup.TubesGroupName; } else { Tubes.Rows[RowIndex]["DetailView" + ColumnIndex.ToString()] += tubeGroup.TubesGroupName; } Tubes.Rows[RowIndex]["DetailView" + ColumnIndex.ToString()] += " " + tubeGroup.PoolingRulesName; //foreach(TestingItemConfiguration TestItem in tubeGroup.TestingItemConfigurations) // Tubes.Rows[RowIndex]["DetailView" + ColumnIndex.ToString()] += " " + TestItem.TestingItemName; Tubes.Rows[RowIndex]["DetailView" + ColumnIndex.ToString()] += tubeGroup.TestintItemName + ","; Tubes.Rows[RowIndex]["DetailViewTime" + ColumnIndex.ToString()] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); } } Tubes.Namespace = DateTime.Now.AddSeconds(1).ToString("yyyy-MM-dd HH:mm:ss"); TubesDetailView _TubesDetailView = new TubesDetailView(); _TubesDetailView.Tubes = Tubes; _TubesDetailView.ShowDialog(); }