Ejemplo n.º 1
0
        public ActionResult SpkcReportApi(SpkcReportModel model)
        {
            int limit = base.PageSizeFromCookie;

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

            param.Clear();
            param.Add("proname", "p_rep_spkc");
            param.Add("str", string.Format("{0}|{1}|{2}|{3}|{4}|{5}|{6}|{7}",
                                           id_user,
                                           id_shop,
                                           model.beginIndex,
                                           model.endIndex,
                                           model.id_shop ?? "0",
                                           model.s_id_kcsp ?? "0",
                                           model.barcode ?? "",
                                           model.mc_sp ?? ""));
            var res = BusinessFactory.Report.Get(param);

            return(JsonString(res.Data));
        }
Ejemplo n.º 2
0
 public ActionResult SpkcReport(SpkcReportModel model)
 {
     ViewBag.DigitHashtable = GetParm();
     return(View());
 }