添加项目文件。
This commit is contained in:
102
SamplePreSystem.UI/Views/SOPManager/SopManagerView.xaml.cs
Normal file
102
SamplePreSystem.UI/Views/SOPManager/SopManagerView.xaml.cs
Normal file
@@ -0,0 +1,102 @@
|
||||
using Models.Models;
|
||||
using SamplePre.Models;
|
||||
using SamplePre.Models.Ext;
|
||||
using SamplePreSystem.UI.ViewModel.SopManager;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Navigation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace SamplePre.UIWpf
|
||||
{
|
||||
/// <summary>
|
||||
/// SopManagerView.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class SopManagerView : UserControl
|
||||
{
|
||||
|
||||
SopMangerViewModel sopMangerViewModel = new SopMangerViewModel();
|
||||
public SopManagerView()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.DataContext = sopMangerViewModel;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 删除动作
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btnDelAction_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dataContext = this.DataContext as SopMangerViewModel;
|
||||
dataContext.RemoveAction();
|
||||
}
|
||||
|
||||
private void btnUp_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dataContext = this.DataContext as SopMangerViewModel;
|
||||
dataContext.UpMove();
|
||||
}
|
||||
|
||||
private void btnDown_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dataContext = this.DataContext as SopMangerViewModel;
|
||||
dataContext.DownMove();
|
||||
}
|
||||
|
||||
private void btnUpdateSeq_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
sopMangerViewModel.UpdateSeqno();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改参数
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btnEidtParam_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dataContext = this.DataContext as SopMangerViewModel;
|
||||
dataContext.AddEidtParam();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 新增参数
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btnAddParam_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dataContext = this.DataContext as SopMangerViewModel;
|
||||
dataContext.AddParamShow();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除参数
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void btnDelParam_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var dataContext = this.DataContext as SopMangerViewModel;
|
||||
dataContext.RemoveParam();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user