function isCentralize
This commit is contained in:
parent
28001333b9
commit
655aed5668
1 changed files with 15 additions and 0 deletions
|
|
@ -72,5 +72,20 @@ $sql="insert into centralized( c_j_id,
|
|||
EndSql($p_cn);
|
||||
return NOERROR;
|
||||
}
|
||||
/* function isCentralize($p_cn,$p_user)
|
||||
**************************************************
|
||||
* Purpose : test if e jrn_jr.id is centralize or not
|
||||
*
|
||||
* parm :
|
||||
* - p_cn
|
||||
* - p_jnr_id jrn.jr_id
|
||||
* gen :
|
||||
* - none
|
||||
* return: 0 if not centralized otherwise > 0
|
||||
*/
|
||||
function isCentralize($p_cn,$p_jrn_id) {
|
||||
$Res=ExecSql($p_cn,"select c_id from centralized where c_j_id=$p_jrn_id");
|
||||
return pg_NumRows($Res);
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue