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


C# Student.GetStudentOIDByStudentBannerID方法代码示例

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


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

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GenerateCalendar();
            GenerateTaskOnCalendar();

            Student stu = new Student();
            //string  strOID = stu.GetFirstStudentID();
            int firstRowID = 1;
            string strOID = stu.GetStudentByRowID(firstRowID);
            ViewState["RowID"] = firstRowID;
            int StdOID = stu.GetStudentOIDByStudentBannerID(strOID);

            //dtStudents =

            ViewState["StuID"] = StdOID;

            string fassName = "";
            Sections sec = new Sections();
            Populate(Convert.ToString(strOID));
            populateDropdownList();
            fassName = sec.GetFirstAssessmentName();
            //PopulateSection(ddlAssesment.Text, Convert.ToInt32(StdOID));
            PopulateSection(ddlAssesment.Text, strOID);
            PopulateSectionNoScore(ddlAssesment.Text, strOID);
            Initialization();
            populateChart();
        }
    }
开发者ID:mominbd,项目名称:testing,代码行数:30,代码来源:home.aspx.cs

示例5: ddlAssesment_SelectedIndexChanged

    protected void ddlAssesment_SelectedIndexChanged(object sender, EventArgs e)
    {
        try
        {
            Student stu = new Student();

            //int stdOID = stu.GetStudentOIDByStudentBannerID(lbtnID.Text.ToString());
            int stuOID = stu.GetStudentOIDByStudentBannerID(lbtnID.Text.ToString());

            string strSectionName = null;
            strSectionName = ddlAssesment.SelectedItem.ToString();

            PopulateSection(strSectionName, lbtnID.Text.ToString());
            PopulateSectionNoScore(ddlAssesment.Text.ToString(), lbtnID.Text.ToString());

        }
        catch (Exception ex)
        { }
    }
开发者ID:mominbd,项目名称:testing,代码行数:19,代码来源:home.aspx.cs

