Пример #1
0
 public FormDocumentStatus GetByID(int _formDocumentStatusID)
 {
     FormDocumentStatusDAC _formDocumentStatusComponent = new FormDocumentStatusDAC();
      IDataReader reader = _formDocumentStatusComponent.GetByIDFormDocumentStatus(_formDocumentStatusID);
      FormDocumentStatus _formDocumentStatus = null;
      while(reader.Read())
      {
          _formDocumentStatus = new FormDocumentStatus();
          if(reader["FormDocumentStatusID"] != DBNull.Value)
              _formDocumentStatus.FormDocumentStatusID = Convert.ToInt32(reader["FormDocumentStatusID"]);
          if(reader["StatusName"] != DBNull.Value)
              _formDocumentStatus.StatusName = Convert.ToString(reader["StatusName"]);
      _formDocumentStatus.NewRecord = false;             }             reader.Close();
      return _formDocumentStatus;
 }
Пример #2
0
 public List<FormDocumentStatus> GetAll()
 {
     FormDocumentStatusDAC _formDocumentStatusComponent = new FormDocumentStatusDAC();
      IDataReader reader =  _formDocumentStatusComponent.GetAllFormDocumentStatus().CreateDataReader();
      List<FormDocumentStatus> _formDocumentStatusList = new List<FormDocumentStatus>();
      while(reader.Read())
      {
      if(_formDocumentStatusList == null)
          _formDocumentStatusList = new List<FormDocumentStatus>();
          FormDocumentStatus _formDocumentStatus = new FormDocumentStatus();
          if(reader["FormDocumentStatusID"] != DBNull.Value)
              _formDocumentStatus.FormDocumentStatusID = Convert.ToInt32(reader["FormDocumentStatusID"]);
          if(reader["StatusName"] != DBNull.Value)
              _formDocumentStatus.StatusName = Convert.ToString(reader["StatusName"]);
      _formDocumentStatus.NewRecord = false;
      _formDocumentStatusList.Add(_formDocumentStatus);
      }             reader.Close();
      return _formDocumentStatusList;
 }
Пример #3
0
 public int UpdateDataset(System.Data.DataSet dataset)
 {
     FormDocumentStatusDAC formdocumentstatuscomponent = new FormDocumentStatusDAC();
     return formdocumentstatuscomponent.UpdateDataset(dataset);
 }
Пример #4
0
 public bool Update( int FormDocumentStatusID,  string StatusName,  int Original_FormDocumentStatusID)
 {
     FormDocumentStatusDAC formdocumentstatusComponent = new FormDocumentStatusDAC();
     return formdocumentstatusComponent.UpdateFormDocumentStatus( FormDocumentStatusID,  StatusName,  Original_FormDocumentStatusID);
 }
Пример #5
0
 public bool Update(FormDocumentStatus formdocumentstatus ,int old_formDocumentStatusID)
 {
     FormDocumentStatusDAC formdocumentstatusComponent = new FormDocumentStatusDAC();
     return formdocumentstatusComponent.UpdateFormDocumentStatus( formdocumentstatus.FormDocumentStatusID,  formdocumentstatus.StatusName,  old_formDocumentStatusID);
 }
Пример #6
0
 public bool Insert( int FormDocumentStatusID,  string StatusName)
 {
     FormDocumentStatusDAC formdocumentstatusComponent = new FormDocumentStatusDAC();
     return formdocumentstatusComponent.InsertNewFormDocumentStatus( FormDocumentStatusID,  StatusName);
 }
Пример #7
0
 public bool Insert(FormDocumentStatus formdocumentstatus)
 {
     FormDocumentStatusDAC formdocumentstatusComponent = new FormDocumentStatusDAC();
     return formdocumentstatusComponent.InsertNewFormDocumentStatus( formdocumentstatus.FormDocumentStatusID,  formdocumentstatus.StatusName);
 }
Пример #8
0
 public void Delete(int Original_FormDocumentStatusID)
 {
     FormDocumentStatusDAC formdocumentstatusComponent = new FormDocumentStatusDAC();
     formdocumentstatusComponent.DeleteFormDocumentStatus(Original_FormDocumentStatusID);
 }