Beispiel #1
0
        //[HttpPost]
        public ActionResult SpxshzReportApi(SpxshzReportModel model)
        {
            int limit = base.PageSizeFromCookie;

            if (model.pageSize <= 0)
            {
                model.pageSize = limit;
            }
            Hashtable param = new Hashtable();

            param.Clear();
            param.Add("proname", "p_rep_spxs_hz");
            //条件 id_user|@id_shop_user|@beginrecode|@endrecode|@id_shop|@rq_begin|@rq_end|@id_shopsp|@id_spfl|@barcode|@mc_sp
            param.Add("str", string.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}|{8}|{9}|{10}",
                                           id_user,
                                           id_shop,
                                           model.beginIndex,
                                           model.endIndex,
                                           model.id_shop ?? "",
                                           model.rq_begin.ToString("yyyy-MM-dd"),
                                           model.rq_end.ToString("yyyy-MM-dd"),
                                           "0",
                                           model.id_spfl ?? "0",
                                           model.barcode ?? "",
                                           model.mc_sp ?? ""));
            var res = BusinessFactory.Report.Get(param);

            return(JsonString(res.Data));
        }
Beispiel #2
0
 public ActionResult SpxshzReport(SpxshzReportModel model)
 {
     ViewBag.DigitHashtable = GetParm();
     return(View());
 }