Ejemplo n.º 1
0
        public void  DisplayTeacherDetailsInf(string te_id, Label lblTeID, Label lblTeName, Label lblTeDpName, Label lblTeLgName, Label lblTeZcName, Label lblTeSex, Label lblTeIdentity, Label lblTeSp, Label lblTeAddress, Label lblTeZzFace, Label lblTeMinZu, Label lblTeTel, Label lblTeBirthday, Label lblTeTeachTime, Label lblTePro, TextBox txtRemark)
        {
            DataRow dr = teacher.DisplayTeacherDetailsInf(te_id).Rows[0];

            lblTeID.Text        = dr["te_id"].ToString();
            lblTeName.Text      = dr["te_name"].ToString();
            lblTeDpName.Text    = dr["dp_name"].ToString();
            lblTeLgName.Text    = dr["lg_name"].ToString();
            lblTeZcName.Text    = dr["zc_name"].ToString();
            lblTeSex.Text       = dr["te_sex"].ToString();
            lblTeIdentity.Text  = dr["te_identity"].ToString();
            lblTeSp.Text        = dr["te_speciality"].ToString();
            lblTeAddress.Text   = dr["te_address"].ToString();
            lblTeZzFace.Text    = dr["te_zzface"].ToString();
            lblTeMinZu.Text     = dr["te_minzu"].ToString();
            lblTeTel.Text       = dr["te_tel"].ToString();
            lblTeBirthday.Text  = dr["te_birthday"].ToString().Substring(0, 8);
            lblTeTeachTime.Text = dr["te_teachtime"].ToString().Substring(0, 8);
            lblTePro.Text       = dr["tb_Province"].ToString();
            txtRemark.Text      = dr["te_remark"].ToString();
        }