Addyg.cs

(开头部分) 6KB

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

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using GongZi.GongZiClass;
using System.Text.RegularExpressions;
namespace GongZi
{
    public partial class Addyg : Form
    {
        public Addyg()
        {
            InitializeComponent();
        }
        DBOperate operate = new DBOperate();//创建数据库操作对象
        private void toolStripLabel4_Click(object sender, EventArgs e)
        {
            this.Close();//关闭窗体
        }
        private void button1_Click(object sender, EventArgs e)
        {
      
        }

        private void frmAddEmployee_Load(object sender, EventArgs e)
        {
            try
            {
                operate.BindDropdownlist("tb_department",cbbYGBumen,1);//绑定下拉列表
                cbbYGHunyin.SelectedIndex = 0;//设置默认选项
                cbbYGSex.SelectedIndex = 0;//设置默认选项
                cbbYGBumen.SelectedIndex = 0;//设置默认选项
                txtYGminzu.SelectedIndex = 0;//设置默认选项
                string strg = Application.StartupPath.ToString();//得到应用程序路径
                strg = strg.Substring(0, strg.LastIndexOf("\\"));//截取路径信息
                strg = strg.Substring(0, strg.LastIndexOf("\\"));//截取路径信息
                strg += @"\GongZiImage";//添加路径信息
                strg += @"\default.jpg";//添文件名称
                openFileDialog1.FileName = strg;//设置打开文件路径信息
                operate.BindDropdownlist("tb_userJob",txtYGZhiwu, 1);//绑定所有的职务列表
            }
            catch (Exception ex)//捕获异常
            {
                MessageBox.Show(ex.Message);//弹出消息对话框
            }
        }

        private void toolStripLabel1_Click(object sender, EventArgs e)
        {
            if (txtYGBirthday.Text.Trim() == "" ||
                txtYGJiuzhi.Text.Trim() == "" || txtYGminzu.Text.Trim() == "" ||
                txtYGName.Text.Trim() == "" || txtYGNum.Text.Trim() == "" ||
                txtYGPhone.Text.Trim() == "" || txtYGZhiwu.Text.Trim() == ""||txtYGPay.Text.Trim()=="")
            {
                MessageBox.Show("请将信息填写完整", "警告",//弹出消息对话框
                    MessageBoxButtons.OK, MessageBoxIcon.Information);
后面还有 81 行代码,购买后查看完整代码

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

AI 解读 AI

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

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