/// <summary> /// 取得欄位參數清單 /// </summary> /// <returns></returns> public JsonResult GetFields(string functionId) { log.Info("functionId=" + functionId); List <KeyValuePair <string, string> > items = new List <KeyValuePair <string, string> >(); if (!string.IsNullOrWhiteSpace(functionId)) { var fields = service.getFieldIndex(functionId); if (fields.Count() > 0) { foreach (var field in fields) { items.Add(new KeyValuePair <string, string>(field.FUNCTION_ID, field.FUNCTION_DESC)); } } } log.Debug("json:" + this.Json(items)); return(this.Json(items)); }