repwarrtid.cs

来自「财务凭证管理系统,主要是从事公司或部门的财务方面的管理。此系统给会计人员带来很大」· CS 代码 · 共 42 行

CS
42
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using property.control.warrantInfo;
using CrystalDecisions.CrystalReports.Engine;
namespace property.view.WarrantInfo.CrRepotr
{
    public partial class RepWarrtID : Form
    {
        public RepWarrtID()
        {
            InitializeComponent();
        }
        public int P_int_report;
        public RepWarrtID(int P_int_sele)
        {
            InitializeComponent();
            P_int_report = P_int_sele;
        }
        private void RepWarrtID_Load(object sender, EventArgs e)
        {
            GetWarInfo getwar=new GetWarInfo();
            if (P_int_report != 0)
            {
                string reportPath = Application.StartupPath.Substring(0, Application.StartupPath.Substring(0,
               Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"));
                reportPath += @"\view\hinderInfo\CRsujectsum.rpt";
                ReportDocument rd = new ReportDocument();
                rd.Load(reportPath);
                rd.SetDataSource(getwar.getWarRepot(P_int_report).Tables[0].DefaultView);
                this.crystalReportViewer1.ReportSource = rd;
            
            }
        }

      
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?