code/Athena0.0.1/bll/WorkflowVisualization/WorkflowPanel.cs

(开头部分) 7KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Athena.model;
using Athena.Idal;
using Athena.basedal;

//项目名称:Athena标准开发框架
//版本:0.0.1
//开发团队成员:周庆 王露 张婷婷 陈祚松 张梦丽 艾美珍 胡凯雨 陈兰兰 夏萍萍 康文洋 易传佳
//模块及代码页功能描述:工作流设计面板类(陈祚松)
//最后修改时间:2018-01-11
//修改日志:

namespace Athena.bll.WorkflowVisualization
{
   public class WorkflowPanel
   {

       #region 原工作流 属性
       public int id { get; set; }
       public string wfname { get; set; }
       public string wfmemo { get; set; }
       public string wfownertable { get; set; }
       public string wffieldname { get; set; }
       public DateTime wfbegintime { get; set; }
       public DateTime wfstoptime { get; set; }
       public int? wflock { get; set; }
       private string wfjsonstr { get { return this.WorkflowJsonProcess(); } }
       #endregion
       public bool Save()
       {
           try
           {
               if (this.CheckPath() && this.CheckNode() && this.CheckNodeaction())
               {
                   //保存节点信息
                   foreach (Node Item in this.Nodes)
                   {
                       Item.wfid = this.id;
                       Item.Save();
                   }
                   //修正跃迁顺序
                   foreach (NodeAction Item in this.NodeActions)
                   {
                       Path startPath = this.Paths.Where(p => p.to == Item.StateID).FirstOrDefault();
                       Node startNode = this.Nodes.Where(p => p.StateID == startPath.from).FirstOrDefault();
                       Path endPath = this.Paths.Where(p => p.from == Item.StateID).FirstOrDefault();
                       Node endNode = this.Nodes.Where(p => p.StateID == endPath.to).FirstOrDefault();
                       Item.currentnodeid = Convert.ToInt32(startNode.id);
                       Item.nextnodeid = Convert.ToInt32(endNode.id);
                       Item.wfid = this.id;
                       Item.Save();
                   }
                   this.UpdateJsonStr();
                   this.WorkflowClear();
                   return true;
               }
后面还有 191 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。