Esempio n. 1
0
        /// <summary>
        /// 根据条件查询草稿箱
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="dt">查询条件</param>
        /// <param name="recordCount">记录条数</param>
        /// <returns></returns>
        public PartlyCollection <BBizProcess> GetWorkflowDraftByRelatedUserID(WorkFlowFilter filter)
        {
            filter.ExcludeProcessCode = GetExcludeProcessCode();
            PartlyCollection <BBizProcess> processInstanceList = VBizProcessDraftAdapter.Instance.LoadList(filter);

            return(processInstanceList);
        }
Esempio n. 2
0
        /// <summary>
        /// 根据条件获取流程列表(查询流程)
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="whereString">查询条件</param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        public PartlyCollection <VPInstanceAndStakeHolder> GetWorkflowInstanceList(WorkFlowFilter filter)
        {
            filter.ExcludeProcessCode = GetExcludeProcessCode();
            PartlyCollection <VPInstanceAndStakeHolder> processInstanceList = VPinstaneAndStakeHolderAdapter.Instance.LoadList(filter);

            return(processInstanceList);
        }
Esempio n. 3
0
        internal PartlyCollection <BBizProcess> LoadList(WorkFlowFilter filter)
        {
            StringBuilder strSql = new StringBuilder();

            WhereSqlClauseBuilder where = filter.ConvertToWhereBuilder();
            where.AppendItem("Isdeleted", 0);
            where.AppendItem("ProcessType", DBNull.Value);
            //string sql =new VTodoWorkAndUser().TodoViewSql;

            QueryCondition qc = new QueryCondition(
                filter.RowIndex,
                filter.PageSize,
                "*",
                ORMapping.GetTableName(typeof(BBizProcess)),
                " Createtime desc",
                where.ToSqlString(TSqlBuilder.Instance)
                );

            PartlyCollection <VBizProcess> tuple  = GetPageSplitedCollection(qc);
            PartlyCollection <BBizProcess> result = new PartlyCollection <BBizProcess>();

            foreach (VBizProcess vBizProcess in tuple)
            {
                result.Add(new BBizProcess
                {
                    TaskID             = vBizProcess.TaskID,
                    ProcessType        = vBizProcess.ProcessType,
                    Title              = vBizProcess.Title,
                    ParentID           = vBizProcess.ParentID,
                    Status             = vBizProcess.Status,
                    IsCurrentVersion   = vBizProcess.IsCurrentVersion,
                    AlarmAction        = vBizProcess.AlarmAction,
                    AlarmPlanSplitDate = vBizProcess.AlarmPlanSplitDate
                });
            }
            return(result);
        }
 /// <summary>
 /// 根据条件查询我的已办
 /// </summary>
 /// <param name="filter"></param>
 /// <param name="recordCount"></param>
 /// <returns></returns>
 internal PartlyCollection <VPInstanceAndApprovalLog> LoadList(WorkFlowFilter filter)
 {
     return(base.GetList(filter, filter.SortKey));
 }
Esempio n. 5
0
        /// <summary>
        /// 根据条件查询我的已办
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="dt">查询条件</param>
        /// <returns></returns>
        public PartlyCollection <VPInstanceAndApprovalLog> GetWorkflowInstanceListByRelatedUserID(WorkFlowFilter filter)
        {
            // 排除一些既定的流程不显示
            filter.ExcludeProcessCode = GetExcludeProcessCode();

            PartlyCollection <VPInstanceAndApprovalLog> VPInstanceAndApprovalLogList = VPInstanceAndApprovalLogAdapter.Instance.LoadList(filter);

            return(VPInstanceAndApprovalLogList);
        }
Esempio n. 6
0
        /// <summary>
        /// 根据查询条件获取流程列表(我的流程)
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="whereString">查询条件</param>
        /// <param name="recordCount"></param>
        /// <returns></returns>
        public PartlyCollection <WorkflowInstance> GetWorkflowInstanceListByCreateUserID(WorkFlowFilter filter)
        {
            filter.ExcludeProcessCode = GetExcludeProcessCode();
            PartlyCollection <ProcessInstance>  processInstanceList = ProcessInstanceAdapter.Instance.LoadListByCreateUserID(filter);
            PartlyCollection <WorkflowInstance> result = new PartlyCollection <WorkflowInstance>();

            foreach (ProcessInstance processInstance in processInstanceList)
            {
                result.Add(new WorkflowInstance(processInstance));
            }
            return(result);
        }