예제 #1
0
 public UCInCommonTabSingle(InCommonNoteTabEntity inCommonNoteTab, CommonNote_TabEntity commonNote_TabEntity, InCommonNoteEnmtity inCommonNote, IEmrHost app, bool canEdit)
 {
     m_inCommonNote         = inCommonNote;
     m_InCommonNoteTab      = inCommonNoteTab;
     m_commonNote_TabEntity = commonNote_TabEntity;
     m_app           = app;
     inCommonNoteBiz = new InCommonNoteBiz(m_app);
     m_canEdit       = canEdit;
     InitializeComponent();
     this.Enabled = m_canEdit;
     InitData();
 }
예제 #2
0
        private void Save()
        {
            UCRecordDateTime uCRecordDateTime = scorlInfo.Controls["uCRecordDateTime"] as UCRecordDateTime;
            UCRecordDoctor   uCRecordDoctor   = scorlInfo.Controls["uCRecordDoctor"] as UCRecordDoctor;
            string           datestr          = uCRecordDateTime.GetDate();
            string           timestr          = uCRecordDateTime.GetTime();
            string           recordDoc        = uCRecordDoctor.GetDoc();
            string           message          = "";

            foreach (var item in scorlInfo.Controls)
            {
                if (item is ucLabText)
                {
                    bool getResult = (item as ucLabText).GetInCommonNoteItemSave(ref message);
                    if (getResult == false)
                    {
                        m_app.CustomMessageBox.MessageShow(message);
                        return;
                    }
                }
            }
            if (inCommonNoteBiz == null)
            {
                inCommonNoteBiz = new InCommonNoteBiz(m_app);
            }
            foreach (var item in m_InCommonNoteTab.InCommonNoteItemList)
            {
                item.RecordDate       = datestr;
                item.RecordTime       = timestr;
                item.RecordDoctorName = recordDoc;
                inCommonNoteBiz.SaveIncommonNoteItem(item, ref message);
            }
            DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show("保存成功");
            inCommonNoteBiz.GetDetaliInCommonNote(ref m_inCommonNote);
            m_InCommonNoteTab = m_inCommonNote.InCommonNoteTabList.Find(a => a.InCommonNote_Tab_Flow == m_InCommonNoteTab.InCommonNote_Tab_Flow);
            InitData();
        }