学生管理系统学生管理系统学生管理系统学生管理系统绝对经典
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 15121 2008-01-13 19:36 学生管理系统C#AddClass.cs
文件 22067 2008-01-13 18:11 学生管理系统C#AddClass.Designer.cs
文件 6004 2008-01-13 18:11 学生管理系统C#AddClass.resx
文件 19682 2010-01-08 02:02 学生管理系统C#addCourse.cs
文件 21595 2008-01-13 09:33 学生管理系统C#addCourse.Designer.cs
文件 7418 2008-01-13 09:33 学生管理系统C#addCourse.resx
文件 8199 2008-01-12 21:33 学生管理系统C#AddScore.cs
文件 24779 2008-01-12 21:33 学生管理系统C#AddScore.Designer.cs
文件 7241 2008-01-12 21:33 学生管理系统C#AddScore.resx
文件 1941 2008-01-13 09:33 学生管理系统C#AddSpecialty.cs
文件 5840 2008-01-13 09:33 学生管理系统C#AddSpecialty.Designer.cs
文件 5814 2008-01-13 09:33 学生管理系统C#AddSpecialty.resx
文件 6642 2008-01-13 09:33 学生管理系统C#AddStudent.cs
文件 21178 2008-01-13 09:33 学生管理系统C#AddStudent.Designer.cs
文件 6391 2008-01-13 09:33 学生管理系统C#AddStudent.resx
文件 413 2008-01-03 14:28 学生管理系统C#app.config
文件 1915 2007-08-02 16:36 学生管理系统C#AssemblyInfo.cs
文件 528384 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.Data.v7.2.dll
文件 1024000 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.OfficeSkins.v7.2.dll
文件 167936 2007-08-02 16:24 学生管理系统C#inDebugDevExpress.Tutorials.v7.2.dll
文件 3665920 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.Utils.v7.2.dll
文件 1548288 2007-08-02 16:23 学生管理系统C#inDebugDevExpress.XtraBars.v7.2.dll
文件 245760 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraEditors.v7.2.Design.dll
文件 1376256 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraEditors.v7.2.dll
文件 1232896 2007-08-02 16:25 学生管理系统C#inDebugDevExpress.XtraGrid.v7.2.dll
文件 307200 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraNavBar.v7.2.dll
文件 221184 2007-08-02 16:25 学生管理系统C#inDebugDevExpress.XtraPivotGrid.v7.2.Core.dll
文件 286720 2007-08-02 16:25 学生管理系统C#inDebugDevExpress.XtraPivotGrid.v7.2.dll
文件 1531904 2007-08-02 16:23 学生管理系统C#inDebugDevExpress.XtraPrinting.v7.2.dll
文件 286720 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraRichTextEdit.v7.2.dll
............此处省略110个文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Data.OleDb;
namespace DevExpress.XtraBars.Demos.RibbonSimplePad
{
public partial class AddClass : DevExpress.XtraEditors.XtraForm
{
public AddClass()
{
InitializeComponent();
}
private void AddClass_Load(object sender EventArgs e)
{
dateEdit2.Text = DateTime.Now.Year .ToString ();
reflash();//刷新数据
dataGrid1.DataSource = gridControl1.DataSource;
DataSet ds1 = new DataSet();
ds1.Clear();
string k = “Data Source=xsxxdb.mdb;Jet OLEDB:Engine Type=5;Provider=Microsoft.Jet.OLEDB.4.0;“;
OleDbConnection cn = new OleDbConnection(k);
cn.Open();
comboBoxEdit1.Properties.Items.Clear();//清空
OleDbDataAdapter adp = new OleDbDataAdapter(“select specialtyidspecialtyname from specialtyinfo“ cn);
adp.Fill(ds1 “class“);//填允专业列表!!!!!!!!!!!!!!
for (int i = 0; ds1.Tables[“class“].Rows.Count > i; i++)
{
this.comboBoxEdit1.Properties.Items.AddRange(new object[] { ds1.Tables[“class“].Rows[i][1] });
this.comboBoxEdit3.Properties.Items.AddRange(new object[] { ds1.Tables[“class“].Rows[i][1] });
}
comboBoxEdit1.SelectedIndex = 0;
comboBoxEdit3.SelectedIndex = 0;
cn.Close();
}
private void simpleButton2_Click(object sender EventArgs e)
{
this.Close();
}
private void simpleButton1_Click(object sender EventArgs e)
{
try
{
if (textEdit1.Text.Trim() == ““ || textEdit2.Text.Trim() == ““ || textEdit3.Text.Trim() == ““ || comboBoxEdit2.Text.Trim() == ““ || comboBoxEdit3.Text.Trim() == ““ || dateEdit2.Text.Trim() == ““)
MessageBox.Show(“请输入完整班级信息!“ “提示“);
else if (isnum(comboBoxEdit2.Text.Trim().ToString()) == false)
MessageBox.Show(“年制不是数字“);
else if (int.Parse(comboBoxEdit2.Text.Trim()) < 0 || int.Parse(comboBoxEdit2.Text.Trim()) > 7)
MessageBox.Show(“年制为2--7“ “提示“);
else
{
string k = “Data Source=xsxxdb.mdb;Jet OLEDB:Engine Type=5;Provider=Microsoft.Jet.OLEDB.4.0;“;
OleDbConnection cn = new OleDbConnection(k);
cn.Open();
OleDbCommand cmd = new OleDbCommand(“select * from classinfo where classname=‘“ + textEdit1.Text.Trim() + “‘“ cn);
if (null != cmd.ExecuteScalar())
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 15121 2008-01-13 19:36 学生管理系统C#AddClass.cs
文件 22067 2008-01-13 18:11 学生管理系统C#AddClass.Designer.cs
文件 6004 2008-01-13 18:11 学生管理系统C#AddClass.resx
文件 19682 2010-01-08 02:02 学生管理系统C#addCourse.cs
文件 21595 2008-01-13 09:33 学生管理系统C#addCourse.Designer.cs
文件 7418 2008-01-13 09:33 学生管理系统C#addCourse.resx
文件 8199 2008-01-12 21:33 学生管理系统C#AddScore.cs
文件 24779 2008-01-12 21:33 学生管理系统C#AddScore.Designer.cs
文件 7241 2008-01-12 21:33 学生管理系统C#AddScore.resx
文件 1941 2008-01-13 09:33 学生管理系统C#AddSpecialty.cs
文件 5840 2008-01-13 09:33 学生管理系统C#AddSpecialty.Designer.cs
文件 5814 2008-01-13 09:33 学生管理系统C#AddSpecialty.resx
文件 6642 2008-01-13 09:33 学生管理系统C#AddStudent.cs
文件 21178 2008-01-13 09:33 学生管理系统C#AddStudent.Designer.cs
文件 6391 2008-01-13 09:33 学生管理系统C#AddStudent.resx
文件 413 2008-01-03 14:28 学生管理系统C#app.config
文件 1915 2007-08-02 16:36 学生管理系统C#AssemblyInfo.cs
文件 528384 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.Data.v7.2.dll
文件 1024000 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.OfficeSkins.v7.2.dll
文件 167936 2007-08-02 16:24 学生管理系统C#inDebugDevExpress.Tutorials.v7.2.dll
文件 3665920 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.Utils.v7.2.dll
文件 1548288 2007-08-02 16:23 学生管理系统C#inDebugDevExpress.XtraBars.v7.2.dll
文件 245760 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraEditors.v7.2.Design.dll
文件 1376256 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraEditors.v7.2.dll
文件 1232896 2007-08-02 16:25 学生管理系统C#inDebugDevExpress.XtraGrid.v7.2.dll
文件 307200 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraNavBar.v7.2.dll
文件 221184 2007-08-02 16:25 学生管理系统C#inDebugDevExpress.XtraPivotGrid.v7.2.Core.dll
文件 286720 2007-08-02 16:25 学生管理系统C#inDebugDevExpress.XtraPivotGrid.v7.2.dll
文件 1531904 2007-08-02 16:23 学生管理系统C#inDebugDevExpress.XtraPrinting.v7.2.dll
文件 286720 2007-08-02 16:22 学生管理系统C#inDebugDevExpress.XtraRichTextEdit.v7.2.dll
............此处省略110个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)