• 大小: 966.45 KB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-08-08
  • 语言: 其他
  • 标签: C#  

资源简介

基于Petri网的工作流,包括完整源代码,数据库、系统设计分析,直接编译后可以使用

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace LibraryAudit
{
    public partial class AuditMgr : Component
    {
        public AuditMgr()
        {
            InitializeComponent();
        }

        public AuditMgr(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
        }

        public enum AuditState
        {
            Pending = -1
            Auditing = -2
            Refused = 0
            Passed = 1
        }

        public enum AuditFlag
        {
            Refused = 0
            Passed = 1
        }

        

        TableAdapterFactory _taFactory = new TableAdapterFactory();

       

        #region Select


        /// 
        /// 根据实体类型和标志位得到Place表
        /// 

        /// 
        /// 
        /// 
        public DSAudit.PlaceDataTable GetPlaceTable(string Entity int flag)
        {
            DSAudit.PlaceDataTable aTable = this._taFactory.GetPlaceTableAdapter().GetDataByAllParameters(null null Entity flag);

            return aTable;
        }


        /// 
        /// 根据实体类型得到Place表
        /// 

        /// 
        /// 
        public DSAudit.PlaceDataTable GetPlaceTable(string Entity)
        {
            DSAudit.PlaceDataTable aTable = this._taFactory.GetPlaceTableAdapter().GetDataByAllParameters(null null Entitynull);

            return aTable;
        }

        /// 
        /// 根据实体类型在Place表中获得实体的起始存储场所数据行信息
        /// 

        /// 实体类型
        /// 
        public DSAudit.PlaceRow GetStartPlaceRow(string Entity)
        {
            DSAudit.PlaceDataTable aPlaceTable = this._taFactory.GetPlaceTableAdapter().GetDataByAllParameters(null null Entity 0);

            if (aPlaceTable.Count == 0)
            {
                throw new Exception(“当前数据为空“);
            }
            DSAudit.PlaceRow aPlaceRow = (DSAudit.PlaceRow)aPlaceTable.Rows[0];

            return aPlaceRow;
        }


        /// 
        /// 根据实体类型在Place表中获得实体的终点存储场所数据行信息
        /// 

        /// 实体类型
        /// 
        public DSAudit.PlaceRow GetEndPlaceRow(string Entity)
        {
            DSAudit.PlaceDataTable aPlaceTable = this._taFactory.GetPlaceTableAdapter().GetDataByAllParameters(null null Entity -1);

            if (aPlaceTable.Count == 0)
            {
                throw new Exception(“当前数据为空“);
            }
            DSAudit.PlaceRow aPlaceRow = (DSAudit.PlaceRow)aPlaceTable.Rows[0];

            return aPlaceRow;
        }

        /// 

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

     文件       1895  2008-08-04 08:35  AuditTest\AuditTest.sln

    ..A..H.     39424  2008-08-18 08:35  AuditTest\AuditTest.suo

     文件        403  2008-08-02 09:03  AuditTest\LibraryAudit\app.config

     文件      35577  2008-08-18 08:26  AuditTest\LibraryAudit\AuditMgr.cs

     文件       1042  2008-08-02 14:49  AuditTest\LibraryAudit\AuditMgr.Designer.cs

     文件        422  2007-10-31 20:34  AuditTest\LibraryAudit\bin\Debug\eSchool.Common.Audit.dll.config

     文件      45056  2007-10-27 17:01  AuditTest\LibraryAudit\bin\Debug\eSchool.Common.dll

     文件      20480  2007-10-27 17:02  AuditTest\LibraryAudit\bin\Debug\eSchool.Common.Sql.dll

     文件     128000  2008-08-18 08:26  AuditTest\LibraryAudit\bin\Debug\LibraryAudit.dll

     文件        403  2008-08-02 09:03  AuditTest\LibraryAudit\bin\Debug\LibraryAudit.dll.config

     文件     251392  2008-08-18 08:26  AuditTest\LibraryAudit\bin\Debug\LibraryAudit.pdb

     文件       1274  2008-08-02 21:14  AuditTest\LibraryAudit\DataSetBuider.cs

     文件      12459  2008-08-06 08:24  AuditTest\LibraryAudit\DSAudit.cs

     文件     340887  2008-08-06 08:24  AuditTest\LibraryAudit\DSAudit.Designer.cs

     文件        361  2008-08-06 08:24  AuditTest\LibraryAudit\DSAudit.xsc

     文件     108149  2008-08-06 08:24  AuditTest\LibraryAudit\DSAudit.xsd

     文件       2373  2008-08-06 08:24  AuditTest\LibraryAudit\DSAudit.xss

     文件       4140  2008-08-02 21:14  AuditTest\LibraryAudit\LibraryAudit.csproj

     文件        387  2008-08-06 15:29  AuditTest\LibraryAudit\obj\Debug\LibraryAudit.csproj.FileListAbsolute.txt

     文件     128000  2008-08-18 08:26  AuditTest\LibraryAudit\obj\Debug\LibraryAudit.dll

     文件     251392  2008-08-18 08:26  AuditTest\LibraryAudit\obj\Debug\LibraryAudit.pdb

     文件       6751  2008-08-06 08:24  AuditTest\LibraryAudit\obj\Debug\ResolveAssemblyReference.cache

     文件     126976  2008-08-06 08:24  AuditTest\LibraryAudit\obj\Debug\TempPE\DSAudit.Designer.cs.dll

     文件       1380  2008-08-02 08:50  AuditTest\LibraryAudit\Properties\AssemblyInfo.cs

     文件       1695  2008-08-02 09:03  AuditTest\LibraryAudit\Properties\Settings.Designer.cs

     文件        978  2008-08-02 09:03  AuditTest\LibraryAudit\Properties\Settings.settings

     文件       1694  2008-08-02 14:34  AuditTest\LibraryAudit\TableAdapterFactory.cs

     文件        401  2008-08-04 09:11  AuditTest\LibraryWeb\app.config

     文件      45056  2007-10-27 17:01  AuditTest\LibraryWeb\bin\Debug\eSchool.Common.dll

     文件      20480  2007-10-27 17:02  AuditTest\LibraryWeb\bin\Debug\eSchool.Common.Sql.dll

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

评论

共有 条评论