Example #1
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="IDVal">Value of 'cID' field</param>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public KefFileType(DBString IDVal,
                KefFileType origInstance)
     : base(IDVal, origInstance)
 {
 }
Example #2
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public KefFileType(KefFileType origInstance)
     : base(origInstance)
 {
 }
 public virtual KefFileType KefFileTypeSelect(DBString IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     KefFileType result = null;
     DataSet entitySet = m_DataContext.ndihdKefFileTypeSelect(IDVal);
     if (entitySet.Tables[0].Rows.Count != 0)
     {
       result = new KefFileType(entitySet);
     }
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public virtual void KefFileTypeUpdate(KefFileType entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       int count;
       m_DataContext.ndihdKefFileTypeUpdate(entity.ID,
                                        entity.Name,
                                        entity.IsStrategy,
                                        entity.IsOtherDocument,
                                        entity.IsOrgAttachment,
                                        entity.Rank, out count);
       if (count == 0) throw new ServiceUpdateException();
       m_DataContext.CommitNested();
     }
     catch
     {
       m_DataContext.RollbackNested();
       throw;
     }
     TraceCallReturnEvent.Raise();
     return;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public virtual void KefFileTypeDelete(KefFileType entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       m_DataContext.ndihdKefFileTypeDelete(entity.ID);
       m_DataContext.CommitNested();
     }
     catch
     {
       m_DataContext.RollbackNested();
       throw;
     }
     TraceCallReturnEvent.Raise();
     return;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }