Beispiel #1
0
    protected void BindGradeCheckNotify()
    {
        StudentsGradeCheckConfig model = new StudentsGradeCheckConfig { notifyTitle = string.Empty, notifyContent = string.Empty };

        DalOperationAboutGradeCheck dos = new DalOperationAboutGradeCheck();
        DataTable dt = dos.GetGradeCheckDocument().Tables[0];

        for (int i = 0; i < dt.Rows.Count; i++)
        {
            model.notifyTitle = dt.Rows[i]["notifyTitle"].ToString().Trim();
            model.notifyContent = dt.Rows[i]["notifyContent"].ToString().Trim();
            model.attachmentIds = dt.Rows[i]["attachmentIds"].ToString().Trim();
        }

        txtNotifyTitle.Text = model.notifyTitle;
        txtNotifyContent.Text = model.notifyContent;
        hidAttachmentId.Value = model.attachmentIds;

        if (model.attachmentIds.Length > 0)
        {
            DalOperationAttachments dalOperationAttachments = new DalOperationAttachments();
            spanAttachment.InnerHtml = dalOperationAttachments.GetAttachmentsList(model.attachmentIds, ref iframeCount, true, string.Empty);
        }
    }