| | |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | string error; |
| | | Yw.Vmo.ProjectMenu _projectMenu = new Yw.Vmo.ProjectMenu(); |
| | | |
| | | private string error; |
| | | private Yw.Vmo.ProjectMenu _projectMenu = new Yw.Vmo.ProjectMenu(); |
| | | |
| | | public async void SetMenuData(Yw.Vmo.ProjectMenu projectMenu) |
| | | { |
| | | error = ""; |
| | |
| | | return; |
| | | } |
| | | } |
| | | |
| | | //确定 |
| | | private async void simpleButtonOK_Click(object sender, EventArgs e) |
| | | { |
| | |
| | | prentid.ParentID = menuData.ParentID; |
| | | prentid.ID = menuData.ID; |
| | | prentid.SortCode = menuData.SortCode; |
| | | if (!sever.UpdateTreeSortCode(prentid)) |
| | | { |
| | | MessageBox.Show("节点修改修改失败!"); |
| | | return; |
| | | } |
| | | /* if (!sever.UpdateTreeSortCode(prentid)) |
| | | { |
| | | MessageBox.Show("节点修改修改失败!"); |
| | | return; |
| | | } |
| | | |
| | | if (!await sever.Update(menuData)) |
| | | { |
| | | MessageBox.Show("修改失败!"); |
| | | return; |
| | | } |
| | | if (!await sever.Update(menuData)) |
| | | { |
| | | MessageBox.Show("修改失败!"); |
| | | return; |
| | | }*/ |
| | | MessageBox.Show("修改成功!"); |
| | | this.DialogResult = DialogResult.OK; |
| | | this.Close(); |
| | | } |
| | | |
| | | //取消 |
| | | private void simpleButtonCancel_Click(object sender, EventArgs e) |
| | | { |