Ejemplo n.º 1
0
        public String displayProcedure(String procedureId, String newState, String observation)
        {
            int id = Int32.Parse(procedureId);

            DateTime date = DateTime.Now;

            con.closeProcedure(newState, observation, id, date);

            ViewBag.row = procedureId;
            int departmentId = Int32.Parse(Session["idDepartment"].ToString());

            ViewBag.dailyProcedure = con.getDisplayDepartmentProcedures(departmentId);
            ViewBag.states         = con.getProcedureStates();
            return(procedureId);
        }