| | |
| | | using DevExpress.XtraEditors; |
| | | using HStation.Vmo; |
| | | using Mapster; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using Yw.WinFrmUI; |
| | | using Yw.WinFrmUI; |
| | | |
| | | namespace HStation.WinFrmUI.Auth |
| | | { |
| | |
| | | |
| | | private void treeList_CustomUnboundColumnData(object sender, DevExpress.XtraTreeList.TreeListCustomColumnDataEventArgs e) |
| | | { |
| | | if(e.Column == treeListColumnType) |
| | | if (e.Column == treeListColumnType) |
| | | { |
| | | var employee = e.Row as HStation.Vmo.EmployeeMain; |
| | | var Type = e.Row as HStation.WinFrmUI.Auth.MenuViewModel; |
| | |
| | | MessageBox.Show("错误!"); |
| | | return; |
| | | } |
| | | if(Type.Type == 0) |
| | | if (Type.Type == 0) |
| | | { |
| | | e.Value = "菜单"; |
| | | } |
| | | else if(Type.Type == 1) |
| | | else if (Type.Type == 1) |
| | | { |
| | | e.Value = "目录"; |
| | | }else if(Type.Type == 2) |
| | | } |
| | | else if (Type.Type == 2) |
| | | { |
| | | e.Value = "功能点"; |
| | | } |
| | |
| | | return; |
| | | } |
| | | } |
| | | if (e.Column == treeListColumnWeight) |
| | | if (e.Column == treeListColumnWeight) |
| | | { |
| | | var Weight = e.Row as HStation.WinFrmUI.Auth.MenuViewModel; |
| | | if(Weight == null) |
| | | if (Weight == null) |
| | | { |
| | | MessageBox.Show("错误!"); |
| | | return; |