示例#1
0
        public ActionResult SpjhhzReportApi(SpjhHzReportModel model)
        {
            int limit = base.PageSizeFromCookie;

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

            param.Clear();
            param.Add("proname", "p_rep_spjh_hz");
            //条件 @id_user|@id_shop_user|@beginrecode|@endrecode|@rq_begin|@rq_end|@id_shop|@id_gys|@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.rq_begin.ToString("yyyy-MM-dd"),
                                           model.rq_end.ToString("yyyy-MM-dd"),
                                           model.id_shop ?? "",
                                           model.id_gys ?? "",
                                           model.id_spfl ?? "",
                                           model.barcode ?? "",
                                           model.mc_sp ?? ""
                                           ));

            var res = BusinessFactory.Report.Get(param);

            return(JsonString(res.Data));
        }
示例#2
0
 public ActionResult SpjhhzReport(SpjhHzReportModel model)
 {
     ViewBag.DigitHashtable = GetParm();
     return(View());
 }