Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.216.57.57
<?php
class bundle_receive
{
function __construct($aobj_context)
{
session_start();
$this->aobj_context=$aobj_context;
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$this->user_id=$_SESSION['user_id'] ;
$this->collcode=$_SESSION['collcode'];
$this->log_name = $_SESSION['usr'];
$this->user_type=$_SESSION['user_type'];
}
function getbundlereceive()
{
$bundle_no = ($this->aobj_context->mobj_data["bundle_no"]);
$bundle_wt = ($this->aobj_context->mobj_data["bundle_wt"]);
$lquery ="UPDATE colldesp SET FRECDATE=now(),FRECBY='{$this->log_name}',FBUNDWT='{$bundle_wt}'
WHERE FBUNO='{$bundle_no}'";
$lresult = $this->aobj_context->mobj_db->Execute($lquery);
$arr='';
if($lresult)
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
else
echo $this->aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function getbundlereceive($aobj_context)
{
$class_obj=new ack_rv_rt_application($aobj_context);
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$class_obj->getbundlereceive();
}
?>
|