Exemplo n.º 1
0
    private void Show()
    {
        EasyDataProvide People = new EasyDataProvide("People");

        DataRow row = People.FillPageControlsById(Request["id"]);
        if (row == null) return;

        gender.Text = gender.Text.ToScodeGenderName();

        DStudent dStudent = new DStudent(Request["id"]);
        telephone_id.Text = dStudent.Phone;
        address_id.Text = dStudent.Address;
        username.Value = dStudent.Account;
        emailAddress.Text = dStudent.Email;
        studentNumber.Text = dStudent.StudentNumber;
        seatNumber.Text = dStudent.SeatNumber;
        hidPeople_id.Value = Request["id"];
        myPhoto.ImageUrl = row["myPhoto"].ToString() == "" ? (row["gender"].ToString() == "True" ? "~/images/Male90x85.jpg" : "~/images/FeMale90x85.jpg") : String.Format("{0}/{1}/{2}/M{3}", ConfigurationManager.AppSettings["FileUploadPath"], (new Person()).School_id, row["id"], row["myPhoto"]);

        Person person = new Person();
        if (person.Role == Person.LoginRole.Teacher)
        {
            plPassword.Visible = true;

        }
        else
        {
            plPassword.Visible = false;
        }
    }
Exemplo n.º 2
0
    private void show()
    {
        DataRow row = _ModuleFiles.FillPageControlsById(Request["ID"]);

        fileUrlPath.Text = row["fileUrl"].ToString();
    }
Exemplo n.º 3
0
 private void show()
 {
     _ModulePictures.FillPageControlsById(Request["ID"].ToString());
 }
Exemplo n.º 4
0
 private void show()
 {
     _ModuleLinks.FillPageControlsById(Request["ID"]);
 }