示例#1
0
        public int Save(object sender)
        {
            TemplateDesignerApplication.ucLoader loader = sender as TemplateDesignerApplication.ucLoader;
            if (sender == null)
            {
                return(0);
            }

            //保存到数据库里面
            if (this.称 != "")
            {
                Neusoft.HISFC.Models.File.DataFileInfo dt = loader.dt.Clone();

                string txt = this.richTextBoxEx1.SuperText;
                while (txt != "")
                {
                    try
                    {
                        txt = getString(txt, dt);
                    }
                    catch { }
                }
            }
            this.IsOnSaveSuperText = false;

            return(0);
        }
示例#2
0
 public static void ViewEMR(Neusoft.HISFC.Models.RADT.PatientInfo patientInfo, string eprId)
 {
     Neusoft.HISFC.Models.File.DataFileInfo dt = Neusoft.HISFC.BizProcess.Factory.Function.IntegrateEPR.GetFile(eprId);
     if (dt == null)
     {
         Panel p = new Panel();
         p.Size    = new System.Drawing.Size(800, 1000);
         p.Visible = true;
         Common.Classes.Function.EMRShow(p, patientInfo, "0", false);
         Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(p);
     }
     else
     {
         TemplateDesignerApplication.ucLoader loader = new TemplateDesignerApplication.ucLoader();
         string[] param = { Neusoft.FrameWork.Management.Connection.Operator.ID, dt.Index1 };
         loader.ISql = Common.Classes.Function.ISql;
         loader.ISql.SetParam(param);
         loader.ISql.RefreshVariant();
         string fileName = TemplateDesignerHost.Function.LoadFileCheckFile(dt, false);
         loader.Init(dt, fileName, param);
         Neusoft.FrameWork.WinForms.Classes.Function.PopShowControl(loader);
     }
 }