git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
124
Data/BulkLoad/EFT/Nominations/plsql/efnow230$js$remh.bdy
Normal file
124
Data/BulkLoad/EFT/Nominations/plsql/efnow230$js$remh.bdy
Normal file
@@ -0,0 +1,124 @@
|
||||
create or replace package body efnow230$js$remh is
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Name: efnow230$js$remh.CreateQueryJavaScript
|
||||
--
|
||||
-- Description:
|
||||
--
|
||||
-- Parameters:
|
||||
--
|
||||
--------------------------------------------------------------------------------
|
||||
procedure CreateQueryJavaScript (
|
||||
LOV_FRAME in varchar2,
|
||||
QF_BODY_ATTRIBUTES in varchar2)
|
||||
is
|
||||
begin
|
||||
if not caco_security.security_check('efnow230$remh') then
|
||||
return;
|
||||
end if;
|
||||
|
||||
htp.p(WSGJSL.OpenScript);
|
||||
htp.p('var FormType = "Query";');
|
||||
|
||||
|
||||
htp.p(WSGJSL.RtnOpenLOV);
|
||||
|
||||
WSGJSL.Output_Invoke_CAL_JS ('efnow230$remh', 'scrollbars=no,resizable=no,width=320,height=350');
|
||||
|
||||
|
||||
htp.p(WSGJSL.OpenEvent('UI_QUERY_ID','LOV')); htp.p('
|
||||
var depStr = "";
|
||||
var modeStr = ""
|
||||
index = -1;
|
||||
modeStr = "Q";
|
||||
');
|
||||
|
||||
if LOV_FRAME is not null then
|
||||
htp.p(' var lovFra = "'||LOV_FRAME||'";');
|
||||
htp.p(' var winpar = "";');
|
||||
else
|
||||
htp.p(' var lovFra = "winLOV";');
|
||||
htp.p(' var winpar = "scrollbars=yes,resizable=yes,width=400,height=400";');
|
||||
end if;
|
||||
htp.p(' var filterprompt = "";');
|
||||
htp.p('
|
||||
|
||||
var lovTitle = "'||replace('','"','\"')||'";
|
||||
window.current_lov_title = lovTitle;
|
||||
|
||||
JSLOpenLOV( ctl, index, modeStr, "efnow230$remh.lov_int_lov", depStr, lovFra, winpar, filterprompt );
|
||||
|
||||
');
|
||||
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
htp.p(WSGJSL.OpenEvent('REMH','OnLoad'));
|
||||
htp.p('
|
||||
if ( FormType != "PostDelete")
|
||||
{
|
||||
form_num=0;
|
||||
do
|
||||
{
|
||||
elem_num=0;
|
||||
len = document.forms[form_num].elements.length;
|
||||
if (len > 0)
|
||||
{
|
||||
while (elem_num < len &&
|
||||
document.forms[form_num].elements[elem_num].type != "text" &&
|
||||
document.forms[form_num].elements[elem_num].type != "textarea")
|
||||
{
|
||||
elem_num++;
|
||||
}
|
||||
if (elem_num < len)
|
||||
{
|
||||
document.forms[form_num].elements[elem_num].focus();
|
||||
break;
|
||||
}
|
||||
}
|
||||
form_num++;
|
||||
} while ( form_num < document.forms.length );
|
||||
}
|
||||
');
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
htp.p(WSGJSL.OpenEvent('btnQFQ','OnClick'));
|
||||
htp.p(WSGJSL.StandardSubmit(false));
|
||||
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
htp.p(WSGJSL.CloseScript);
|
||||
exception
|
||||
when others then
|
||||
WSGL.DisplayMessage(WSGL.MESS_EXCEPTION, SQLERRM, ''||' : '||'#View Interruption Message#3831#',
|
||||
QF_BODY_ATTRIBUTES, 'efnow230$js$remh.CreateQueryJavaScript');
|
||||
end;
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Name: efnow230$js$remh.CreateListJavaScript
|
||||
--
|
||||
-- Description:
|
||||
--
|
||||
-- Parameters:
|
||||
--
|
||||
--------------------------------------------------------------------------------
|
||||
procedure CreateListJavaScript (
|
||||
RL_BODY_ATTRIBUTES in varchar2)
|
||||
is
|
||||
begin
|
||||
if not caco_security.security_check('efnow230$remh') then
|
||||
return;
|
||||
end if;
|
||||
|
||||
htp.p(WSGJSL.OpenScript);
|
||||
htp.p('var FormType = "List";');
|
||||
|
||||
|
||||
htp.p( 'var P_19 = new Array();' );
|
||||
|
||||
htp.p(WSGJSL.CloseScript);
|
||||
exception
|
||||
when others then
|
||||
WSGL.DisplayMessage(WSGL.MESS_EXCEPTION, SQLERRM, ''||' : '||'#View Interruption Message#3831#',
|
||||
RL_BODY_ATTRIBUTES, 'efnow230$js$remh.CreateListJavaScript');
|
||||
end;
|
||||
end;
|
||||
/
|
||||
|
||||
Reference in New Issue
Block a user