예제 #1
0
    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");
    }
예제 #2
0
    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();
                }
            }
        }
    }
예제 #3
0
    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);
        }
    }