using Yw.WinFrmUI;
|
|
namespace HStation.WinFrmUI.Auth
|
{
|
public partial class ShowCorpRoleInfoCtrl : DevExpress.XtraEditors.XtraUserControl
|
{
|
public ShowCorpRoleInfoCtrl()
|
{
|
InitializeComponent();
|
}
|
|
List<Yw.Vmo.Role> _CorprationName = new List<Yw.Vmo.Role>();
|
public void SetCorprationName(List<Yw.Vmo.Role> role)
|
{
|
_CorprationName.Clear();
|
_CorprationName = role;
|
|
listBoxControl.DataSource = _CorprationName;
|
listBoxControl.DisplayMember = "CorpID";
|
}
|
public Yw.Vmo.Role GetCorprationName(out string error)
|
{
|
error = "";
|
var currentVm = this.listBoxControl.GetCurrentViewModel(_CorprationName);
|
if (currentVm == null)
|
{
|
error = "请选择数据行!";
|
return null;
|
}
|
return currentVm;
|
}
|
class data
|
{
|
}
|
}
|
}
|