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); }
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); }
public ActionXmlSet Read() { if (scripts == null) { scripts = ServerApiInvoker.GetScriptObjectByUrl(url); } currentScriptObject = scripts.FirstOrDefault(c => c.ScriptType == ((int)ReadScriptType).ToString()); xmlset = CreateActionXmlSet(currentScriptObject); return(xmlset); }
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); }
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); }