DormManger/FrmRepairQuery.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Jackone
{
    public partial class FrmRepairQuery : Form
    {
        public FrmRepairQuery()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string StrFilter = (this.checkBox1.Checked ? "Y" : "N") +
                (this.checkBox2.Checked ? "Y" : "N") + (this.checkBox3.Checked ? "Y" : "N");


           DataTable tb= RepairInfoService.GetRepairInfo(StrFilter);
           this.dataGridView1.DataSource = tb;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.RowCount > 0)
            {
                int RepairID = Convert.ToInt32(this.dataGridView1.CurrentRow.Cells["RepairID"].Value.ToString());

                FrmByRepair _FrmByRepair = new FrmByRepair(RepairID);
                _FrmByRepair.ShowDialog();

                string StrFilter = (this.checkBox1.Checked ? "Y" : "N") +
              (this.checkBox2.Checked ? "Y" : "N") + (this.checkBox3.Checked ? "Y" : "N");


                DataTable tb = RepairInfoService.GetRepairInfo(StrFilter);
                this.dataGridView1.DataSource = tb;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmRepairQuery_Load(object sender, EventArgs e)
        {

            this.dataGridView1.AutoGenerateColumns = false;
            this.dataGridView1.RowsDefaultCellStyle.BackColor = Color.Bisque;
            this.dataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Beige;

            List<status> _List = new List<status>();
            _List.Add(new status{staKey="0", staValue="未处理"});
后面还有 16 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。