XML

    <function name="rpcf_user5_general_report" id="-0x4008">
      <input>
         <integer name="t_start" />
         <integer name="t_end" />
      </input>
      <output>
          <integer name="accounts_qnt" />
          <for name="i" from="0" count="accounts_qnt">
            <integer name="account_id" array_index="i" />
            <double name="incoming_rest" array_index="i" />
            <double name="services_discount_1" array_index="i" />
            <double name="services_discount_2" array_index="i" />
            <double name="services_discount_3" array_index="i" />
            <double name="services_discount_5" array_index="i" />
            <double name="services_discount_6" array_index="i" />
            <double name="payments" array_index="i" />
            <double name="outgoing_rest" array_index="i" />
          </for>
      </output>
    </function>

PHP

	function rpcf_user5_general_report($t_start,$t_end) { //-0x4008
		$ret=array();
		if (!$this->connection->urfa_call(-0x4008)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($t_start);
		$packet->DataSetInt($t_end);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()) {
			$ret['count'] = $x->DataGetInt();
			for ($i=0;$i<$ret['count'];$i++) {
				$report['account_id'] = $x->DataGetInt();
				$report['incoming_rest'] = $x->DataGetDouble();
				$report['services_discount_1'] = $x->DataGetDouble();
				$report['services_discount_2'] = $x->DataGetDouble();
				$report['services_discount_3'] = $x->DataGetDouble();
				$report['services_discount_5'] = $x->DataGetDouble();
				$report['services_discount_6'] = $x->DataGetDouble();
				$report['payments'] = $x->DataGetDouble();
				$report['outgoing_rest'] = $x->DataGetDouble();
				$ret['report'][]=$report;
			}
		}
		return $ret;
	}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_user5/function_name_rpcf_user5_general_report_id_-0x4008.txt · Последние изменения: 2009/10/30 15:53 От 91.210.170.105
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki