⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmsubjectwarrtid.cs

📁 财务凭证管理系统主要由【系统管理】、【凭证管理】、【科目信息】、【账目查询】和【报表】等模块组成。进入该系统后
💻 CS
字号:
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 property.control.Subject;
using property.view.WarrantInfo.CrRepotr;
using property.view.HinderInfo;
namespace property.view.WarrantInfo
{
    public partial class frmSubjectWarrtID : Form
    {
        public frmSubjectWarrtID()
        {
            InitializeComponent();
        }
        public int P_int_report = 3;
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void frmSubjectWarrtID_Load(object sender, EventArgs e)
        {
            GetWarInfo getWar = new GetWarInfo();
            getWar.GetWarID(this.comboBox2);
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {
            
        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
           
           FinSubject getWarinf = new FinSubject ();
           getWarinf.GetsubjectZhangmu(Convert.ToInt32(this.comboBox2.Text.Trim()), this.dataGridView1, "warrId");
           P_int_report = 1;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult a = MessageBox.Show("是否要退出?", "退出", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (Convert.ToString(a) == "Yes")
            {
                this.Close();
            }// end block
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (P_int_report == 1)
            {
                reportSum frmsum = new reportSum(Convert.ToInt32(this.comboBox2.Text.Trim()), "warrId");
                frmsum.Show();
                P_int_report = 0;
            }//end block if 
            else
            {
                MessageBox.Show("请先查找数据,再报表打印");
            }// end block 
        }
    }
}

            

⌨️ 快捷键说明

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