示例#1
0
        public ActionResult Index(TRN_DCR_SUM_SEARCH search_obj)
        {
            this.GetLoggedInInfo();

            ViewBag.DIVISION_NO = search_obj.DIVISION_NO;
            ViewBag.ZILLA_NO    = search_obj.ZILLA_NO;
            ViewBag.THANA_NO    = search_obj.THANA_NO;

            ViewBag.MON_NO            = search_obj.MON_NO;
            ViewBag.YEAR              = search_obj.YEAR;
            ViewBag.TRN_DCR_DATE_FROM = search_obj.TRN_DCR_DATE_FROM;
            ViewBag.TRN_DCR_DATE_TO   = search_obj.TRN_DCR_DATE_TO;

            //var data_list = db.TRN_DCR_SUM_SEARCH(search_obj.DIVISION_NO, search_obj.ZILLA_NO, search_obj.THANA_NO, search_obj.USER_NO, search_obj.MON_NO, search_obj.YEAR, search_obj.TRN_DCR_DATE_FROM, search_obj.TRN_DCR_DATE_TO);


            List <TRN_DCR_SUM_SEARCH_01_Result1> data_list = db.TRN_DCR_SUM_SEARCH_01(search_obj.DIVISION_NO, search_obj.ZILLA_NO, search_obj.THANA_NO, search_obj.USER_NO, search_obj.MON_NO, search_obj.YEAR, search_obj.TRN_DCR_DATE_FROM, search_obj.TRN_DCR_DATE_TO, this.sess_USER_NO).ToList();

            ViewBag.TotalRecords = data_list.Count;
            ViewBag.page_number  = 1;

            Session["sess_TRN_DCR_SUM_SEARCH"] = data_list;

            return(View("List", data_list.Take(this.page_size)));
        }
示例#2
0
        public ActionResult GetDCRSumDet(TRN_DCR_SUM_SEARCH search_obj)
        {
            this.GetLoggedInInfo();

            //var data_list = db.TRN_DCR_SUMDET_SEARCH(search_obj.DEPT_NO, search_obj.DIVISION_NO, search_obj.ZILLA_NO, search_obj.THANA_NO, search_obj.USER_NO, search_obj.MON_NO, search_obj.YEAR, search_obj.TRN_DCR_DATE_FROM, search_obj.TRN_DCR_DATE_TO, search_obj.DCR_TYPE_NO);
            var data_list = db.TRN_DCR_SUMDET_SEARCH(search_obj.DEPT_NO, null, null, null,
                                                     search_obj.USER_NO, null, null, search_obj.TRN_DCR_DATE_FROM,
                                                     search_obj.TRN_DCR_DATE_TO, search_obj.DCR_TYPE_NO, this.sess_USER_NO);

            if (search_obj.TRN_DCR_DATE_FROM.Value.Date == search_obj.TRN_DCR_DATE_TO.Value.Date)
            {
                ViewBag.Same_Date = true;
            }
            else
            {
                ViewBag.Same_Date = false;
            }

            return(View(data_list));
        }