UserDac.cs.svn-base 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #region Copyright © 2015 CLIPSOFT Co.,Ltd. All Rights Reserved.
  2. //
  3. // All rights are reserved. Reproduction or transmission in whole or in part,
  4. // in any form or by any means, electronic, mechanical or otherwise, is
  5. // prohibited without the prior written consent of the copyright owner.
  6. //
  7. // Filename:SelectConsentSvcDac.cs
  8. //
  9. #endregion
  10. using System;
  11. using CLIP.eForm.Consent.Entity;
  12. using CLIP.eForm.Server.Data;
  13. using IBatisNet.DataMapper;
  14. using System.Collections;
  15. using System.Collections.Generic;
  16. namespace CLIP.eForm.Consent.Dac {
  17. public class UserDac : DacBase {
  18. public IList<SettingListVO> GetSettingData(ISqlMapper mapper, Hashtable param) {
  19. return mapper.QueryForList<SettingListVO>("GET_SETTING_LIST", param);
  20. }
  21. /// <summary>
  22. /// 사용자 정보를 반환
  23. /// 의사의 경우(like 03%) 전화번호 대신 엔존번호를 가져온다
  24. /// </summary>
  25. /// <param name="mapper">The mapper.</param>
  26. /// <param name="param">The parameter.</param>
  27. /// <returns></returns>
  28. public UserVO GetUserInfo(ISqlMapper mapper, Hashtable param) {
  29. return mapper.QueryForObject<UserVO>("GET_USER_INFO", param);
  30. }
  31. //public IList<UserFormSetVO> GetUserFormSet(ISqlMapper mapper, Hashtable param)
  32. //{
  33. // return mapper.QueryForList<UserFormSetVO>("getUserFormSet", param);
  34. //}
  35. public int GetUserFormCode(ISqlMapper mapper, Hashtable param) {
  36. return mapper.QueryForObject<Int32>("getFavorateDocCount", param);
  37. }
  38. public int SetUserFormSet(ISqlMapper mapper, Hashtable param) {
  39. //return mapper.QueryForObject<Int32>("setUserFormSet", param);
  40. return (int) mapper.Insert("setUserFormSet", param);
  41. }
  42. public int DelUserFormSet(ISqlMapper mapper, Hashtable param) {
  43. //mapper.QueryForObject<Int32>("delUserFormSet", param);
  44. return mapper.Delete("delUserFormSet", param);
  45. }
  46. public IList<UserSignImageVO> GetUserSignImage(ISqlMapper mapper, Hashtable param) {
  47. return mapper.QueryForList<UserSignImageVO>("getUserSignImage", param);
  48. }
  49. public MobileLoginResult doLogin(ISqlMapper mapper, Hashtable param) {
  50. return mapper.QueryForObject<MobileLoginResult>("doLogin", param);
  51. }
  52. public IList<UserLoginDeptList> getUserdeptList(ISqlMapper mapper, Hashtable param) {
  53. return mapper.QueryForList<UserLoginDeptList>("getUserdeptList", param);
  54. }
  55. public MobileUserInfo getMobileUserInfo(ISqlMapper mapper, Hashtable param) {
  56. return mapper.QueryForObject<MobileUserInfo>("getMobileUserInfo", param);
  57. }
  58. public String SetSupportUserData(ISqlMapper mapper, Hashtable param) {
  59. return (String) mapper.Insert("setSupportUserData", param);
  60. }
  61. public string getUserPrefMonitor(ISqlMapper mapper, Hashtable param) {
  62. return (String) mapper.Insert("getUserPrefMonitor", param);
  63. }
  64. public string SetUserPrefMonitor(ISqlMapper mapper, Hashtable param) {
  65. return (String) mapper.Insert("SetUserProfMonitor", param);
  66. }
  67. public string getSessionTime(ISqlMapper mapper, Hashtable param) {
  68. return mapper.QueryForObject<string>("getSessionTime", param);
  69. }
  70. public void userLoginOutLog(ISqlMapper mapper, Hashtable param) {
  71. mapper.Insert("userLoginOutLog", param);
  72. }
  73. //public IList<ImageServerPropsVO> GetImageServerProps(ISqlMapper mapper, Hashtable param)
  74. //{
  75. // return mapper.QueryForList<ImageServerPropsVO>("getImageServerProps", param);
  76. //}
  77. }
  78. }