Пример #1
0
 public int Update()
 {
     base.BaseFile = JpmSoft.Code.JPMFileHelper.GetBaseFile(entity.Student_ID);
     UploadControlHelper.ClearAnnexCollection();
     if (base.Update() == 1)
     {
         return(JpmSoftComponent.Student.EditStudent(entity));
     }
     return(0);
 }
Пример #2
0
 public int Create()
 {
     base.BaseFile                = JpmSoft.Code.JPMFileHelper.CreateBaseFile(entity.Student_ID);
     base.SysTemplateCode         = this.SysTemplateCode;
     base.BaseFile.file.FileTitle = entity.Student_ID;
     UploadControlHelper.ClearAnnexCollection();
     if (base.Save() == 1) // 保存基类文档信息
     {
         if (JpmSoftComponent.Student.AddStudent(entity) == 1)
         {
             return(1);
         }
         else
         {
             base.Delete();
             return(0);
         }
     }
     return(0);
 }