예제 #1
0
<?php

include_once "system.php";
/* Section 1
 * initialize required object for run report (SelectControl, Report Element or Searchlayer)
 * It shall use include_once cause parent's report and menu.php include it too, make sure menu.php using include_once too
 */
include_once '../bpartner/class/SearchLayer.inc.php';
include_once '../simantz/class/ReportElement.inc.php';
$sl = new SearchLayer();
//this variable name must fix
$re = new ReportElement();
include_once '../bpartner/class/BPartnerReportElement.inc.php';
$bpre = new BPartnerReportElement();
include_once '../simantz/class/SelectCtrl.inc.php';
$ctrl = new SelectCtrl();
include_once '../bpartner/class/BPSelectCtrl.inc.php';
$bpctrl = new BPSelectCtrl();
/*
 * section 2
 * Call report centralize report function
 */
include "../simantz/report.php";
/*
 * section 3
 * call required javascript for search layer
 */
$sl->showBPartnerJS();
예제 #2
0
$tableuom = $tableprefix . "simiterp_uom";
$tableinventorymovement = $tableprefix . "simiterp_productmovement";
$tableinventorymovementline = $tableprefix . "simiterp_productmovementline";
$tableshipment = $tableprefix . "simiterp_shipment";
$tableshipmentline = $tableprefix . "simiterp_shipmentline";
$tableproduction = $tableprefix . "simiterp_production";
$tableproductionoutput = $tableprefix . "simiterp_productionoutput";
$tableproductionline = $tableprefix . "simiterp_productionline";
$tablepricelist = $tableprefix . "simiterp_pricelist";
$tablefollowuptype = $tableprefix . "followuptype";
$tablefollowup = $tableprefix . "followup";
$tablegroupuserslink = $tableprefix . "groups_users_link";
$tablegroups = $tableprefix . "groups";
$log = new Log();
$ctrl = new SelectCtrl();
$o = new SearchLayer();
$action = $_REQUEST['action'];
$searchtxt = $_REQUEST['searchtxt'];
$col = $_REQUEST['col'];
$o->searchbpartner_no = $_REQUEST['searchbpartner_no'];
$o->searchbpartner_name = $_REQUEST['searchbpartner_name'];
$o->searchbpartnergroup_id = $_REQUEST['searchbpartnergroup_id'];
$o->searchindustry_id = $_REQUEST['searchindustry_id'];
$o->searchpic = $_REQUEST['searchpic'];
$o->searchisactive = $_REQUEST['searchisactive'];
$o->currency_id = $_REQUEST['currency_id'];
$o->bpartneraccounttype = $_REQUEST['bpartneraccounttype'];
//$ctrl=
switch ($action) {
    case "jsbpartner":
        $o->showBPartnerJS();