function Main() { $RPUEncode = new SoapObject(NCCBIZ . "RPUEncode.php", "urn:Object"); if (!($newOdID = $RPUEncode->CreateNewRPU_AFS_TD($this->formArray["odID"], $this->formArray["uid"], $this->formArray["transactionCode"]))) { echo $this->formArray["odID"] . "<br>"; exit("create failed"); } else { $ODList = new SoapObject(NCCBIZ . "ODList.php", "urn:Object"); $archiveValue = "true"; $userID = $this->formArray["uid"]; $odIDArray[] = $this->formArray["odID"]; if (!($archiveRows = $ODList->archiveOD($odIDArray, $archiveValue, $userID))) { exit("archive failed"); } else { $this->formArray["odID"] = $newOdID; $AFSEncode = new SoapObject(NCCBIZ . "AFSEncode.php", "urn:Object"); if ($newAfsID = $AFSEncode->getAfsID($newOdID)) { $this->formArray["afsID"] = $newAfsID; header("location: AFSDetails.php" . $this->sess->url("") . "&odID=" . $newOdID . "&afsID=" . $newAfsID . "&transactionCode=" . $this->formArray["transactionCode"]); } else { header("location: ODDetails.php" . $this->sess->url("") . "&odID=" . $newOdID); } } } $this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("odID" => $this->formArray["odID"], "ownerID" => $this->formArray["ownerID"]))); $this->tpl->parse("templatePage", "rptsTemplate"); $this->tpl->finish("templatePage"); $this->tpl->p("templatePage"); }
function Main() { $RPUEncode = new SoapObject(NCCBIZ . "RPUEncode.php", "urn:Object"); if (!($newOdID = $RPUEncode->CreateNewRPU_AFS_TD($this->formArray["odID"]))) { echo $this->formArray["odID"] . "<br>"; exit("create failed"); } else { $this->formArray["odID"] = $newOdID; header("location: ODDetails.php" . $this->sess->url("") . $this->sess->add_query(array("odID" => $this->formArray["odID"]))); } $this->setForm(); $this->tpl->set_var("Session", $this->sess->url("") . $this->sess->add_query(array("odID" => $this->formArray["odID"], "ownerID" => $this->formArray["ownerID"]))); $this->tpl->parse("templatePage", "rptsTemplate"); $this->tpl->finish("templatePage"); $this->tpl->p("templatePage"); }
function splitOD() { $RPUEncode = new SoapObject(NCCBIZ . "RPUEncode.php", "urn:Object"); $numberToSplit = $this->formArray["numberToSplit"]; $numberToSplit = intval($numberToSplit); for ($i = 0; $i < $numberToSplit; $i++) { $newOdIDArray[] = $RPUEncode->CreateNewRPU_AFS_TD($this->formArray["odID"]); } }