public new void Load(IYidanEmrHost app) { DataAccess.App = app; m_app = app; if (!string.IsNullOrEmpty(CurrentNoofinpat)) { CurrentInpatient = new Common.Eop.Inpatient(Convert.ToDecimal(CurrentNoofinpat)); } else if (m_app.CurrentPatientInfo != null) { CurrentInpatient = m_app.CurrentPatientInfo; } else { return; } CurrentInpatient.ReInitializeAllProperties(); GetConsultationEntity(); if (m_ConsultationID == "") return; ////一般会诊 //if (m_ConsultTypeID == "6501") //{ // BindData(); // FillUI(); //} ////多科会诊 //else //{ ShowConsultationMultiply(); //} PanelControlInit(); }
public void Init(string noOfFirstPage, IYidanEmrHost host, bool isNew, bool readOnly, string consultApplySn) { m_NoOfFirstPage = noOfFirstPage; m_Host = host; m_ConsultApplySn = consultApplySn; InitInner(isNew, readOnly); }
/// <summary> /// 根据病人的首页序号,得到她的婴儿个数,返回显示内容 /// add by ywk 2012年6月8日 09:47:53 /// </summary> /// <param name="p"></param> /// <returns></returns> public static string GetPatsBabyContent(IYidanEmrHost m_app, string noofinpat) { string Result = string.Empty;//最终要返回的内容 string sql = string.Format(@"select babycount,name from inpatient where noofinpat='{0}'", noofinpat); if (m_App == null) { m_App = m_app; } DataTable dt = m_App.SqlHelper.ExecuteDataTable(sql, CommandType.Text); if (string.IsNullOrEmpty(dt.Rows[0]["babycount"].ToString())) { Result = dt.Rows[0]["Name"].ToString(); } else { if (dt.Rows[0]["babycount"].ToString() == "0") { Result = dt.Rows[0]["Name"].ToString(); } else { Result = dt.Rows[0]["Name"].ToString() + "【" + dt.Rows[0]["babycount"].ToString() + "个婴儿】"; } } return(Result); }
public QC_DiagOperRecord(IYidanEmrHost app) { InitializeComponent(); m_app = app; InitSqlWorkBook(); //m_app.CustomMessageBox.MessageShow("ceshi"); }
public Print_UCFee(IemMainPageInfo info, IYidanEmrHost app) { InitializeComponent(); //m_IemInfo = info; //m_App = app; //m_SqlHelper = DataAccessFactory.DefaultDataAccess; }
public IPlugIn Run(FrameWork.WinForm.Plugin.IYidanEmrHost host) { IPlugIn plg = new PlugIn(this.GetType().ToString(), this); m_app = host; return(plg); }
public void FillUI(IemMainPageInfo info, IYidanEmrHost app) { m_App = app; m_IemInfo = info; //(new FillUIDelegate(FillUIInner)).BeginInvoke(null, null); FillUIInner(); }
public FormRecordForMultiply(string noOfFirstPage, IYidanEmrHost host, string consultApplySn) : this() { m_NoOfFirstPage = noOfFirstPage; m_Host = host; m_ConsultApplySn = consultApplySn; InitInner(false); }
public Print_UCIemBasInfo(IemMainPageInfo info, IYidanEmrHost app) { InitializeComponent(); //m_IemInfo = info; //m_App = app; //InitLookUpEditor(); }
//UCMainPage m_UCMainPage; public FormMainPage(IYidanEmrHost app) { InitializeComponent(); //m_UCMainPage = new UCMainPage(app); //this.Controls.Add(m_UCMainPage); //this.Text = "病案首页"; //m_UCMainPage.Location = new Point((this.Width - m_UCMainPage.Width)/2, 20); }
public QC_Rescue_Info(IYidanEmrHost app) { InitializeComponent(); m_app = app; dateEdit_begin.Text = DateTime.Now.AddMonths(-1).ToShortDateString(); dateEdit_end.Text = DateTime.Now.ToShortDateString(); }
public QC_SingleDisease_Query(IYidanEmrHost app) { InitializeComponent(); m_app = app; dateEdit_begin.Text = DateTime.Now.AddMonths(-1).ToShortDateString(); dateEdit_end.Text = DateTime.Now.ToShortDateString(); }
/// <summary> /// 构造 /// </summary> /// <param name="app"></param> /// <param name="sqlHelper"></param> /// <param name="deptId">科室代码</param> /// <param name="wardId">病区代码</param> /// <param name="isObstetric">产科</param> public DataManager(IYidanEmrHost app, string deptId , string wardId) { m_App = app; m_SqlHelper = app.SqlHelper; m_DeptId = deptId; m_WardId = wardId; }
//private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ //} //private void barButtonItem3_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // if (NowSearchMasterplate==null) // { // return; // }//add by dxj 2011/6/24 // SetWaitDialogCaption("正在查询数据"); // QueryInpatient(); // HideWaitDialog(); //} //private void barButtonItemDel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // if (gridView1.FocusedRowHandle < 0) return; // DataRow fourcesRow = gridView1.GetDataRow(gridView1.FocusedRowHandle); // if (fourcesRow == null) return; // fourcesRow.Delete(); //} //private void barButtonItemExportWord_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // saveFileDialog1.Filter = "Text Files | *.txt"; // saveFileDialog1.DefaultExt = "txt"; // if (saveFileDialog1.ShowDialog() == DialogResult.OK) // gridControl1.ExportToText(saveFileDialog1.FileName); //} //private void barButtonItem6_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // saveFileDialog1.Filter = "html Files | *.html"; // saveFileDialog1.DefaultExt = "txt"; // if (saveFileDialog1.ShowDialog() == DialogResult.OK) // gridControl1.ExportToHtml(saveFileDialog1.FileName); //} //private void barButtonItemExportExcel_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // saveFileDialog1.Filter = "Excel Files | *.xls"; // saveFileDialog1.DefaultExt = "Excel"; // if (saveFileDialog1.ShowDialog() == DialogResult.OK) // gridControl1.ExportToXls(saveFileDialog1.FileName); //} //private void barButtonItemRead_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // if (gridView1.FocusedRowHandle < 0) return; // DataRow fourcesRow = gridView1.GetDataRow(gridView1.FocusedRowHandle); // if (fourcesRow == null) return; // EprBrower brower = new EprBrower(fourcesRow["NoOfInpat"].ToString()); // brower.ShowDialog(); //} //private void barButtonNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) //{ // listBoxCond.Items.Clear(); // NowSearchMasterplate = new EmrQueryCondition(); // treeListCurrentEmbed.FocusedNode = null; //} #endregion public IPlugIn Run(IYidanEmrHost host) { PlugIn plg = new PlugIn(this.GetType().ToString(), this); _app = host; //QueryService = host.SqlHelper; return(plg); }
public FormApproveForOne(string noOfFirstPage, IYidanEmrHost host, string consultApplySn) : this() { m_NoOfFirstPage = noOfFirstPage; m_Host = host; m_ConsultApplySn = consultApplySn; InitInner(false); }
public Print_FormMainPage(IYidanEmrHost app, IemMainPageInfo ieminfo) { InitializeComponent(); m_Print_UCMainPage = new Print_UCMainPage(app, ieminfo); this.Controls.Add(m_Print_UCMainPage); m_Print_UCMainPage.Dock = DockStyle.Fill; this.Text = "病案首页打印"; m_Print_UCMainPage.Location = new Point((this.Width - m_Print_UCMainPage.Width) / 2, 20); }
public Print_UCObstetricsBaby(IemMainPageInfo info, IYidanEmrHost app) { InitializeComponent(); //m_IemInfo = info; //m_App = app; //m_SqlHelper = DataAccessFactory.DefaultDataAccess; //InitLookUpEditor(); }
/// <summary> /// 患者病历评分列表页面 /// </summary> public OutMedicalScore(IYidanEmrHost app) { InitializeComponent(); m_app = app; SqlManger m_SqlManger = new SqlManger(app); m_SqlManager = new SqlManger(app); m_userid = app.User.DoctorId; }
/// <summary> /// 患者病历评分列表页面 /// </summary> public QC_ScoreRecord(IYidanEmrHost app) { InitializeComponent(); m_app = app; SqlManger m_SqlManger = new SqlManger(app); m_SqlManager = new SqlManger(app); m_userid = app.User.DoctorId; }
public UCRecordForOne(string noOfFirstPage, IYidanEmrHost host, string consultApplySn) : this() { m_NoOfFirstPage = noOfFirstPage; m_Host = host; m_ConsultApplySn = consultApplySn; InitInner(false); RegisterEvent(); }
public IPlugIn Run(YidanSoft.FrameWork.WinForm.Plugin.IYidanEmrHost host) { PlugIn plg = new PlugIn(this.GetType().ToString(), this); plg.PatientChanged += new PatientChangedHandler(plg_PatientChanged); m_app = host; m_RecordDal = new RecordDal(m_app.SqlHelper); m_UCEmrInput.SetInnerVar(m_app, m_RecordDal); return(plg); }
public Print_UCMainPage(IYidanEmrHost app, IemMainPageInfo ieminfo) { InitializeComponent(); m_app = app; m_IemInfo = ieminfo; //this.Load += new EventHandler(UCMainPage_Load); //simpleButtonSave.Click += new EventHandler(simpleButtonSave_Click); InitUserControl(); //m_app.ChoosePatient(150);//切换病人 }
//返回当前登录用户的ID public static string GetCurrentDoctor(IYidanEmrHost app) { try { return(app.User.DoctorId);// YD_Common.currentUser.DoctorId; } catch (Exception) { throw; } }
/// <summary> /// 由外部调用的方法,对此控件进行初始化 /// </summary> /// <param name="noOfFirstPage">首页序号</param> /// <param name="app"></param> /// <param name="isNew">是否新开立会诊单</param> public void Init(string noOfFirstPage, IYidanEmrHost app, bool isNew, bool readOnly, string consultApplySn) { m_App = app; m_NoOfFirstPage = noOfFirstPage; Dal.DataAccess.App = app; m_ReadOnly = readOnly; m_ConsultApplySN = consultApplySn; RegisterEvent(); InitInner(isNew); }
public QC_Die_Info(IYidanEmrHost app) { try { InitializeComponent(); m_app = app; } catch (Exception) { throw; } }
public UCRecord(IYidanEmrHost app) : this() { m_app = app; BindLookUpEditorData(); InitGridControl(); InitDateEdit(); //BindDataSource(Search()); edit by wangj 2013 1 30 加载时不查询 //Search(); //this.lookUpEditorApplyDept.Focus(); //Application.AddMessageFilter(new MessageFilter()); }
public YidanSoft.FrameWork.IPlugIn Run(IYidanEmrHost host) { if (host == null) { throw new ArgumentNullException("application"); } m_app = host; sql_Helper = m_app.SqlHelper; PlugIn plg = new PlugIn(this.GetType().ToString(), this); return(plg); }
/// <summary> /// 启动类 /// </summary> /// <param name="application"></param> /// <returns></returns> public IPlugIn Run(IYidanEmrHost application) { if (application == null) { throw new ArgumentNullException("application"); } //InpatientMainPage frmStar = new InpatientMainPage(application); FormMainPage frmStar = new FormMainPage(application); PlugIn plg = new PlugIn(this.GetType().ToString(), frmStar); return(plg); }
public void Init(string noOfFirstPage, IYidanEmrHost app, bool isNew /*是否是新增申请*/, bool readOnly /*是否只读*/, string consultApplySN) { m_App = app; m_NoOfFirstPage = noOfFirstPage; m_ReadOnly = readOnly; m_ConsultApplySN = consultApplySN; gridViewDept.OptionsSelection.EnableAppearanceFocusedRow = true; gridViewDept.OptionsSelection.EnableAppearanceFocusedCell = false; gridViewDept.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus; RegisterEvent(); InitInner(isNew); }
public EmrPainetScore(IYidanEmrHost app, string noofpaint, int sumpoint) { try { InitializeComponent(); m_App = app; m_SqlManager = new SqlManger(app); m_NoOfInpat = noofpaint; m_sumpoint = sumpoint; EmrScoreData.App = app; } catch (Exception) { throw; } }