• 大小: 124KB
    文件类型: .rar
    金币: 2
    下载: 2 次
    发布日期: 2021-06-12
  • 语言: C#
  • 标签: c#  门禁  

资源简介

2005 c# 完整的门禁考勤系统,用2005 c#写完整实例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;

namespace AttendManager
{
    partial class AboutBox : Form
    {
        public AboutBox()
        {
            InitializeComponent();

            //  初始化 AboutBox 以显示程序集信息中包含的产品信息。
            //  也可以通过以下方法更改应用程序的程序集信息设置:
            //  - 项目->属性->应用程序->程序集信息
            //  - AssemblyInfo.cs
            this.Text = String.Format(“关于 {0}“ Assemblytitle);
            this.labelProductName.Text = AssemblyProduct;
            this.labelVersion.Text = String.Format(“版本 {0}“ AssemblyVersion);
            this.labelCopyright.Text = AssemblyCopyright;
            this.labelCompanyName.Text = AssemblyCompany;
            this.textBoxDescription.Text = AssemblyDescription;
        }

        #region 程序集属性访问器

        public string Assemblytitle
        {
            get
            {
                // 获取此程序集上的所有 title 属性
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
                // 如果至少有一个 title 属性
                if (attributes.Length > 0)
                {
                    // 请选择第一个属性
                    AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
                    // 如果该属性为非空字符串,则将其返回
                    if (titleAttribute.title != ““)
                        return titleAttribute.title;
                }
                // 如果没有 title 属性,或者 title 属性为一个空字符串,则返回 .exe 的名称
                return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        public string AssemblyDescription
        {
            get
            {
                // 获取此程序集的所有 Description 属性
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute) false);
                // 如果 Description 属性不存在,则返回一个空字符串
                if (attributes.Length == 0)
                    return ““;
                // 如果有 Description 属性,则返回该属性的值
                return ((AssemblyDescriptionAttribute)attributes[0]).Description;
            }
        }

        public string AssemblyProduct
        {
            get
            {
                // 获取此程序集上的所有 Product 属性
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute) false);
                // 如果 Product 属性不存在,则返回一个空字符串
                if (attributes.Length == 0)
                    return ““;
                // 如果有 Product 属性,则返回该属性的值
                return ((AssemblyProductAttribute)attributes[0]).Produ

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

     文件        928  2008-02-26 16:49  AttendManager--\AttendManager.sln

    ..A..H.     45056  2008-04-18 21:55  AttendManager--\AttendManager.suo

     文件       4754  2008-04-18 15:41  AttendManager--\AttendManager\AboutBox.cs

     文件      10460  2008-04-18 15:41  AttendManager--\AttendManager\AboutBox.Designer.cs

     文件      33230  2008-04-18 15:41  AttendManager--\AttendManager\AboutBox.resx

     文件       1746  2008-04-17 16:15  AttendManager--\AttendManager\app.config

     文件       5944  2008-04-18 15:48  AttendManager--\AttendManager\AttendManager.csproj

     文件          1  2008-04-18 13:48  AttendManager--\AttendManager\ClassDiagram1.cd

     文件         79  2008-04-17 11:18  AttendManager--\AttendManager\DataSet1.cs

     文件      28068  2008-04-17 16:06  AttendManager--\AttendManager\DataSet1.Designer.cs

     文件          3  2008-04-17 11:14  AttendManager--\AttendManager\DataSet1.xsc

     文件       4339  2008-04-17 11:18  AttendManager--\AttendManager\DataSet1.xsd

     文件        853  2008-04-17 11:18  AttendManager--\AttendManager\DataSet1.xss

     文件        346  2008-02-26 17:09  AttendManager--\AttendManager\Form1.cs

     文件      15948  2008-02-26 17:09  AttendManager--\AttendManager\Form1.Designer.cs

     文件       6214  2008-02-26 17:09  AttendManager--\AttendManager\Form1.resx

     文件       4157  2008-04-18 15:35  AttendManager--\AttendManager\Form_EditPW.cs

     文件       6884  2008-04-18 15:11  AttendManager--\AttendManager\Form_EditPW.Designer.cs

     文件       5814  2008-04-18 15:11  AttendManager--\AttendManager\Form_EditPW.resx

     文件       5676  2008-04-18 15:51  AttendManager--\AttendManager\Form_Main.cs

     文件      21594  2008-04-18 15:51  AttendManager--\AttendManager\Form_Main.Designer.cs

     文件       6409  2008-04-18 15:51  AttendManager--\AttendManager\Form_Main.resx

     文件      13337  2008-04-18 17:10  AttendManager--\AttendManager\Form_PersonManage.cs

     文件      27366  2008-04-18 16:59  AttendManager--\AttendManager\Form_PersonManage.Designer.cs

     文件      12430  2008-04-18 16:59  AttendManager--\AttendManager\Form_PersonManage.resx

     文件      12528  2008-04-18 16:06  AttendManager--\AttendManager\Form_UserManage.cs

     文件      24739  2008-04-18 16:06  AttendManager--\AttendManager\Form_UserManage.Designer.cs

     文件      12422  2008-04-18 16:06  AttendManager--\AttendManager\Form_UserManage.resx

     文件       5346  2008-04-18 14:28  AttendManager--\AttendManager\LoginFrm.cs

     文件       8587  2008-04-18 14:22  AttendManager--\AttendManager\LoginFrm.Designer.cs

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

评论

共有 条评论