コード例 #1
0
        public int InsertQualification(TRNEducationLevel objQualification)
        {
            objQualification.EducationalLevelID = 1;
            BeginTransaction();
            try
            {
                objQualification.EducationalLevelID = Insert(objQualification);
                CommitTransaction();
            }
            catch (Exception ex)
            {
                RollBackTransaction();
                objQualification.EducationalLevelID = -1;
            }

            return objQualification.EducationalLevelID;
        }
コード例 #2
0
        public int DeleteQualification(TRNEducationLevel objQualification)
        {
            int rowsaffected = -1;
            BeginTransaction();
            try
            {
                String[] UpdateProperties = new String[] { "Status" };
                rowsaffected = Update(objQualification, UpdateProperties);

                CommitTransaction();
            }
            catch (Exception e)
            {
                RollBackTransaction();
                rowsaffected = -1;
            }
            return rowsaffected;
        }
コード例 #3
0
 public int DeleteQualification(TRNEducationLevel objQualification)
 {
     return new TRNEducationLevelDAO().DeleteQualification(objQualification);
 }
コード例 #4
0
 public int InsertQualification(TRNEducationLevel objQualification)
 {
     return new TRNEducationLevelDAO().InsertQualification(objQualification);
 }
コード例 #5
0
 public int UpdateQualification(TRNEducationLevel objQualification)
 {
     return new TRNEducationLevelDAO().UpdateQualification(objQualification);
 }
コード例 #6
0
 public static TRNEducationLevel GetAll(int EducationLevelID)
 {
     TRNEducationLevel objEducationLevel = new TRNEducationLevel();
     return (TRNEducationLevel)(new TRNEducationLevelDAO().FillDTO(objEducationLevel, "ID=" + EducationLevelID));
 }