Esempio n. 1
0
        /// <summary>
        /// 删除事件
        /// </summary>
        public void m_Del()
        {
            if (m_objViewer.m_strAttachID.Trim() == "")
            {
                return;
            }
            //是否可以删除
            if (!MayDelete())
            {
                return;
            }

            long lngRes = 0;

            //删除附加单据影射--先删
            com.digitalwave.iCare.middletier.BIHOrderServer.clsBIHOrderService objTem = new com.digitalwave.iCare.middletier.BIHOrderServer.clsBIHOrderService();
            lngRes = objTem.m_lngDeleteAttachOrder(m_objViewer.m_strAttachID);
            if (lngRes > 0)
            {
                lngRes = m_objManage.m_lngDeleteOrderAttachLeave(m_objViewer.m_strAttachID);
            }
            //报告操作结果
            if (lngRes > 0)
            {
                MessageBox.Show(m_objViewer, "删除成功!", "提示框!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show(m_objViewer, "删除失败!", "错误!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            m_objViewer.Close();
        }