using Newtonsoft.Json.Linq; using PTMedicalInsurance.Common; using PTMedicalInsurance.Forms; using PTMedicalInsurance.Helper; using PTMedicalInsurance.Variables; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace PTMedicalInsurance.Business { class OtherQueryProcess : AbstractProcess { TradeEnum trade; /// /// 构造函数 /// /// 交易 public OtherQueryProcess(TradeEnum trade) { this.trade = trade; } public override CallResult Process(JObject input) { this.OrginalInput = input; switch (this.trade) { case TradeEnum.HistoryPrescriptionQuery: QueryPatientPrescription(); break; default: break; } return Success(); } private void QueryPatientPrescription() { JArray list = hBus.QueryPatientPrescription(Global.pat.name, Global.pat.certNO); PrescriptionForm form = new PrescriptionForm(); if (list?.Count > 0) { form.initList(list); } form.ShowDialog(); } } }