コード例 #1
0
 public ActionResult GetCodes(Guid queryid, Guid selectedid, string Comparison, string ConditionName)
 {
     var m = new QueryModel2
     {
         QueryId = queryid,
         SelectedId = selectedid,
         Comparison = Comparison,
         ConditionName = ConditionName
     };
     m.SetVisibility();
     var j = new
     {
         m.CodesVisible,
         m.CodeVisible,
         m.CodeData,
         m.SelectMultiple
     };
     return Content(JsonConvert.SerializeObject(j, Formatting.Indented));
 }
コード例 #2
0
        public ActionResult SelectCondition(Guid queryid, Guid selectedid, string conditionName)
        {
            var m = new QueryModel2
            {
                QueryId = queryid,
                SelectedId = selectedid,
                ConditionName = conditionName,
                CodeValue = "",
                CodeValues = new string[0],
                Program = 0,
                Comparison = "Equal"
            };
            m.SetVisibility();

            var j = JsonConvert.SerializeObject(m, Formatting.Indented);
            return Content(j);
        }