Пример #1
0
        protected override void SetValue(string id)
        {
            Sys_BankInfoBLL sbiBLL = new Sys_BankInfoBLL();

            txtBank.DataSource     = sbiBLL.GetList(" 1 = 1 and IsDeleted = 0 order by Code");
            txtBank.DataTextField  = "Name";
            txtBank.DataValueField = "Name";
            txtBank.DataBind();

            BindDdlPwdQuestion(ddlQuestion);
            foreach (Model.Roles item in BLL.Roles.RolsList.Values.ToList().Where(emp => emp.VState).ToList())
            {
                ddlMemberType.Items.Add(new ListItem(item.RName, item.RType));//角色
            }
            ////会员级别
            //ddlSHMoney.DataSource = BLL.Configuration.Model.SHMoneyTable;
            //ddlSHMoney.DataTextField = "MAgencyName";
            //ddlSHMoney.DataValueField = "MAgencyType";
            //ddlSHMoney.DataBind();

            string mid = HttpUtility.UrlDecode(Request["id"].Trim());

            model       = BllModel.GetModel(mid);
            MemberModel = model;
        }
Пример #2
0
        protected void BindRep()
        {
            Sys_BankInfoBLL BLL = new Sys_BankInfoBLL();

            rep_List.DataSource = BLL.GetList(" 1=1 and  IsDeleted=0 order by ID desc");
            rep_List.DataBind();
        }
Пример #3
0
        protected override void SetValue(string id)
        {
            Sys_BankInfoBLL bll = new Sys_BankInfoBLL();

            txtBank.DataSource     = bll.GetList(" 1=1 and  IsDeleted=0 order by ID desc");
            txtBank.DataTextField  = "Name";
            txtBank.DataValueField = "Id";
            txtBank.DataBind();
            hdBankCode.Value = id;
            BankInfo         = BLL.BankModel.GetModel(id);
        }
Пример #4
0
        protected override void SetPowerZone()
        {
            txtMTJ.Value = TModel.MID;
            if (!TModel.Role.IsAdmin)
            {
                txtMTJ.Attributes.Add("readonly", "readonly");
            }
            //if (!string.IsNullOrEmpty(Request.QueryString["mid"]))
            //{
            //    if (string.IsNullOrEmpty(txtMBD.Value))
            //        txtMBD.Value = Request.QueryString["mid"].Trim();
            //}
            //else
            //{
            //    txtMBD.Value = txtMTJ.Value;
            //}


            //Random r = new Random();
            //var rid = r.Next(1, 999).ToString();

            //txtMID.Value = "huiyuan" + rid;

            //if (!string.IsNullOrEmpty(Request.QueryString["bdindex"]))
            //{
            //    int bdindex = int.Parse(Request.QueryString["bdindex"]);
            //    if (bdindex == 1)
            //    {
            //        ddlMBDIndex.SelectedIndex = 0;
            //    }
            //    else
            //    {
            //        ddlMBDIndex.SelectedIndex = 1;
            //    }
            //}


            BindDdlPwdQuestion();

            Sys_BankInfoBLL sbiBLL = new Sys_BankInfoBLL();

            txtBank.DataSource     = sbiBLL.GetList(" 1 = 1 and IsDeleted = 0 order by Code");
            txtBank.DataTextField  = "Name";
            txtBank.DataValueField = "Name";
            txtBank.DataBind();
        }
Пример #5
0
        protected override void SetPowerZone()
        {
            if (!TModel.Role.IsAdmin)
            {
                txtMID.Attributes.Add("readonly", "readonly");
            }
            else
            {
                lb_Tip.Visible = false;
            }
            chkIsPrimary.Checked  = true;
            txtBankCardName.Value = TModel.MName;
            txtMID.Value          = TModel.MID;
            Sys_BankInfoBLL bll = new Sys_BankInfoBLL();

            txtBank.DataSource     = bll.GetList(" 1=1 and  IsDeleted=0 and Status=1 order by ID desc");
            txtBank.DataTextField  = "Name";
            txtBank.DataValueField = "Id";
            txtBank.DataBind();
            txtBankCardName.Value = TModel.MName;
        }
Пример #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["mid"]))
                {
                    Model.Member tjmodel = BLL.Member.ManageMember.GetModel(Request.QueryString["mid"]);
                    if (tjmodel != null)
                    {
                        txtMTJ.Value = Request.QueryString["mid"];
                        txtMTJ.Attributes["readonly"] = "readonly";
                    }
                }
            }
            Sys_BankInfoBLL sbiBLL = new Sys_BankInfoBLL();

            txtBank.DataSource     = sbiBLL.GetList(" 1=1 and IsDeleted=0 order by Code");
            txtBank.DataTextField  = "Name";
            txtBank.DataValueField = "Name";
            txtBank.DataBind();
            BindDdlPwdQuestion();
        }
Пример #7
0
        protected override void SetPowerZone()
        {
            if (!TModel.Role.IsAdmin)
            {
                txtMName.Attributes.Add("readonly", "readonly");

                if (!string.IsNullOrEmpty(TModel.BankCardName))
                {
                    txtBankCardName.Attributes.Add("readonly", "readonly");
                }
            }
            //if (TModel.Role.IsAdmin)
            {
                Sys_BankInfoBLL sbiBLL = new Sys_BankInfoBLL();
                txtBank.DataSource     = sbiBLL.GetList(" 1 = 1 and IsDeleted = 0 order by Code");
                txtBank.DataTextField  = "Name";
                txtBank.DataValueField = "Name";
                txtBank.DataBind();
            }

            MemberModel = TModel;
        }