private void Bind1(string where)
 {
     rep1.DataSource = user.GetModelList(where);
     rep1.DataBind();
     int pageSize  = 1;
     int pageindex = 1;
 }
Beispiel #2
0
 private void Delids()
 {
     BLL.userType bllut = new BLL.userType();
     if (context.Request["typeid"] != null)
     {
         int id = Convert.ToInt32(context.Request["typeid"]);
         if (blluser.GetModelList("user_type=" + id).Count > 0)
         {
             context.Response.Write("err");
             context.Response.End();
         }
         if (bllut.DeleteList("typeid=" + id))
         {
             context.Response.Write("删除成功");
             context.Response.End();
         }
     }
 }
        private void Bind(string id)
        {
            List <Model.Users> listuser = blluser.GetModelList("u.userid='" + id + "'");

            if (listuser.Count > 0)
            {
                Model.Users mode = listuser[0];
                hiduid.Value             = mode.userid;
                card.Value               = mode.UserInfoModel.cardID;
                Name.Value               = mode.username;
                Sex.Value                = Convert.ToInt32(mode.UserInfoModel.sex).ToString();
                CardType.SelectedValue   = mode.UserInfoModel.cardTypeID.ToString();
                CardNo.Value             = mode.UserInfoModel.cardValue;
                CategoryId.SelectedValue = mode.user_type.ToString();
                Phone.Value              = mode.UserInfoModel.phone;
                BirthDay.Value           = mode.UserInfoModel.bairthday.ToString();
                Love.Value               = mode.UserInfoModel.xihao;
                Address.Value            = mode.UserInfoModel.address;
                Remark.Value             = mode.UserInfoModel.meark;
            }
        }