示例6: PrintIntervention

    private void PrintIntervention(int POID, int RiskOID, string BannerID,int AOID)
    {
        try
        {
            Interventions intervention = new Interventions();
            intervention = intervention.GetInterventionByOID(POID);

            if (intervention != null)
            {
                 Student stdnt = new Student();

                int StdOID = stdnt.GetStudentOIDByStudentBannerID(Request.QueryString["soid"]);
                stdnt = stdnt.GetStudentByOID(StdOID);

                if (stdnt != null)
                {
                    string html = "";
                    Assessment ass = new Assessment();

                    //Create Html
                    html += "<table width='100%' ><tr><td><img alt='Logo' src='../../images/chippewavtc_logo.jpg' /></td><td style='text-align:center;'><span style='font-size:medium;font-weight:bold;'> Steps to Success: CVTC's commitment to helping YOU succeed!</span><br/><span style='text-align:center;'> Inventory of Student Success: Personalized Success Plan </span></td></tr></table>";
                    html += "<table width='100%'><tr><td style='width:45%;'>Success Steps For:<br /><b>First Name :</b>" + stdnt.FirstName + "  <b>Last Name :</b> " + stdnt.LastName + "</td><td> <div style='background-color: #C0C0C0;float:left;width:20%;'>Program&nbsp;&nbsp;</div><div style='padding-left:10px;border:solid 1px black;width:75%; float:left;'>" + stdnt.MajorProgramEnrollment + "</div></td></tr></table>";
                    //ass.GetAssessmentByAssessmentOID(AOID);
                    //if (ass != null)
                    //{
                    //html += "<table width='100%'><tr><td style='width:45%;'><b>Assessment Name :  </b><b>" + ass.AssessmentName + "</b></td><td> </td></tr></table>";
                    //}

                    html += "<table width='100%'><tr><td style='border:solid 1px black;'>Inventory of Student Success results provide comparsions of your attitudes and confidence with other<br />    entering CVTC students in key focus areas that could affect your academic performance and program<br /> persistance:     </td></tr></table>";

                    //Collection<Interventions> interventions = intervention.GetInterventionByStudentOID(intervention.StudentOID);

                    Collection<Interventions> interventions = new Collection<Interventions>();
                    interventions = intervention.GetInterventionByAssOID(StdOID, RiskOID,AOID);

                     foreach (Interventions inter in interventions)
                     {
                         //Start
                         html += "<table style='width: 100%;'>";
                         //Get Sectionwise Student Rank
                         StudentRank studentRank = new StudentRank();
                         // Collection<StudentRank> _list = studentRank.GetStudentRankByOID(stdnt.StudentOID);
                         int AssessmentOID = 0;
                         //Assessment ass = new Assessment();

                        // AssessmentOID = ass.GetAssessmentOIDByAssessmentName(ddlAssessment.SelectedItem.Text);

                        // Collection<Assessment> assList = new Collection<Assessment>();
                         //assList = ass.GetAssessmentBySOID(BannerID);
                         ass.GetAssessmentByAssessmentOID(AOID);
                         if (ass != null)
                         {
                             //foreach (Assessment assessment in assList)
                             //{
                             Collection<StudentRank> _list = studentRank.GetStudentRankBySOIDandAOID(StdOID, ass.AssessmentOID);
                             //if
                             //for (int i = 0; i < 5; i++)
                             foreach (StudentRank stRank in _list)
                             {

                                 html += "<tr>";
                                 html += "<td style='border:solid 1px black;background-color:#727272;width:200px;'>" + stRank.SectionName + "</td>";
                                 html += "<td style='border:solid 1px black;width:50px;text-align:center;'>" + stRank.Rank.ToString() + "</td>";
                                 html += "<td style='border:solid 1px black;'>" + stRank.Comment + "</td>";
                                 html += "</tr>";
                                 //break;
                             } break;
                             //}
                         }
                             html += "</table>";

                             //End

                     }
                    html += "<table style='width: 100%; border:solid 1px black;'>    <tr  >    <td>COMPASS test scores measure your academic readiness for college coursework in four broad areas:</td>    </tr>        </table>";

                    html += " <table style='width: 60%; '>    <tr><td style='background-color:#727272;width:200px;'>COMPASS Pre-Algebra</td><td style='width:100px; border:solid 1px black;'>" + stdnt.PrealgebraTestScore + "</td><td style='background-color:#727272;width:200px;'>COMPASS Writing</td><td style='width:100px; border:solid 1px black;'>" + stdnt.CompassWrittingTestScore + "</td></tr>   <tr><td style='background-color:#727272;width:200px;'>COMPASS Algebra</td><td style='width:100px; border:solid 1px black;'>" + stdnt.CompassalgebraTestScore + "</td><td style='background-color:#727272;width:200px;'>COMPASS Reading</td><td style='width:100px; border:solid 1px black;'>" + stdnt.CompassReadingTestScore + "</td></tr> </table>";
                    html += "<br/>";

                    int counter = 0;
                    //Collection<Interventions> interventionsList = intervention.GetInterventionByStudentOID(StdOID,RiskOID);

                    foreach (Interventions inter in interventions)
                    {
                        counter++;
                        #region Printing Checkboxes

                        html += "<table style='width: 100%; '>";
                        html += "<tr><td style='width:60px;font-size:medium;font-weight:bold;'></td><td style='background-color:#727272;width:100px;'> Assessment Name  : </td><td>" + inter .AssessmentName   + "</td><td></td></tr>";
                        html += "<tr><td style='width:60px;font-size:medium;font-weight:bold;'>Step " + counter.ToString() + "</td><td style='background-color:#727272;width:100px;'> Plan Target</td><td>" + inter.DomainName + "</td><td></td></tr>";
                        html += "<tr><td >&nbsp;</td><td style='background-color:#727272;width:100px;'> Intervention</td><td>" + inter.InterventionName + "</td><td></td></tr>";
                        html += "<tr><td >&nbsp;</td><td > &nbsp;</td><td style='background-color:#727272; width:150px;'>CVTC Advocate </td><td>" + inter.UserName + "</td></tr>";
                        html += "<tr><td >&nbsp;</td><td > &nbsp;</td><td style='background-color:#727272; width:100px;'>Action Date </td><td>" + inter.LatestActionDate;

                        html += "&nbsp;&nbsp;Prescribed&nbsp;";
                        if (inter.Prescribed == 1)
                        {
                            html += "<img alt='' src='../../images/tic-pic.png' />";
                        }
                        else
//.........这里部分代码省略.........
开发者ID:mominbd,项目名称:testing,代码行数:101,代码来源:PrintIntervention.aspx.cs

示例7: 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

示例8: PopulateGridIntervention

    private void PopulateGridIntervention(int RISKOID)
    {
        int UserOID = 0;
        User user = new User();
        user = Session["CurrentUser"] as User;
        if (user != null)
        {
            UserOID = user.UserOID;
        }
        Interventions inv = null;// new Interventions();
        Student stu = new Student();
        Collection<Interventions> IntListStd = new Collection<Interventions>();
        Collection<Interventions> IntListRisk = new Collection<Interventions>();
        int i = stu.GetStudentOIDByStudentBannerID(lblID.Text.ToString());
        if (i > 0)
        {
            inv = new Interventions();
            IntListStd = inv.GetInterventionByStudentOID(i, "1", "10", UserOID);
            //GridViewIntervention.DataSource = inv.GetInterventionByStudentOID(i, "1", "10");

        }
        if (RISKOID > 0)
        {

            inv = new Interventions();
            inv = inv.GetInterventionByRiskOID(RISKOID, lblID.Text.ToString(), "1", "10", UserOID);
            if (inv != null)
            {
                IntListStd.Add(inv);
            }

        }

        GridViewIntervention.DataSource = IntListStd;
        GridViewIntervention.DataBind();
    }
开发者ID:mominbd,项目名称:testing,代码行数:36,代码来源:studentProfile.aspx.cs

示例9: 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

示例10: lbtnPrev_Click

    //protected void ddlAssesment_SelectedIndexChanged1(object sender, EventArgs e)
    //{
    //}
    //protected void ddlAssesment_SelectedIndexChanged2(object sender, EventArgs e)
    //{
    //}
    protected void lbtnPrev_Click(object sender, EventArgs e)
    {
        Session["StudentID"] = lblID.Text.ToString();
        lbtnNext.Enabled = true;
        Student stu = new Student();

        //int OID = Prev();
        int OID = 0;
        rowID = Convert.ToInt32(ViewState["RowID"]);
        rowID--;
        ViewState["RowID"] = rowID;
        string strID = stu.GetStudentByRowID_Profile(rowID);
        OID = stu.GetStudentOIDByRowID_Profile(rowID);
        //string strID = stu.GetStudentIDByStudentBannerOID(OID);
        if (strID == "" || strID == null)
        {
            lbtnPrev.Enabled = false;

        }
        else
        {
            Populate(strID);
            populateDropdownList();
            PopulateCourseByStudentID();
            //PopulateGridIntervention();

            PopulateSectionNoScore(ddlAssesment.Text.ToString(), strID);
            PopulateSection(ddlAssesment.Text.ToString(), strID);
            int AOID = new Sections().GetAssessmentOIDByAssessmentName(ddlAssesment.Text.ToString());
            Student stu1 = new Student();
            int studentOID = stu1.GetStudentOIDByStudentBannerID(strID);
            if (!string.IsNullOrEmpty(studentOID.ToString()))
            {
                this.BindRiskCalculation(AOID, Convert.ToInt32(studentOID));
            }
            if (LabelRisk.Text != "")
            {
                PopulateGridIntervention(Convert.ToInt32(ViewState["ROID"]));
            }
            else
            {
                PopulateGridIntervention(0);
            }
        }
    }
开发者ID:mominbd,项目名称:testing,代码行数:51,代码来源:studentProfile.aspx.cs

示例11: ButtonSubmit_Click

    protected void ButtonSubmit_Click(object sender, EventArgs e)
    {
        try
        {

            if ((string.IsNullOrEmpty(TextBoxLatestAction.Value)) || (string.IsNullOrEmpty(TextBoxLatestContact.Value)))
            {
                LabelStatus.Text = "Please Enter Action and Contact Date";
                return;
            }

            Interventions interventions = new Interventions();

            //Changed by Babul 20111103
          //int  strInterventionOID = interventions.GetInterventionOIDByInterventionName(DropDownListIntervention.SelectedItem.ToString());
            int strInterventionOID = 0;
            if (DropDownListIntervention.SelectedIndex == -1)
            {
                strInterventionOID = 1;
            }
            else
            {
                strInterventionOID = interventions.GetInterventionOIDByInterventionName(DropDownListIntervention.SelectedItem.ToString());
            }
            //

           interventions.InterventionOID = strInterventionOID;
           Domain domain=new Domain ();
           int DomainIOD = domain.GetDomainOIDByDomainName(DropDownListDomain.SelectedItem.ToString());
           interventions.DomainOID = DomainIOD;
           User user = new User();
           int UserIOD = user.GetUserOIDByUserName(DropDownListAdvocate.SelectedItem.ToString());
           interventions.UserOID = UserIOD;

           if (ViewState["POID"] == null)
           {
               studentid = Session["StudentID"].ToString();
               Student student = new Student();
               int StudentOID = student.GetStudentOIDByStudentBannerID(studentid);
               interventions.StudentOID = StudentOID;
               ViewState["studentID"]=studentid;
           }
           else
           {
               interventions.StudentOID = Convert.ToInt32(ViewState["studentID"]);
           }
           //interventions.LatestActionDate = TextBoxLatestAction.Text.ToString();
           //interventions.LatestContact = TextBoxLatestContact.Text.ToString();
           interventions.LatestActionDate = TextBoxLatestAction.Value.ToString();
           interventions.LatestContact = TextBoxLatestContact.Value.ToString();
           interventions.CreatedBy = (Session["CurrentUser"] != null) ? ((User)Session["CurrentUser"]).UserOID : 0;
           if (CheckBoxListLeft.Items[0].Selected)
           {
               interventions.Urgent = 1;

           }
           else
           {
               interventions.Urgent = 0;
           }
           if (CheckBoxListLeft.Items[1].Selected)
           {
               interventions.Internal = 1;
           }
           else
           {
               interventions.Internal = 0;
           }

           if (CheckBoxListLeft.Items[2].Selected)
           {
               interventions.Prescribed = 1;
           }
           else
           {
               interventions.Prescribed = 0;
           }

           if (CheckBoxListLeft.Items[3].Selected)
           {
               interventions.Participating = 1;
           }
           else
           {
               interventions.Participating = 0;
           }
           if (CheckBoxListLeft.Items[4].Selected)
           {
               interventions.Completed = 1;
           }
           else
           {
               interventions.Completed = 0;
           }

           if (CheckBoxListRight.Items[0].Selected)
           {
               interventions.Email = 1;
           }
           else
//.........这里部分代码省略.........
开发者ID:mominbd,项目名称:testing,代码行数:101,代码来源:Prescription.aspx.cs


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