Esempio n. 1
0
        /// <summary>
        /// 病历控件承载面板
        /// </summary>
        /// <param name="info">病历基本信息</param>
        /// <param name="createNewRecord">是否创建新病历记录</param>
        public EMRControlPanel(Public.EMRRecordInfo info, bool createNewRecord)
        {
            InitializeComponent();

            _recordInfo = info;
            Public.StaticVariable.CurrentRecordInfo = info;
            if (createNewRecord)
            {
                _oldRecord          = new HIS.EMR_BLL.EmrRecord();
                _oldRecord.RecordId = -1;
                _control            = EMRRecordControlFactory.CreateEMRRecordControl(info.RecordType);
                _emrPrint           = EMRPrintObjectFactory.CreateEMRPrintObject(info.RecordType);
            }
            else
            {
                _oldRecord = new HIS.EMR_BLL.EmrRecord(info.Patid, info.PatListid, Public.PublicStaticFunction.GetEMRTypeCode(info.RecordType));
                _control   = EMRRecordControlFactory.CreateEMRRecordControl(info.RecordType, _oldRecord.RecordContentXml);
                _emrPrint  = EMRPrintObjectFactory.CreateEMRPrintObject(info.RecordType, _oldRecord.RecordContentXml);
            }
            this._control.BorderStyle = BorderStyle.Fixed3D;
            this.Controls.Clear();
            this.Controls.Add(_control);
            this.Controls.Add(this.plBottom);
            this.btSaveEMRRecord.Enabled = this._oldRecord.UpdateFlag == 0;
        }
Esempio n. 2
0
 public EMRControlPanel(HIS.EMR_BLL.EmrRecord record)
 {
     InitializeComponent();
     _control  = EMRRecordControlFactory.CreateEMRRecordControl(record.RecordType, record.RecordContentXml);
     _emrPrint = EMRPrintObjectFactory.CreateEMRPrintObject(record.RecordType, record.RecordContentXml);
     this._control.BorderStyle = BorderStyle.Fixed3D;
     this.Controls.Clear();
     this.Controls.Add(_control);
     this.Controls.Add(this.plBottom);
     this.plBottom.Visible = false;
 }
Esempio n. 3
0
        /// <summary>
        /// 病历整体模板
        /// </summary>
        /// <param name="type">病历类型</param>
        /// <param name="value">病历数据</param>
        public FrmWholeMould(Public.EMRType type, XmlDocument value)
        {
            InitializeComponent();

            this.btSure.Visible = false;
            this.plLeft.Visible = false;
            _currentType        = type;

            _control = EMRRecordControlFactory.CreateEMRRecordControl(type, value);
            this.plCenter.AutoScroll = true;
            this.plCenter.Controls.Add(_control);
        }
Esempio n. 4
0
        //选择模板
        private void tWMould_AfterSelect(object sender, TreeViewEventArgs e)
        {
            this.plCenter.Controls.Clear();
            if (this.tWMould.SelectedNode.Parent != null)
            {
                _currentMould = (HIS.EMR_BLL.EmrMould) this.tWMould.SelectedNode.Tag;

                _control = EMRRecordControlFactory.CreateEMRRecordControl(_currentMould.MouldType.Trim(), _currentMould.MouldContent);
                this.plCenter.AutoScroll = true;
                this.plCenter.Controls.Add(_control);
                this.txtName.Text = _currentMould.MouldName;
            }
        }
Esempio n. 5
0
        /// <summary>
        /// 病历控件承载面板
        /// </summary>
        /// <param name="info">病历基本信息</param>
        /// <param name="recordId">病历记录ID</param>
        public EMRControlPanel(Public.EMRRecordInfo info, int recordId)
        {
            InitializeComponent();

            _recordInfo = info;
            Public.StaticVariable.CurrentRecordInfo = info;
            _oldRecord = new HIS.EMR_BLL.EmrRecord(recordId);
            _control   = EMRRecordControlFactory.CreateEMRRecordControl(info.RecordType, _oldRecord.RecordContentXml);
            _emrPrint  = EMRPrintObjectFactory.CreateEMRPrintObject(info.RecordType, _oldRecord.RecordContentXml);
            this._control.BorderStyle = BorderStyle.Fixed3D;
            this.Controls.Clear();
            this.Controls.Add(_control);
            this.Controls.Add(this.plBottom);
            this.btSaveEMRRecord.Enabled = this._oldRecord.UpdateFlag == 0;
        }
Esempio n. 6
0
 //选择模板
 private void tVEmrClass_AfterSelect(object sender, TreeViewEventArgs e)
 {
     this.plWholeCenter.Controls.Clear();
     if (tVEmrClass.SelectedNode.Parent == null)
     {
     }
     else if (tVEmrClass.SelectedNode.Parent.Tag == null)
     {
         _currentChiefElement = (HIS.EMR_BLL.EmrElement)tVEmrClass.SelectedNode.Tag;
     }
     else
     {
         _currentMould = (HIS.EMR_BLL.EmrMould)tVEmrClass.SelectedNode.Tag;
         Control control = EMRRecordControlFactory.CreateEMRRecordControl(_currentMould.MouldType.Trim(), _currentMould.MouldContent);
         control.Dock = DockStyle.Fill;
         this.plWholeCenter.Controls.Add(control);
     }
 }
Esempio n. 7
0
        /// <summary>
        /// 新增模板
        /// </summary>
        public void AddMould()
        {
            FrmEmrMouldInfo form = new FrmEmrMouldInfo();

            form.ShowDialog();
            if (form.IsSure)
            {
                HIS.EMR_BLL.EmrMould mould = new HIS.EMR_BLL.EmrMould();
                mould.MouldClass      = -1;
                mould.MouldCreateDate = XcDate.ServerDateTime;
                mould.MouldCreateDept = (int)_view.currentDept.DeptID;
                mould.MouldCreateEmp  = (int)_view.currentUser.EmployeeID;
                mould.MouldLevel      = _view.CurrentMouldLevel;
                mould.MouldName       = form.MouldName;
                mould.MouldType       = _view.CurrentChiefElement.ElementCode;
                mould.MouldContent    = EMRRecordControlFactory.CreateEMRRecordControl(_view.CurrentChiefElement.ElementCode).GetValue();
                mould.Add();
                _view.CurrentMould = mould;
                LoadMouldData();
            }
        }