1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| namespace HStation.WinFrmUI.Xhs
| {
| public partial class AddProjectDlg : DevExpress.XtraEditors.XtraForm
| {
| public AddProjectDlg()
| {
| InitializeComponent();
| }
|
| //数据验证
| private bool Valid()
| {
| return false;
| }
|
| //确定
| private async void BtnOk_Click(object sender, EventArgs e)
| {
| if (!Valid())
| return;
| var bll = new BLL.XhsProjectExtensions();
| var all = await bll.GetAll();
| await bll.Insert(new Vmo.Xhs.XhsProjectExtensions
| {
| Address = "详细地址",
| SiteList = new List<Vmo.Xhs.XhsProjectSite>()
| {
| new Vmo.Xhs.XhsProjectSite
| {
| Name ="测试名称",
| Description ="测试说明"
| }
| }
| });
| }
| }
| }
|
|