コード例 #1
0
ファイル: Grade_View.aspx.cs プロジェクト: Letractively/dilas
    private void Show()
    {
        DataRow row = _grade.FillPlaceHolderControlsById(Request["id"]);

        if (row == null) return;

        DGrade dGrade = new DGrade();
        DSchool dSchool = new DSchool();

        //取得學校名稱
        String schoolAllName = dSchool.GetNameBySchoolId(row["school_id"].ToString());
        schoolName.Text = schoolAllName;

        //取得班級名稱
        GradeName.Text = dGrade.GetShortGradeNameById((int) row["id"]);

        //學校班級名稱
        AllName.Text = dGrade.GetFullGradeNameById((int) row["id"]);

        //取得班級人數
        String gradeStudentCount = dGrade.GetGradeCountById((int) row["id"]);
        GradeStudentCount.Text = gradeStudentCount;
        description.Text = My.WebForm.TXT2HTML(description.Text);

        enable.Text = enable.Text.ToScodeEnableName();
    }
コード例 #2
0
ファイル: Grade_Edit.aspx.cs プロジェクト: Letractively/dilas
    //秀出所有學校名單(下拉式選單)
    private void Show()
    {
        DGrade dGrade = new DGrade();
        DataRow row = _grade.FillPlaceHolderControlsById(Request["id"]);

        //取得學校名稱
        DSchool dSchool = new DSchool();
        schoolName.Text = dSchool.GetNameBySchoolId(row["school_id"].ToString());

        AllName.Text = dGrade.GetFullGradeNameById((int)row["id"]);
    }
コード例 #3
0
    private void Show()
    {
        DataTable dt = dl.GetTeacherByGradeID(Request["id"]);
        gvList.DataSource = dt;
        gvList.DataBind();

        EasyDataProvide Grade = new EasyDataProvide("Grade");
        DataRow row = Grade.GetById(Request["ID"]);
        DGrade dGrade = new DGrade();
        AllName.Text = dGrade.GetFullGradeNameById((int)row["id"]);
    }
コード例 #4
0
    protected void Show()
    {
        EasyDataProvide Grade = new EasyDataProvide("Grade");
        DataRow row = Grade.GetById(Request["ID"]);
        if(row==null) return;
        DataTable dt = dl.GetStudentList(row["school_id"].ToString(), Request["ID"], "", "", "-1", "-1", "-1", "", "order by SeatNumber asc", 70, 1);
        gvList.DataSource = dt;
        gvList.DataBind();

        DGrade dGrade = new DGrade();
        AllName.Text = dGrade.GetFullGradeNameById((int)row["id"]);
    }