• 大小: 9.97MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-06
  • 语言: 其他
  • 标签: 内部vs  

资源简介

内部vs2010版本人事管理系统(全源码)

资源截图

代码片段和文件信息

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 PWMS
{
    public partial class F_Login : Form
    {
        DataClass.MyMeans MyClass = new PWMS.DataClass.MyMeans();
        
        public F_Login()
        {
            InitializeComponent();
        }

        private void butClose_Click(object sender EventArgs e)
        {
            if ((int)(this.Tag) == 1)
            {
                DataClass.MyMeans.Login_n = 3;
                Application.Exit();
            }
            else
                if ((int)(this.Tag) == 2)
                    this.Close();
        }

        private void butLogin_Click(object sender EventArgs e)
        {
            if (textName.Text != ““ & textPass.Text != ““)
            {
                SqlDataReader temDR = MyClass.getcom(“select * from tb_Login where Name=‘“ + textName.Text.Trim() + “‘ and Pass=‘“ + textPass.Text.Trim() + “‘“);
                bool ifcom = temDR.Read();
                if (ifcom)
                {
                    DataClass.MyMeans.Login_Name = textName.Text.Trim();
                    DataClass.MyMeans.Login_ID = temDR.GetString(0);
                    DataClass.MyMeans.My_con.Close();
                    DataClass.MyMeans.My_con.Dispose();
                    DataClass.MyMeans.Login_n = (int)(this.Tag);
                    this.Close();
                }
                else
                {
                    MessageBox.Show(“用户名或密码错误!“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
                    textName.Text = ““;
                    textPass.Text = ““;
                }
                MyClass.con_close();
            }
            else
                MessageBox.Show(“请将登录信息添写完整!“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
        }

        private void F_Login_Load(object sender EventArgs e)
        {
            try
            {
                MyClass.con_open();  //连接数据库
                MyClass.con_close();
                textName.Text = ““;
                textPass.Text = ““;

            }
            catch
            {
                MessageBox.Show(“数据库连接失败。“ “提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
                Application.Exit();
            }
        }

        private void textName_KeyPress(object sender KeyPressEventArgs e)
        {
            if (e.KeyChar == ‘\r‘)
                textPass.Focus();
        }

        private void textPass_KeyPress(object sender KeyPressEventArgs e)
        {
            if (e.KeyChar == ‘\r‘)
                butLogin.Focus();
        }

        private void F_Login_Activated(object sender EventArgs e)
        {
            textName.Focus();
        }

        private void pictureBox1_Click(object sender EventAr

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3072  2011-08-24 16:13  08\PWMS\CloudService1\bin\Debug\CloudService1.dll

     文件       7680  2011-08-24 16:13  08\PWMS\CloudService1\bin\Debug\CloudService1.pdb

     文件       2344  2011-04-23 21:22  08\PWMS\CloudService1\CloudService.html

     文件       1967  2011-04-23 21:24  08\PWMS\CloudService1\CloudService1.csproj

     文件        503  2011-08-24 16:13  08\PWMS\CloudService1\obj\Debug\CloudService1.csproj.FileListAbsolute.txt

     文件       3072  2011-08-24 16:13  08\PWMS\CloudService1\obj\Debug\CloudService1.dll

     文件       7680  2011-08-24 16:13  08\PWMS\CloudService1\obj\Debug\CloudService1.pdb

     文件       5237  2011-08-24 16:13  08\PWMS\CloudService1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       3148  2011-04-23 21:22  08\PWMS\CloudService1\VSlogo.gif

     文件        144  2011-08-24 16:12  08\PWMS\PWMS\app.config

     文件    2574848  2008-01-09 10:42  08\PWMS\PWMS\bin\Debug\bar\2008-1-9104229.bak

     文件     407040  2011-08-24 16:28  08\PWMS\PWMS\bin\Debug\Interop.Microsoft.Office.Core.dll

     文件     155648  2010-08-11 09:28  08\PWMS\PWMS\bin\Debug\Interop.Office.dll

     文件      44032  2011-08-24 16:28  08\PWMS\PWMS\bin\Debug\Interop.VBIDE.dll

     文件     646144  2011-08-24 16:28  08\PWMS\PWMS\bin\Debug\Interop.Word.dll

     文件    1089536  2011-08-24 16:32  08\PWMS\PWMS\bin\Debug\PWMS.exe

     文件        144  2011-08-24 16:12  08\PWMS\PWMS\bin\Debug\PWMS.exe.config

     文件     247296  2011-08-24 16:32  08\PWMS\PWMS\bin\Debug\PWMS.pdb

     文件      14328  2010-08-11 09:28  08\PWMS\PWMS\bin\Debug\PWMS.vshost.exe

     文件        490  2009-06-11 05:14  08\PWMS\PWMS\bin\Debug\PWMS.vshost.exe.manifest

     文件       4319  2010-08-11 09:32  08\PWMS\PWMS\DataClass\MyMeans.cs

     文件       3080  2011-04-23 21:24  08\PWMS\PWMS\F_Login.cs

     文件       5233  2011-04-23 21:24  08\PWMS\PWMS\F_Login.Designer.cs

     文件     350022  2011-04-23 21:24  08\PWMS\PWMS\F_Login.resx

     文件       7044  2007-12-15 13:27  08\PWMS\PWMS\F_Main.cs

     文件      38155  2007-12-15 13:27  08\PWMS\PWMS\F_Main.Designer.cs

     文件    1001411  2007-12-15 13:27  08\PWMS\PWMS\F_Main.resx

     文件       2906  2007-12-05 09:05  08\PWMS\PWMS\Image\01.png

     文件       3071  2007-12-05 09:10  08\PWMS\PWMS\Image\02.PNG

     文件       3242  2007-12-05 09:11  08\PWMS\PWMS\Image\03.PNG

............此处省略145个文件信息

评论

共有 条评论

相关资源