Ejemplo n.º 1
0
    private void Submit()
    {
        AjaxResult result = new AjaxResult();

        result.IsSuccess = false;
        result.Msg       = "提交失败!";
        var planid = Guid.Parse(Request.Form["id"]);

        if (insdal.GetAllNodeInstance(planid, (int)TWFTypeEnum.FlightPlan).Count > 0)
        {
            result.Msg = "一条飞行计划无法创建两条申请流程,请联系管理员!";
        }
        else
        {
            try
            {
                wftbll.CreateWorkflowInstance((int)TWFTypeEnum.FlightPlan, planid, User.ID, User.UserName);
                insdal.Submit(planid, (int)TWFTypeEnum.FlightPlan, User.ID, User.UserName, User.RoleName.First(), "", insdal.UpdateFlightPlan);

                result.IsSuccess = true;
                result.Msg       = "提交成功!";
            }
            catch (Exception e)
            {
                result.IsSuccess = false;
                result.Msg       = "提交失败!";
            }
        }
        Response.Clear();
        Response.Write(result.ToJsonString());
        Response.ContentType = "application/json";
        Response.End();
    }
    private void GetAllNodeInstance()
    {
        var planid  = Guid.Parse(Request.Form["id"]);
        var list    = insdal.GetAllNodeInstance(planid, (int)TWFTypeEnum.RepetitivePlan).Where(u => u.ActorID != User.ID).ToList();
        var strJSON = Serializer.JsonDate(new { rows = list, total = list.Count });

        Response.Write(strJSON);
        Response.ContentType = "application/json";
        Response.End();
    }
    private void GetAuditRecord()
    {
        var planid = Guid.Parse(Request.QueryString["id"]);

        auditList = insdal.GetAllNodeInstance(planid, (int)TWFTypeEnum.FlightPlan).Where(u => !User.RoleName.Contains(u.RoleName) && u.ActorID != null).Skip(1).ToList();
    }
Ejemplo n.º 4
0
    private void GetAuditRecord()
    {
        var planid = Guid.Parse(Request.QueryString["id"]);

        auditList = insdal.GetAllNodeInstance(planid, (int)TWFTypeEnum.FlightPlan).Where(u => u.State != WorkflowNodeInstance.StepStateType.NoValid && u.State != WorkflowNodeInstance.StepStateType.Initialized && u.RoleName == "通航服务站" && u.NextId == Guid.Empty).ToList();
    }
    private void GetAuditRecord()
    {
        var planid = Guid.Parse(Request.QueryString["id"]);

        auditList = insdal.GetAllNodeInstance(planid, (int)TWFTypeEnum.RepetitivePlan).Where(u => !(User.RoleName.Contains(u.RoleName) && u.NextId != Guid.Empty)).Skip(1).ToList();
    }