• 大小: 327KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-21
  • 语言: C#
  • 标签: C#  源码  

资源简介

档案管理系统 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  档案管理系统(完整)\档案管理系统\档案管理系统\mydatabaseDataSet.Designer.cs

     文件        381  2009-05-08 15:00  档案管理系统(完整)\档案管理系统\档案管理系统\mydatabaseDataSet.xsc

     文件      11733  2009-05-08 15:00  档案管理系统(完整)\档案管理系统\档案管理系统\mydatabaseDataSet.xsd

     文件        849  2009-05-08 15:00  档案管理系统(完整)\档案管理系统\档案管理系统\mydatabaseDataSet.xss

     文件        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\mydatabaseDataSet.Designer.cs.dll

     目录          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个文件信息

评论

共有 条评论