예제 #1
0
        /// <summary>
        /// 编码管理车辆进出场添加查询
        /// </summary>
        /// <returns></returns>
        public ActionResult GetCarInfo(string name)
        {
            List <ComboxEntity> Rlist = new List <ComboxEntity>();
            DataItemDetailBLL   pdata = new DataItemDetailBLL();
            var dt = pdata.GetDataItemListByItemName(name);

            if (dt.Rows.Count > 0)
            {
                foreach (DataRow item in dt.Rows)
                {
                    ComboxEntity y1 = new ComboxEntity();
                    y1.itemName  = item[0].ToString();
                    y1.itemValue = item[1].ToString();
                    Rlist.Add(y1);
                }
            }
            return(ToJsonResult(Rlist));
        }