123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- using System;
- using System.Collections.Generic;
- using System.Data;
- 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.Forms.ToPutOnRecord;
- 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();
- public delegate void callBack(string errMsg);
- public void CallBack(string errMsg)
- {
- MessageBox.Show(errMsg);
- }
- [STAThread]
- public void PrescribeCirculation(object o)
- {
- try
- {
- //显示处方上传
- PrescriptionCirculation PresCir = new PrescriptionCirculation("");
- //PresCir.WindowState = FormWindowState.Minimized;
- PresCir.ShowDialog();
- }
- catch (Exception ex)
- {
- CallBack(ex.Message);
- }
- }
- [STAThread]
- public void ToPutOnRecord(object o)
- {
- try
- {
- //显示处方上传
- ToPutOnRecord frm = new ToPutOnRecord();
- frm.ShowDialog();
- }
- catch (Exception ex)
- {
- CallBack(ex.Message);
- }
- }
- [STAThread]
- public void Test(object o)
- {
- try
- {
- //显示处方上传
- Forms.Clearings.MainForm frm = new Forms.Clearings.MainForm();
- 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);
- }
- }
- }
- public class WindowWrapper : System.Windows.Forms.IWin32Window
- {
- public WindowWrapper(IntPtr handle)
- {
- _hwnd = handle;
- }
- public IntPtr Handle
- {
- get { return _hwnd; }
- }
- private IntPtr _hwnd;
- }
- }
|