frmUserCheckChange.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using PMS.PMSClass;
namespace PMS
{
    public partial class frmUserCheckChange : Form
    {
        public frmUserCheckChange()
        {
            InitializeComponent();
        }
        DBOperate operate = new DBOperate();
        public string pid;
        public string pname;
        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (txtcontent.Text == "" || txtresult.Text == "" || txtscore.Text == "" || txtkp.Text == "")
            {
                MessageBox.Show("请将信息填写完整", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            else
            {
                string sql = "update tb_check set PKpcontent='"+txtcontent.Text+"',PKpResult='"+txtresult.Text+"',PKpscore='"+txtscore.Text+"',PKpPeople='"+txtkp.Text+"',PKpDate='"+txtkpdate.Text+"' where PID='"+cbbnum.Text+"'";
                if (operate.OperateData(sql) > 0)
                {
                    MessageBox.Show("修改成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
            }
        }

        private void frmUserCheckChange_Load(object sender, EventArgs e)
        {
            this.Text = "考评管理[" + pname + "]";
            operate.BindDropdownlist("tb_employee", cbbnum, 1);
            string sql = "select * from tb_check where PID='" + pid+ "'";
            DataSet ds = operate.GetTable(sql);
            ds.Dispose();
            cbbnum.SelectedItem=ds.Tables[0].Rows[0][1].ToString();
            txtname.Text = ds.Tables[0].Rows[0][2].ToString();
            txtdep.Text = ds.Tables[0].Rows[0][3].ToString();
            txtcontent.Text = ds.Tables[0].Rows[0][4].ToString();
            txtresult.Text = ds.Tables[0].Rows[0][5].ToString();
            txtscore.Text = ds.Tables[0].Rows[0][6].ToString();
            txtkp.Text = ds.Tables[0].Rows[0][7].ToString();
            txtkpdate.Text = ds.Tables[0].Rows[0][8].ToString();

        }

        private void txtscore_KeyPress(object sender, KeyPressEventArgs e)
后面还有 26 行代码,解锁后查看完整代码

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

AI 解读

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

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