OPFeeUploadProcess.cs 948 B

1234567891011121314151617181920212223242526272829303132
  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. var ret = hBus.getFeeDetail();
  17. if (ret.Code < 0)
  18. {
  19. return Exception("费用上传", ret.Data);
  20. }
  21. JArray jaFeeDetail = JArray.Parse(ret.Data);
  22. //按指定条数分割后上传,保存,更新
  23. if (hBus.uploadFeeToCenter(TradeEnum.OutpatientFeeUpload, 50, jaFeeDetail, out outParam) != 0)
  24. {
  25. return Exception("费用上传", outParam);
  26. }
  27. return Success();
  28. }
  29. }
  30. }