Ejemplo n.º 1
0
        public JsonResult getProcedureData(String procedureCode)
        {
            DataSet       procedure = con.getProcedure(procedureCode);
            List <string> list      = new List <string>();

            foreach (DataRow row in procedure.Tables["procedureList"].Rows)
            {
                for (int index = 0; index < 9; index++)
                {
                    list.Add(row[index].ToString());
                }
            }

            if (list.Count != 0)
            {
                string[] dateSend = list[1].Split('/');
                string[] yearTime = dateSend[2].Split(' ');
                String   date     = yearTime[0] + '-' + dateSend[1] + '-' + dateSend[0];
                list[1] = date;
            }

            return(Json(list.ToList(), JsonRequestBehavior.AllowGet));
        }