示例#1
0
        /// <summary>
        /// 报告单审核(确认)
        /// </summary>
        public void m_mthConfirmReport()
        {
            if (billflag != 1)
            {
                return;
            }

            if (applyid == "")
            {
                return;
            }
            if (this.m_objViewer.lblRepsave.Text.Trim() == "已审核")
            {
                MessageBox.Show("报告已审核,不能重复审核。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                return;
            }
            frmOPSConfirm fc = new frmOPSConfirm();

            if (fc.ShowDialog() == DialogResult.OK)
            {
                string empid = fc.Empid;
                long   ret   = objSvc.m_lngConfrimOPSReport(applyid, empid);
                if (ret > 0)
                {
                    MessageBox.Show("报告审核成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    m_objViewer.outlookBar.CurrentBand = 1;
                    this.m_objViewer.lblRepsave.Text   = "已审核";
                }
                else
                {
                    MessageBox.Show("确认申请单失败。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                }
            }
        }
示例#2
0
        /// <summary>
        /// 审核(确认)
        /// </summary>
        public void m_mthConfirm()
        {
            if (billflag != 0)
            {
                return;
            }

            if (applyid == "")
            {
                return;
            }

            frmOPSConfirm fc = new frmOPSConfirm();

            if (fc.ShowDialog() == DialogResult.OK)
            {
                string empid = fc.Empid;
                long   ret   = objSvc.m_lngConfrimOPS(applyid, empid);
                if (ret > 0)
                {
                    MessageBox.Show("申请单确认成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);

                    this.m_objViewer.Cursor            = Cursors.WaitCursor;
                    m_objViewer.outlookBar.CurrentBand = 1;
                    this.m_mthGetappinfo(2);


                    for (int i = 0; i < this.m_objViewer.lvApply.Items.Count; i++)
                    {
                        if (this.m_objViewer.lvApply.Items[i].SubItems[0].Text == applyid)
                        {
                            this.m_objViewer.lvApply.Items[i].Remove();
                            break;
                        }
                    }

                    for (int j = 0; j < this.m_objViewer.lvReport.Items.Count; j++)
                    {
                        if (this.m_objViewer.lvReport.Items[j].SubItems[0].Text == applyid)
                        {
                            DataRow dr = (DataRow)(this.m_objViewer.lvReport.Items[j].Tag);
                            this.m_mthSetreportvalue(dr);
                            break;
                        }
                    }

                    this.m_mthSelectBill(1);
                    this.m_objViewer.Cursor = Cursors.Default;
                }
                else
                {
                    MessageBox.Show("确认申请单失败。", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                }
            }
        }