Ejemplo n.º 1
0
        private void VerifyReport()
        {
            int _selectReportIndex = this.gridView1.FocusedRowHandle;

            if (_selectReportIndex >= 0)
            {
                MD_ReportItem       _ritem  = this.gridView1.GetRow(_selectReportIndex) as MD_ReportItem;
                Dialog_VerifyReport _dialog = new Dialog_VerifyReport(_ritem, this.reportType);
                if (_dialog.ShowDialog() == DialogResult.OK)
                {
                    using (SinoSZClientBase.ReportService.ReportServiceClient _rsc = new SinoSZClientBase.ReportService.ReportServiceClient())
                    {
                        bool _createResult = _rsc.VerifyReport(_ritem, _dialog.VerifyDate, this.reportType);
                        if (_createResult)
                        {
                            XtraMessageBox.Show("审核报表成功!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            QueryReport();
                        }
                        else
                        {
                            XtraMessageBox.Show("审核报表失败!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                    }
                }
            }
            else
            {
                XtraMessageBox.Show("请选择要审核的报表", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Ejemplo n.º 2
0
 private void ShowVerifyData(MD_ReportItem _ritem)
 {
     using (SinoSZClientBase.ReportService.ReportServiceClient _rsc = new SinoSZClientBase.ReportService.ReportServiceClient())
     {
         MD_ReportVerifyInfo _info   = _rsc.GetReportVerifyInfo(_ritem, reportType);
         Dialog_VerifyReport _dialog = new Dialog_VerifyReport(_info);
         _dialog.ShowDialog();
     }
 }