UserDac.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.Dfh.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.Dfh.Dac {
  17. public class UserDac : DacBase {
  18. public MobileLoginResult doLogin(ISqlMapper mapper, Hashtable param) {
  19. return mapper.QueryForObject<MobileLoginResult>("doLogin", param);
  20. }
  21. public UserLoginDeptList userLoginDeptList(ISqlMapper mapper, Hashtable param) {
  22. return mapper.QueryForObject<UserLoginDeptList>("getDeptListForConsent", param);
  23. }
  24. public UserVO GetUserInfo(ISqlMapper mapper, Hashtable param) {
  25. return mapper.QueryForObject<UserVO>("GET_USER_INFO", param);
  26. }
  27. //public IList<UserFormSetVO> GetUserFormSet(ISqlMapper mapper, Hashtable param)
  28. //{
  29. // return mapper.QueryForList<UserFormSetVO>("getUserFormSet", param);
  30. //}
  31. public int SetUserFormSet(ISqlMapper mapper, Hashtable param) {
  32. //mapper.QueryForObject<Int32>("setUserFormSet", param);
  33. //return (int)mapper.Insert("setUserFormSet", param);
  34. return mapper.Update("setUserFormSet", param);
  35. }
  36. public int DelUserFormSet(ISqlMapper mapper, Hashtable param) {
  37. return mapper.Update("delUserFormSet", param);
  38. //return mapper.QueryForObject<Int32>("delUserFormSet", param);
  39. }
  40. public IList<UserSignImageVO> GetUserSignImage(ISqlMapper mapper, Hashtable param) {
  41. return mapper.QueryForList<UserSignImageVO>("getUserSignImage", param);
  42. }
  43. public IList<VersionInfoVO> GetVersionInfo(ISqlMapper mapper, Hashtable param) {
  44. return mapper.QueryForList<VersionInfoVO>("VERSION_INFO", param);
  45. }
  46. }
  47. }