Beispiel #1
0
        public ActionResult Index()
        {
            decimal?USER_NO = Session["sess_USER_NO"] as decimal?;

            DcrPublishSearchModel searchModel = new DcrPublishSearchModel();


            //searchModel = ViewBag.Search_DcrPublish_Model as DcrPublishSearchModel;


            if (!string.IsNullOrEmpty(Request.QueryString["Search_User"]))
            {
                searchModel.Search_User = decimal.Parse(Request.QueryString["Search_User"]);
            }


            if (!string.IsNullOrEmpty(Request.QueryString["Search_Date_From"]))
            {
                searchModel.Search_Date_From = DateTime.Parse(Request.QueryString["Search_Date_From"]);
            }

            if (!string.IsNullOrEmpty(Request.QueryString["Search_Date_To"]))
            {
                searchModel.Search_Date_To = DateTime.Parse(Request.QueryString["Search_Date_To"]);
            }

            if (!string.IsNullOrEmpty(Request.QueryString["Search_pubno"]))
            {
                searchModel.Search_pubno = decimal.Parse(Request.QueryString["Search_pubno"]);
            }


            //DcrPublishSearchModel searchModel = ViewBag.Search_DcrPublish_Model;

            // searchModel = ViewBag.Search_DcrPublish_Model;

            ViewBag.Search_DcrPublish_Model = searchModel;


            List <DCR_PUB_MASTER_GET_Result> publish_list =
                db.DCR_PUB_MASTER_GET(searchModel.Search_User, USER_NO,
                                      searchModel.Search_pubno, searchModel.Search_Date_From, searchModel.Search_Date_To).ToList();


            // List<TRN_USER_PUBLISH> user_pub = db.TRN_USER_PUBLISH(searchModel.Search_pubno,null,null,null);

            ViewBag.Puball_Count = publish_list.Count;



            return(View(publish_list));
        }