Ejemplo n.º 1
0
    // 店铺刷新
    protected void RenoVate_Click(object sender, EventArgs e)
    {
        B_Content content = new B_Content();

        string[] chkArr = GetChecked();
        if (chkArr != null)
        {
            for (int i = 0; i < chkArr.Length; i++)
            {
                string     username = buser.SeachByID(Convert.ToInt32(chkArr[i])).UserName;
                M_UserInfo dd       = buser.GetUserByUserID(Convert.ToInt32(chkArr[i]));
                if (dd.CerificateDeadLine < DateTime.Now)
                {
                    int UserId = Convert.ToInt32(chkArr[i]);
                    content.DeCommonModel(username);
                    buser.UpdateUserState(UserId, 0, DateTime.Now);
                }
            }
        }
        RPT.DataBind();
    }