• 大小: 2.87MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-27
  • 语言: C#
  • 标签:

资源简介

数据库课程设计----C#版学生信息管理系统

资源截图

代码片段和文件信息

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;
using System.Data.SqlClient;

namespace StudentInfo.StudentInfoUI
{
    public partial class frm_Login : Form
    {
        StudentInfo.baseClass.dataOption dataoption = new StudentInfo.baseClass.dataOption();

        public static string str_Right;
        public frm_Login()
        {
            InitializeComponent();
        }

        private void btnExit_Click(object sender EventArgs e)
        {
            this.Dispose();
            this.Close();
            Application.Exit();
        }

        private void btnLogin_Click(object sender EventArgs e)
        {
            SqlDataReader sqlread = dataoption.getread(“select UIdUType from tb_User where UId=‘“+txtUserName.Text.Trim()+“‘and UPwd=‘“+txtPwd.Text.Trim()+“‘“);
            if (sqlread.Read())
            {
                str_Right = sqlread[“UType“].ToString();
            }

            if (sqlread.HasRows)
            {
                this.Hide();
                frm_Main main = new frm_Main();
                main.Show();
            }
            else
            {
                MessageBox.Show(““);
            }
            sqlread.Close();
        }
    }
}

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

     文件    3145728  2008-06-24 17:59  StudentInfo\Database\db_StudentInfo.mdf

     文件    1048576  2008-06-24 17:59  StudentInfo\Database\db_StudentInfo_log.ldf

     文件       2594  2008-06-23 14:19  StudentInfo\Database\SQLStudent.sql

     文件       1677  2008-06-23 20:01  StudentInfo\StudentInfo\baseClass\dataOption.cs

     文件        589  2008-06-24 12:29  StudentInfo\StudentInfo\baseClass\Operate.cs

     文件     577024  2008-06-24 17:31  StudentInfo\StudentInfo\bin\Debug\StudentInfo.exe

     文件     140800  2008-06-24 17:31  StudentInfo\StudentInfo\bin\Debug\StudentInfo.pdb

     文件      14328  2008-06-24 17:31  StudentInfo\StudentInfo\bin\Debug\StudentInfo.vshost.exe

     文件        490  2007-07-21 01:33  StudentInfo\StudentInfo\bin\Debug\StudentInfo.vshost.exe.manifest

     文件       1392  2008-06-24 11:21  StudentInfo\StudentInfo\frm_Login.cs

     文件       7206  2008-06-23 22:43  StudentInfo\StudentInfo\frm_Login.Designer.cs

     文件       5814  2008-06-23 22:43  StudentInfo\StudentInfo\frm_Login.resx

     文件       5279  2008-06-24 17:31  StudentInfo\StudentInfo\frm_Main.cs

     文件      31806  2008-06-24 16:03  StudentInfo\StudentInfo\frm_Main.Designer.cs

     文件       6213  2008-06-24 16:03  StudentInfo\StudentInfo\frm_Main.resx

     文件        591  2008-06-23 13:00  StudentInfo\StudentInfo\frm_Prep.cs

     文件       1887  2008-06-23 13:00  StudentInfo\StudentInfo\frm_Prep.Designer.cs

     文件       5814  2008-06-23 13:00  StudentInfo\StudentInfo\frm_Prep.resx

     文件       1345  2008-06-24 17:31  StudentInfo\StudentInfo\obj\Debug\StudentInfo.csproj.FileListAbsolute.txt

     文件       1889  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.csproj.GenerateResource.Cache

     文件     577024  2008-06-24 17:31  StudentInfo\StudentInfo\obj\Debug\StudentInfo.exe

     文件        180  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.frm_Prep.resources

     文件     140800  2008-06-24 17:31  StudentInfo\StudentInfo\obj\Debug\StudentInfo.pdb

     文件     520075  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.Properties.Resources.resources

     文件        180  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.StudentInfoUI.frm_About.resources

     文件        180  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.StudentInfoUI.frm_Course.resources

     文件        180  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.StudentInfoUI.frm_GradeMag.resources

     文件        180  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.StudentInfoUI.frm_GradeSelect.resources

     文件        180  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.StudentInfoUI.frm_GradeSum.resources

     文件        180  2008-06-24 17:30  StudentInfo\StudentInfo\obj\Debug\StudentInfo.StudentInfoUI.frm_Login.resources

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

评论

共有 条评论