Ejemplo n.º 1
0
 /// <summary>
 /// 刪除報告書
 /// </summary>
 /// <param name="report">被刪除的報告書</param>
 public void DeleteReport(Report report)
 {
     FTISDao.DeleteReport(report);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 更新報告書
 /// </summary>
 /// <param name="report">被更新的報告書</param>
 /// <returns>更新後的報告書</returns>
 public Report UpdateReport(Report report)
 {
     return FTISDao.UpdateReport(report);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 新增報告書
 /// </summary>
 /// <param name="report">被新增的報告書</param>
 /// <returns>新增後的報告書</returns>
 public Report CreateReport(Report report)
 {
     return FTISDao.CreateReport(report);
 }
Ejemplo n.º 4
0
        private void Save(Report entity)
        {
            entity.Name = Name;
            entity.SortId = SortId;
            entity.Status = Status;
            entity.PostDate = PostDate;
            entity.Company = Company;
            entity.CompanyTrade = CompanyTrade;
            entity.AUrl = AUrl;
            entity.CompanyNationality = CompanyNationality;
            entity.CompanyScale = CompanyScale;
            entity.CompanyType = CompanyType;
            entity.PostYear = PostYear;
            entity.ReportName = ReportName;
            entity.ReportYear = ReportYear;
            entity.ReportType = ReportType;
            entity.ReportPage = ReportPage;
            entity.AA1000 = AA1000;
            entity.GRI = GRI;
            entity.ReportPic = ReportPic;
            entity.CSRPage1 = CSRPage1;
            entity.CSRPage2 = CSRPage2;
            entity.CAUrl = CAUrl;
            entity.CVister = CVister;
            entity.EAUrl = EAUrl;
            entity.EVister = EVister;
            entity.DAUrl = DAUrl;
            entity.DVister = DVister;
            entity.ReportCert = ReportCert;
            entity.OpinionTel = OpinionTel;
            entity.OpinionEmail = OpinionEmail;
            entity.ContactName = ContactName;
            entity.ContactDept = ContactDept;
            entity.ContactTel = ContactTel;
            entity.ContactEmail = ContactEmail;
            entity.Content = Content;
            entity.MainCode = MainCode;
            entity.MainName = MainName;
            entity.AdminCode = AdminCode;
            entity.AdminName = AdminName;
            entity.ServiceCode = ServiceCode;
            entity.ServiceName = ServiceName;

            if (entity.ReportId == 0)
            {
                m_FTISService.CreateReport(entity);
            }
            else
            {
                m_FTISService.UpdateReport(entity);
            }

            this.SendOrderOk = true;
            LoadEntity(entity.ReportId);
        }
Ejemplo n.º 5
0
 public void Insert()
 {
     Report entity = new Report();
     Save(entity);
 }
Ejemplo n.º 6
0
 protected void LoadEntity(Report entity)
 {
     if (entity != null)
     {
         EntityId = entity.ReportId;
         //Name = entity.Name;
         SortId = entity.SortId;
         Status = entity.Status;
         PostDate = entity.PostDate;
         Company = entity.Company;
         CompanyTrade = entity.CompanyTrade;
         AUrl = entity.AUrl;
         CompanyNationality = entity.CompanyNationality;
         CompanyScale = entity.CompanyScale;
         CompanyType = entity.CompanyType;
         PostYear = entity.PostYear;
         ReportName = entity.ReportName;
         ReportYear = entity.ReportYear;
         ReportType = entity.ReportType;
         ReportPage = entity.ReportPage;
         AA1000 = entity.AA1000;
         GRI = entity.GRI;
         ReportPic = entity.ReportPic;
         CSRPage1 = entity.CSRPage1;
         CSRPage2 = entity.CSRPage2;
         CAUrl = entity.CAUrl;
         CVister = entity.CVister;
         EAUrl = entity.EAUrl;
         EVister = entity.EVister;
         DAUrl = entity.DAUrl;
         DVister = entity.DVister;
         ReportCert = entity.ReportCert;
         OpinionTel = entity.OpinionTel;
         OpinionEmail = entity.OpinionEmail;
         ContactName = entity.ContactName;
         ContactDept = entity.ContactDept;
         ContactTel = entity.ContactTel;
         ContactEmail = entity.ContactEmail;
         Content = entity.Content;
         MainCode = entity.MainCode;
         MainName = entity.MainName;
         AdminCode = entity.AdminCode;
         AdminName = entity.AdminName;
         ServiceCode = entity.ServiceCode;
         ServiceName = entity.ServiceName;
     }
 }