|
|
@ -38,23 +38,7 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
if (sql != null) Grid.ItemsSource = sql.Tables[0].DefaultView; //转换显示计划表
|
|
|
if (sql != null) Grid.ItemsSource = sql.Tables[0].DefaultView; //转换显示计划表
|
|
|
|
|
|
|
|
|
SQLiteHelpers.Close(); //关闭连接
|
|
|
SQLiteHelpers.Close(); //关闭连接
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void ProgramgroupView_edit_Click(object sender, RoutedEventArgs e) |
|
|
|
|
|
{ |
|
|
|
|
|
/*if (Programgroup_ID == null) return; |
|
|
|
|
|
|
|
|
|
|
|
container.Content = new ProgramstepsView();*/ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static string Programgroup_Numder { get; set; } |
|
|
public static string Programgroup_Numder { get; set; } |
|
|
public static string Programgroup_ID { get; set; } |
|
|
public static string Programgroup_ID { get; set; } |
|
|
@ -75,7 +59,13 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
|
|
|
|
|
|
private void Grid_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)//双击表格编辑事件
|
|
|
private void Grid_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)//双击表格编辑事件
|
|
|
{ |
|
|
{ |
|
|
|
|
|
int rownum = Grid.SelectedIndex;//获取鼠标选中行并定义变量
|
|
|
|
|
|
if (rownum != -1)//判断鼠标定位是否有效
|
|
|
|
|
|
{ |
|
|
|
|
|
Programgroup_ID = (Grid.Columns[0].GetCellContent(Grid.Items[rownum]) as TextBlock).Text;//定位第0列,
|
|
|
|
|
|
Programgroup_Numder = (Grid.Columns[1].GetCellContent(Grid.Items[rownum]) as TextBlock).Text;//定位第1列,
|
|
|
|
|
|
container.Content = new ProgramstepsView();//打开步设置
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void ListViewItem_New(object sender, System.Windows.Input.MouseButtonEventArgs e) |
|
|
private void ListViewItem_New(object sender, System.Windows.Input.MouseButtonEventArgs e) |
|
|
@ -116,6 +106,8 @@ namespace SunlightCentralizedControlManagement_SCCM_.View |
|
|
Rename.IsEnabled = false; |
|
|
Rename.IsEnabled = false; |
|
|
Remark.IsEnabled = false; |
|
|
Remark.IsEnabled = false; |
|
|
Delete.IsEnabled = false; |
|
|
Delete.IsEnabled = false; |
|
|
|
|
|
if (Programgroup_ID == null) return; |
|
|
|
|
|
container.Content = new ProgramstepsView(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void ListViewItem_Rename(object sender, System.Windows.Input.MouseButtonEventArgs e)//重命名
|
|
|
private void ListViewItem_Rename(object sender, System.Windows.Input.MouseButtonEventArgs e)//重命名
|
|
|
|