OPFeeUploadProcess.cs 984 B

123456789101112131415161718192021222324252627282930313233
  1. using Newtonsoft.Json.Linq;
  2. using PTMedicalInsurance.Helper;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using PTMedicalInsurance.Variables;
  9. namespace PTMedicalInsurance.Business
  10. {
  11. class OPFeeUploadProcess : AbstractProcess
  12. {
  13. public override CallResult Process(JObject input)
  14. {
  15. string outParam = "";
  16. Global.pat.admType = 1;
  17. var ret = hBus.getFeeDetail();
  18. if (ret.Code < 0)
  19. {
  20. return Exception("费用上传", ret.Data);
  21. }
  22. JArray jaFeeDetail = JArray.Parse(ret.Data);
  23. //按指定条数分割后上传,保存,更新
  24. if (hBus.uploadFeeToCenter(TradeEnum.OutpatientFeeUpload, 50, jaFeeDetail, out outParam) != 0)
  25. {
  26. return Exception("费用上传", outParam);
  27. }
  28. return Success();
  29. }
  30. }
  31. }