本文整理汇总了C#中Student.GetStudentByStudentOID方法的典型用法代码示例。如果您正苦于以下问题:C# Student.GetStudentByStudentOID方法的具体用法?C# Student.GetStudentByStudentOID怎么用?C# Student.GetStudentByStudentOID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Student
的用法示例。
在下文中一共展示了Student.GetStudentByStudentOID方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnMerge_Click
protected void btnMerge_Click(object sender, EventArgs e)
{
GridViewRow row = ((Button)sender).Parent.Parent as GridViewRow;
HiddenField HiddenFieldStudentID = (HiddenField)row.Cells[0].FindControl("HiddenFieldStudentID");
string StudentOID = HiddenFieldStudentID.Value;
Student std = new Student();
int id = std.GetStudentOIDByBannerID(Request.QueryString["tempID"]);
//lblStatus.Text = StudentOID;
std = std.GetStudentByStudentOID(Convert.ToInt32(StudentOID));
if (std != null)
{
DeleteStudent(std.StudentOID);
if (std.UpdateTempStudent(std, id) == true)
{
std.UpdateTempStudentinAnswer(Request.QueryString["id"], Request.QueryString["tempID"]);
populate(Request.QueryString["id"]);
lblStatus.ForeColor = Color.Red;
lblStatus.Font.Size = 12;
lblStatus.Font.Bold = true;
lblStatus.Text = "Successfully Merged With Orginal Student";
}
else
{
lblStatus.ForeColor = Color.Red;
lblStatus.Font.Size = 12;
lblStatus.Font.Bold = true;
lblStatus.Text = "Merging Fail...";
}
}
}
示例2: Populate
private void Populate(string strID)
{
Student stu = new Student();
stu=stu.GetStudentByStudentOID(strID);
if (stu != null)
{
lbtnStudentName.Text = stu.FullName;
lbtnID.Text = stu.StudentID;
//lblDate.Text = Convert.ToString(stu.LatestTestingDate);
Session["StudentID"] = lbtnID.Text.ToString();
}
}
示例3: Populate
private void Populate(string bannerid)
{
Student stu = new Student();
stu = stu.GetStudentByStudentOID(bannerid);
if (stu != null)
{
TextBoxBannerID.Text = stu.StudentID;
if (stu.FirstName != null)
{
TextBoxFirstName.Text = stu.FirstName;
}
if (stu.LastName != null)
{
TextBoxLastName.Text = stu.LastName;
}
}
else
{
LabelMsg.Text = "Please Fill Up Regitration Page again";
}
}
示例4: Populate
private void Populate(string strID)
{
Student stu = new Student();
stu = stu.GetStudentByStudentOID(strID);
lblStudentName.Text = stu.FullName;
lblID.Text = stu.StudentID;
//if (stu.LatestTestingDate != null)
//{
// lblDate.Text = stu.LatestTestingDate.ToString();
//}
if (stu.BirthDate != null)
{
lblBirth.Text = Convert.ToDateTime(stu.BirthDate.ToString()).ToShortDateString();
}
Session["StudentID"] = lblID.Text.ToString();
getID = lblID.Text;
lblTelephone.Text = stu.HomeTelephoneNumber;
if (stu.CumulativeGPA.ToString().Length == 3)
{
lblCumulativeGPA.Text = stu.CumulativeGPA.ToString() + "0";
}
else if (stu.CumulativeGPA.ToString().Length == 1)
{
lblCumulativeGPA.Text = stu.CumulativeGPA.ToString() + ".00";
}
else
{
lblCumulativeGPA.Text = stu.CumulativeGPA.ToString();
}
lblCVTCProgram.Text = stu.MajorProgramEnrollment;
lblCreditAttempted.Text = stu.CreditAttempted.ToString();
lblCreditEarned.Text = stu.CreditEarned.ToString();
lblHSname.Text = stu.HighSchoolName;
lblgraddate.Text = stu.HighSchoolGraduationDate.ToShortDateString();
lblacte.Text = stu.EnglishAssessmentScore;
lblactm.Text = stu.MathAssessmentScore;
lblactr.Text = stu.ReadingAssessmentScore;
lblacts.Text = stu.ScienceAssessmentScore;
lblalgebra.Text = stu.CompassalgebraTestScore;
lblprealgebra.Text = stu.PrealgebraTestScore;
lblreading.Text = stu.CompassReadingTestScore;
lblwritting.Text = stu.CompassWrittingTestScore;
lblPreProgram.Text = stu.PreprogramIndicator;
LabelMC.Text = "Multicultural";//(stu.MC == "0") ? "" : stu.MC;
if (stu.MC != "0" && stu.MC != null)
{
LabelMC.Visible = true;
LabelMC.ForeColor = System.Drawing.Color.Red;
}
else
{
LabelMC.Visible = false;
}
//else
//{
// LabelMC.ForeColor = System.Drawing.Color.Black;
//}
LabelNTO.Text = "NTO";//(stu.NTO == "0") ? "" : stu.NTO;
if (stu.NTO != "0" && stu.NTO != null)
{
LabelNTO.Visible = true;
LabelNTO.ForeColor = System.Drawing.Color.Red;
}
else
{
LabelNTO.Visible = false;
}
//else
//{
// LabelNTO.ForeColor = System.Drawing.Color.Black;
//}
LabelAllert.Text = "Alert";//(stu.ALLERT == "0") ? "" : stu.ALLERT;
if (stu.ALLERT != "0" && stu.ALLERT != null)
{
LabelAllert.Visible = true;
LabelAllert.ForeColor = System.Drawing.Color.Red;
}
else
{
LabelAllert.Visible = false;
}
//else
//{
// LabelAllert.ForeColor = System.Drawing.Color.Black;
//}
LabelPell.Text = "PELL";//(stu.PELL == "0") ? "" : stu.PELL;
if (stu.PELL != "0" && stu.PELL != null)
{
LabelPell.Visible = true;
LabelPell.ForeColor = System.Drawing.Color.Red;
}
else
{
LabelPell.Visible = false;
}
//else
//.........这里部分代码省略.........
示例5: ButtonSubmit_Click
//.........这里部分代码省略.........
}
ViewState["POID"] = interventions.PrescriptionOID;
}
else
{
interventions.PrescriptionOID=Convert.ToInt32(ViewState["POID"].ToString());
if (interventions.UpdateInterventions())
{
LabelStatus.Text = "Update Successfully.";
}
else
{
LabelStatus.Text = "Update Failed.";
}
}
//Sending Email For Hand Off
try
{
if (interventions.HandOff == 1)
{
string toEmail = null;
if (ConfigurationManager.AppSettings["productionMode"].ToString() == "OFF")
{
toEmail = ConfigurationManager.AppSettings["toEmail"].ToString();
}
else
{
//Get Student Email Address By ID
studentid = Session["StudentID"].ToString();
Student stu = new Student();
stu = stu.GetStudentByStudentOID(studentid);
if (stu != null)
{
if (stu.EmailAddress != null)
{
toEmail = stu.EmailAddress;
}
}
//toEmail = ConfigurationManager.AppSettings["toEmail"].ToString();
}
#region Handoff Body
string html = null ;
html += "<table style='width: 100%; '>";
html += "<tr><td colspan='4'> <h3>Handoff Details of " + DropDownListIntervention.SelectedItem.ToString() + " Intervention</h3></td></tr>";
html += "<tr><td > </td><td style='background-color:#727272;width:100px;'> Assessment</td><td>" + ddlAssessment.Text + "</td><td></td></tr>";
html += "<tr><td > </td><td style='background-color:#727272;width:100px;'> Domain</td><td>" + DropDownListDomain.SelectedItem.ToString() + "</td><td></td></tr>";
html += "<tr><td > </td><td style='background-color:#727272;width:100px;'> Intervention</td><td>" + DropDownListIntervention.SelectedItem.ToString() + "</td><td></td></tr>";
html += "<tr><td > </td><td > </td><td style='background-color:#727272; width:150px;'>User Name </td><td>" + DropDownListAdvocate.SelectedItem.ToString() + "</td></tr>";
html += "<tr><td > </td><td > </td><td style='background-color:#727272; width:100px;'>Action Date </td><td>" + TextBoxLatestAction.Value.ToString();
html += " Prescribed ";
if (interventions.Prescribed == 1)
{
html += "<img alt='yes' src='../../images/tic-pic.png' />";
}
else
{
html += "<img alt='no' src='../../images/nonetic-pic.png' />";
}
html += " Participating ";
示例6: Populate
private void Populate(string BannerID)
{
Student stu = new Student();
stu = stu.GetStudentByStudentOID(BannerID);
if (stu != null)
{
TextBoxBannerID.Text = stu.StudentID;
TextLastName.Text = stu.LastName;
TextFirstName.Text = stu.FirstName;
if (stu.MiddleName!=null )
{
TextMiddleName.Value = stu.MiddleName.Trim ();
}
if(stu.ProgramEnrollment!=null )
{
TextTerm.Text = stu.ProgramEnrollment;
}
if (stu.BirthDate != null )
{
if (stu.BirthDate.ToString().Length > 11)
{
//Date1.CalendarDateString =Convert .ToString ( stu.BirthDate).Substring (0,8);
TextBirthDate.Value = stu.BirthDate.ToString().Substring(0, stu.BirthDate.ToString().Length - 12);
}
}
TextBoxPriorCredit.Text = stu.PriorCreditQuestion;
if (stu.MajorProgramEnrollment != null)
{
txtProgramInterest.Text = stu.MajorProgramEnrollment;
}
DropDownListStatus.Text = stu.Status;
}
createSession();
}