Пример #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
    protected void btnVerify_Click(object sender, EventArgs e)
    {
        foreach (GridViewRow row in this.list.Rows)
        {
            if (row.RowType == DataControlRowType.DataRow)
            {
                var box = row.FindControl("chkBox") as HtmlInputCheckBox;
                if (box != null)
                {
                    if (box.Checked)
                    {
                        string dataId = box.Value;

                        var member = _bus.QueryModel("Id=" + dataId);
                        var data   = new SysMemberDataBus().QueryModel("UserId=" + dataId);

                        if (member != null && data != null && member.Status == "已注册-未充值")
                        {
                            //UpPhoneMoney(member, data); //充值
                        }
                    }
                }
            }
        }
        BindData();
    }
Пример #3
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();
                }
            }
        }
    }