Example #1
0
        public ActionResult GetSelectJson(string enCode)
        {
            var item = itemsApp.GetItemForm(enCode);

            if (item != null)
            {
                var           data = itemsDetailApp.GetItemDataList(item.F_Id);
                List <object> list = new List <object>();
                foreach (ItemsDetailEntity detail in data)
                {
                    list.Add(new { id = detail.F_ItemCode, text = detail.F_ItemName });
                }
                return(Content(list.ToJson()));
            }
            return(null);
        }