Пример #1
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="IDVal">Value of 'cID' field</param>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public Qualification(DBString IDVal,
                  Qualification origInstance)
     : base(IDVal, origInstance)
 {
 }
Пример #2
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public Qualification(Qualification origInstance)
     : base(origInstance)
 {
 }
 public virtual Qualification QualificationSelect(DBString IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     Qualification result = null;
     DataSet entitySet = m_DataContext.ndihdQualificationSelect(IDVal);
     if (entitySet.Tables[0].Rows.Count != 0)
     {
       result = new Qualification(entitySet);
     }
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
 public virtual void QualificationUpdate(Qualification entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       int count;
       m_DataContext.ndihdQualificationUpdate(entity.ID,
                                          entity.Name,
                                          entity.IsActive, entity.Order, 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 QualificationInsert(Qualification entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       m_DataContext.ndihdQualificationInsert(entity.ID,
                                          entity.Name,
                                          entity.IsActive,
                                          entity.Order);
       m_DataContext.CommitNested();
     }
     catch
     {
       m_DataContext.RollbackNested();
       throw;
     }
     TraceCallReturnEvent.Raise();
     return;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }