| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using Newtonsoft.Json.Linq;
- using PTMedicalInsurance.Common;
- using PTMedicalInsurance.Forms;
- using PTMedicalInsurance.Helper;
- using PTMedicalInsurance.Variables;
- namespace PTMedicalInsurance.Business
- {
- class STA
- {
- //设置业务实例
- CenterBusiness cBus = new CenterBusiness();
- HisMainBusiness hBus = new HisMainBusiness();
- HisIrisServices hIS = new HisIrisServices();
- MIIrisServices mIS = new MIIrisServices();
- InvokeHelper invoker = new InvokeHelper();
- private XmlHelper xmler = new XmlHelper();
- public delegate void callBack(string errMsg);
- public void CallBack(string errMsg)
- {
- MessageBox.Show(errMsg);
- }
- [STAThread]
- public void Exception(object o)
- {
- try
- {
- //显示异常处理界面
- HandleException frmEX = new HandleException();
- frmEX.WindowState = FormWindowState.Maximized;
- frmEX.ShowDialog();
- }
- catch (Exception ex)
- {
- CallBack(ex.Message);
- }
- }
- [STAThread]
- public void CheckAndClearing(object o)
- {
- try
- {
- //显示对账界面
- Clearing frm = new Clearing();
- frm.WindowState = FormWindowState.Maximized;
- tools.ShowAppDiaglog(frm);
- }
- catch (Exception ex)
- {
- CallBack(ex.Message);
- }
- }
- [STAThread]
- public void BasicData(object o)
- {
- try
- {
- //显示异常处理界面
- BasicData frm = new BasicData();
- frm.WindowState = FormWindowState.Maximized;
- frm.ShowDialog();
- }
- catch (Exception ex)
- {
- CallBack(ex.Message);
- }
- }
- //[STAThread]
- //public void CenterQuery(object o)
- //{
- // try
- // {
- // //显示异常处理界面
- // CenterQuery frm = new CenterQuery();
- // frm.WindowState = FormWindowState.Maximized;
- // frm.ShowDialog();
- // }
- // catch (Exception ex)
- // {
- // CallBack(ex.Message);
- // }
- //}
- [STAThread]
- public void PrescribeCirculation(object o)
- {
- try
- {
- //显示处方上传
- PrescriptionCirculation PresCir = new PrescriptionCirculation("");
- //PresCir.WindowState = FormWindowState.Minimized;
- PresCir.ShowDialog();
- //if (PresCir.ShowDialog() != DialogResult.OK)
- //{
- // rtnResult = JsonHelper.setExceptionJson(-100, "", "已退出医保电子处方流转界面").ToString();
- // return rtnResult;
- //}
- }
- catch (Exception ex)
- {
- CallBack(ex.Message);
- }
- }
- }
- public class WindowWrapper : System.Windows.Forms.IWin32Window
- {
- public WindowWrapper(IntPtr handle)
- {
- _hwnd = handle;
- }
- public IntPtr Handle
- {
- get { return _hwnd; }
- }
- private IntPtr _hwnd;
- }
- }
|