//初始化编辑页面
        public void InitialNotifyEdit(int englishExamNotifyInfoId)
        {
            DalOperationAboutEnglishExam dalOperationAboutEnglishExam = new DalOperationAboutEnglishExam();
            EnglishExamNotify englishExamNotify = dalOperationAboutEnglishExam.GetEnglishExamNotifyById(englishExamNotifyInfoId);

            txtTitle.Text = englishExamNotify.englishExamNotifyTitle;

            this.Textarea1.Value = englishExamNotify.englishExamNotifyContent;
            datepicker.Value = englishExamNotify.deadLineTime.ToString("yyyy-MM-dd HH:mm:ss");

            hidAttachmentId.Value = englishExamNotify.attachmentIds;

            if (englishExamNotify.attachmentIds.Length > 0)
            {
                DalOperationAttachments dalOperationAttachments = new DalOperationAttachments();
                ltlAttachment.Text = dalOperationAttachments.GetAttachmentsList(englishExamNotify.attachmentIds, ref iframeCount, true, string.Empty);
            }

            if (englishExamNotify.locale.Trim() == "苏州")
            {
                ddlLocale.Items.Add(new ListItem("苏州", "苏州"));
                ddlLocale.Items.Add(new ListItem("合肥", "合肥"));
            }
            else if (englishExamNotify.locale.Trim() == "合肥")
            {
                ddlLocale.Items.Add(new ListItem("合肥", "合肥"));
                ddlLocale.Items.Add(new ListItem("苏州", "苏州"));
            }
        }
Ejemplo n.º 2
0
        //初始化编辑页面
        public void InitialNotifyEdit(int englishExamNotifyInfoId)
        {
            DalOperationAboutEnglishExam dalOperationAboutEnglishExam = new DalOperationAboutEnglishExam();
            dalOperationAboutEnglishExam.UpdateEnglishExamNotifyHitsById(englishExamNotifyInfoId);
            EnglishExamNotify englishExamNotify = dalOperationAboutEnglishExam.GetEnglishExamNotifyById(englishExamNotifyInfoId);

            ltlTitle.Text = englishExamNotify.englishExamNotifyTitle;

            this.ltlContent.Text = englishExamNotify.englishExamNotifyContent;
            ltlDeadLineTime.Text = englishExamNotify.deadLineTime.ToString();

            if (englishExamNotify.attachmentIds.Length > 0)
            {
                DalOperationAttachments dalOperationAttachments = new DalOperationAttachments();
                ltlAttachment.Text = dalOperationAttachments.GetAttachmentsList(englishExamNotify.attachmentIds, ref iframeCount, true,string.Empty);
            }
        }