Exemple #1
0
        public ActionXmlSet Read()
        {
            ScriptObject script = ServerApiInvoker.Get_Script(scriptId);

            ActionXmlSet xmlset = new ActionXmlSet()
            {
                XmlAction = script.Script,
                SchemaSet = new ActionSchemaSet()
            };

            Schema schema = null;

            if (Convert.ToInt32(schemaId) > 0)
            {
                schema = ServerApiInvoker.GetSchema(schemaId);
            }

            SchemaObject sco = null;

            if (Convert.ToInt32(schemaObjectId) > 0)
            {
                sco = ServerApiInvoker.GetSchemaObject(schemaObjectId);
            }
            if (schema != null)
            {
                xmlset.SchemaSet = new ActionSchemaSet(schema.DisplayName, schema.JsonObject, sco.JsonValue);
            }
            return(xmlset);
        }
Exemple #2
0
        public override void Perform()
        {
            IActionRepository repository = ServiceLocator.Instance.GetService <IActionRepository>();
            ActionXmlSet      axs        = repository.GetModulerModel(FunName);

            //ActionContext context = new ActionContext(axs);
            //context.Intialize(CoreBrowser);
            Window.AttachToIE();
            //context.Run(false);
        }
Exemple #3
0
 public ActionXmlSet Read()
 {
     if (scripts == null)
     {
         scripts = ServerApiInvoker.GetScriptObjectByUrl(url);
     }
     currentScriptObject = scripts.FirstOrDefault(c => c.ScriptType == ((int)ReadScriptType).ToString());
     xmlset = CreateActionXmlSet(currentScriptObject);
     return(xmlset);
 }
Exemple #4
0
        public ActionXmlSet Read()
        {
            RecorderProtocol protocol = identity as RecorderProtocol;

            if (protocol == null)
            {
                throw new ArgumentException();
            }
            ScriptObject scriptObject = ServerApiInvoker.Get_Script(protocol.ScriptId);

            xmlset = CreateActionXmlSet(scriptObject);
            return(xmlset);
        }
Exemple #5
0
        public ActionXmlSet Read()
        {
            if (string.IsNullOrEmpty(fileName))
            {
                return(null);
            }
            ActionXmlSet xmlset = new ActionXmlSet();
            StreamReader sr     = new StreamReader(fileName);

            try
            {
                xmlset.XmlAction = sr.ReadToEnd();
            }
            finally
            {
                sr.Close();
            }
            xmlset.IsLoadIdentiy = false;
            return(xmlset);
        }