Exemplo n.º 1
0
 public bool MatchNoBindingStep(ProcedureStep obj)
 {
     if (obj.HandleRole == null)
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 2
0
 public void UpdateRealtion(TaskType objType, IfUser objSub, ProcedureStep objStep, QLevel objLevel)
 {
     this.task.BusinessType = objType;
     this.task.Submitter    = objSub;
     this.task.Handler      = objSub;
     this.curStep           = objStep;
     this.task.QLevel       = objLevel;
     UpdatePriority();
 }
Exemplo n.º 3
0
 public ProcedureTask(string sName, DateTime dStart, DateTime dDead, string sDescription)
 {
     this.task = new Task(sName,
                          dStart,
                          dDead);
     this.curStep = null;
     //流程任务进入等待区,等待后台调度器调度
     this.Status         = "Wait";
     this.strDescription = sDescription;
 }
Exemplo n.º 4
0
 public void InsertNewStep(ProcedureStep newStep)
 {
     if (newStep == null)
     {
         return;
     }
     if (this.GetStepItem(newStep.Name) == null)
     {
         stepList.Add(newStep);
     }
 }
Exemplo n.º 5
0
 public ProcedureStep(XmlElement ModelPayload)
 {
     this.strName        = Utility.GetText(ModelPayload, "Name");
     this.intIndex       = Convert.ToInt32(Utility.GetText(ModelPayload, "Index"));
     this.bolIsFeedback  = Convert.ToBoolean(Utility.GetText(ModelPayload, "IsFeedback"));
     this.strDescription = Utility.GetText(ModelPayload, "Description");
     this.procedure      = null;
     this.nextStep       = null;
     this.preStep        = null;
     this.handleRole     = null;
 }
Exemplo n.º 6
0
 public ProcedureStep(string sName, int iIndex, bool bIsFeedback, string sDescription = "")
 {
     this.strName        = sName;
     this.intIndex       = iIndex;
     this.bolIsFeedback  = bIsFeedback;
     this.strDescription = sDescription;
     this.procedure      = null;
     this.nextStep       = null;
     this.preStep        = null;
     this.handleRole     = null;
 }
Exemplo n.º 7
0
        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();
        }
Exemplo n.º 8
0
        public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset)
        {
            Record record;

            //TaskType[1:1]
            record = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "SetType");
            this.task.BusinessType = dataset.GetTypeItem(record.Name);
            //Sumitter[1:1]
            record = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Submitter");
            this.task.Submitter = dataset.GetUserItem(record.Name);
            //Handler[1:1]
            record            = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Handler");
            this.task.Handler = dataset.GetUserItem(record.Name);
            //Priority[1:1]
            record           = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "SetPriority");
            this.task.QLevel = dataset.GetQlevelItem(record.Name);
            //CurrentStep[1:1]
            record       = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "CurrentStep");
            this.curStep = dataset.GetStepItem(record.Name);
            UpdatePriority();
        }
Exemplo n.º 9
0
        public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset)
        {
            Record record;

            //Procedure
            record         = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "BelongTo");
            this.procedure = dataset.GetProcedureItem(record.Name);
            //NextStep
            record        = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Next");
            this.nextStep = dataset.GetStepItem(record.Name);
            //PreviousStep
            record       = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Previous");
            this.preStep = dataset.GetStepItem(record.Name);
            if (this.IsFeedback == true)
            {
                return;
            }
            //HandleRole
            record          = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "HandleBy");
            this.handleRole = dataset.GetGroupItem(record.Name);
        }
Exemplo n.º 10
0
 public ProcedureTask(XmlElement modelPayload)
 {
     this.task           = new Task(modelPayload);
     this.curStep        = null;
     this.strDescription = Utility.GetText(modelPayload, "Description");
 }
Exemplo n.º 11
0
        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();
        }