Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            x           = StudentBLL.FindAboutId(Session["stuid"].ToString().Trim());
            Label2.Text = x.Name;

            Count.Text = VacationBLL.Count(a).ToString();
        }
        protected void Xianshi_Click(object sender, EventArgs e)
        {
            string condition1 = "未审批";

            Liebiao.DataSource = VacationBLL.GetALL(condition1);
            Liebiao.DataBind();
            Liebiao2.DataSource = VacationBLL.VacationGet2(condition1);
            Liebiao2.DataBind();
        }
        protected void Chxun_Click(object sender, EventArgs e)
        {
            string condition1 = "未审批";

            Liebiao.DataSource = VacationBLL.OneVacationGet(TextBox1.Text, condition1);
            Liebiao.DataBind();
            Liebiao2.DataSource = VacationBLL.VacationGet(TextBox1.Text, condition1);
            Liebiao2.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string y          = Session["stuid"].ToString().Trim();
            string condition1 = "未审批";

            Liebiao.DataSource = VacationBLL.GetALL(condition1);
            Liebiao.DataBind();
            Liebiao2.DataSource = VacationBLL.VacationGet2(condition1);
            Liebiao2.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string y = Session["stuid"].ToString().Trim();

            //  if (!IsPostBack)
            //  {
            x = StudentBLL.FindAboutId(getId());
            setStudent(x);
            Liebiao.DataSource = VacationBLL.VacationGet3(getId());
            Liebiao.DataBind();
            //    }
        }
Пример #6
0
        protected void Del_Click(object sender, EventArgs e)
        {
            string Id = number.Text;

            if (VacationBLL.Delete(Id))
            {
                Response.Redirect("/WebReturn/VacationNew_Return.aspx");
            }
            else
            {
                Response.Write("<script>alert('操作失败,请稍后再尝试!');history.back();</script>");
            }
        }
Пример #7
0
 protected void Refuse_Click(object sender, EventArgs e)
 {
     x             = StudentBLL.FindAboutId(Session["stuid"].ToString());
     a.condition   = "拒绝";
     a.agreepeople = x.Name;
     if (VacationBLL.Revise(a))
     {
         Response.Redirect("/WebReturn/VacationNew_Return.aspx");
     }
     else
     {
         Response.Write("<script>alert('审批失败,请稍后再尝试!');history.back();</script>");
     }
 }
Пример #8
0
        protected void New_Click(object sender, EventArgs e)
        {
            Vacation x = new Vacation();

            setInFor(x);

            if (VacationBLL.Add(x))
            {
                Response.Redirect("/WebReturn/VacationStudent.aspx");
            }
            else
            {
                Response.Write("<script>alert('提交失败!请注意学号是否输入正确!');history.back();</script>");
            }
        }
Пример #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     a = VacationBLL.FindAboutId(getNumber());
     setVacation(a);
 }
Пример #10
0
 protected void Page_Load(object sender, EventArgs e)
 {
     a = VacationBLL.FindAboutId(getNumber());
     setVacation(a);
     string y = Session["stuid"].ToString().Trim();
 }