mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-12-26 14:15:42 +08:00
删除workflowengine.net
This commit is contained in:
@@ -1,62 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public partial class ApplyTransitionHistory :Entity
|
||||
{
|
||||
public ApplyTransitionHistory()
|
||||
{
|
||||
this.AllowedToUserNames= string.Empty;
|
||||
this.InitialState= string.Empty;
|
||||
this.DestinationState= string.Empty;
|
||||
this.Command= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Guid ApplyId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Guid? UserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string AllowedToUserNames { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.DateTime? TransitionTime { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public long Order { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string InitialState { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string DestinationState { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Command { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <autogenerated>
|
||||
// This code was generated by a CodeSmith Template.
|
||||
//
|
||||
// DO NOT MODIFY contents of this file. Changes to this
|
||||
// file will be lost if the code is regenerated.
|
||||
// Author:Yubao Li
|
||||
// </autogenerated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.Domain
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public partial class WorkflowScheme
|
||||
{
|
||||
public WorkflowScheme()
|
||||
{
|
||||
this.Code= string.Empty;
|
||||
this.Scheme= string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Scheme { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace OpenAuth.Domain.Interface
|
||||
{
|
||||
public interface IWorkflowSchemeRepository : IRepository<WorkflowScheme>
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -42,14 +42,11 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Core\ApplyTransitionHistory.cs" />
|
||||
<Compile Include="Core\Category.cs" />
|
||||
<Compile Include="Core\UserExt.cs" />
|
||||
<Compile Include="Core\DicDetail.cs" />
|
||||
<Compile Include="Core\DicIndex.cs" />
|
||||
<Compile Include="Core\Entity.cs" />
|
||||
<Compile Include="Core\CommonApply.cs" />
|
||||
<Compile Include="Interface\IWorkflowSchemeRepository.cs" />
|
||||
<Compile Include="Interface\ICategoryRepository.cs" />
|
||||
<Compile Include="Interface\IModuleRepository.cs" />
|
||||
<Compile Include="Interface\IOrgRepository.cs" />
|
||||
@@ -75,7 +72,6 @@
|
||||
<Compile Include="Service\ResManagerService.cs" />
|
||||
<Compile Include="Service\StockManagerService.cs" />
|
||||
<Compile Include="Service\WFFormService.cs" />
|
||||
<Compile Include="Service\WFSchemeService.cs" />
|
||||
<Compile Include="Core\Stock.cs" />
|
||||
<Compile Include="Core\User.cs" />
|
||||
<Compile Include="Core\WFFrmMain.cs" />
|
||||
@@ -85,7 +81,6 @@
|
||||
<Compile Include="Core\WFProcessTransitionHistory.cs" />
|
||||
<Compile Include="Core\WFSchemeContent.cs" />
|
||||
<Compile Include="Core\WFSchemeInfo.cs" />
|
||||
<Compile Include="Core\WorkflowScheme.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
@@ -1,106 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenAuth.Domain.Interface;
|
||||
|
||||
namespace OpenAuth.Domain.Service
|
||||
{
|
||||
/// <summary>
|
||||
/// 流程设计服务
|
||||
/// <para>李玉宝新增于2017-01-16 16:18:35</para>
|
||||
/// </summary>
|
||||
public class WFSchemeService
|
||||
{
|
||||
protected IUnitWork _unitWork;
|
||||
|
||||
public WFSchemeService(IUnitWork unitWork)
|
||||
{
|
||||
_unitWork = unitWork;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存流程
|
||||
/// </summary>
|
||||
/// <param name="entity">表单模板实体类</param>
|
||||
/// <param name="keyValue">主键</param>
|
||||
/// <returns></returns>
|
||||
public int SaveForm(string keyValue, WFSchemeInfo entity, WFSchemeContent modelentity)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (string.IsNullOrEmpty(keyValue))
|
||||
{
|
||||
entity.SchemeVersion = DateTime.Now.ToString("yyyyMMddHHmmssffff");
|
||||
_unitWork.Add(entity);
|
||||
|
||||
modelentity.SchemeInfoId = entity.Id;
|
||||
modelentity.SchemeVersion = entity.SchemeVersion;
|
||||
_unitWork.Add(modelentity);
|
||||
}
|
||||
else
|
||||
{
|
||||
Guid schemeid = Guid.Parse(keyValue);
|
||||
WFSchemeContent modelentityold =
|
||||
_unitWork.FindSingle<WFSchemeContent>(u => u.SchemeVersion == entity.SchemeVersion
|
||||
&& u.SchemeInfoId == schemeid);
|
||||
|
||||
if (modelentityold.SchemeContent != modelentity.SchemeContent)
|
||||
{
|
||||
if (modelentity.SchemeVersion == "cg")
|
||||
{
|
||||
modelentityold.SchemeContent = modelentity.SchemeContent;
|
||||
modelentityold.SchemeVersion = DateTime.Now.ToString("yyyyMMddHHmmssffff");
|
||||
modelentity.SchemeVersion = modelentityold.SchemeVersion;
|
||||
_unitWork.Update(modelentityold);
|
||||
}
|
||||
else
|
||||
{
|
||||
modelentity.SchemeInfoId = schemeid;
|
||||
modelentity.SchemeVersion = DateTime.Now.ToString("yyyyMMddHHmmssffff");
|
||||
_unitWork.Add(modelentity);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
modelentity.SchemeVersion = modelentityold.SchemeVersion;
|
||||
}
|
||||
entity.Id = Guid.Parse(keyValue);
|
||||
entity.SchemeVersion = modelentity.SchemeVersion;
|
||||
_unitWork.Update(entity);
|
||||
}
|
||||
|
||||
_unitWork.Save();
|
||||
return 1;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
public void RemoveForm(string keyValue)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public WFSchemeInfo GetEntity(string keyValue)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public WFSchemeContent GetSchemeEntity(Guid schemeinfoId, string schemeinfoSchemeVersion)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public void UpdateState(string keyValue, int state)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<WFSchemeInfo> GetList()
|
||||
{
|
||||
return _unitWork.Find<WFSchemeInfo>(null).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user