Ejemplo n.º 1
0
        /// <summary>
        /// 删除申请单内容

        /// </summary>
        private void m_mthDeleteValue()
        {
            if (m_objRequisitionValue == null)
            {
                return;
            }

            clsEMR_HIS_CheckRequisitionDomain objDomain = new clsEMR_HIS_CheckRequisitionDomain();
            long lngRes = objDomain.m_lngDeleteRequisition(clsEMR_StaticObject.s_ObjCurrentEmployee.m_strEMPID_CHR, m_objRequisitionValue.m_strREGISTERID_CHR, m_objRequisitionValue.m_strORDERID_CHR);

            objDomain = null;

            if (lngRes > 0)
            {
                m_mthClear();
                DialogResult drSuccess = MessageBox.Show("删除成功!" + System.Environment.NewLine + "是否关闭当前窗体?", "检查申请单", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
                if (drSuccess == DialogResult.Yes)
                {
                    MDIParent.s_ObjSaveCue.m_mthRemoveForm(this);
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("删除失败!", "检查申请单", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 删除检查申请单内容
        /// </summary>
        public void m_mthDeleteCheckRequisition()
        {
            clsEMR_HIS_CheckRequisitionDomain objDomain = new clsEMR_HIS_CheckRequisitionDomain();
            long lngRes = objDomain.m_lngDeleteRequisition(clsEMR_StaticObject.s_ObjCurrentEmployee.m_strEMPID_CHR, m_objValue.m_strREGISTERID_CHR, m_objValue.m_strORDERID_CHR);

            objDomain = null;

            if (lngRes > 0)
            {
                m_objValue = null;
                System.Windows.Forms.MessageBox.Show("删除成功!", "检查申请单", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
            }
            else
            {
                System.Windows.Forms.MessageBox.Show("删除失败!", "检查申请单", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
            }
        }