資源簡介
檔案管理系統 C# 檔案管理系統 C# 檔案管理系統 C# 檔案管理系統 C#

代碼片段和文件信息
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?檔案管理系統
{
????public?partial?class?check?:?Form
????{
????????public?check()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????this.Close();
????????}
????????private?void?check_Load(object?sender?EventArgs?e)
????????{
????????????
????????????
???????????
????????}
????????public?float?total;
????????private?void?男ToolStripMenuItem_Click(object?sender?EventArgs?e)
????????{
????????????
????????????listView1.Items.Clear();
????????????string?cmdtext?=?“select?*?from?info?where?sex=?N‘男‘?“;
????????????SqlConnection?myconnection?=?new?SqlConnection(“data?source=.;initial?catalog=mydatabase;integrated?security=sspi“);
????????????SqlCommand?mycommand?=?new?SqlCommand(cmdtext?myconnection);
????????????myconnection.Open();
????????????SqlDataReader?read?=?mycommand.ExecuteReader();
????????????while?(read.Read())
????????????{
????????????????string?[]?subitems=new?string?[]{
????????????????????read.GetInt32(0).ToString()
????????????????????read.GetString(1)
????????????????????read.GetString(2)
????????????????????read.GetDateTime(3).ToString()
????????????????????read.GetString(4)
????????????????????read.GetString(5)
????????????????????read.GetString(6)
????????????????????read.GetString(7)
????????????????????};
????????????????total++;
????????????????this.listView1.Items.Add(new?ListViewItem(subitems));
????????????}
????????????read.Close();
????????????myconnection?.Close();
????????????label1.Visible?=?true;
????????????label2.Visible?=?true;
????????????label3.Visible?=?true;
????????????label4.Visible?=?true;
????????????label2.Text?=Convert.ToString(total);
????????????label4.Text?=??Convert.ToString((total?/?17)*100).Substring(02)+“%“;
????????????total?=?0;
????????????}
????????private?void?女ToolStripMenuItem_Click(object?sender?EventArgs?e)
????????{
????????????listView1.Items.Clear();
????????????string?cmdtext?=?“select?*?from?info?where?sex=?N‘女‘?“;
????????????SqlConnection?myconnection?=?new?SqlConnection(“data?source=.;initial?catalog=mydatabase;integrated?security=sspi“);
????????????SqlCommand?mycommand?=?new?SqlCommand(cmdtext?myconnection);
????????????myconnection.Open();
????????????SqlDataReader?read?=?mycommand.ExecuteReader();
????????????while?(read.Read())
????????????{
????????????????string[]?subitems?=?new?string[]{
????????????????????read.GetInt32(0).ToString()
????????????????????read.GetString(1)
????????????????????read.GetString(2)
????????????????????read.GetDateTime(3).ToString()
????????????????????read.GetString(4)
????????????????????read.GetString(5)
????????????????????read.GetString(6)
?????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????972054??2009-05-08?20:50??檔案管理系統(完整)\tu1.bmp
?????文件????1347926??2009-05-08?20:52??檔案管理系統(完整)\tu2.bmp
?????文件????1526272??2009-05-08?20:48??檔案管理系統(完整)\數據庫\backup
?????目錄??????????0??2009-05-08?20:52??檔案管理系統(完整)\數據庫
?????文件????????410??2009-05-08?14:15??檔案管理系統(完整)\檔案管理系統\檔案管理系統\app.config
?????文件??????57344??2009-05-08?20:49??檔案管理系統(完整)\檔案管理系統\檔案管理系統\bin\Debug\檔案管理系統.exe
?????文件????????410??2009-05-08?14:15??檔案管理系統(完整)\檔案管理系統\檔案管理系統\bin\Debug\檔案管理系統.exe.config
?????文件??????97792??2009-05-08?20:49??檔案管理系統(完整)\檔案管理系統\檔案管理系統\bin\Debug\檔案管理系統.pdb
?????文件???????5632??2005-09-23?21:56??檔案管理系統(完整)\檔案管理系統\檔案管理系統\bin\Debug\檔案管理系統.vshost.exe
?????文件????????410??2009-05-08?14:15??檔案管理系統(完整)\檔案管理系統\檔案管理系統\bin\Debug\檔案管理系統.vshost.exe.config
?????目錄??????????0??2009-05-08?20:52??檔案管理系統(完整)\檔案管理系統\檔案管理系統\bin\Debug
?????目錄??????????0??2009-05-08?20:52??檔案管理系統(完整)\檔案管理系統\檔案管理系統\bin
?????文件??????19887??2009-05-08?20:36??檔案管理系統(完整)\檔案管理系統\檔案管理系統\check.cs
?????文件??????22123??2009-05-08?20:36??檔案管理系統(完整)\檔案管理系統\檔案管理系統\check.Designer.cs
?????文件???????7272??2009-05-08?20:36??檔案管理系統(完整)\檔案管理系統\檔案管理系統\check.resx
?????文件????????646??2009-05-08?20:36??檔案管理系統(完整)\檔案管理系統\檔案管理系統\Form1.cs
?????文件???????3656??2009-05-08?20:35??檔案管理系統(完整)\檔案管理系統\檔案管理系統\Form1.Designer.cs
?????文件???????5814??2009-05-08?20:35??檔案管理系統(完整)\檔案管理系統\檔案管理系統\Form1.resx
?????文件??????48364??2009-05-08?15:00??檔案管理系統(完整)\檔案管理系統\檔案管理系統\mydataba
?????文件????????381??2009-05-08?15:00??檔案管理系統(完整)\檔案管理系統\檔案管理系統\mydataba
?????文件??????11733??2009-05-08?15:00??檔案管理系統(完整)\檔案管理系統\檔案管理系統\mydataba
?????文件????????849??2009-05-08?15:00??檔案管理系統(完整)\檔案管理系統\檔案管理系統\mydataba
?????文件????????555??2009-05-08?14:53??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\RdlCompile.cache
?????文件??????????0??2009-05-08?14:53??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\RdlCompile.compiled
?????文件??????20134??2009-05-08?14:53??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\ResolveAssemblyReference.cache
?????文件??????36864??2009-05-08?15:00??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\TempPE\mydataba
?????目錄??????????0??2009-05-08?20:52??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\TempPE
?????文件????????180??2009-05-08?20:36??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\檔案管理系統.check.resources
?????文件????????900??2009-05-08?20:36??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\檔案管理系統.csproj.GenerateResource.Cache
?????文件??????57344??2009-05-08?20:49??檔案管理系統(完整)\檔案管理系統\檔案管理系統\obj\Debug\檔案管理系統.exe
............此處省略27個文件信息
- 上一篇:托利多電子稱開發下傳C#源代碼
- 下一篇:基于C#的簡單抄表界面
評論
共有 條評論