コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["ID"] == null) return;

              //lekérdezzük a KEF bemutatkozó adatát
              m_orgID = new Guid(Request["ID"]);

              //lblTitle.Text = "Egyéb dokumentumok";

              IKefFileTypeService srvKefFileType = ServiceFactory.GetKefFileTypeService();
              KefFileTypeContainer contKefFileType = srvKefFileType.KefFileTypeSelectAll();
              KefFileTypeContainer contKefFileTypeMust = new KefFileTypeContainer();
              foreach (KefFileType item in contKefFileType.All)
              {
            if ((item.ID.ToString().Trim() != "STRATEGY") && (item.ID.ToString().Trim() != "EVENT"))
            {
              contKefFileTypeMust.Add(item);
             }
              }
              Repeater1.DataSource = contKefFileTypeMust.All;
              Repeater1.DataBind();
              #region : Utolsó módosítás dátuma :

              IOrganisationService srvOrg = ServiceFactory.GetOrganisationService();
              Organisation org = srvOrg.OrganisationSelect(m_orgID);
              lblSubTitle.Text = org.Name;
              if (org.KefDownloadsLastModified != DBDateTime.Null)
              {
            lblLastMod.Text = string.Format("<i>{0}</i>", org.KefDownloadsLastModified);
              }

              #endregion
        }
コード例 #2
0
 public KefFileTypeContainer KefFileTypeSelectFiltered(bool bIsStrategy, bool bIsOtherDocument, bool bIsOrgAttachment)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     KefFileTypeContainer result;
     DataSet entitySet =
       m_DataContext.ndihdKefFileTypeSelectFiltered(bIsStrategy, bIsOtherDocument, bIsOrgAttachment);
     result = new KefFileTypeContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
コード例 #3
0
 public virtual KefFileTypeContainer KefFileTypeSelectAll()
 {
     TraceCallEnterEvent.Raise();
       try
       {
     KefFileTypeContainer result;
     DataSet entitySet = m_DataContext.ndihdKefFileTypeSelectAll();
     result = new KefFileTypeContainer(entitySet.Tables[0]);
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }