当前位置: 首页>>代码示例>>C#>>正文


C# Student.GetStudentIDByStudentBannerOID方法代码示例

本文整理汇总了C#中Student.GetStudentIDByStudentBannerOID方法的典型用法代码示例。如果您正苦于以下问题:C# Student.GetStudentIDByStudentBannerOID方法的具体用法?C# Student.GetStudentIDByStudentBannerOID怎么用?C# Student.GetStudentIDByStudentBannerOID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Student的用法示例。


在下文中一共展示了Student.GetStudentIDByStudentBannerOID方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ButtonRefresh_Click

 protected void ButtonRefresh_Click(object sender, EventArgs e)
 {
     try
     {
         Student stu = new Student();
         int strID = stu.GetStudentOIDByStudentBannerID(lblID.Text.ToString());
         //string strID = null;
         //strID = ViewState["STDOID"].ToString();
         populateDropdownList();
         string strOID = stu.GetStudentIDByStudentBannerOID(Convert.ToInt32(strID));
         Populate(strOID);
         PopulateSection(ddlAssesment.Text.ToString(), lblID.Text);
         PopulateSectionNoScore(ddlAssesment.Text.ToString(), lblID.Text);
         PopulateCourseByStudentID();
         PopulateGridIntervention(Convert.ToInt32(ViewState["ROID"]));
     }
     catch (Exception ex)
     { }
 }
开发者ID:mominbd,项目名称:testing,代码行数:19,代码来源:studentProfile.aspx.cs

示例2: Prev

 private int Prev()
 {
     int i = 0;
     Student stu = new Student();
     //if (lblDate.Text != "")
     //{
     //    i = stu.GetPrevStudentOID(Convert.ToDateTime(lblDate.Text.ToString()));
     //}
     i = stu.GetStudentOIDByStudentBannerID(lbtnID.Text.ToString());
     if (i > 1)
     {
         i = i - 1;
         string strID = stu.GetStudentIDByStudentBannerOID(i);
         if (strID == "" || strID == null)
         {
             i--;
             for (int j = i; j > 0; j--)
             {
                 strID = stu.GetStudentIDByStudentBannerOID(j);
                 if (strID != "" && strID != null)
                 {
                     i = j;
                     return i;
                 }
             }
         }
     }
     else
     {
         i = 1;
     }
     return i;
 }
开发者ID:mominbd,项目名称:testing,代码行数:33,代码来源:home.aspx.cs

示例3: Next

    private int Next()
    {
        int i = 1;
        string strID=null ;
        Student stu = new Student();
        //if (lblDate.Text != "")
        //{
        //    i = stu.GetNextStudentOID(Convert.ToDateTime(lblDate.Text.ToString()));
        //}
        i = stu.GetStudentOIDByStudentBannerID(lbtnID.Text.ToString());
        i++;
        strID = stu.GetStudentIDByStudentBannerOID(i);
        if (strID == "" || strID == null)
        {
            i++;

            for (int j = i; j < 25000000; j++)
            {
                strID = stu.GetStudentIDByStudentBannerOID(j);
                if (strID != "" && strID != null)
                {
                    i = j;
                    return i;
                }
            }

        }

        return i;
    }
开发者ID:mominbd,项目名称:testing,代码行数:30,代码来源:home.aspx.cs

示例4: Prev

    private int Prev()
    {
        int i = 0;
        Student stu = new Student();
        i = stu.GetStudentOIDByStudentBannerID(lblID.Text.ToString());

        if (i > 1)
        {
            i = i - 1;
            string strID = stu.GetStudentIDByStudentBannerOID(i);
            if (strID == "" || strID == null)
            {
                i--;
                for (int j = i; j > 0; j--)
                {
                    strID = stu.GetStudentIDByStudentBannerOID(j);
                    if (strID != "" && strID != null)
                    {
                        i = j;
                        return i;
                    }
                }
            }
        }
        else
        {
            i = 1;
        }
        return i;
    }
开发者ID:mominbd,项目名称:testing,代码行数:30,代码来源:studentProfile.aspx.cs

示例5: Next

    private int Next()
    {
        int i = 0;
        string strID = "1";
        Student stu = new Student();
        i = stu.GetStudentOIDByStudentBannerID(lblID.Text.ToString());

        i++;
        strID = stu.GetStudentIDByStudentBannerOID(i);
        if (strID == "" || strID == null)
        {
            i++;

            for (int j = i; j < 25000000; j++)
            {
                strID = stu.GetStudentIDByStudentBannerOID(j);
                if (strID != "" && strID != null)
                {
                    i = j;
                    return i;
                }
            }

        }

        return i;
    }
开发者ID:mominbd,项目名称:testing,代码行数:27,代码来源:studentProfile.aspx.cs

示例6: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        connectionString = System.Web.Configuration.WebConfigurationManager.AppSettings["ConnectionString"].ToString();
        if (!Page.IsPostBack)
        {
            string strID = null;
            if (Request.QueryString["id"] != null)
            {
                strID = Request.QueryString["id"].ToString();
                ViewState["STDOID"] = strID;
                Session["STUOID"] = strID;
            }
            populateDropdownList();
            Student stu = new Student();
            string strOID = stu.GetStudentIDByStudentBannerOID(Convert.ToInt32(strID));
            Populate(strOID);
            populateDropdownList();
            PopulateSection(ddlAssesment.Text, strOID);
            PopulateSectionNoScore(ddlAssesment.Text, strOID);
            PopulateCourseByStudentID();
            int AOID = 0;
            if (ddlAssesment.Text != null && ddlAssesment.Text != "")
            {
                AOID = new Sections().GetAssessmentOIDByAssessmentName(ddlAssesment.Text);
            }
            if (!string.IsNullOrEmpty(strID))
            {
                this.BindRiskCalculation(AOID, Convert.ToInt32(strID));
            }
            int RiskOID = 0;
            if (LabelRisk.Text != "")
            {
                RiskOID = new RiskCalculation().GetRiskOIDByAOIDAndName(AOID, LabelRisk.Text);
            }
            ViewState["ROID"] = RiskOID;
            HiddenRiskOID.Value = RiskOID.ToString();
            PopulateGridIntervention(RiskOID);
            rowID = stu.GetStudentRowIDByBannerID(lblID.Text.Trim());
            ViewState["RowID"] = rowID;

        }
    }
开发者ID:mominbd,项目名称:testing,代码行数:42,代码来源:studentProfile.aspx.cs

示例7: Page_Load

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["id"]!=null)
            {
                string strID = Request.QueryString["id"].ToString();
                ViewState["STDOID"] = strID;
                Student stu = new Student();
                string strOID = stu.GetStudentIDByStudentBannerOID(Convert.ToInt32(strID));
                ViewState["BannerID"] = strOID;
                Populate(strOID);
            }

            connectionString = System.Web.Configuration.WebConfigurationManager.AppSettings["ConnectionString"].ToString();
            populateProgram();
            populateStatus();

        }
    }
开发者ID:mominbd,项目名称:testing,代码行数:20,代码来源:Update.aspx.cs


注:本文中的Student.GetStudentIDByStudentBannerOID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。