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


C# Student.GetStudentByOID方法代码示例

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


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

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

示例2: PrintInterventionAll

    private void PrintInterventionAll(int SOID)
    {
        try
        {
            string html = "";
            Interventions inter = new Interventions();
            Collection<Interventions> _list = new Collection<Interventions>();
            _list = inter.GetInterventionByStudentOID(SOID);

            //if (inter != null)
            if (_list.Count != 0)
            {
                foreach (Interventions iv in _list)
                {
                    Student stdnt = new Student();
                    // stdnt = stdnt.GetStudentByOID(inter.StudentOID);
                    stdnt = stdnt.GetStudentByOID(SOID);
                    if (stdnt != null)
                    {

                        //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 />First:" + stdnt.FirstName + "  Last: " + 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>";
                        // html += "<table width='100%'><tr><td>Success Steps For:<br />First: Abdul Last: Karim</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:78%; float:left;'>Information Technology </div></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>";
                        html += "<table style='width: 100%;'>";

                        //Get Sectionwise Student Rank
                        StudentRank studentRank = new StudentRank();
                        //Collection<StudentRank> srLIST = studentRank.GetStudentRankBySOIDandAOID(SOID,22);
                        Collection<StudentRank> srLIST = studentRank.GetStudentRankByOID(SOID);
                        //if
                        //for (int i = 0; i < 5; i++)
                        foreach (StudentRank stRank in srLIST)
                        {

                            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>";
                        }
                        html += "</table>";

                        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/>";
                        //Last Part Intervention
                        html += "<table style='width: 100%; '>";
                        html += "<tr><td style='width:60px;font-size:medium;font-weight:bold;'>Step 1</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
                        {
                            html += "<img alt='' src='../../images/nonetic-pic.png' />";
                        }

                        html += "&nbsp;Participating&nbsp;";
                        if (inter.Participating == 1)
                        {
                            html += "<img alt='' src='../../images/tic-pic.png' />";
                        }
                        else
                        {
                            html += "<img alt='' src='../../images/nonetic-pic.png' />";
                        }

                        html += "&nbsp;Internal&nbsp;";
                        if (inter.Internal == 1)
                        {
                            html += "<img alt='' src='../../images/tic-pic.png' />";
                        }
                        else
                        {
                            html += "<img alt='' src='../../images/nonetic-pic.png' />";
                        }

                        html += "&nbsp;Urgent&nbsp;";
                        if (inter.Urgent == 1)
                        {
                            html += "<img alt='' src='../../images/tic-pic.png' />";
                        }
                        else
                        {
                            html += "<img alt='' src='../../images/nonetic-pic.png' />";
                        }

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


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