private void BindData() { var userId = WebParmKit.GetRequestString("key", 0); if (userId > 0) { var model = _userBus.QueryModel("Id=" + userId); if (model != null) { BindKit.BindModelToContainer(this.editor, model); //this.Account.ReadOnly = true; var data = _dataBus.QueryModel("UserAccount='" + model.Account + "'"); if (data != null) { BindKit.BindModelToContainer(this.editor, data); this.Id.Value = model.Id.ToString(); } } } BindKit.BindToListControl(this.Partner, _dibbus.Query(" GroupCode ='partner' and IsEnabled =1"), "Name", "Name"); }
private void BindData() { var userId = ConvertKit.ConvertValue(this.Id.Value, 0); if (userId > 0) { var model = _userBus.QueryModel("Id=" + userId); if (model != null) { BindKit.BindModelToContainer(this.editor, model); var data = _dataBus.QueryModel("UserAccount='" + model.Account + "'"); if (data != null) { BindKit.BindModelToContainer(this.editor, data); this.Id.Value = model.Id.ToString(); } } } }
private void BindData() { var user = LoginKit.GetCurrentMember(); if (user == null) { this.Alert("无法获取用户信息!"); return; } SysMemberDataBus bus = new SysMemberDataBus(); var model = bus.QueryModel(" IsDel = 0 and UserId=" + user.Id); if (model != null) { BindKit.BindModelToContainer(this.frm, model); } }