资源简介
自己随便写的东西,但绝对没有打bug,还是值得一看的
代码片段和文件信息
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 BookSManages.Model;
using BookSManages.ADO;
namespace BookSManages
{
public partial class BookMain : Form
{
public BookMain()
{
InitializeComponent();
}
private string StrNumber;
public BookMain(string number)
{
InitializeComponent();
this.StrNumber = number;
}
private void BookMain_Load(object sender EventArgs e)
{
//MessageBox.Show(StrNumber);
try
{
Employess objEmp = new BookSManages.ADO.EmployessADO().SelectEmp(StrNumber);
lblName.Text = “您好,“ + objEmp.Name + “欢迎登录本系统。“;
if (objEmp.Number != “s0001“)
{
tolBtnBook.Visible = false;
tolBtnUser.Visible = false;
}
else
{
button1.Visible = false;
button2.Visible = false;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
bit = false;
this.ConcernShow();
this.ClassShow();
this.booksShow(null null);
}
public void booksShow(string conId string classID)
{
booksAdo objado = new booksAdo();
dgBooks.DataSource = objado.shuji(conId classID);
dgBooks.Columns[0].Visible = false;
dgBooks.Columns[1].Visible = false;
dgBooks.Columns[2].Visible = false;
dgBooks.Columns[3].Visible = false;
}
///
/// 加载出版社控件里的数据
///
private void ConcernShow()
{
List list = BookSManages.ADO.Database.GetListConcern();
cmbConcern.Items.Clear();//清空控件
//加载数据
for (int i = 0; i < list.Count; i++)
{
cmbConcern.Items.Add(list[i].ConcernName);
}
}
///
/// 加载图书类别控件里的数据
///
private void ClassShow()
{
List list = BookSManages.ADO.Database.GetListCalss();
cmbClass.Items.Clear();//清空控件
//加载数据
for (int i = 0; i < list.Count; i++)
{
cmbClass.Items.Add(list[i].ClassName);
}
}
bool bit = false;
private void BookMain_FormClosing(object sender FormClosingEventArgs e)
{
if (bit)
this.Owner.Show();
else
Application.Exit();
}
///
/// 修改
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 73520 2011-11-10 11:36 Books\BookSManages\Backup\BookSetup\BookSetup.vdproj
文件 9769 2011-09-29 15:26 Books\BookSManages\Backup\BookSManages\ADO\booksAdo.cs
文件 2831 2011-09-28 16:59 Books\BookSManages\Backup\BookSManages\ADO\borrowADO.cs
文件 3358 2011-09-28 12:10 Books\BookSManages\Backup\BookSManages\ADO\ClassADO.cs
文件 3766 2011-09-27 16:38 Books\BookSManages\Backup\BookSManages\ADO\Concern.cs
文件 3688 2011-09-22 14:56 Books\BookSManages\Backup\BookSManages\ADO\Databa
文件 13717 2011-09-23 15:34 Books\BookSManages\Backup\BookSManages\ADO\EmployessADO.cs
文件 4642 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\borrowbooks.cs
文件 4527 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\borrowbooks.Designer.cs
文件 5814 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\borrowbooks.resx
文件 2284 2011-09-29 16:00 Books\BookSManages\Backup\BookSManages\Book\BrowseBooks.cs
文件 12277 2011-09-29 16:00 Books\BookSManages\Backup\BookSManages\Book\BrowseBooks.Designer.cs
文件 5814 2011-09-29 16:00 Books\BookSManages\Backup\BookSManages\Book\BrowseBooks.resx
文件 3338 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\ClassBook.cs
文件 10401 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\ClassBook.Designer.cs
文件 5814 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\ClassBook.resx
文件 4651 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\ConcernBook.cs
文件 7169 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\ConcernBook.Designer.cs
文件 5814 2011-09-29 16:02 Books\BookSManages\Backup\BookSManages\Book\ConcernBook.resx
文件 10918 2011-09-29 15:47 Books\BookSManages\Backup\BookSManages\Book\ManageBooks.cs
文件 17427 2011-09-29 15:47 Books\BookSManages\Backup\BookSManages\Book\ManageBooks.Designer.cs
文件 6017 2011-09-29 15:47 Books\BookSManages\Backup\BookSManages\Book\ManageBooks.resx
文件 9357 2011-09-29 16:00 Books\BookSManages\Backup\BookSManages\BookMain.cs
文件 27815 2011-09-29 16:00 Books\BookSManages\Backup\BookSManages\BookMain.Designer.cs
文件 9829 2011-09-29 16:00 Books\BookSManages\Backup\BookSManages\BookMain.resx
文件 16298 2011-09-29 15:59 Books\BookSManages\Backup\BookSManages\BookSManages.csproj
文件 568 2011-09-29 15:54 Books\BookSManages\Backup\BookSManages\BookSManages.csproj.user
文件 136606 2011-09-29 15:53 Books\BookSManages\Backup\BookSManages\Icon.ico
文件 2454 2011-09-29 15:59 Books\BookSManages\Backup\BookSManages\Login.cs
文件 7468 2011-09-29 15:59 Books\BookSManages\Backup\BookSManages\Login.Designer.cs
............此处省略584个文件信息
相关资源
- c#书店管理系统(winform+linq to entity+
- .net经典ERP管理系统完整源码(多层架
- 198个经典C#WinForm(收藏版)
- C#打印(winform+web+asp.net)
- Winform常用图标大全
- DevExpress控件说明中文版-WinForm
- 超赞的200个经典C#WinForm
- Winform开发全套31个UI组件开源共享](
- WinForm GeckoFx33 Demo JS与C#互交 窗口浏览
- c#winform中完美代替WebBrowser最新的控件
- C# WINFORM框架源碼
- C# WinForm实践开发教程清晰版
- 一种开源业务系统框架winform源码
- 毕业设计,基于winform的酒店管理系统
- DevExpress WinForm中文文档
- DevexpressWinform中文文档
- Devexpress Winform中文文档纯中文文档N
- Iocomp.Net+WinForms+V4+SP2完全破解版
- Devexpress 中文说明文档winform
- C# WinForm实践开发教程 (钱哨) 带书
- 《CS框架权限管理功能设计》 winform
- [C#]SignalR实现扫码登录(B/SC/S)源码
- C#winformKTV点歌系统
- WinForm开发经典图标素材 总共有3800+
- IOComp.Net WinForms UltraPack 5.0SP1
-
基于winform的xm
l菜单编辑器c#源码) - 数据库课设:KTV点歌系统C# WinForm+Sq
- C#WinForm人事管理系统开发实录
- C#开发MC3200/MC32N0设备的开发文档及需
- 198个经典C#WinForm(超赞)
评论
共有 条评论