public ActionResult Search(string Search)
        {
            dynamic listTicPO = new ExpandoObject();

            QueryCRUD   qr      = new QueryCRUD();
            List <T_Po> listTic = qr.SearchT_Po(Search);


            listTicPO.T_Po  = listTic;
            listTicPO.T_Job = qr.listjob();



            if (Search == "")
            {
                dynamic     listTicPOn = new ExpandoObject();
                List <T_Po> listTicPo  = qr.GetT_Po();
                listTicPOn.T_Po  = listTicPo;
                listTicPOn.T_Job = qr.listjob();
                return(View("ShowPo", listTicPOn));
            }



            ViewBag.Po = Search;
            return(View("ShowPo", listTicPO));
        }
Beispiel #2
0
        public ActionResult Search(string Search)
        {
            List <T_Po> listTic = new List <T_Po>();
            QueryCRUD   qr      = new QueryCRUD();

            listTic = qr.SearchT_Po(Search);

            if (Search == "")
            {
                ViewBag.Po = "Search";

                listTic = qr.GetT_Po();

                return(View("ShowPo", listTic));
            }



            ViewBag.Po = Search;
            return(View("ShowPo", listTic));
        }