git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@50874 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
110
Data/BulkLoad/EFT/Nominations/plsql/amfrw070$js$code.bdy
Normal file
110
Data/BulkLoad/EFT/Nominations/plsql/amfrw070$js$code.bdy
Normal file
@@ -0,0 +1,110 @@
|
||||
create or replace package body eft_nom.amfrw070$js$code is
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Name: amfrw070$js$code.CreateViewJavaScript
|
||||
--
|
||||
-- Description:
|
||||
--
|
||||
-- Parameters:
|
||||
--
|
||||
--------------------------------------------------------------------------------
|
||||
procedure CreateViewJavaScript(
|
||||
VF_ROWS_UPDATED in integer,
|
||||
VF_ROWS_DELETED in integer,
|
||||
VF_ROWS_ERROR in integer,
|
||||
VF_BODY_ATTRIBUTES in varchar2,
|
||||
LOV_FRAME in varchar2) is
|
||||
begin
|
||||
if not caco_security.security_check('amfrw070$code') then
|
||||
return;
|
||||
end if;
|
||||
|
||||
htp.p(WSGJSL.OpenScript);
|
||||
htp.p('var index = 0;');
|
||||
htp.p( 'var DataChangeErrors = false;' );
|
||||
htp.p( 'var DataChange = false;' );
|
||||
|
||||
|
||||
htp.p( 'var P_1 = new Array();' );
|
||||
|
||||
htp.p(WSGJSL.RtnNotNull);
|
||||
htp.p(WSGJSL.RtnChkMaxLength);
|
||||
htp.p(WSGJSL.RtnCheckModified);
|
||||
htp.p(WSGJSL.RtnRevertForm);
|
||||
htp.p(WSGJSL.OpenEvent('DESCRIPTION','OnChange')); htp.p('
|
||||
if (ctl != null)
|
||||
{
|
||||
ctl.form.z_modified[index].value = "Y";
|
||||
}');
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
|
||||
htp.p('
|
||||
function ResetRadios( form, num_rows )
|
||||
{
|
||||
return;
|
||||
};
|
||||
');
|
||||
|
||||
htp.p(WSGJSL.OpenEvent('CODE','Validate'));htp.p('var index = 0;');
|
||||
htp.p('
|
||||
for (index = 0; index < ctl.form.P_DESCRIPTION.length; index++)
|
||||
{');
|
||||
htp.p(' if (!(ctl.form.z_modified[index].value == "Y")) { continue;};');
|
||||
|
||||
htp.p(WSGJSL.CallNotNull('ctl.form.P_DESCRIPTION[index]', WSGL.MsgGetText(219, WSGLM.MSG219_MISSING_MANDATORY, 'Details:'), true));
|
||||
htp.p(WSGJSL.CallChkMaxLength('ctl.form.P_DESCRIPTION[index]', 4000, WSGL.MsgGetText(230, WSGLM.MSG230_MAXLEN_ERROR, 'Details:', '4000')
|
||||
, true));
|
||||
htp.p('
|
||||
}');
|
||||
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
htp.p(WSGJSL.OpenEvent('CODE','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('btnVFU','OnClick'));
|
||||
htp.p(' if (!CODE_Validate(ctl)) { return false; }');
|
||||
htp.p(WSGJSL.StandardSubmit(false));
|
||||
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
htp.p(WSGJSL.OpenEvent('btnVFD','OnClick'));
|
||||
htp.p(WSGJSL.VerifyDelete(WSGL.MsgGetText(118, WSGLM.DSP118_CONFIRM_DELETE)));
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
htp.p(WSGJSL.OpenEvent('btnVFR','OnClick'));
|
||||
htp.p(WSGJSL.StandardSubmit(false));
|
||||
|
||||
htp.p(WSGJSL.CloseEvent);
|
||||
htp.p(WSGJSL.CloseScript);
|
||||
exception
|
||||
when others then
|
||||
WSGL.DisplayMessage(WSGL.MESS_EXCEPTION, SQLERRM, ''||' : '||'Maintain Contact Information',
|
||||
VF_BODY_ATTRIBUTES, 'amfrw070$js$code.CreateViewJavaScript');
|
||||
end;
|
||||
end;
|
||||
/
|
||||
|
||||
Reference in New Issue
Block a user