Ejemplo 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;
        }
Ejemplo 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;
 }
Ejemplo n.º 3
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;
        }