public function save() { $begindate = "20150205"; $enddate = "20150205"; $pagenum = 1; $pagesize = 20; import("ORG.Huifu.Huifu"); $huifu = new Huifu(); $res = $huifu->saveReconciliation($begindate, $enddate, $pagenum, $pagesize); echo "<pre>"; print_r($res); echo "</pre>"; exit; }
public function querysave() { if (!empty($_POST)) { $begindate = str_replace('-', '', substr($_POST['start_time'], 0, 10)); $enddate = str_replace('-', '', substr($_POST['end_time'], 0, 10)); } else { if (!empty($_GET['begindate'])) { $begindate = $_GET['begindate']; $enddate = $_GET['enddate']; } else { $begindate = date("Ymd", time()); $enddate = date("Ymd", time()); } } if (!empty($_GET['p'])) { $pagenum = $_GET['p']; } else { $pagenum = 1; } $pagesize = 20; $stat = array('S' => "成功", 'F' => "失败", 'I' => "初始", 'P' => "部分成功", 'H' => "经办", 'R' => "拒绝"); import("ORG.Huifu.Huifu"); $huifu = new Huifu(); $res = $huifu->saveReconciliation($begindate, $enddate, $pagenum, $pagesize); $list = $res['SaveReconciliationDtoList']; $tatalitems = $res['TotalItems']; import("ORG.Util.Page"); $p = new Page($tatalitems, $pagesize); $p->parameter = "begindate={$begindate}&enddate={$enddate}"; $page = $p->show(); foreach ($list as $k => $v) { $list[$k]['TransStat'] = $stat[$v['TransStat']]; } $this->assign("list", $list); $this->assign("totalitems", $tatalitems); $this->assign("pagebar", $page); $this->display(); }