public Request(string pid) { outputType = GRID_DATA; dataServiceType = BROWSE; targetType = table; targetName = "F983051"; returnControlIDs = "PID|VERS|JD"; query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, condition = new[] { new AIS.Condition { controlId = "F983051.PID", @operator = AIS.Condition.EQUAL, value = new[] { new AIS.Value { content = pid, specialValueId = AIS.Value.LITERAL } } } } }; }
public Request() { dataServiceType = "BROWSE"; targetName = "F9860"; targetType = "table"; findOnEntry = "TRUE"; returnControlIDs = "MD|OBNM"; maxPageSize = "10000"; query = new AIS.Query() { condition = new List <AIS.Condition>(new AIS.Condition[] { new AIS.Condition() { value = new AIS.Value [] { new AIS.Value() { content = "BSVW", specialValueId = "LITERAL" }, new AIS.Value() { content = "TBLE", specialValueId = "LITERAL" } }, controlId = "F9860.FUNO", @operator = "LIST" } }) }; }
public Request(string doc) { outputType = "GRID_DATA"; formName = "P43214_W43214A"; version = "ZJDE0001"; returnControlIDs = "1"; query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, autoFind = true, condition = new List <AIS.Condition> { new AIS.Condition { controlId = "1[161]", @operator = AIS.Condition.EQUAL, value = new AIS.Value[] { new AIS.Value { content = doc, specialValueId = AIS.Value.LITERAL } } } } }; }
public Request(string search, bool exact = false) { outputType = GRID_DATA; dataServiceType = BROWSE; targetType = table; targetName = "F9860"; returnControlIDs = "MD|OBNM"; maxPageSize = "20"; var tokens = search.Split(' ', System.StringSplitOptions.RemoveEmptyEntries); query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, condition = new[] { new AIS.Condition { controlId = "F9860.FUNO", @operator = AIS.Condition.EQUAL, value = new[] { new AIS.Value { content = "UBE", specialValueId = AIS.Value.LITERAL } } }, new AIS.Condition { controlId = "F9860.OBNM", @operator = exact ? AIS.Condition.EQUAL : AIS.Condition.STR_START_WITH, value = new [] { new AIS.Value { content = tokens[0].ToUpper(), specialValueId = AIS.Value.LITERAL } } } } }; foreach (var token in tokens.Skip(1)) { query.condition = query.condition.Append(new AIS.Condition { controlId = "F9860.MD", @operator = AIS.Condition.STR_CONTAIN, value = new[] { new AIS.Value { content = token, specialValueId = AIS.Value.LITERAL } } }); } }
public Request(string search) : this() { query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, autoFind = true, condition = search .Trim() .Split(' ') .Select(s => new AIS.Condition { controlId = "1[20]", @operator = AIS.Condition.STR_CONTAIN, value = new AIS.Value[] { new AIS.Value { content = s, specialValueId = AIS.Value.LITERAL } } }) .ToList() }; }
public Request(int ab) : this() { query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, autoFind = true, condition = new AIS.Condition[] { new AIS.Condition { controlId = "1[19]", @operator = AIS.Condition.EQUAL, value = new AIS.Value[] { new AIS.Value { content = ab.ToString(), specialValueId = AIS.Value.LITERAL } } } } .ToList() }; }
public Request(string company, int number, string type) : this() { findOnEntry = "FALSE"; query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, autoFind = true, condition = new List <AIS.Condition> { new AIS.Condition { controlId = "1[10]", @operator = AIS.Condition.EQUAL, value = new AIS.Value[] { new AIS.Value { content = number.ToString(), specialValueId = AIS.Value.LITERAL } } }, new AIS.Condition { controlId = "1[11]", @operator = AIS.Condition.EQUAL, value = new AIS.Value[] { new AIS.Value { content = type, specialValueId = AIS.Value.LITERAL } } }, new AIS.Condition { controlId = "1[12]", @operator = AIS.Condition.EQUAL, value = new AIS.Value[] { new AIS.Value { content = company, specialValueId = AIS.Value.LITERAL } } } } }; }
public Request() { outputType = "GRID_DATA"; dataServiceType = "BROWSE"; targetName = "F0005"; targetType = "table"; maxPageSize = "500"; returnControlIDs = "SY|RT|KY|DL01"; query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, condition = new List <AIS.Condition> { new AIS.Condition { controlId = "F0005.SY", @operator = AIS.Condition.EQUAL, value = new AIS.Value[] { new AIS.Value { content = "H92", specialValueId = AIS.Value.LITERAL } } }, new AIS.Condition { controlId = "F0005.RT", @operator = AIS.Condition.LIST, value = new AIS.Value[] { new AIS.Value { content = "PS", specialValueId = AIS.Value.LITERAL }, new AIS.Value { content = "AC", specialValueId = AIS.Value.LITERAL } } } } }; }
public Request() { outputType = "GRID_DATA"; dataServiceType = "BROWSE"; targetName = "F98220"; targetType = "table"; returnControlIDs = "OMWPRJID|OMWDESC|OMWPS|OMWTYP|OMWSV|OMCD|OMWSD|OMWPD|USER|OMWCD"; maxPageSize = "1000"; query = new AIS.Query { matchType = AIS.Query.MATCH_ALL, condition = new List <AIS.Condition> { new AIS.Condition { controlId = "F98220.OMWPS", @operator = AIS.Condition.BETWEEN, value = new AIS.Value[] { new AIS.Value { content = "11", specialValueId = AIS.Value.LITERAL }, new AIS.Value { content = "37X", specialValueId = AIS.Value.LITERAL } } }, new AIS.Condition { controlId = "F98220.OMWPJS1", @operator = AIS.Condition.STR_BLANK }, new AIS.Condition { controlId = "F98220.OMWSD", @operator = AIS.Condition.STR_NOT_BLANK } } }; }