public virtual void WorkingAreaUpdate(WorkingArea entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       int count;
       m_DataContext.ndihdWorkingAreaUpdate(entity.ID,
                                        entity.Name,
                                        entity.IsActive,
                                        entity.IsKef,
                                        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 WorkingArea WorkingAreaSelect(DBString IDVal)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     WorkingArea result = null;
     DataSet entitySet = m_DataContext.ndihdWorkingAreaSelect(IDVal);
     if (entitySet.Tables[0].Rows.Count != 0)
     {
       result = new WorkingArea(entitySet);
     }
     TraceCallReturnEvent.Raise();
     return result;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
예제 #3
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="IDVal">Value of 'cID' field</param>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public WorkingArea(DBString IDVal,
                WorkingArea origInstance)
     : base(IDVal, origInstance)
 {
 }
 public virtual void WorkingAreaInsert(WorkingArea entity)
 {
     TraceCallEnterEvent.Raise();
       try
       {
     m_DataContext.BeginNestedTran();
     try
     {
       m_DataContext.ndihdWorkingAreaInsert(entity.ID,
                                        entity.Name,
                                        entity.IsActive,
                                        entity.IsKef,
                                        entity.Rank);
       m_DataContext.CommitNested();
     }
     catch
     {
       m_DataContext.RollbackNested();
       throw;
     }
     TraceCallReturnEvent.Raise();
     return;
       }
       catch (Exception ex)
       {
     ExceptionManager.Publish(ex);
     TraceCallReturnEvent.Raise(false);
     throw;
       }
 }
예제 #5
0
 // -------------------------------------------------------------------------------------
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="origInstance">Original document data to copy.</param>
 // -------------------------------------------------------------------------------------
 public WorkingArea(WorkingArea origInstance)
     : base(origInstance)
 {
 }