Example #1
0
        //fhp添加方法开始----

        public static UI_WFEntity_Info GetMainWorkFlowEntity(string wfe_ser)
        {
            UI_WFEntity_Info wfe  = new UI_WFEntity_Info();
            WorkFlows        wfs  = new WorkFlows();
            WorkFlow_Entity  wfe1 = wfs.GetMainWorkFlowEntity(wfe_ser);

            CWorkFlow   wf  = new CWorkFlow();
            XmlDocument doc = new XmlDocument();

            doc.LoadXml(Encoding.Default.GetString(wfe1.WE_Binary));
            wf.InstFromXmlNode(doc.DocumentElement);
            wfe.description = wf.description;
            wfe.name        = wf.name;

            wfe.EntityID = wfe1.WE_Id;
            wfe.serial   = wfe1.WE_Ser;
            wfe.Status   = wfe1.WE_Status;
            return(wfe);
        }