本文整理汇总了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)
{ }
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
}
示例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();
}
}