SignInProcess.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using Newtonsoft.Json.Linq;
  2. using PTMedicalInsurance.Helper;
  3. using PTMedicalInsurance.Variables;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PTMedicalInsurance.Business
  10. {
  11. /// <summary>
  12. /// 签到
  13. /// </summary>
  14. class SignInProcess : AbstractProcess
  15. {
  16. public override CallResult Process(JObject input)
  17. {
  18. JObject joRtn = new JObject();
  19. string errMsg = "";
  20. //签到
  21. if (cBus.signIn(out joRtn) != 0)
  22. {
  23. return Exception("签到异常",joRtn["err_msg"].ToString());
  24. }
  25. else
  26. {
  27. //插入签到表
  28. if (mIS.saveSignRecord(Global.curEvt.signno, out errMsg) != 0)
  29. {
  30. return IrisReturn("中心签到成功但插入签到表失败:"+errMsg,null);
  31. }
  32. else
  33. {
  34. return IrisReturn("签到成功", joRtn);
  35. }
  36. }
  37. }
  38. }
  39. }