Exemplo n.º 1
0
        public void LeftCallBack()
        {
            long lngReg = 0;

            try
            {
                clsDclBihLeaHos domain = new clsDclBihLeaHos();

                lngReg = domain.RecallHospital(this.m_leaveVO, this.m_objViewer.LoginInfo.m_strEmpID);
            }
            catch (Exception e)
            {
                MessageBox.Show(m_objViewer, e.Message, "错误提示框", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            //操作结果提示
            if (lngReg > 0)
            {
                MessageBox.Show(m_objViewer, "成功召回!", "提示框", MessageBoxButtons.OK, MessageBoxIcon.Information);
                m_objViewer.Close();
            }
            else
            {
                MessageBox.Show(m_objViewer, "召回失败!", "提示框", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }