Esempio n. 1
0
    public void DataBindSchoolWork(int schoolWorkId)
    {
        DalOperationAboutSchoolWorks doasw = new DalOperationAboutSchoolWorks();
        DataTable dt = doasw.FindSchoolWorkSchoolWorkIdForCheck(schoolWorkId).Tables[0];
        lblNo.Text = dt.Rows[0]["studentNo"].ToString().Trim();
        lblName.Text = dt.Rows[0]["studentName"].ToString().Trim();
        txtRemark.Text = dt.Rows[0]["remark"].ToString().Trim();
        txtScore.Text = dt.Rows[0]["score"].ToString().Trim();

        if (int.TryParse(dt.Rows[0]["returnAttachmentId"].ToString().Trim(), out attachmentIds))
        {
            attachmentIds = int.Parse(dt.Rows[0]["returnAttachmentId"].ToString().Trim());
        }
    }