Exemplo n.º 1
0
        protected void Buttonsub_Click(object sender, EventArgs e)
        {
            DtCms.Model.JoinAT joinAT    = new DtCms.Model.JoinAT();
            DtCms.BLL.JoinAT   joinATBll = new DtCms.BLL.JoinAT();

            joinAT.UserName       = Session["Member"].ToString();
            joinAT.SelfIntro      = TextBox1.Text.Trim();
            joinAT.Reward         = TextBox2.Text.Trim();
            joinAT.JoinReason     = TextBox3.Text.Trim();
            joinAT.TLCheckMode    = "未审核";
            joinAT.TLAdvice       = "无";
            joinAT.AdminCheckMode = "未审核";
            joinAT.AdminAdvice    = "无";
            joinAT.Team           = HiddenField1.Value;
            joinATBll.Add(joinAT);
            PanelApp.Visible = false;
        }
Exemplo n.º 2
0
        protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow & (e.Row.RowState == DataControlRowState.Normal | e.Row.RowState == DataControlRowState.Alternate))
            {
                string             UserName  = Session["Member"].ToString();
                string             team      = ((DataRowView)e.Row.DataItem).Row.ItemArray[0].ToString();
                Label              LabelMode = e.Row.FindControl("LabelMode") as Label;
                DtCms.Model.JoinAT joinAT    = new DtCms.Model.JoinAT();
                DtCms.BLL.JoinAT   joinATBll = new DtCms.BLL.JoinAT();

                /*if (joinATBll.QueryOneRecord(UserName, team).AdminCheckMode == "未审核")
                 * {
                 *  LabelMode.Text = "未审核";
                 * }
                 * Button buttonJoinAT = e.Row.FindControl("ButtonJoinAT") as Button;
                 * if (LabelMode.Text == "未审核")
                 *  buttonJoinAT.Enabled = false;**/
            }
        }