Beispiel #1
0
        public static List <ParkSettlementApprovalFlowModel> GetSettlementApprovalFlows(string PKID)
        {
            IParkSettlementApprovalFlow            factory   = ParkSettlementApprovalFlowFactory.GetFactory();
            List <ParkSettlementApprovalFlowModel> approvals = factory.GetSettlementApprovalFlows(PKID);

            if (approvals == null || approvals.Count == 0)
            {
                ParkSettlementApprovalFlowModel psafF1 = new ParkSettlementApprovalFlowModel();
                psafF1.FlowID   = -1;
                psafF1.FlowName = "已撤销";
                psafF1.PKID     = PKID;
                psafF1.Remark   = "流程已被发起人取消";
                factory.AddSettlementApprovalFlows(psafF1);

                ParkSettlementApprovalFlowModel psaf2 = new ParkSettlementApprovalFlowModel();
                psaf2.FlowID   = 0;
                psaf2.FlowName = "运营商待转款";
                psaf2.PKID     = PKID;
                psaf2.Remark   = "运营商待转款";
                factory.AddSettlementApprovalFlows(psaf2);

                ParkSettlementApprovalFlowModel psaf3 = new ParkSettlementApprovalFlowModel();
                psaf3.FlowID   = 1;
                psaf3.FlowName = "待收款";
                psaf3.PKID     = PKID;
                psaf3.Remark   = "车场待收款";
                factory.AddSettlementApprovalFlows(psaf3);

                ParkSettlementApprovalFlowModel psaf4 = new ParkSettlementApprovalFlowModel();
                psaf4.FlowID   = 2;
                psaf4.FlowName = "完成";
                psaf4.PKID     = PKID;
                psaf4.Remark   = "车场确认收款 流程完毕";
                factory.AddSettlementApprovalFlows(psaf4);
                approvals = factory.GetSettlementApprovalFlows(PKID);
            }
            return(approvals);
        }
Beispiel #2
0
        public static bool SaveFlowOperator(string PKID, string UserID, int FlowID)
        {
            IParkSettlementApprovalFlow factory = ParkSettlementApprovalFlowFactory.GetFactory();

            return(factory.SaveFlowOperator(PKID, UserID, FlowID));
        }