CommonCodeDac.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using CLIP.eForm.Server.Data;
  3. using CLIP.eForm.Server.VO;
  4. using IBatisNet.DataMapper;
  5. using System.Collections;
  6. using System.Collections.Generic;
  7. using CLIP.eForm.Consent.Entity;
  8. namespace CLIP.eForm.Consent.Dac
  9. {
  10. public class CommonCodeDac : DacBase
  11. {
  12. #region #### SELECT ####
  13. public int GetSequence(ISqlMapper mapper, Code param)
  14. {
  15. return mapper.QueryForObject<Int32>("GET_SEQUENCE", param);
  16. }
  17. #endregion
  18. #region #### INSERT ####
  19. public void InsertSequence(ISqlMapper mapper, Code param)
  20. {
  21. mapper.Insert("SET_SEQUENCE", param);
  22. }
  23. #endregion
  24. #region #### UPDATE ####
  25. public void UpdateSequence(ISqlMapper mapper, Code param)
  26. {
  27. mapper.Update("UPDATE_SEQUENCE", param);
  28. }
  29. #endregion
  30. #region #### DELETE ####
  31. #endregion
  32. public IList<ImageServerPropsVO> GetImageServerProps(ISqlMapper mapper, Hashtable param)
  33. {
  34. return mapper.QueryForList<ImageServerPropsVO>("getImageServerProps", param);
  35. }
  36. }
  37. }