systemevent.cs

来自「人事管理系统」· CS 代码 · 共 55 行

CS
55
字号
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace BlueHill_Win_
{
    public partial class SystemEvent : Form
    {
        public SystemEvent()
        {
            InitializeComponent();
        }

        private void BtnOK_Click(object sender, EventArgs e)
        {
            //this.Hide();
            //Main M = new Main();
            //M.Show();
            this.Close();
        }

        private void BtnQueryEvent_Click(object sender, EventArgs e)
        {
            this.Hide();
            SystemEventSelect SES = new SystemEventSelect();
            SES.Show();
        }

        private void SystemEvent_Load(object sender, EventArgs e)
        {
            //if (DB.getB !="" && DB.getBB !="")
            //{
            //    SqlConnection con = DB.connection();
            //    con.Open();
            //    SqlDataAdapter sda=new SqlDataAdapter("select * from 系统事件表 where 事件发生时间< '"+ DB.getB +"' and 事件发生时间> '"+ DB.getBB +"'",con);
            //    DataSet ds = new DataSet();
            //    sda.Fill(ds);
            //    dataGrid1.AllowNavigation = false;
            //    dataGrid1.DataSource = ds;
            //    con.Close();

            //}
            //else

            // TODO: 这行代码将数据加载到表“blueHillManagementDataSet7.系统事件表”中。您可以根据需要移动或移除它。
            this.系统事件表TableAdapter.Fill(this.blueHillManagementDataSet7.系统事件表);

        }
    }
}

⌨️ 快捷键说明

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