public string ABC()
        {
            y = StudentBLL.FindAboutId(getId());
            string x = "/HeadSculpture/" + y.Imgurl;

            return(x);
        }
        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();
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string a = Session["stuid"].ToString().Trim();

            y           = StudentBLL.FindAboutId(a);
            Name.Text   = y.Name;
            xuehao.Text = y.Id;
        }
Example #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         x = StudentBLL.FindAboutId(getId());
         setStudent(x);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         x = StudentBLL.FindAboutId(getId());
         setStudent(x);
         //Idxuehao.Text = getId().ToString();
         //Yichang.Text = x.ei.ToString();
     }
 }
Example #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string y = Session["stuid"].ToString().Trim();

            if (!IsPostBack)
            {
                x = StudentBLL.FindAboutId(getId());
                setStudent(x);
            }
        }
        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();
            //    }
        }
Example #8
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>");
     }
 }
Example #9
0
        private bool HeFaXingJianCe()
        {
            string x = Xuehao.Text;

            if (StudentBLL.FindAboutId(x).Main)
            {
                return(false);
            }
            else if (!StudentBLL.FindAboutId(x).Main)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
 private bool HeFaXingJianCe()
 {
     try
     {
         object x = int.Parse(Xuehao.Text);
         if (StudentBLL.FindAboutId(x).Main)
         {
             return(false);
         }
         else if (!StudentBLL.FindAboutId(x).Main)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch { return(false); }
 }