示例#1
0
        public void m_mthAudingInvoice()
        {
            //验证发票是否存在
            clsT_opr_outpatientrecipeinv_VO objResult = null;
            long lngRet = m_objManage.m_lngGetInfoByNoForReturn(m_objViewer.txtInvoice.Text.Trim(), out objResult);

            if (objResult == null || objResult.m_intSTATUS_INT != 1)
            {
                //发票不是有效的发票,退票失败!
                MessageBox.Show(m_objViewer, "此发票不是有效的发票!", "错误提示框", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            //if (!string.IsNullOrEmpty(this.m_strCreatInvoEmpID) && m_strCreatInvoEmpID.Trim().CompareTo(this.m_objViewer.LoginInfo.m_strEmpID) !=0)
            //{
            //    switch (this.m_strOperateLevel)
            //    {
            //        case "0":
            //            break;
            //        case "1":
            //           if( MessageBox.Show("发票不属于当前登录用户所开,是否确认审核?","系统提示",MessageBoxButtons.YesNo,MessageBoxIcon.Information,MessageBoxDefaultButton.Button2) !=DialogResult.Yes)
            //            {
            //                return;
            //            }
            //            break;
            //        case "2":
            //            MessageBox.Show("发票不属于当前登录用户所开,不能审核当前发票", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            //            return;
            //            //break;
            //        default:
            //            break;
            //    }
            //}

            frmAudingInvoice frmObj = new frmAudingInvoice(m_objViewer.txtInvoice.Text.Trim(), "1");

            frmObj.DataServer           = this.m_objManage;
            frmObj.m_blnUseByInvoReturn = true;
            frmObj.m_strInvoCreatorID   = m_strCreatInvoEmpID;
            frmObj.m_strLimitLevel      = this.m_strOperateLevel;
            if (frmObj.ShowDialog() == DialogResult.OK)
            {
                this.m_objViewer.lbeAuding.Text = "审核人:" + frmObj.AudingName;
            }
        }
示例#2
0
        public void m_mthAudingInvoice()
        {
            //验证发票是否存在
            clsT_opr_outpatientrecipeinv_VO objResult = null;
            long lngRet = m_objManage.m_lngGetInfoByNoForResume(m_objViewer.txtInvoice.Text.Trim(), out objResult);

            if (objResult == null || objResult.m_intSTATUS_INT != 2)
            {
                //发票不是有效的发票,退票失败!
                MessageBox.Show(m_objViewer, "此发票不是有效的发票!", "错误提示框", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            frmAudingInvoice frmObj = new frmAudingInvoice(m_objViewer.txtInvoice.Text.Trim(), "2");

            frmObj.DataServer = this.m_objManage;
            if (frmObj.ShowDialog() == DialogResult.OK)
            {
                this.m_objViewer.lbeAuding.Text = "审核人:" + frmObj.AudingName;
            }
        }