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"); }
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(); }
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(); } } } }