protected void DataBinds(int ID)
        {
            LabMS.BLL.CourseOutLine couOutLin = new LabMS.BLL.CourseOutLine();
            LabMS.Model.CourseOutLine couOutLinModel = new LabMS.Model.CourseOutLine();

            couOutLinModel = couOutLin.GetModel(ID);
            try
            {
                tb_Submitter.Text = couOutLinModel.COutLine_Submiter;
                tb_Time.Text = string.Format("{0:d}", couOutLinModel.COutLine_SubmitTime);
                tb_CourseName.Text = couOutLinModel.COutLine_Course;
                tb_CourseCode.Text = couOutLinModel.COutLine_CourseCode;
                tb_KeyWord.Text = couOutLinModel.COutLine_KeyWord;
                tb_Content.Text = couOutLinModel.COutLine_Content.Replace("\r\n", "<br/>");
                tb_CourseID.Text = couOutLinModel.COutLine_CourseID.ToString();
                AttachID.Value = couOutLinModel.COutLine_Attach.ToString();
                if (couOutLinModel.COutLine_Attach == null)
                {
                    a1.Visible = false;
                    AttachmentName.Visible = false;
                    IsDelCB.Checked = true;
                    fp_Attachment.Attributes.Add("style", "display:block");
                }
                else
                {
                    AttachmentName.Text = GetAttachName(int.Parse(couOutLinModel.COutLine_Attach.ToString()));
                }
            }
            catch
            {
                ERRLbl.Text = "系统异常,参数不合法!";
                ERRLbl.Visible = true;
                ModifyBtn.Visible = false;
            }
        }
 protected bool GetVisiblityType(object value)
 {
     if (value != null)
     {
         int CoureseID=0;
         if (int.TryParse(value.ToString(), out CoureseID))
         {
             if (CoureseID != 0)
             {
                 LabMS.BLL.CourseOutLine CourseOutLine = new LabMS.BLL.CourseOutLine();
                 LabMS.Model.CourseOutLine model = CourseOutLine.GetModel(CoureseID);
                 if (model != null)
                 {
                     if (model.COutLine_Attach != null)
                     {
                         return true;
                     }
                     else
                     {
                         return false;
                     }
                 }
             }
         }
     }
     return false;
 }