コード例 #1
0
 public SystemEmailType GetByID(int _systemEmailTypeID)
 {
     SystemEmailTypeDAC _systemEmailTypeComponent = new SystemEmailTypeDAC();
      IDataReader reader = _systemEmailTypeComponent.GetByIDSystemEmailType(_systemEmailTypeID);
      SystemEmailType _systemEmailType = null;
      while(reader.Read())
      {
          _systemEmailType = new SystemEmailType();
          if(reader["SystemEmailTypeID"] != DBNull.Value)
              _systemEmailType.SystemEmailTypeID = Convert.ToInt32(reader["SystemEmailTypeID"]);
          if(reader["Name"] != DBNull.Value)
              _systemEmailType.Name = Convert.ToString(reader["Name"]);
      _systemEmailType.NewRecord = false;             }             reader.Close();
      return _systemEmailType;
 }
コード例 #2
0
 public List<SystemEmailType> GetAll()
 {
     SystemEmailTypeDAC _systemEmailTypeComponent = new SystemEmailTypeDAC();
      IDataReader reader =  _systemEmailTypeComponent.GetAllSystemEmailType().CreateDataReader();
      List<SystemEmailType> _systemEmailTypeList = new List<SystemEmailType>();
      while(reader.Read())
      {
      if(_systemEmailTypeList == null)
          _systemEmailTypeList = new List<SystemEmailType>();
          SystemEmailType _systemEmailType = new SystemEmailType();
          if(reader["SystemEmailTypeID"] != DBNull.Value)
              _systemEmailType.SystemEmailTypeID = Convert.ToInt32(reader["SystemEmailTypeID"]);
          if(reader["Name"] != DBNull.Value)
              _systemEmailType.Name = Convert.ToString(reader["Name"]);
      _systemEmailType.NewRecord = false;
      _systemEmailTypeList.Add(_systemEmailType);
      }             reader.Close();
      return _systemEmailTypeList;
 }
コード例 #3
0
 public int UpdateDataset(System.Data.DataSet dataset)
 {
     SystemEmailTypeDAC systememailtypecomponent = new SystemEmailTypeDAC();
     return systememailtypecomponent.UpdateDataset(dataset);
 }
コード例 #4
0
 public bool Update( int SystemEmailTypeID,  string Name,  int Original_SystemEmailTypeID)
 {
     SystemEmailTypeDAC systememailtypeComponent = new SystemEmailTypeDAC();
     return systememailtypeComponent.UpdateSystemEmailType( SystemEmailTypeID,  Name,  Original_SystemEmailTypeID);
 }
コード例 #5
0
 public bool Update(SystemEmailType systememailtype ,int old_systemEmailTypeID)
 {
     SystemEmailTypeDAC systememailtypeComponent = new SystemEmailTypeDAC();
     return systememailtypeComponent.UpdateSystemEmailType( systememailtype.SystemEmailTypeID,  systememailtype.Name,  old_systemEmailTypeID);
 }
コード例 #6
0
 public bool Insert( int SystemEmailTypeID,  string Name)
 {
     SystemEmailTypeDAC systememailtypeComponent = new SystemEmailTypeDAC();
     return systememailtypeComponent.InsertNewSystemEmailType( SystemEmailTypeID,  Name);
 }
コード例 #7
0
 public bool Insert(SystemEmailType systememailtype)
 {
     SystemEmailTypeDAC systememailtypeComponent = new SystemEmailTypeDAC();
     return systememailtypeComponent.InsertNewSystemEmailType( systememailtype.SystemEmailTypeID,  systememailtype.Name);
 }
コード例 #8
0
 public void Delete(int Original_SystemEmailTypeID)
 {
     SystemEmailTypeDAC systememailtypeComponent = new SystemEmailTypeDAC();
     systememailtypeComponent.DeleteSystemEmailType(Original_SystemEmailTypeID);
 }