Exemplo n.º 1
0
        /// <summary>
        /// 根据页眉选中的页眉,页脚加载实体
        /// </summary>
        private void GetHeaderFootEntity()
        {
            try
            {
                if (lookUpEditorHeader.CodeValue.Trim() != "")
                {
                    m_EmrTempletHeader = m_SQLManger.GetTemplet_Header(lookUpEditorHeader.CodeValue);
                }

                if (lookUpEditorFoot.CodeValue.Trim() != "")
                {
                    m_EmrTemplet_Foot = m_SQLManger.GetTemplet_Foot(lookUpEditorFoot.CodeValue);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 保存页脚
        /// </summary>
        private void SaveTemplet_Foot()
        {
            string editType = "";

            //无FootID代表为新增页脚
            if (m_EmrTemplet_Foot.FootId == "")
            {
                editType = "1";
                m_EmrTemplet_Foot.CreatorId = m_app.User.Id;
            }
            else
            {
                editType = "2";
            }
            SQLManger m_sqlmanger = new SQLManger(m_app);

            m_EmrTemplet_Foot.HospitalCode = this.lookUpEditorHospitel.CodeValue;
            m_EmrTemplet_Foot.Name         = this.txtName.Text.Trim();

            string str_Foot_id = m_sqlmanger.SaveTemplet_Foot(m_EmrTemplet_Foot, editType);

            m_EmrTemplet_Foot = m_sqlmanger.GetTemplet_Foot(str_Foot_id);
        }