frmwarrantfind.cs

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

CS
65
字号
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.view.WarrantInfo.CrRepotr;
namespace property.view.WarrantInfo
{
    public partial class frmWarrantFind : Form
    {
        public frmWarrantFind()
        {
            InitializeComponent();
        }
        public int P_int_report;
        private void label2_Click(object sender, EventArgs e)
        {

        }

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

        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 comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            GetWarInfo getWarinf=new GetWarInfo();
            getWarinf.GetWarrPrint(this.dataGridView1,Convert.ToInt32(this.comboBox2.SelectedItem.ToString()));
            P_int_report = 1;
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

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

⌨️ 快捷键说明

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