private void BuildProcedure2()
        {
            Procedure newProce = new Procedure("咨询处理流程", "客户咨询处理流程");

            DataReader.InsertRecord(new Record(newProce.Name, newProce.Type, newProce.XMLSerialize()));
            ProcedureStep newStep;

            newStep = new ProcedureStep("咨询_问题提交", 1, false, "客户提交问题");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));
            newStep = new ProcedureStep("咨询_问题回复", 2, false, "客服人员回复问题解决方案");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));
            newStep = new ProcedureStep("咨询_咨询结果反馈", 3, true, "客户反馈咨询结果");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));

            //newRelation = new RelationShip("", "Procedure", "", "ProcedureStep", "Include", "1");
            RelationShip newRelation;

            newRelation = new RelationShip("咨询处理流程", "Procedure", "咨询_问题提交", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询_问题提交", "ProcedureStep", "咨询处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询处理流程", "Procedure", "咨询_问题回复", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询_问题回复", "ProcedureStep", "咨询处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询处理流程", "Procedure", "咨询_咨询结果反馈", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询_咨询结果反馈", "ProcedureStep", "咨询处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);

            //newRelation = new RelationShip("", "ProcedureStep", "", "ProcedureStep", "Include", "1");
            newRelation = new RelationShip("咨询_问题提交", "ProcedureStep", "咨询_问题回复", "ProcedureStep", "Next", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询_问题回复", "ProcedureStep", "咨询_问题提交", "ProcedureStep", "Previous", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询_问题回复", "ProcedureStep", "咨询_咨询结果反馈", "ProcedureStep", "Next", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("咨询_咨询结果反馈", "ProcedureStep", "咨询_问题回复", "ProcedureStep", "Previous", "1");
            DataReader.InsertRelationShip(newRelation);
            DataReader.AcceptModification();
        }
        private void BuildProcedure1()
        {
            Procedure newProce = new Procedure("报修处理流程", "客户报修处理流程");

            DataReader.InsertRecord(new Record(newProce.Name, newProce.Type, newProce.XMLSerialize()));
            ProcedureStep newStep;

            newStep = new ProcedureStep("报修_问题提交", 1, false, "客户提交问题");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));
            newStep = new ProcedureStep("报修_问题审核", 2, false, "客服人员审核问题");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));
            newStep = new ProcedureStep("报修_维修单分配", 3, false, "客服经理收集维修单");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));
            newStep = new ProcedureStep("报修_维修单处理", 4, false, "工程师处理维修单");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));
            newStep = new ProcedureStep("报修_维修结果反馈", 5, true, "客户反馈维修结果");
            DataReader.InsertRecord(new Record(newStep.Name, newStep.Type, newStep.XMLSerialize()));

            //newRelation = new RelationShip("", "Procedure", "", "ProcedureStep", "Include", "1");
            RelationShip newRelation;

            newRelation = new RelationShip("报修处理流程", "Procedure", "报修_问题提交", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_问题提交", "ProcedureStep", "报修处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修处理流程", "Procedure", "报修_问题审核", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_问题审核", "ProcedureStep", "报修处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修处理流程", "Procedure", "报修_维修单分配", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修单分配", "ProcedureStep", "报修处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修处理流程", "Procedure", "报修_维修单处理", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修单处理", "ProcedureStep", "报修处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修处理流程", "Procedure", "报修_维修结果反馈", "ProcedureStep", "Include", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修结果反馈", "ProcedureStep", "报修处理流程", "Procedure", "BelongTo", "1");
            DataReader.InsertRelationShip(newRelation);

            //newRelation = new RelationShip("", "ProcedureStep", "", "ProcedureStep", "Include", "1");
            newRelation = new RelationShip("报修_问题提交", "ProcedureStep", "报修_问题审核", "ProcedureStep", "Next", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_问题审核", "ProcedureStep", "报修_问题提交", "ProcedureStep", "Previous", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_问题审核", "ProcedureStep", "报修_维修单分配", "ProcedureStep", "Next", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修单分配", "ProcedureStep", "报修_问题审核", "ProcedureStep", "Previous", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修单分配", "ProcedureStep", "报修_维修单处理", "ProcedureStep", "Next", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修单处理", "ProcedureStep", "报修_维修单分配", "ProcedureStep", "Previous", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修单处理", "ProcedureStep", "报修_维修结果反馈", "ProcedureStep", "Next", "1");
            DataReader.InsertRelationShip(newRelation);
            newRelation = new RelationShip("报修_维修结果反馈", "ProcedureStep", "报修_维修单处理", "ProcedureStep", "Previous", "1");
            DataReader.InsertRelationShip(newRelation);
            DataReader.AcceptModification();
        }