private void gv01_Bind(int UserID, int PapersID, string Time)
        {
            BLL.Results          bll  = new BLL.Results();
            List <Model.Results> list = new List <Model.Results>();

            list            = bll.Details(UserID, PapersID, Time);
            gv01.DataSource = list;
            gv01.DataBind();
        }
        private void Auto()
        {
            int    UserID;
            int    PapersID;
            string Time;

            for (int i = 0; i < gv01.Rows.Count; i++)
            {
                Label lb_UserID   = (Label)gv01.Rows[i].FindControl("lb_UserID");
                Label lb_PapersID = (Label)gv01.Rows[i].FindControl("lb_PapersID");
                Label lb_Time     = (Label)gv01.Rows[i].FindControl("lb_Time");

                UserID   = int.Parse(lb_UserID.Text);
                PapersID = int.Parse(lb_PapersID.Text);
                Time     = lb_Time.Text;

                BLL.Results          bll  = new BLL.Results();
                List <Model.Results> list = new List <Model.Results>();

                list = bll.Details(UserID, PapersID, Time);
            }

            if (Request.QueryString["CourseID"] != null)
            {
                CourseBind();
                div_Course.Visible = true;
                gv01_Bind1(int.Parse(Request.QueryString["CourseID"].ToString()));
            }
            else
            {
                if (Request.QueryString["UserID"] != null)
                {
                    gv01_BindUserID1(int.Parse(Request.QueryString["UserID"].ToString()));
                }
                else
                {
                    gv01_Bind1(Request.QueryString["Time"]);
                }
            }
        }
Beispiel #3
0
        private void Auto()
        {
            int    UserID;
            int    PapersID;
            string Time;

            for (int i = 0; i < gv01.Rows.Count; i++)
            {
                Label lb_UserID   = (Label)gv01.Rows[i].FindControl("lb_UserID");
                Label lb_PapersID = (Label)gv01.Rows[i].FindControl("lb_PapersID");
                Label lb_Time     = (Label)gv01.Rows[i].FindControl("lb_Time");

                UserID   = int.Parse(lb_UserID.Text);
                PapersID = int.Parse(lb_PapersID.Text);
                Time     = lb_Time.Text;

                BLL.Results          bll  = new BLL.Results();
                List <Model.Results> list = new List <Model.Results>();

                list = bll.Details(UserID, PapersID, Time);
            }

            gv01_Bind1();
        }