Example #1
0
        public ActionResult SalesPanel()
        {
            PublishSalesSearchModel salesSearchModel = new PublishSalesSearchModel();

            decimal?USER_PARENT_NO = Session["sess_USER_NO"] as decimal?; // saving session at USER_PARENT

            ViewBag.Search_Sales_Model = salesSearchModel;

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

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

            List <DCR_PUB_SALES_GET_Result> published_list =

                db.DCR_PUB_SALES_GET

                    (null, USER_PARENT_NO, salesSearchModel.PUBLISH_NO,

                    salesSearchModel.Search_Date_From, salesSearchModel.Search_Date_To).ToList();

            return(View(published_list));
        }