duheng
2024-12-10 26917739c47252ecdc3b8f43eca6ebaf9cba6ac4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace HStation.WinFrmUI
{
    public partial class test : DocumentPage
    {
        public test()
        {
            InitializeComponent();
        }
 
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            SimulationWordReport word = new SimulationWordReport();
            var test1 = new ReportViewModel();
            test1.ValveOpens = new List<ValveOpen>();
            test1.ValveOpens.Add(new ValveOpen { Name = "测试1", MinorLoss = "20" });
            test1.ValveOpens.Add(new ValveOpen { Name = "测试2", MinorLoss = "20" });
            test1.ValveOpens.Add(new ValveOpen { Name = "测试3", MinorLoss = "20" });
            test1.ValveOpens.Add(new ValveOpen { Name = "测试4", MinorLoss = "20" });
 
            word.Create("word.doc", test1);
        }
    }
}