客服管理模块/住户投诉/TouSuForm.cs

(开头部分) 5KB

这里只显示每个文件的开头 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 PropertyManagementSystem
{
    public partial class TouSuForm : Form
    {
        public TouSuForm()
        {
            InitializeComponent();
        }

        private void 添加ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TouSuAddForm tsa = new TouSuAddForm();
            tsa.ShowDialog();
        }

        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TouSuUpdateForm tsuf = new TouSuUpdateForm();
            tsuf.ShowDialog();
        }

        private void 修改ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            TouSuUpdateForm tsuf = new TouSuUpdateForm();
            tsuf.ShowDialog();
        }

        private void TouSuForm_Load(object sender, EventArgs e)
        {
            string sql = "select ID,complainant,complainantHID,data,matter,handleState from Complaint";
            this.dataGridView1.DataSource = DBHelper.GetDataSet(sql).Tables[0];
        }

        private void 删除ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("您确定要删除此条信息吗!", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if (result == DialogResult.Yes)
            {
                try
                {
                    string id = this.dataGridView1.SelectedRows[0].Cells["ID"].Value.ToString();
                    string sql = "delete from Complaint where ID=" + id;
                    bool re = DBHelper.GetExecuteNonQuery(sql);
                    if (re)
                    {
                        MessageBox.Show("删除成功!");
                        TouSuForm_Load(sender, e);
                    }
                    else
                    {
                        MessageBox.Show("删除失败!");
后面还有 116 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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