mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 10:37:55 +08:00
流程跳转
This commit is contained in:
25
OpenAuth.App/ViewModel/CommandModel.cs
Normal file
25
OpenAuth.App/ViewModel/CommandModel.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
// ***********************************************************************
|
||||
// Assembly : OpenAuth.App
|
||||
// Author : yubaolee
|
||||
// Created : 09-05-2016
|
||||
//
|
||||
// Last Modified By : yubaolee
|
||||
// Last Modified On : 09-05-2016
|
||||
// Contact : Microsoft
|
||||
// File: CommandModel.cs
|
||||
// ***********************************************************************
|
||||
|
||||
using OptimaJet.Workflow.Core.Model;
|
||||
|
||||
namespace OpenAuth.App.ViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// workflow命令
|
||||
/// </summary>
|
||||
public class CommandModel
|
||||
{
|
||||
public string Key { get; set; }
|
||||
public string Value { get; set; }
|
||||
public TransitionClassifier Classifier { get; set; }
|
||||
}
|
||||
}
|
73
OpenAuth.App/ViewModel/GoodsApplyVM.cs
Normal file
73
OpenAuth.App/ViewModel/GoodsApplyVM.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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.Collections.Generic;
|
||||
using Infrastructure;
|
||||
using OpenAuth.Domain;
|
||||
|
||||
namespace OpenAuth.App.ViewModel
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public class GoodsApplyVM :Entity
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Sort { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public int Number { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string Comment { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string State { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public string StateName { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Guid UserId { get; set; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public System.Guid? ControllerUserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 可用命令
|
||||
/// </summary>
|
||||
public CommandModel[] Commands { get; set; }
|
||||
|
||||
public Dictionary<string, string> AvailiableStates { get; set; }
|
||||
|
||||
public static implicit operator GoodsApplyVM(GoodsApply obj)
|
||||
{
|
||||
return obj.MapTo<GoodsApplyVM>();
|
||||
}
|
||||
|
||||
public static implicit operator GoodsApply(GoodsApplyVM obj)
|
||||
{
|
||||
return obj.MapTo<GoodsApply>();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@@ -39,10 +39,8 @@ namespace OpenAuth.App.ViewModel
|
||||
/// </summary>
|
||||
public List<Org> Orgs { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户可访问的机构
|
||||
/// </summary>
|
||||
public IEnumerable<Org> AccessedOrgs { get; set; }
|
||||
|
||||
public List<Role> Roles { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user