Ejemplo n.º 1
0
        public ActionResult Getdept()
        {
            int            deptno = int.Parse(Request.Form["txtdeptno"]);
            List <EMPDATA> l      = DBoperations.Getdept(deptno);

            return(View("getDeptData", l));
        }
Ejemplo n.º 2
0
        public ActionResult showdata()
        {
            int deptno = int.Parse(Request.QueryString["d"]);

            ViewBag.l = list;
            List <EMPDATA> l = DBoperations.Getdept(deptno);

            return(View("getDepts", l));
        }
Ejemplo n.º 3
0
        public ActionResult radiobtn()
        {
            dlist     = DBoperations.getDepts();
            ViewBag.d = dlist;


            if (Request.Form["txtsd"] != null && Request.Form["txted"] != null)
            {
                DateTime start = DateTime.Parse(Request.Form["txtsd"]);
                DateTime end   = DateTime.Parse(Request.Form["txted"]);
                l            = DBoperations.Empdate(start, end);
                ViewBag.list = l;
            }
            if (Request.Form["ddldeptno"] != null)
            {
                int deptno = int.Parse(Request.Form["ddldeptno"]);
                l            = DBoperations.Getdept(deptno);
                ViewBag.list = l;
            }



            return(View("Index"));
        }