73
| <![CDATA[<form name="form_ajax_redir_1" method="post" style="display: none">
<input type="hidden" name="nmgp_parms">
<input type="hidden" name="nmgp_outra_jan">
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
</form>]]>
|
78
| <![CDATA[<form name="form_ajax_redir_2" method="post" style="display: none">
<input type="hidden" name="nmgp_parms">
<input type="hidden" name="nmgp_url_saida">
<input type="hidden" name="script_case_init">
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
</form>]]>
|
3229
| <![CDATA[<body class="scFormPage" style="">
<div id="idJSSpecChar" style="display: none;"></div>
<script type="text/javascript">
function NM_tp_critica(TP)
{
if (TP == 0 || TP == 1 || TP == 2)
{
nmdg_tipo_crit = TP;
}
}
</script>
<script type="text/javascript" src="/reabertura_empresas/_lib/lib/js/digita.js">
</script>
<form name="F2" method=post
action="./"
target="_self">
<input type="hidden" name="nm_form_submit" value="1">
<input type="hidden" name="nmgp_opcao" value="">
<input type="hidden" name="master_nav" value="off">
<input type="hidden" name="sc_ifr_height" value="">
<input type="hidden" name="nmgp_parms" value=""/>
<input type="hidden" name="nmgp_ordem" value=""/>
<input type="hidden" name="nmgp_clone" value=""/>
<input type="hidden" name="nmgp_arg_dyn_search" value=""/>
<input type="hidden" name="script_case_init" value="8394">
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
</form>
<form name="F4" method="post"
target="_self">
<input type="hidden" name="nmgp_url_saida" value=""/>
<input type="hidden" name="script_case_init" value="8394"/>
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
</form>
<form name="F5" method="post"
action="./"
target="_self">
<input type="hidden" name="nmgp_opcao" value="igual"/>
<input type="hidden" name="nmgp_parms" value=""/>
<input type="hidden" name="script_case_init" value="8394"/>
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
</form>
<form name="F6" method="post"
action="./"
target="_self">
<input type="hidden" name="script_case_init" value="8394"/>
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
</form>
<form name="FCAP" action="" method="post" target="_blank">
<input type="hidden" name="SC_lig_apl_orig" value="ctrAcesso"/>
<input type="hidden" name="nmgp_parms" value="">
<input type="hidden" name="nmgp_outra_jan" value="true">
<input type="hidden" name="script_case_init" value="8394">
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
</form>
<div id="id_div_process" style="display: none; margin: 10px; whitespace: nowrap" class="scFormProcessFixed"><span class="scFormProcess"><img border="0" src="/reabertura_empresas/_lib/img/scriptcase__NM__ajax_load.gif" align="absmiddle" /> ;Processando Aguarde...</span></div>
<div id="id_div_process_block" style="display: none; margin: 10px; whitespace: nowrap"><span class="scFormProcess"><img border="0" src="/reabertura_empresas/_lib/img/scriptcase__NM__ajax_load.gif" align="absmiddle" /> ;Processando Aguarde...</span></div>
<div id="id_fatal_error" class="scFormLabelOdd" style="display: none; position: absolute"></div>
<script type="text/javascript">
NM_tp_critica(1);
function nm_gp_submit(apl_lig, apl_saida, parms, opc, target, modal_h, modal_w, apl_name)
{
if (target == 'modal')
{
par_modal = '?script_case_init=8394&script_case_session=d1llh22ahbgg5pl9qe6ci0ldd3&nmgp_outra_jan=true&nmgp_url_saida=modal';
if (opc != null && opc != '')
{
par_modal += '&nmgp_opcao=grid';
}
if (parms != null && parms != '')
{
par_modal += '&nmgp_parms=' + parms;
}
tb_show('', apl_lig + par_modal + '&TB_iframe=true&modal=true&height=' + modal_h + '&width=' + modal_w, '');
return;
}
document.F3.target = "_self";
document.F3.action = apl_lig ;
if (opc != null && opc != "")
{
document.F3.nmgp_opcao.value = "grid" ;
}
else
{
document.F3.nmgp_opcao.value = "" ;
}
if (target != null && target == '_blank')
{
document.F3.nmgp_outra_jan.value = "true" ;
document.F3.target = target;
}
document.F3.nmgp_url_saida.value = apl_saida ;
document.F3.nmgp_parms.value = parms ;
document.F3.submit() ;
}
function sc_inline_form(seqRow, keyParams, width, height)
{
var callParams = "", i, listParams = keyParams.split(",");
for (i = 0; i < listParams.length; i++)
{
callParams += listParams[i] + "*scin" + $("#id_sc_field_" + listParams[i] + seqRow).val() + "*scout";
}
nm_gp_submit('/reabertura_empresas/ctrAcesso/ctrAcesso_inline.php', '/reabertura_empresas/ctrAcesso/', 'NM_btn_insert*scinN*scoutNM_btn_update*scinS*scoutNM_btn_delete*scinN*scoutNM_btn_navega*scinN*scoutNMSC_modal*scinok*scoutsc_redir_atualiz*scinok*scoutsc_inline_call*scinY*scoutsc_seq_row*scin' + seqRow + '*scout' + callParams, '', 'modal', height, width);
}
function scInlineFormReceive(oResponse, iLine)
{
var i;
oResp = oResponse;
if (oResp["fldList"])
{
for (i = 0; i < oResp["fldList"].length; i++)
{
oResp["fldList"][i].fldName += iLine;
}
}
scAjaxSetFields();
scAjaxRedir();
}
function scInlineFormSend()
{
return false;
}
function nm_move(x, y, z)
{
if (Nm_Proc_Atualiz)
{
return;
}
if (("inicio" == x || "retorna" == x) && "S" != Nav_permite_ret)
{
return;
}
if (("avanca" == x || "final" == x) && "S" != Nav_permite_ava)
{
return;
}
document.F2.nmgp_opcao.value = x;
document.F2.nmgp_ordem.value = y;
document.F2.nmgp_clone.value = "";
if ("apl_detalhe" == x)
{
document.F2.nmgp_opcao.value = 'igual';
document.F2.master_nav.value = 'on';
if (z)
{
document.F2.sc_ifr_height.value = z;
}
document.F2.submit();
return;
}
if ("clone" == x)
{
x = "novo";
document.F2.nmgp_clone.value = "S";
document.F2.nmgp_opcao.value = x;
}
if ("novo" == x || "edit_novo" == x)
{
document.F2.nmgp_parms.value = "";
document.F2.submit();
}
else
{
do_ajax_ctrAcesso_navigate_form();
}
}
var sc_mupload_ok = true;
function nm_atualiza(x, y)
{
if (!sc_mupload_ok)
{
if (!confirm("Ainda existem uploads remanescentes. Salvar o registro antes do upload vai descartar os mesmos. Deseja continuar?"))
{
return;
}
sc_mupload_ok = true;
}
var Nm_submit_ok = true;
if (Nm_Proc_Atualiz)
{
return;
}
if (!scAjaxDetailProc())
{
return;
}
document.F1.nmgp_parms.value = "";
document.F1.target = "_self";
if (x == "muda_form")
{
document.F1.nmgp_num_form.value = y;
}
document.F1.nmgp_opcao.value = x;
document.F1.submit();
if (Nm_submit_ok)
{
Nm_Proc_Atualiz = true;
}
}
function nm_saida_glo()
{
document.F4.target = "_self";
document.F4.action = "ctrAcesso_fim.php";
document.F4.submit();
}
function nm_mostra_img(imagem, altura, largura)
{
tb_show('', imagem, '');
}
function nm_mostra_mens(campo)
{
NovaJanela = window.open ("ctrAcesso_help.php?nm_cod_campo=" + campo + "&language=../_lib/lang/pt_br&help_css=../_lib/css/Sc8_Ceropegia/Sc8_Ceropegia_form.css", "ScriptCase", "height=100, width=300, resizable, scrollbars");
}
function nm_recarga_form(nm_ult_ancora, nm_ult_page)
{
document.F1.target = "_self";
document.F1.nmgp_parms.value = "";
document.F1.nmgp_ancora.value= nm_ult_page;
document.F1.nmgp_ancora.value= nm_ult_page;
document.F1.nmgp_opcao.value= "recarga";
document.F1.action += "#" + nm_ult_ancora;
document.F1.submit();
}
function nm_link_url(Sc_url)
{
if (Sc_url.substr(0, 7) != 'http://' && Sc_url.substr(0, 8) != 'https://')
{
Sc_url = 'http://' + Sc_url;
}
return Sc_url;
}
function sc_trim(str, chars) {
return sc_ltrim(sc_rtrim(str, chars), chars);
}
function sc_ltrim(str, chars) {
chars = chars || "\\s";
return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
function sc_rtrim(str, chars) {
chars = chars || "\\s";
return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
var hasJsFormOnload = false;
function scCssFocus(oHtmlObj)
{
if (navigator.userAgent && 0 < navigator.userAgent.indexOf("MSIE") && "select" == oHtmlObj.type.substr(0, 6))
return;
$(oHtmlObj).addClass('scFormObjectFocusOdd')
.removeClass('scFormObjectOdd');
}
function scCssBlur(oHtmlObj)
{
if (navigator.userAgent && 0 < navigator.userAgent.indexOf("MSIE") && "select" == oHtmlObj.type.substr(0, 6))
return;
$(oHtmlObj).addClass('scFormObjectOdd')
.removeClass('scFormObjectFocusOdd');
}
function nm_submit_cap(apl_dest, parms)
{
document.FCAP.action = apl_dest;
document.FCAP.nmgp_parms.value = parms;
window.open('','jan_cap','location=no,menubar=no,resizable,scrollbars,status=no,toolbar=no');
document.FCAP.target = "jan_cap";
document.FCAP.submit();
}
</script>
<script type="text/javascript">
function setLocale(oSel)
{
var sLocale = "";
if (-1 < oSel.selectedIndex)
{
sLocale = oSel.options[oSel.selectedIndex].value;
}
document.F1.nmgp_idioma_novo.value = sLocale;
}
function setSchema(oSel)
{
var sLocale = "";
if (-1 < oSel.selectedIndex)
{
sLocale = oSel.options[oSel.selectedIndex].value;
}
document.F1.nmgp_schema_f.value = sLocale;
}
</script>
<form name="F1" method="post"
action="./"
target="_self">
<input type="hidden" name="nm_form_submit" value="1">
<input type="hidden" name="nmgp_idioma_novo" value="">
<input type="hidden" name="nmgp_schema_f" value="">
<input type="hidden" name="nmgp_url_saida" value="">
<input type="hidden" name="bok" value="OK">
<input type="hidden" name="nmgp_opcao" value="">
<input type="hidden" name="nmgp_ancora" value="">
<input type="hidden" name="nmgp_num_form" value="">
<input type="hidden" name="nmgp_parms" value="">
<input type="hidden" name="script_case_init" value="8394">
<input type="hidden" name="script_case_session" value="d1llh22ahbgg5pl9qe6ci0ldd3">
<input type="hidden" name="NM_cancel_return_new" value="">
<input type="hidden" name="csrf_token" value="8{()_U,j_WZM9d,L$R{lo9_Gz}0F8}HJk2:]_U2V69$}jZ0tQS!hNf4}1dJHt99(" />
<input type="hidden" name="_sc_force_mobile" id="sc-id-mobile-control" value="" />
<div style="display: none; position: absolute; z-index: 1000" id="id_error_display_table_frame">
<table class="scFormErrorTable">
<tr><td style="padding: 0px" rowspan="2"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__icnMensagemAlerta.png" style="border-width: 0px" align="top"></td><td class="scFormErrorTitle"><table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%">Atenção</td><td style="padding: 0px; vertical-align: top"><a href="javascript: scAjaxHideErrorDisplay('table')" onClick="scAjaxHideErrorDisplay('table'); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>
</td></tr></table></td></tr>
<tr><td class="scFormErrorMessage"><span id="id_error_display_table_text"></span></td></tr>
</table>
</div>
<div style="display: none; position: absolute; z-index: 1000" id="id_message_display_frame">
<table class="scFormMessageTable" id="id_message_display_content" style="width: 100%">
<tr id="id_message_display_title_line">
<td class="scFormMessageTitle" style="height: 20px"><a href="javascript: _scAjaxMessageBtnClose()" id="id_message_display_close_icon" onClick="_scAjaxMessageBtnClose(); return false;" class="scButton_default" title="Fechar página" style="vertical-align: middle; display:inline-block;float: right">Fechar</a>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>
</tr>
<tr>
<td class="scFormMessageMessage"><img id="id_message_display_body_icon" src="/reabertura_empresas/_lib/img/scriptcase__NM__exclamation.png" style="border-width: 0px; vertical-align: middle"> ;<span id="id_message_display_text"></span><div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div></td>
</tr>
</table>
</div>
<script type="text/javascript">
var scMsgDefTitle = "";
var scMsgDefButton = "Ok";
var scMsgDefClick = "close";
var scMsgDefScInit = "";
</script>
<table id="main_table_form" align="center" cellpadding=0 cellspacing=0 width="500">
<tr>
<td>
<div class="scFormBorder">
<table width='100%' cellspacing=0 cellpadding=0>
<tr><td>
<TABLE width="100%" class="scFormHeader">
<TR align="center">
<TD style="padding: 0px">
<TABLE style="padding: 0px; border-spacing: 0px; border-width: 0px;" width="100%">
<TR valign="middle">
<TD align="left" rowspan="3" class="scFormHeaderFont">
<IMG SRC="/reabertura_empresas/_lib/img/sys__NM__bg__NM__logo_limeira.png" BORDER="0"/>
</TD>
<TD align="left" class="scFormHeaderFont">
<font size=3>Prefeitura Municipal de Limeira</font> </TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
<TR valign="middle">
<TD align="left" class="scFormHeaderFont">
<font size=3>Declaração de Estabelecimento Responsável</font> </TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
<TR valign="middle">
<TD align="left" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE></td></tr>
<tr><td>
<div id="sc-ui-empty-form" class="scFormPageText" style="padding: 10px; text-align: center; font-weight: bold; display: none">Registros não encontrados</div> <a name="bloco_0"></a>
<table width="100%" height="100%" cellpadding="0" cellspacing=0><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_0"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;"><tr>
<TD class="scFormLabelOdd scUiLabelWidthFix css_documento_label" id="hidden_field_label_documento" style=""><span id="id_label_documento">CNPJ/CPF da Empresa</span></TD>
<TD class="scFormDataOdd css_documento_line" id="hidden_field_data_documento" style="">
<span id="id_read_on_documento" class="sc-ui-readonly-documento css_documento_line" style="display: none;"></span><span id="id_read_off_documento" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_documento_obj" style="" id="id_sc_field_documento" type=text name="documento" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><span class="scFormPopupBubble" style="vertical-align: top; display: inline-block"><span class="scFormPopupTrigger"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="return false;; return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span><table class="scFormPopup"><tbody><tr><td class="scFormPopupTopLeft scFormPopupCorner"></td><td class="scFormPopupTop"></td><td class="scFormPopupTopRight scFormPopupCorner"></td></tr><tr><td class="scFormPopupLeft"></td><td class="scFormPopupContent">CNPJ da empresa ou documento utilizado na abertura da mesma. Sem pontos.</td><td class="scFormPopupRight"></td></tr><tr><td class="scFormPopupBottomLeft scFormPopupCorner"></td><td class="scFormPopupBottom"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__help_arrow.png" /></td><td class="scFormPopupBottomRight scFormPopupCorner"></td></tr></tbody></table></span></TD>
<tr>
<TD class="scFormLabelOdd scUiLabelWidthFix css_inscricao_label" id="hidden_field_label_inscricao" style="display: none;"><span id="id_label_inscricao">Inscrição</span></TD>
<TD class="scFormDataOdd css_inscricao_line" id="hidden_field_data_inscricao" style="display: none;">
<span id="id_read_on_inscricao" class="sc-ui-readonly-inscricao css_inscricao_line" style="display: none;"></span><span id="id_read_off_inscricao" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_inscricao_obj" style="" id="id_sc_field_inscricao" type=text name="inscricao" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><span style="vertical-align: top; display: inline-block"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="nm_mostra_mens('inscricao'); return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span></TD>
</td></tr></table>
</tr>
</TABLE></div><!-- bloco_f -->
</td></tr>
<tr><td>
<table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" style="padding: 0px; spacing: 0px">
<table style="border-collapse: collapse; border-width: 0px; width: 100%">
<tr>
<td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding">
</td>
<td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding">
<a href="javascript: nm_atualiza('alterar');" id="sub_form_b" onClick="nm_atualiza('alterar');; return false;" class="scButton_default" title="Confirmar dados" style="vertical-align: middle; display:inline-block;">Entrar</a>
</td>
<td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding">
</td></tr>
</table>
</td></tr></table>
</td></tr>
</table>
</div>
</td>
</tr>
</table>
<div id="id_debug_window" style="display: none; position: absolute; left: 50px; top: 50px"><table class="scFormMessageTable">
<tr><td class="scFormMessageTitle"><a href="javascript: scAjaxHideDebug()" onClick="scAjaxHideDebug(); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>
; ;Output</td></tr>
<tr><td class="scFormMessageMessage" style="padding: 0px; vertical-align: top"><div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div></td></tr>
</table></div>
</form>
<script>
</script>
<script>
function updateHeaderFooter(sFldName, sFldValue)
{
if (sFldValue[0] && sFldValue[0]["value"])
{
sFldValue = sFldValue[0]["value"];
}
}
</script>
<script>
bLigEditLookupCall = false;
function scLigEditLookupCall()
{
}
if (bLigEditLookupCall)
{
scLigEditLookupCall();
}
</script>
<script type="text/javascript">
$(function() {
$("#sc-id-mobile-in").mouseover(function() {
$(this).css("cursor", "pointer");
}).click(function() {
scMobileDisplayControl("in");
});
$("#sc-id-mobile-out").mouseover(function() {
$(this).css("cursor", "pointer");
}).click(function() {
scMobileDisplayControl("out");
});
});
function scMobileDisplayControl(sOption) {
$("#sc-id-mobile-control").val(sOption);
nm_atualiza("recarga_mobile");
}
</script>
</body>]]>
|
3230
| <![CDATA[<div id="idJSSpecChar" style="display: none;"></div>]]>
|
3283
| <![CDATA[<div id="id_div_process" style="display: none; margin: 10px; whitespace: nowrap" class="scFormProcessFixed"><span class="scFormProcess"><img border="0" src="/reabertura_empresas/_lib/img/scriptcase__NM__ajax_load.gif" align="absmiddle" /> ;Processando Aguarde...</span></div>]]>
|
3284
| <![CDATA[<div id="id_div_process_block" style="display: none; margin: 10px; whitespace: nowrap"><span class="scFormProcess"><img border="0" src="/reabertura_empresas/_lib/img/scriptcase__NM__ajax_load.gif" align="absmiddle" /> ;Processando Aguarde...</span></div>]]>
|
3285
| <![CDATA[<div id="id_fatal_error" class="scFormLabelOdd" style="display: none; position: absolute"></div>]]>
|
3541
| <![CDATA[<div style="display: none; position: absolute; z-index: 1000" id="id_error_display_table_frame">
<table class="scFormErrorTable">
<tr><td style="padding: 0px" rowspan="2"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__icnMensagemAlerta.png" style="border-width: 0px" align="top"></td><td class="scFormErrorTitle"><table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%">Atenção</td><td style="padding: 0px; vertical-align: top"><a href="javascript: scAjaxHideErrorDisplay('table')" onClick="scAjaxHideErrorDisplay('table'); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>
</td></tr></table></td></tr>
<tr><td class="scFormErrorMessage"><span id="id_error_display_table_text"></span></td></tr>
</table>
</div>]]>
|
3543
| <![CDATA[<td style="padding: 0px" rowspan="2"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__icnMensagemAlerta.png" style="border-width: 0px" align="top"></td>]]>
|
3543
| <![CDATA[<img src="/reabertura_empresas/_lib/img/scriptcase__NM__icnMensagemAlerta.png" style="border-width: 0px" align="top">]]>
|
3543
| <![CDATA[<table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%">Atenção</td><td style="padding: 0px; vertical-align: top"><a href="javascript: scAjaxHideErrorDisplay('table')" onClick="scAjaxHideErrorDisplay('table'); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>
</td></tr></table>]]>
|
3543
| <![CDATA[<td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%">Atenção</td>]]>
|
3543
| <![CDATA[<td style="padding: 0px; vertical-align: top"><a href="javascript: scAjaxHideErrorDisplay('table')" onClick="scAjaxHideErrorDisplay('table'); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>
</td>]]>
|
3543
| <![CDATA[<a href="javascript: scAjaxHideErrorDisplay('table')" onClick="scAjaxHideErrorDisplay('table'); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>]]>
|
3548
| <![CDATA[<div style="display: none; position: absolute; z-index: 1000" id="id_message_display_frame">
<table class="scFormMessageTable" id="id_message_display_content" style="width: 100%">
<tr id="id_message_display_title_line">
<td class="scFormMessageTitle" style="height: 20px"><a href="javascript: _scAjaxMessageBtnClose()" id="id_message_display_close_icon" onClick="_scAjaxMessageBtnClose(); return false;" class="scButton_default" title="Fechar página" style="vertical-align: middle; display:inline-block;float: right">Fechar</a>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>
</tr>
<tr>
<td class="scFormMessageMessage"><img id="id_message_display_body_icon" src="/reabertura_empresas/_lib/img/scriptcase__NM__exclamation.png" style="border-width: 0px; vertical-align: middle"> ;<span id="id_message_display_text"></span><div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div></td>
</tr>
</table>
</div>]]>
|
3549
| <![CDATA[<table class="scFormMessageTable" id="id_message_display_content" style="width: 100%">
<tr id="id_message_display_title_line">
<td class="scFormMessageTitle" style="height: 20px"><a href="javascript: _scAjaxMessageBtnClose()" id="id_message_display_close_icon" onClick="_scAjaxMessageBtnClose(); return false;" class="scButton_default" title="Fechar página" style="vertical-align: middle; display:inline-block;float: right">Fechar</a>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>
</tr>
<tr>
<td class="scFormMessageMessage"><img id="id_message_display_body_icon" src="/reabertura_empresas/_lib/img/scriptcase__NM__exclamation.png" style="border-width: 0px; vertical-align: middle"> ;<span id="id_message_display_text"></span><div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div></td>
</tr>
</table>]]>
|
3551
| <![CDATA[<td class="scFormMessageTitle" style="height: 20px"><a href="javascript: _scAjaxMessageBtnClose()" id="id_message_display_close_icon" onClick="_scAjaxMessageBtnClose(); return false;" class="scButton_default" title="Fechar página" style="vertical-align: middle; display:inline-block;float: right">Fechar</a>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>]]>
|
3551
| <![CDATA[<a href="javascript: _scAjaxMessageBtnClose()" id="id_message_display_close_icon" onClick="_scAjaxMessageBtnClose(); return false;" class="scButton_default" title="Fechar página" style="vertical-align: middle; display:inline-block;float: right">Fechar</a>]]>
|
3552
| <![CDATA[<span id="id_message_display_title" style="vertical-align: middle"></span>]]>
|
3555
| <![CDATA[<img id="id_message_display_body_icon" src="/reabertura_empresas/_lib/img/scriptcase__NM__exclamation.png" style="border-width: 0px; vertical-align: middle">]]>
|
3555
| <![CDATA[<div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div>]]>
|
3573
| <![CDATA[<TD style="padding: 0px">
<TABLE style="padding: 0px; border-spacing: 0px; border-width: 0px;" width="100%">
<TR valign="middle">
<TD align="left" rowspan="3" class="scFormHeaderFont">
<IMG SRC="/reabertura_empresas/_lib/img/sys__NM__bg__NM__logo_limeira.png" BORDER="0"/>
</TD>
<TD align="left" class="scFormHeaderFont">
<font size=3>Prefeitura Municipal de Limeira</font> </TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
<TR valign="middle">
<TD align="left" class="scFormHeaderFont">
<font size=3>Declaração de Estabelecimento Responsável</font> </TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
<TR valign="middle">
<TD align="left" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
</TABLE>
</TD>]]>
|
3574
| <![CDATA[<TABLE style="padding: 0px; border-spacing: 0px; border-width: 0px;" width="100%">
<TR valign="middle">
<TD align="left" rowspan="3" class="scFormHeaderFont">
<IMG SRC="/reabertura_empresas/_lib/img/sys__NM__bg__NM__logo_limeira.png" BORDER="0"/>
</TD>
<TD align="left" class="scFormHeaderFont">
<font size=3>Prefeitura Municipal de Limeira</font> </TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
<TR valign="middle">
<TD align="left" class="scFormHeaderFont">
<font size=3>Declaração de Estabelecimento Responsável</font> </TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
<TR valign="middle">
<TD align="left" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="center" class="scFormHeaderFont">
</TD>
<TD style="font-size: 5px">
; ;
</TD>
<TD align="right" class="scFormHeaderFont">
</TD>
</TR>
</TABLE>]]>
|
3581
| <![CDATA[<TD style="font-size: 5px">
; ;
</TD>]]>
|
3587
| <![CDATA[<TD style="font-size: 5px">
; ;
</TD>]]>
|
3597
| <![CDATA[<TD style="font-size: 5px">
; ;
</TD>]]>
|
3603
| <![CDATA[<TD style="font-size: 5px">
; ;
</TD>]]>
|
3614
| <![CDATA[<TD style="font-size: 5px">
; ;
</TD>]]>
|
3620
| <![CDATA[<TD style="font-size: 5px">
; ;
</TD>]]>
|
3632
| <![CDATA[<div id="sc-ui-empty-form" class="scFormPageText" style="padding: 10px; text-align: center; font-weight: bold; display: none">Registros não encontrados</div>]]>
|
3635
| <![CDATA[<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;"><tr>
<TD class="scFormLabelOdd scUiLabelWidthFix css_documento_label" id="hidden_field_label_documento" style=""><span id="id_label_documento">CNPJ/CPF da Empresa</span></TD>
<TD class="scFormDataOdd css_documento_line" id="hidden_field_data_documento" style="">
<span id="id_read_on_documento" class="sc-ui-readonly-documento css_documento_line" style="display: none;"></span><span id="id_read_off_documento" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_documento_obj" style="" id="id_sc_field_documento" type=text name="documento" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><span class="scFormPopupBubble" style="vertical-align: top; display: inline-block"><span class="scFormPopupTrigger"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="return false;; return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span><table class="scFormPopup"><tbody><tr><td class="scFormPopupTopLeft scFormPopupCorner"></td><td class="scFormPopupTop"></td><td class="scFormPopupTopRight scFormPopupCorner"></td></tr><tr><td class="scFormPopupLeft"></td><td class="scFormPopupContent">CNPJ da empresa ou documento utilizado na abertura da mesma. Sem pontos.</td><td class="scFormPopupRight"></td></tr><tr><td class="scFormPopupBottomLeft scFormPopupCorner"></td><td class="scFormPopupBottom"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__help_arrow.png" /></td><td class="scFormPopupBottomRight scFormPopupCorner"></td></tr></tbody></table></span></TD>
<tr>
<TD class="scFormLabelOdd scUiLabelWidthFix css_inscricao_label" id="hidden_field_label_inscricao" style="display: none;"><span id="id_label_inscricao">Inscrição</span></TD>
<TD class="scFormDataOdd css_inscricao_line" id="hidden_field_data_inscricao" style="display: none;">
<span id="id_read_on_inscricao" class="sc-ui-readonly-inscricao css_inscricao_line" style="display: none;"></span><span id="id_read_off_inscricao" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_inscricao_obj" style="" id="id_sc_field_inscricao" type=text name="inscricao" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><span style="vertical-align: top; display: inline-block"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="nm_mostra_mens('inscricao'); return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span></TD>
</td></tr></table>]]>
|
3638
| <![CDATA[<TD class="scFormLabelOdd scUiLabelWidthFix css_documento_label" id="hidden_field_label_documento" style=""><span id="id_label_documento">CNPJ/CPF da Empresa</span></TD>]]>
|
3639
| <![CDATA[<TD class="scFormDataOdd css_documento_line" id="hidden_field_data_documento" style="">
<span id="id_read_on_documento" class="sc-ui-readonly-documento css_documento_line" style="display: none;"></span><span id="id_read_off_documento" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_documento_obj" style="" id="id_sc_field_documento" type=text name="documento" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><span class="scFormPopupBubble" style="vertical-align: top; display: inline-block"><span class="scFormPopupTrigger"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="return false;; return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span><table class="scFormPopup"><tbody><tr><td class="scFormPopupTopLeft scFormPopupCorner"></td><td class="scFormPopupTop"></td><td class="scFormPopupTopRight scFormPopupCorner"></td></tr><tr><td class="scFormPopupLeft"></td><td class="scFormPopupContent">CNPJ da empresa ou documento utilizado na abertura da mesma. Sem pontos.</td><td class="scFormPopupRight"></td></tr><tr><td class="scFormPopupBottomLeft scFormPopupCorner"></td><td class="scFormPopupBottom"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__help_arrow.png" /></td><td class="scFormPopupBottomRight scFormPopupCorner"></td></tr></tbody></table></span></TD>]]>
|
3640
| <![CDATA[<span id="id_read_on_documento" class="sc-ui-readonly-documento css_documento_line" style="display: none;"></span>]]>
|
3640
| <![CDATA[<span id="id_read_off_documento" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_documento_obj" style="" id="id_sc_field_documento" type=text name="documento" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span>]]>
|
3641
| <![CDATA[<input class="sc-js-input scFormObjectOdd css_documento_obj" style="" id="id_sc_field_documento" type=text name="documento" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}">]]>
|
3642
| <![CDATA[<span class="scFormPopupBubble" style="vertical-align: top; display: inline-block"><span class="scFormPopupTrigger"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="return false;; return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span><table class="scFormPopup"><tbody><tr><td class="scFormPopupTopLeft scFormPopupCorner"></td><td class="scFormPopupTop"></td><td class="scFormPopupTopRight scFormPopupCorner"></td></tr><tr><td class="scFormPopupLeft"></td><td class="scFormPopupContent">CNPJ da empresa ou documento utilizado na abertura da mesma. Sem pontos.</td><td class="scFormPopupRight"></td></tr><tr><td class="scFormPopupBottomLeft scFormPopupCorner"></td><td class="scFormPopupBottom"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__help_arrow.png" /></td><td class="scFormPopupBottomRight scFormPopupCorner"></td></tr></tbody></table></span>]]>
|
3642
| <![CDATA[<a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="return false;; return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>]]>
|
3642
| <![CDATA[<img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" />]]>
|
3650
| <![CDATA[<TD class="scFormLabelOdd scUiLabelWidthFix css_inscricao_label" id="hidden_field_label_inscricao" style="display: none;"><span id="id_label_inscricao">Inscrição</span></TD>]]>
|
3651
| <![CDATA[<TD class="scFormDataOdd css_inscricao_line" id="hidden_field_data_inscricao" style="display: none;">
<span id="id_read_on_inscricao" class="sc-ui-readonly-inscricao css_inscricao_line" style="display: none;"></span><span id="id_read_off_inscricao" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_inscricao_obj" style="" id="id_sc_field_inscricao" type=text name="inscricao" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><span style="vertical-align: top; display: inline-block"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="nm_mostra_mens('inscricao'); return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span></TD>]]>
|
3652
| <![CDATA[<span id="id_read_on_inscricao" class="sc-ui-readonly-inscricao css_inscricao_line" style="display: none;"></span>]]>
|
3652
| <![CDATA[<span id="id_read_off_inscricao" style="white-space: nowrap;">
<input class="sc-js-input scFormObjectOdd css_inscricao_obj" style="" id="id_sc_field_inscricao" type=text name="inscricao" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span>]]>
|
3653
| <![CDATA[<input class="sc-js-input scFormObjectOdd css_inscricao_obj" style="" id="id_sc_field_inscricao" type=text name="inscricao" value=""
size=30 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: 'abcdefghijklmnopqrstuvwxyz0123456789', lettersCase: '', enterTab: false, enterSubmit: true, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}">]]>
|
3654
| <![CDATA[<span style="vertical-align: top; display: inline-block"><a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="nm_mostra_mens('inscricao'); return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>
</span>]]>
|
3654
| <![CDATA[<a title="Ajuda para o campo" style="vertical-align: middle; display:inline-block;" onClick="nm_mostra_mens('inscricao'); return false;"><img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" /></a>]]>
|
3654
| <![CDATA[<img src="/reabertura_empresas/_lib/img/scriptcase__NM__ceropegia_help.png" style="border-width: 0; cursor: pointer" />]]>
|
3663
| <![CDATA[<table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" style="padding: 0px; spacing: 0px">
<table style="border-collapse: collapse; border-width: 0px; width: 100%">
<tr>
<td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding">
</td>
<td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding">
<a href="javascript: nm_atualiza('alterar');" id="sub_form_b" onClick="nm_atualiza('alterar');; return false;" class="scButton_default" title="Confirmar dados" style="vertical-align: middle; display:inline-block;">Entrar</a>
</td>
<td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding">
</td></tr>
</table>
</td></tr></table>]]>
|
3663
| <![CDATA[<td class="scFormToolbar" style="padding: 0px; spacing: 0px">
<table style="border-collapse: collapse; border-width: 0px; width: 100%">
<tr>
<td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding">
</td>
<td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding">
<a href="javascript: nm_atualiza('alterar');" id="sub_form_b" onClick="nm_atualiza('alterar');; return false;" class="scButton_default" title="Confirmar dados" style="vertical-align: middle; display:inline-block;">Entrar</a>
</td>
<td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding">
</td></tr>
</table>
</td>]]>
|
3664
| <![CDATA[<table style="border-collapse: collapse; border-width: 0px; width: 100%">
<tr>
<td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding">
</td>
<td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding">
<a href="javascript: nm_atualiza('alterar');" id="sub_form_b" onClick="nm_atualiza('alterar');; return false;" class="scButton_default" title="Confirmar dados" style="vertical-align: middle; display:inline-block;">Entrar</a>
</td>
<td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding">
</td></tr>
</table>]]>
|
3669
| <![CDATA[<a href="javascript: nm_atualiza('alterar');" id="sub_form_b" onClick="nm_atualiza('alterar');; return false;" class="scButton_default" title="Confirmar dados" style="vertical-align: middle; display:inline-block;">Entrar</a>]]>
|
3683
| <![CDATA[<div id="id_debug_window" style="display: none; position: absolute; left: 50px; top: 50px"><table class="scFormMessageTable">
<tr><td class="scFormMessageTitle"><a href="javascript: scAjaxHideDebug()" onClick="scAjaxHideDebug(); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>
; ;Output</td></tr>
<tr><td class="scFormMessageMessage" style="padding: 0px; vertical-align: top"><div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div></td></tr>
</table></div>]]>
|
3684
| <![CDATA[<a href="javascript: scAjaxHideDebug()" onClick="scAjaxHideDebug(); return false;" class="scButton_default" title="Fechar" style="vertical-align: middle; display:inline-block;">Fechar</a>]]>
|
3686
| <![CDATA[<td class="scFormMessageMessage" style="padding: 0px; vertical-align: top"><div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div></td>]]>
|
3686
| <![CDATA[<div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div>]]>
|
34
| <![CDATA[<style type="text/css">
.fileinput-button-padding {
padding: 3px 10px !important;
}
.fileinput-button {
position: relative;
overflow: hidden;
float: left;
margin-right: 4px;
}
.fileinput-button input {
position: absolute;
top: 0;
right: 0;
margin: 0;
border: solid transparent;
border-width: 0 0 100px 200px;
opacity: 0;
filter: alpha(opacity=0);
-moz-transform: translate(-300px, 0) scale(4);
direction: ltr;
cursor: pointer;
}
</style>]]>
|
14
| <![CDATA[<SCRIPT type="text/javascript">
var sc_pathToTB = '/scriptcase81/prod/third/jquery_plugin/thickbox/';
var sc_blockCol = 'scriptcase__NM__btn__NM__scriptcase8_ceropegia__NM__tree_menos.png';
var sc_blockExp = 'scriptcase__NM__btn__NM__scriptcase8_ceropegia__NM__tree_mais.png';
var sc_ajaxBg = '#6e6e6e';
var sc_ajaxBordC = '#8DA0C8 ';
var sc_ajaxBordS = 'solid';
var sc_ajaxBordW = '1px';
var sc_ajaxMsgTime = 2;
var sc_img_status_ok = '/reabertura_empresas/_lib/img/scriptcase__NM__iconsuccess.png';
var sc_img_status_err = '/reabertura_empresas/_lib/img/scriptcase__NM__iconfails.png';
var sc_css_status = 'scFormInputError';
</SCRIPT>]]>
|
67
| <![CDATA[<script>
var scFocusFirstErrorField = false;
var scFocusFirstErrorName = "";
</script>]]>
|
85
| <![CDATA[<SCRIPT>
// remote scripting library
// (c) copyright 2005 modernmethod, inc
var sajax_debug_mode = false;
var sajax_request_type = "POST";
var sajax_target_id = "";
var sajax_failure_redirect = "";
function sajax_debug(text) {
if (sajax_debug_mode)
alert(text);
}
function sajax_init_object() {
sajax_debug("sajax_init_object() called..")
var A;
if (window.XMLHttpRequest) {
A = new XMLHttpRequest();
}
else {
var msxmlhttp = new Array(
'Msxml2.XMLHTTP.5.0',
'Msxml2.XMLHTTP.4.0',
'Msxml2.XMLHTTP.3.0',
'Msxml2.XMLHTTP',
'Microsoft.XMLHTTP');
for (var i = 0; i < msxmlhttp.length; i++) {
try {
A = new ActiveXObject(msxmlhttp[i]);
} catch (e) {
A = null;
}
}
if(!A && typeof XMLHttpRequest != "undefined")
A = new XMLHttpRequest();
}
if (!A)
sajax_debug("Could not create connection object.");
return A;
}
var sajax_requests = new Array();
function sajax_cancel() {
for (var i = 0; i < sajax_requests.length; i++)
sajax_requests[i].abort();
}
function sajax_do_call(func_name, args) {
var i, x, n;
var uri;
var post_data;
var target_id;
var charset_html = document.inputEncoding.toLowerCase();
var charset_esp = [
"utf-8",
"windows-1250",
"windows-1253",
"windows-1254",
"windows-1255",
"windows-1256",
"windows-1257",
"iso-8859-2",
"iso-8859-4",
"iso-8859-6",
"iso-8859-7",
"iso-8859-8",
"iso-8859-8-i",
"iso-8859-9",
"iso-8859-13",
"euc-kr"
];
sajax_debug("in sajax_do_call().." + sajax_request_type + "/" + sajax_target_id);
target_id = sajax_target_id;
if (typeof(sajax_request_type) == "undefined" || sajax_request_type == "")
sajax_request_type = "GET";
uri = "/reabertura_empresas/ctrAcesso/";
// NM
if (-1 != uri.indexOf("?"))
uri = uri.substr(0, uri.indexOf("?"));
// NM
if (sajax_request_type == "GET") {
if (uri.indexOf("?") == -1)
uri += "?rs=" + escape(func_name);
else
uri += "&rs=" + escape(func_name);
uri += "&rst=" + escape(sajax_target_id);
uri += "&rsrnd=" + new Date().getTime();
for (i = 0; i < args.length-1; i++)
uri += "&rsargs[]=" + escape(args[i]);
post_data = null;
}
else if (sajax_request_type == "POST") {
post_data = "rs=" + escape(func_name);
post_data += "&rst=" + escape(sajax_target_id);
post_data += "&rsrnd=" + new Date().getTime();
for (i = 0; i < args.length-1; i++)
post_data = post_data + "&rsargs[]=" + (-1 != $.inArray(charset_html, charset_esp) ? encodeURIComponent(args[i]) : escape(args[i]));
}
else {
alert("Illegal request type: " + sajax_request_type);
}
x = sajax_init_object();
if (x == null) {
if (sajax_failure_redirect != "") {
location.href = sajax_failure_redirect;
return false;
} else {
sajax_debug("NULL sajax object for user agent:\n" + navigator.userAgent);
return false;
}
} else {
x.open(sajax_request_type, uri, true);
// window.open(uri);
sajax_requests[sajax_requests.length] = x;
if (sajax_request_type == "POST") {
x.setRequestHeader("Method", "POST " + uri + " HTTP/1.1");
x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
}
//charset magia, acontece aqui
//x.setCharacterEncoding( document.inputEncoding );
x.onreadystatechange = function() {
if (x.readyState != 4)
return;
sajax_debug("received " + x.responseText);
var status;
var data;
var txt = x.responseText.replace(/^\s*|\s*$/g,"");
status = txt.charAt(0);
data = txt.substring(2);
if (status == "") {
// let's just assume this is a pre-response bailout and let it slide for now
} else if (status == "-")
alert("Error: " + data);
else {
if (target_id != "")
document.getElementById(target_id).innerHTML = eval(data);
else {
try {
var callback;
var extra_data = false;
if (typeof args[args.length-1] == "object") {
callback = args[args.length-1].callback;
extra_data = args[args.length-1].extra_data;
} else {
callback = args[args.length-1];
}
callback(eval(data), extra_data);
} catch (e) {
sajax_debug("Caught error " + e + ": Could not eval " + data );
if (document.getElementById("id_fatal_error") && data.lastIndexOf('Fatal error') > -1)
{
sc_ret_error = "<table width=20%><tr><td>" + data + "</td></tr></table>";
document.getElementById("id_fatal_error").style.display = "";
document.getElementById("id_fatal_error").innerHTML = sc_ret_error;
}
}
}
}
}
}
sajax_debug(func_name + " uri = " + uri + "/post = " + post_data);
x.send(post_data);
sajax_debug(func_name + " waiting..");
delete x;
return true;
}
// wrapper for ajax_ctrAcesso_validate_documento
function x_ajax_ctrAcesso_validate_documento() {
sajax_do_call("ajax_ctrAcesso_validate_documento",
x_ajax_ctrAcesso_validate_documento.arguments);
}
// wrapper for ajax_ctrAcesso_validate_inscricao
function x_ajax_ctrAcesso_validate_inscricao() {
sajax_do_call("ajax_ctrAcesso_validate_inscricao",
x_ajax_ctrAcesso_validate_inscricao.arguments);
}
// wrapper for ajax_ctrAcesso_event_documento_onchange
function x_ajax_ctrAcesso_event_documento_onchange() {
sajax_do_call("ajax_ctrAcesso_event_documento_onchange",
x_ajax_ctrAcesso_event_documento_onchange.arguments);
}
// wrapper for ajax_ctrAcesso_submit_form
function x_ajax_ctrAcesso_submit_form() {
sajax_do_call("ajax_ctrAcesso_submit_form",
x_ajax_ctrAcesso_submit_form.arguments);
}
// wrapper for ajax_ctrAcesso_navigate_form
function x_ajax_ctrAcesso_navigate_form() {
sajax_do_call("ajax_ctrAcesso_navigate_form",
x_ajax_ctrAcesso_navigate_form.arguments);
}
function scCenterElement(oElem)
{
var $oElem = $(oElem),
$oWindow = $(this),
iElemTop = Math.round(($oWindow.height() - $oElem.height()) / 2),
iElemLeft = Math.round(($oWindow.width() - $oElem.width()) / 2);
$oElem.offset({top: iElemTop, left: iElemLeft});
} // scCenterElement
function scAjaxHideAutocomp(sFrameId)
{
if (document.getElementById("id_ac_frame_" + sFrameId))
{
document.getElementById("id_ac_frame_" + sFrameId).style.display = "none";
}
} // scAjaxHideAutocomp
function scAjaxShowAutocomp(sFrameId)
{
if (document.getElementById("id_ac_frame_" + sFrameId))
{
document.getElementById("id_ac_frame_" + sFrameId).style.display = "";
document.getElementById("id_ac_" + sFrameId).focus();
}
} // scAjaxShowAutocomp
function scAjaxHideDebug()
{
if (document.getElementById("id_debug_window"))
{
document.getElementById("id_debug_window").style.display = "none";
document.getElementById("id_debug_text").innerHTML = "";
}
} // scAjaxHideDebug
function scAjaxShowDebug(oTemp)
{
if (!document.getElementById("id_debug_window"))
{
return;
}
if (oTemp && oTemp != null)
{
oResp = oTemp;
}
if (oResp["htmOutput"] && "" != oResp["htmOutput"])
{
document.getElementById("id_debug_window").style.display = "";
document.getElementById("id_debug_text").innerHTML = scAjaxFormatDebug(oResp["htmOutput"]) + document.getElementById("id_debug_text").innerHTML;
scCenterElement(document.getElementById("id_debug_window"));
}
} // scAjaxShowDebug
function scAjaxFormatDebug(sDebugMsg)
{
return "<table class=\"scFormMessageTable\" style=\"margin: 1px; width: 100%\"><tr><td class=\"scFormMessageMessage\">" + scAjaxSpecCharParser(sDebugMsg) + "</td></tr></table>";
} // scAjaxFormatDebug
function scAjaxHideErrorDisplay(sErrorId, bForce)
{
if (document.getElementById("id_error_display_" + sErrorId + "_frame"))
{
document.getElementById("id_error_display_" + sErrorId + "_frame").style.display = "none";
document.getElementById("id_error_display_" + sErrorId + "_text").innerHTML = "";
if (null == bForce)
{
bForce = true;
}
if (bForce)
{
var $oField = $('#id_sc_field_' + sErrorId);
if (0 < $oField.length)
{
$oField.removeClass(sc_css_status);
}
}
}
if (document.getElementById("id_error_display_fixed"))
{
document.getElementById("id_error_display_fixed").style.display = "none";
}
} // scAjaxHideErrorDisplay
function scAjaxShowErrorDisplay(sErrorId, sErrorMsg)
{
if (oResp && oResp['redirExitInfo'])
{
sErrorMsg += "<br /><input type=\"button\" onClick=\"window.location='" + oResp['redirExitInfo']['action'] + "'\" value=\"Ok\">";
}
sErrorMsg = scAjaxErrorSql(sErrorMsg);
if (document.getElementById("id_error_display_" + sErrorId + "_frame"))
{
document.getElementById("id_error_display_" + sErrorId + "_frame").style.display = "";
document.getElementById("id_error_display_" + sErrorId + "_text").innerHTML = sErrorMsg;
if ("table" == sErrorId)
{
scCenterElement(document.getElementById("id_error_display_" + sErrorId + "_frame"));
}
var $oField = $('#id_sc_field_' + sErrorId);
if (0 < $oField.length)
{
$oField.addClass(sc_css_status);
}
}
if (ajax_error_list && ajax_error_list[sErrorId] && ajax_error_list[sErrorId]["timeout"] && 0 < ajax_error_list[sErrorId]["timeout"])
{
setTimeout("scAjaxHideErrorDisplay('" + sErrorId + "', false)", ajax_error_list[sErrorId]["timeout"] * 1000);
}
/*else if ("table" == sErrorId)
{
document.getElementById("id_error_display_" + sErrorId + "_frame").style.left = posDispLeft + "px";
document.getElementById("id_error_display_" + sErrorId + "_frame").style.top = posDispTop + "px";
}*/
} // scAjaxShowErrorDisplay
var iErrorSqlId = 1;
function scAjaxErrorSql(sErrorMsg)
{
var iTmpPos = sErrorMsg.indexOf("{SC_DB_ERROR_INI}"),
sTmpId;
while (-1 < iTmpPos)
{
sTmpId = "sc_id_error_sql_" + iErrorSqlId;
sErrorMsg = sErrorMsg.substr(0, iTmpPos) + "<br /><span style=\"text-decoration: underline\" onClick=\"$('#" + sTmpId + "').show(); scCenterElement(document.getElementById('" + sTmpId + "'))\">" + sErrorMsg.substr(iTmpPos + 17);
iTmpPos = sErrorMsg.indexOf("{SC_DB_ERROR_MID}");
sErrorMsg = sErrorMsg.substr(0, iTmpPos) + "</span><table class=\"scFormErrorTable\" id=\"" + sTmpId + "\" style=\"display: none; position: absolute\"><tr><td>" + sErrorMsg.substr(iTmpPos + 17);
iTmpPos = sErrorMsg.indexOf("{SC_DB_ERROR_CLS}");
sErrorMsg = sErrorMsg.substr(0, iTmpPos) + "<br /><br /><span onClick=\"$('#" + sTmpId + "').hide()\">" + sErrorMsg.substr(iTmpPos + 17);
iTmpPos = sErrorMsg.indexOf("{SC_DB_ERROR_END}");
sErrorMsg = sErrorMsg.substr(0, iTmpPos) + "</span></td></tr></table>" + sErrorMsg.substr(iTmpPos + 17);
iTmpPos = sErrorMsg.indexOf("{SC_DB_ERROR_INI}");
iErrorSqlId++;
}
return sErrorMsg;
} // scAjaxErrorSql
function scAjaxHideMessage()
{
if (document.getElementById("id_message_display_frame"))
{
document.getElementById("id_message_display_frame").style.display = "none";
document.getElementById("id_message_display_text").innerHTML = "";
}
} // scAjaxHideMessage
function scAjaxShowMessage()
{
if (!oResp["msgDisplay"] || !oResp["msgDisplay"]["msgText"])
{
return;
}
_scAjaxShowMessage(scMsgDefTitle, oResp["msgDisplay"]["msgText"], false, sc_ajaxMsgTime, false, "Ok", 0, 0, 0, 0, "", "", "", false, true);
} // scAjaxShowMessage
var scMsgDefClose = "";
function _scAjaxShowMessage(sTitle, sMessage, bModal, iTimeout, bButton, sButton, iTop, iLeft, iWidth, iHeight, sRedir, sTarget, sParam, bClose, bBodyIcon) {
if ("" == sMessage) {
if (bModal) {
scMsgDefClick = "close_modal";
}
else {
scMsgDefClick = "close";
}
_scAjaxMessageBtnClick();
document.getElementById("id_message_display_title").innerHTML = scMsgDefTitle;
document.getElementById("id_message_display_text").innerHTML = "";
document.getElementById("id_message_display_buttone").value = scMsgDefButton;
document.getElementById("id_message_display_buttond").style.display = "none";
}
else {
document.getElementById("id_message_display_title").innerHTML = scAjaxSpecCharParser(sTitle);
document.getElementById("id_message_display_text").innerHTML = scAjaxSpecCharParser(sMessage);
document.getElementById("id_message_display_buttone").value = sButton;
document.getElementById("id_message_display_buttond").style.display = bButton ? "" : "none";
document.getElementById("id_message_display_buttond").style.display = bButton ? "" : "none";
document.getElementById("id_message_display_title_line").style.display = (bClose || "" != sTitle) ? "" : "none";
document.getElementById("id_message_display_close_icon").style.display = bClose ? "" : "none";
if (document.getElementById("id_message_display_body_icon")) {
document.getElementById("id_message_display_body_icon").style.display = bBodyIcon ? "" : "none";
}
$("#id_message_display_content").css('width', (0 < iWidth ? iWidth + 'px' : ''));
$("#id_message_display_content").css('height', (0 < iHeight ? iHeight + 'px' : ''));
if (bModal) {
iWidth = iWidth || 250;
iHeight = iHeight || 200;
scMsgDefClose = "close_modal";
tb_show('', '#TB_inline?height=' + (iHeight + 6) + '&width=' + (iWidth + 4) + '&inlineId=id_message_display_frame&modal=true', '');
if (bButton) {
if ("" != sRedir && "" != sTarget) {
scMsgDefClick = "redir2_modal";
document.form_ajax_redir_2.action = sRedir;
document.form_ajax_redir_2.target = sTarget;
document.form_ajax_redir_2.nmgp_parms.value = sParam;
document.form_ajax_redir_2.script_case_init.value = scMsgDefScInit;
}
else if ("" != sRedir && "" == sTarget) {
scMsgDefClick = "redir1";
document.form_ajax_redir_1.action = sRedir;
document.form_ajax_redir_1.nmgp_parms.value = sParam;
}
else {
scMsgDefClick = "close_modal";
}
}
else if (null != iTimeout && 0 < iTimeout) {
scMsgDefClick = "close_modal";
setTimeout("_scAjaxMessageBtnClick()", iTimeout * 1000);
}
}
else
{
scMsgDefClose = "close";
$("#id_message_display_frame").css('top', (0 < iTop ? iTop + 'px' : ''));
$("#id_message_display_frame").css('left', (0 < iLeft ? iLeft + 'px' : ''));
document.getElementById("id_message_display_frame").style.display = "";
if (0 == iTop && 0 == iLeft) {
scCenterElement(document.getElementById("id_message_display_frame"));
}
if (bButton) {
if ("" != sRedir && "" != sTarget) {
scMsgDefClick = "redir2";
document.form_ajax_redir_2.action = sRedir;
document.form_ajax_redir_2.target = sTarget;
document.form_ajax_redir_2.nmgp_parms.value = sParam;
document.form_ajax_redir_2.script_case_init.value = scMsgDefScInit;
}
else if ("" != sRedir && "" == sTarget) {
scMsgDefClick = "redir1";
document.form_ajax_redir_1.action = sRedir;
document.form_ajax_redir_1.nmgp_parms.value = sParam;
}
else {
scMsgDefClick = "close";
}
}
else if (null != iTimeout && 0 < iTimeout) {
scMsgDefClick = "close";
setTimeout("_scAjaxMessageBtnClick()", iTimeout * 1000);
}
}
}
} // _scAjaxShowMessage
function _scAjaxMessageBtnClose() {
switch (scMsgDefClose) {
case "close":
document.getElementById("id_message_display_frame").style.display = "none";
break;
case "close_modal":
tb_remove();
break;
}
} // _scAjaxMessageBtnClick
function _scAjaxMessageBtnClick() {
switch (scMsgDefClick) {
case "close":
document.getElementById("id_message_display_frame").style.display = "none";
break;
case "close_modal":
tb_remove();
break;
case "redir1":
document.form_ajax_redir_1.submit();
break;
case "redir2":
document.form_ajax_redir_2.submit();
document.getElementById("id_message_display_frame").style.display = "none";
break;
case "redir2_modal":
document.form_ajax_redir_2.submit();
tb_remove();
break;
}
} // _scAjaxMessageBtnClick
function scAjaxHasError()
{
if (!oResp["result"])
{
return false;
}
return "ERROR" == oResp["result"];
} // scAjaxHasError
function scAjaxIsOk()
{
if (!oResp["result"])
{
return false;
}
return "OK" == oResp["result"] || "SET" == oResp["result"];
} // scAjaxIsOk
function scAjaxIsSet()
{
if (!oResp["result"])
{
return false;
}
return "SET" == oResp["result"];
} // scAjaxIsSet
function scAjaxCalendarReload()
{
if (oResp["calendarReload"] && "OK" == oResp["calendarReload"])
{
self.parent.calendar_reload();
self.parent.tb_remove();
}
} // scCalendarReload
function scAjaxUpdateErrors(sType)
{
ajax_error_geral = "";
oFieldErrors = {};
if (oResp["errList"])
{
for (iFieldErrors = 0; iFieldErrors < oResp["errList"].length; iFieldErrors++)
{
sTestField = oResp["errList"][iFieldErrors]["fldName"];
if ("geral_ctrAcesso" == sTestField)
{
if (ajax_error_geral != '') { ajax_error_geral += '<br>';}
ajax_error_geral += scAjaxSpecCharParser(oResp["errList"][iFieldErrors]["msgText"]);
}
else
{
if (scFocusFirstErrorField && '' == scFocusFirstErrorName)
{
scFocusFirstErrorName = sTestField;
}
if (oResp["errList"][iFieldErrors]["numLinha"])
{
sTestField += oResp["errList"][iFieldErrors]["numLinha"];
}
if (!oFieldErrors[sTestField])
{
oFieldErrors[sTestField] = new Array();
}
oFieldErrors[sTestField][oFieldErrors[sTestField].length] = scAjaxSpecCharParser(oResp["errList"][iFieldErrors]["msgText"]);
}
}
}
for (iUpdateErrors = 0; iUpdateErrors < ajax_field_list.length; iUpdateErrors++)
{
sTestField = ajax_field_list[iUpdateErrors];
if (oFieldErrors[sTestField])
{
ajax_error_list[sTestField][sType] = oFieldErrors[sTestField];
}
}
} // scAjaxUpdateErrors
function scAjaxUpdateFieldErrors(sField, sType)
{
aFieldErrors = new Array();
if (oResp["errList"])
{
iErrorPos = 0;
for (iFieldErrors = 0; iFieldErrors < oResp["errList"].length; iFieldErrors++)
{
sTestField = oResp["errList"][iFieldErrors]["fldName"];
if (oResp["errList"][iFieldErrors]["numLinha"])
{
sTestField += oResp["errList"][iFieldErrors]["numLinha"];
}
if (sField == sTestField)
{
aFieldErrors[iErrorPos] = scAjaxSpecCharParser(oResp["errList"][iFieldErrors]["msgText"]);
iErrorPos++;
}
}
}
if (ajax_error_list[sField])
{
ajax_error_list[sField][sType] = aFieldErrors;
}
} // scAjaxUpdateFieldErrors
function scAjaxListErrors(bLabel)
{
bFirst = false;
sAppErrorText = "";
if ("" != ajax_error_geral)
{
bFirst = true;
sAppErrorText += ajax_error_geral;
}
for (iFieldList = 0; iFieldList < ajax_field_list.length; iFieldList++)
{
sFieldError = scAjaxListFieldErrors(ajax_field_list[iFieldList], bLabel);
if ("" != sFieldError)
{
if (bFirst)
{
bFirst = false
sAppErrorText += "<hr size=\"1\" width=\"80%\" />";
}
sAppErrorText += sFieldError;
}
}
return sAppErrorText;
} // scAjaxListErrors
function scAjaxListFieldErrors(sField, bLabel)
{
sErrorText = "";
for (iErrorType = 0; iErrorType < ajax_error_type.length; iErrorType++)
{
if (ajax_error_list[sField])
{
for (iListErrors = 0; iListErrors < ajax_error_list[sField][ajax_error_type[iErrorType]].length; iListErrors++)
{
if (bLabel)
{
sErrorText += ajax_error_list[sField]["label"] + ": ";
}
sErrorText += ajax_error_list[sField][ajax_error_type[iErrorType]][iListErrors] + "<br />";
}
}
}
return sErrorText;
} // scAjaxListFieldErrors
function scAjaxSetFields()
{
if (!oResp["fldList"])
{
return true;
}
for (iSetFields = 0; iSetFields < oResp["fldList"].length; iSetFields++)
{
var sFieldName = oResp["fldList"][iSetFields]["fldName"];
var sFieldType = oResp["fldList"][iSetFields]["fldType"];
if ("selectdd" == sFieldType)
{
var bSelectDD = true;
sFieldType = "select";
}
else
{
var bSelectDD = false;
}
if (oResp["fldList"][iSetFields]["valList"])
{
var oFieldValues = oResp["fldList"][iSetFields]["valList"];
if (0 == oFieldValues.length)
{
oFieldValues = null;
}
}
else
{
var oFieldValues = null;
}
if (oResp["fldList"][iSetFields]["optList"])
{
var oFieldOptions = oResp["fldList"][iSetFields]["optList"];
}
else
{
var oFieldOptions = null;
}
/*
if ("_autocomp" == sFieldName.substr(sFieldName.length - 9) &&
iSetFields > 0 &&
sFieldName.substr(0, sFieldName.length - 9) == oResp["fldList"][iSetFields - 1]["fldName"] &&
document.getElementById("div_ac_lab_" + sFieldName.substr(0, sFieldName.length - 9)) &&
oFieldValues[0]['value'])
{
document.getElementById("div_ac_lab_" + sFieldName.substr(0, sFieldName.length - 9)).innerHTML = oFieldValues[0]['value'];
}
*/
if ("_autocomp" == sFieldName.substr(sFieldName.length - 9) &&
iSetFields > 0 &&
sFieldName.substr(0, sFieldName.length - 9) == oResp["fldList"][iSetFields - 1]["fldName"] &&
document.getElementById("div_ac_lab_" + sFieldName.substr(0, sFieldName.length - 9)))
{
sLabel_auto_Comp = (oFieldValues[0]['value']) ? oFieldValues[0]['value'] : "";
document.getElementById("div_ac_lab_" + sFieldName.substr(0, sFieldName.length - 9)).innerHTML = sLabel_auto_Comp;
}
if (oResp["fldList"][iSetFields]["colNum"])
{
var iColNum = oResp["fldList"][iSetFields]["colNum"];
}
else
{
var iColNum = 1;
}
if (oResp["fldList"][iSetFields]["row"])
{
var iRow = oResp["fldList"][iSetFields]["row"];
}
else
{
var iRow = 1;
}
if (oResp["fldList"][iSetFields]["htmComp"])
{
var sHtmComp = oResp["fldList"][iSetFields]["htmComp"];
sHtmComp = sHtmComp.replace(/__AD__/gi, '"');
sHtmComp = sHtmComp.replace(/__AS__/gi, "'");
}
else
{
var sHtmComp = null;
}
if (oResp["fldList"][iSetFields]["imgFile"])
{
var sImgFile = oResp["fldList"][iSetFields]["imgFile"];
}
else
{
var sImgFile = "";
}
if (oResp["fldList"][iSetFields]["imgOrig"])
{
var sImgOrig = oResp["fldList"][iSetFields]["imgOrig"];
}
else
{
var sImgOrig = "";
}
if (oResp["fldList"][iSetFields]["keepImg"])
{
var sKeepImg = oResp["fldList"][iSetFields]["keepImg"];
}
else
{
var sKeepImg = "N";
}
if (oResp["fldList"][iSetFields]["hideName"])
{
var sHideName = oResp["fldList"][iSetFields]["hideName"];
}
else
{
var sHideName = "N";
}
if (oResp["fldList"][iSetFields]["imgLink"])
{
var sImgLink = oResp["fldList"][iSetFields]["imgLink"];
}
else
{
var sImgLink = null;
}
if (oResp["fldList"][iSetFields]["docLink"])
{
var sDocLink = oResp["fldList"][iSetFields]["docLink"];
}
else
{
var sDocLink = "";
}
if (oResp["fldList"][iSetFields]["docIcon"])
{
var sDocIcon = oResp["fldList"][iSetFields]["docIcon"];
}
else
{
var sDocIcon = "";
}
if (oResp["fldList"][iSetFields]["optComp"])
{
var sOptComp = oResp["fldList"][iSetFields]["optComp"];
}
else
{
var sOptComp = "";
}
if (oResp["fldList"][iSetFields]["optClass"])
{
var sOptClass = oResp["fldList"][iSetFields]["optClass"];
}
else
{
var sOptClass = "";
}
if (oResp["fldList"][iSetFields]["optMulti"])
{
var sOptMulti = oResp["fldList"][iSetFields]["optMulti"];
}
else
{
var sOptMulti = "";
}
if (oResp["fldList"][iSetFields]["imgHtml"])
{
var sImgHtml = oResp["fldList"][iSetFields]["imgHtml"];
}
else
{
var sImgHtml = "";
}
if (oResp["fldList"][iSetFields]["mulHtml"])
{
var sMULHtml = oResp["fldList"][iSetFields]["mulHtml"];
}
else
{
var sMULHtml = "";
}
if (oResp["fldList"][iSetFields]["updInnerHtml"])
{
var sInnerHtml = scAjaxSpecCharParser(oResp["fldList"][iSetFields]["updInnerHtml"]);
}
else
{
var sInnerHtml = null;
}
if (oResp["fldList"][iSetFields]["lookupCons"])
{
var sLookupCons = scAjaxSpecCharParser(oResp["fldList"][iSetFields]["lookupCons"]);
}
else
{
var sLookupCons = "";
}
if (oResp["clearUpload"])
{
var sClearUpload = scAjaxSpecCharParser(oResp["clearUpload"]);
}
else
{
var sClearUpload = "N";
}
if ("checkbox" == sFieldType)
{
scAjaxSetFieldCheckbox(sFieldName, oFieldValues, oFieldOptions, iColNum, sHtmComp, sInnerHtml, sOptComp, sOptClass, sOptMulti);
}
else if ("duplosel" == sFieldType)
{
scAjaxSetFieldDuplosel(sFieldName, oFieldValues, oFieldOptions);
}
else if ("imagem" == sFieldType)
{
scAjaxSetFieldImage(sFieldName, oFieldValues, sImgFile, sImgOrig, sImgLink, sKeepImg, sHideName);
}
else if ("documento" == sFieldType)
{
scAjaxSetFieldDocument(sFieldName, oFieldValues, sDocLink, sDocIcon, sClearUpload);
}
else if ("label" == sFieldType)
{
scAjaxSetFieldLabel(sFieldName, oFieldValues, oFieldOptions, sLookupCons);
}
else if ("radio" == sFieldType)
{
scAjaxSetFieldRadio(sFieldName, oFieldValues, oFieldOptions, iColNum, sHtmComp, sOptComp);
}
else if ("select" == sFieldType)
{
scAjaxSetFieldSelect(sFieldName, oFieldValues, oFieldOptions, bSelectDD, iRow);
}
else if ("text" == sFieldType)
{
scAjaxSetFieldText(sFieldName, oFieldValues, sLookupCons);
}
else if ("editor_html" == sFieldType)
{
scAjaxSetFieldEditorHtml(sFieldName, oFieldValues);
}
else if ("imagehtml" == sFieldType)
{
scAjaxSetFieldImageHtml(sFieldName, oFieldValues, sImgHtml);
}
else if ("innerhtml" == sFieldType)
{
scAjaxSetFieldInnerHtml(sFieldName, oFieldValues);
}
else if ("multi_upload" == sFieldType)
{
scAjaxSetFieldMultiUpload(sFieldName, sMULHtml);
}
scAjaxUpdateHeaderFooter(sFieldName, oFieldValues);
}
} // scAjaxSetFields
function scAjaxUpdateHeaderFooter(sFieldName, oFieldValues)
{
if (self.updateHeaderFooter)
{
if (null == oFieldValues)
{
sNewValue = '';
}
else if (oFieldValues[0]["label"])
{
sNewValue = oFieldValues[0]["label"];
}
else
{
sNewValue = oFieldValues[0]["value"];
}
updateHeaderFooter(sFieldName, scAjaxSpecCharParser(sNewValue));
}
} // scAjaxUpdateHeaderFooter
function scAjaxSetFieldText(sFieldName, oFieldValues, sLookupCons)
{
if (document.F1.elements[sFieldName])
{
var Temp_text = scAjaxReturnBreakLine(scAjaxSpecCharParser(scAjaxProtectBreakLine(oFieldValues[0]['value'])));
eval ("document.F1." + sFieldName + ".value = Temp_text");
}
if (document.getElementById("id_lookup_" + sFieldName))
{
document.getElementById("id_lookup_" + sFieldName).innerHTML = sLookupCons;
}
if (oFieldValues[0]['label'])
{
scAjaxSetReadonlyArrayValue(sFieldName, oFieldValues);
}
else
{
scAjaxSetReadonlyValue(sFieldName, scAjaxBreakLine(oFieldValues[0]['value']));
}
} // scAjaxSetFieldText
function scAjaxSetFieldSelect(sFieldName, oFieldValues, oFieldOptions, bSelectDD, iRow)
{
sFieldNameHtml = sFieldName;
if (!document.F1.elements[sFieldName] && !document.F1.elements[sFieldName + "[]"])
{
return;
}
if (bSelectDD)
{
$("#id_sc_field_" + sFieldName).dropdownchecklist("destroy");
}
if (!document.F1.elements[sFieldName] && document.F1.elements[sFieldName + "[]"])
{
sFieldNameHtml += "[]";
}
if ("hidden" == document.F1.elements[sFieldNameHtml].type)
{
scAjaxSetFieldText(sFieldNameHtml, oFieldValues);
return;
}
if (null != oFieldOptions)
{
$("#id_sc_field_" + sFieldName).children().remove()
if ("<select" != oFieldOptions.substr(0, 7))
{
var $oField = $("#id_sc_field_" + sFieldName);
if (0 < $oField.length)
{
$oField.html(oFieldOptions);
}
else
{
document.getElementById("idAjaxSelect_" + sFieldName).innerHTML = oFieldOptions;
}
}
else
{
document.getElementById("idAjaxSelect_" + sFieldName).innerHTML = oFieldOptions;
}
}
var aValues = new Array();
if (null != oFieldValues)
{
for (iFieldSelect = 0; iFieldSelect < oFieldValues.length; iFieldSelect++)
{
aValues[iFieldSelect] = scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);
}
}
var oFormField = $("#id_sc_field_" + sFieldName);
for (iFieldSelect = 0; iFieldSelect < oFormField[0].length; iFieldSelect++)
{
if (scAjaxInArray(oFormField[0].options[iFieldSelect].value, aValues))
{
oFormField[0].options[iFieldSelect].selected = true;
}
else
{
oFormField[0].options[iFieldSelect].selected = false;
}
}
scAjaxSetReadonlyArrayValue(sFieldName, oFieldValues, "<br />");
if (bSelectDD)
{
scJQDDCheckBoxAdd(iRow);
}
} // scAjaxSetFieldSelect
function scAjaxSetFieldDuplosel(sFieldName, oFieldValues, oFieldOptions)
{
var sFieldNameOrig = sFieldName + "_orig";
var sFieldNameDest = sFieldName + "_dest";
var oFormFieldOrig = document.F1.elements[sFieldNameOrig];
var oFormFieldDest = document.F1.elements[sFieldNameDest];
if (null != oFieldOptions)
{
scAjaxClearSelect(sFieldNameOrig);
for (iFieldSelect = 0; iFieldSelect < oFieldOptions.length; iFieldSelect++)
{
oFormFieldOrig.options[iFieldSelect] = new Option(scAjaxSpecCharParser(oFieldOptions[iFieldSelect]["label"]), scAjaxSpecCharParser(oFieldOptions[iFieldSelect]["value"]));
}
}
while (oFormFieldDest.length > 0)
{
oFormFieldDest.options[0] = null;
}
var aValues = new Array();
if (null != oFieldValues)
{
for (iFieldSelect = 0; iFieldSelect < oFieldValues.length; iFieldSelect++)
{
sNewOptionLabel = oFieldValues[iFieldSelect]["label"] ? scAjaxSpecCharParser(oFieldValues[iFieldSelect]["label"]) : scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);
sNewOptionValue = scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);
if (sNewOptionValue.substr(0, 8) == "@NMorder")
{
sNewOptionValue = sNewOptionValue.substr(8);
oFormFieldDest.options[iFieldSelect] = new Option(scAjaxSpecCharParser(sNewOptionLabel), sNewOptionValue);
sNewOptionValue = sNewOptionValue.substr(1);
aValues[iFieldSelect] = sNewOptionValue;
}
else
{
aValues[iFieldSelect] = sNewOptionValue;
oFormFieldDest.options[iFieldSelect] = new Option(scAjaxSpecCharParser(sNewOptionLabel), sNewOptionValue);
}
}
}
for (iFieldSelect = 0; iFieldSelect < oFormFieldOrig.length; iFieldSelect++)
{
oFormFieldOrig.options[iFieldSelect].selected = false;
if (scAjaxInArray(oFormFieldOrig.options[iFieldSelect].value, aValues))
{
oFormFieldOrig.options[iFieldSelect].disabled = true;
oFormFieldOrig.options[iFieldSelect].style.color = "#A0A0A0";
}
else
{
oFormFieldOrig.options[iFieldSelect].disabled = false;
}
}
scAjaxSetReadonlyArrayValue(sFieldName, oFieldValues, "<br />");
} // scAjaxSetFieldDuplosel
function scAjaxSetFieldCheckbox(sFieldName, oFieldValues, oFieldOptions, iColNum, sHtmComp, sInnerHtml, sOptComp, sOptClass, sOptMulti)
{
if (document.getElementById("idAjaxCheckbox_" + sFieldName) && null != sInnerHtml)
{
document.getElementById("idAjaxCheckbox_" + sFieldName).innerHTML = sInnerHtml;
return;
}
if (null != oFieldOptions)
{
scAjaxClearCheckbox(sFieldName);
}
if (document.F1.elements[sFieldName] && "hidden" == document.F1.elements[sFieldName].type)
{
scAjaxSetFieldText(sFieldName, oFieldValues);
return;
}
if (null != oFieldOptions && "" != oFieldOptions)
{
/* scAjaxClearCheckbox(sFieldName); */
scAjaxRecreateOptions("Checkbox", "checkbox", sFieldName, oFieldValues, oFieldOptions, iColNum, sHtmComp, sOptComp, sOptClass, sOptMulti);
}
else
{
scAjaxSetCheckboxOptions(sFieldName, oFieldValues);
}
scAjaxSetReadonlyArrayValue(sFieldName, oFieldValues, "<br />");
} // scAjaxSetFieldCheckbox
function scAjaxSetFieldRadio(sFieldName, oFieldValues, oFieldOptions, iColNum, sHtmComp, sOptComp)
{
if (document.F1.elements[sFieldName] && "hidden" == document.F1.elements[sFieldName].type)
{
scAjaxSetFieldText(sFieldName, oFieldValues);
return;
}
if (null != oFieldOptions)
{
scAjaxClearRadio(sFieldName);
}
if (null != oFieldOptions && "" != oFieldOptions)
{
/* scAjaxClearRadio(sFieldName); */
scAjaxRecreateOptions("Radio", "radio", sFieldName, oFieldValues, oFieldOptions, iColNum, sHtmComp, sOptComp, "", "");
}
else
{
scAjaxSetRadioOptions(sFieldName, oFieldValues);
}
scAjaxSetReadonlyArrayValue(sFieldName, oFieldValues, "<br />");
} // scAjaxSetFieldRadio
function scAjaxSetFieldLabel(sFieldName, oFieldValues, oFieldOptions, sLookupCons)
{
sFieldValue = oFieldValues[0]["value"];
sFieldLabel = oFieldValues[0]["value"];
sFieldLabel = scAjaxBreakLine(sFieldLabel);
if (null != oFieldOptions)
{
for (iRecreate = 0; iRecreate < oFieldOptions.length; iRecreate++)
{
sOptText = scAjaxSpecCharParser(oFieldOptions[iRecreate]["value"]);
sOptValue = scAjaxSpecCharParser(oFieldOptions[iRecreate]["label"]);
if (sFieldValue == sOptText)
{
sFieldLabel = sOptValue;
}
}
}
if (document.getElementById("id_ajax_label_" + sFieldName))
{
document.getElementById("id_ajax_label_" + sFieldName).innerHTML = scAjaxSpecCharParser(sFieldLabel);
}
if (document.F1.elements[sFieldName])
{
// document.F1.elements[sFieldName].value = scAjaxSpecCharParser(sFieldValue);
Temp_text = scAjaxProtectBreakLine(sFieldValue);
Temp_text = scAjaxSpecCharParser(Temp_text);
document.F1.elements[sFieldName].value = scAjaxReturnBreakLine(Temp_text);
}
if (document.getElementById("id_lookup_" + sFieldName))
{
document.getElementById("id_lookup_" + sFieldName).innerHTML = sLookupCons;
}
scAjaxSetReadonlyValue(sFieldName, scAjaxSpecCharParser(sFieldLabel));
} // scAjaxSetFieldLabel
function scAjaxSetFieldImage(sFieldName, oFieldValues, sImgFile, sImgOrig, sImgLink, sKeepImg, sHideName)
{
if (!document.F1.elements[sFieldName] && !document.F1.elements[sFieldName + "[]"])
{
return;
}
if ("N" == sKeepImg && document.getElementById("id_ajax_img_" + sFieldName))
{
document.getElementById("id_ajax_img_" + sFieldName).src = scAjaxSpecCharParser(sImgFile);
document.getElementById("id_ajax_img_" + sFieldName).style.display = ("" == sImgFile) ? "none" : "";
}
if (document.getElementById("id_ajax_link_" + sFieldName) && null != sImgLink)
{
document.getElementById("id_ajax_link_" + sFieldName).innerHTML = oFieldValues[0]["value"];
document.getElementById("id_ajax_link_" + sFieldName).href = scAjaxSpecCharParser(sImgLink);
}
if (document.getElementById("chk_ajax_img_" + sFieldName))
{
document.getElementById("chk_ajax_img_" + sFieldName).style.display = ("" == oFieldValues[0]["value"]) ? "none" : "";
}
if ("" == oFieldValues[0]["value"] && document.F1.elements[sFieldName + "_limpa"])
{
document.F1.elements[sFieldName + "_limpa"].checked = false;
}
if ("N" == sKeepImg && document.getElementById("txt_ajax_img_" + sFieldName))
{
document.getElementById("txt_ajax_img_" + sFieldName).innerHTML = oFieldValues[0]["value"];
document.getElementById("txt_ajax_img_" + sFieldName).style.display = ("" == oFieldValues[0]["value"] || "S" == sHideName) ? "none" : "";
}
if ("" != sImgOrig)
{
eval("if (var_ajax_img_" + sFieldName + ") var_ajax_img_" + sFieldName + " = '" + sImgOrig + "';");
if (document.F1.elements["temp_out1_" + sFieldName])
{
document.F1.elements["temp_out_" + sFieldName].value = sImgFile;
document.F1.elements["temp_out1_" + sFieldName].value = sImgOrig;
}
else if (document.F1.elements["temp_out_" + sFieldName])
{
document.F1.elements["temp_out_" + sFieldName].value = sImgOrig;
}
}
if ("" != oFieldValues[0]["value"])
{
if (document.F1.elements[sFieldName + "_salva"]) document.F1.elements[sFieldName + "_salva"].value = oFieldValues[0]["value"];
}
else if (oResp && oResp["ajaxRequest"] && "navigate_form" == oResp["ajaxRequest"])
{
if (document.F1.elements[sFieldName + "_salva"]) document.F1.elements[sFieldName + "_salva"].value = "";
}
scAjaxSetReadonlyValue(sFieldName, scAjaxSpecCharParser(oFieldValues[0]["value"]));
} // scAjaxSetFieldImage
function scAjaxSetFieldDocument(sFieldName, oFieldValues, sDocLink, sDocIcon, sClearUpload)
{
if (!document.F1.elements[sFieldName] && !document.F1.elements[sFieldName + "[]"])
{
return;
}
document.getElementById("id_ajax_doc_" + sFieldName).innerHTML = scAjaxSpecCharParser(sDocLink);
if (document.getElementById("id_ajax_doc_icon_" + sFieldName))
{
document.getElementById("id_ajax_doc_icon_" + sFieldName).src = scAjaxSpecCharParser(sDocIcon);
}
if ("" == oFieldValues[0]["value"])
{
document.getElementById("chk_ajax_img_" + sFieldName).style.display = "none";
document.getElementById("id_ajax_doc_" + sFieldName).style.display = "none";
}
else
{
document.getElementById("chk_ajax_img_" + sFieldName).style.display = "";
document.getElementById("id_ajax_doc_" + sFieldName).style.display = "";
}
if ("" == oFieldValues[0]["value"] && document.F1.elements[sFieldName + "_limpa"])
{
document.F1.elements[sFieldName + "_limpa"].checked = false;
}
if ("S" == sClearUpload && document.F1.elements[sFieldName + "_ul_name"])
{
document.F1.elements[sFieldName + "_ul_name"].value = "";
}
if ("" != sDocLink)
{
scAjaxSetReadonlyValue(sFieldName, sDocLink);
}
else
{
scAjaxSetReadonlyValue(sFieldName, scAjaxSpecCharParser(oFieldValues[0]["value"]));
}
} // scAjaxSetFieldDocument
function scAjaxSetFieldInnerHtml(sFieldName, oFieldValues)
{
if (document.getElementById(sFieldName))
{
document.getElementById(sFieldName).innerHTML = scAjaxSpecCharParser(oFieldValues[0]["value"]);
}
} // scAjaxSetFieldInnerHtml
function scAjaxSetFieldMultiUpload(sFieldName, sMULHtml)
{
if (!document.F1.elements[sFieldName] && !document.F1.elements[sFieldName + "[]"])
{
return;
}
$("#id_sc_loaded_" + sFieldName).html(scAjaxSpecCharParser(sMULHtml));
} // scAjaxSetFieldMultiUpload
function scAjaxExecFieldEditorHtml(strOption, bolUI, oField)
{
if(tinymce.majorVersion > 3)
{
if(strOption == 'mceAddControl')
{
tinymce.execCommand('mceAddEditor', bolUI, oField);
}else
if(strOption == 'mceRemoveControl')
{
tinymce.execCommand('mceRemoveEditor', bolUI, oField);
}
}
else
{
tinyMCE.execCommand(strOption, bolUI, oField);
}
}
function scAjaxSetFieldEditorHtml(sFieldName, oFieldValues)
{
if (!document.F1.elements[sFieldName])
{
return;
}
if(tinymce.majorVersion > 3)
{
var oFormField = tinyMCE.get(sFieldName);
}
else
{
var oFormField = tinyMCE.getInstanceById(sFieldName);
}
oFormField.setContent(scAjaxSpecCharParser(oFieldValues[0]["value"]));
scAjaxSetReadonlyValue(sFieldName, scAjaxSpecCharParser(oFieldValues[0]["value"]));
} // scAjaxSetFieldEditorHtml
function scAjaxSetFieldImageHtml(sFieldName, oFieldValues, sImgHtml)
{
if (document.getElementById("id_imghtml_" + sFieldName))
{
document.getElementById("id_imghtml_" + sFieldName).innerHTML = scAjaxSpecCharParser(sImgHtml);
}
} // scAjaxSetFieldEditorHtml
function scAjaxSetCheckboxOptions(sFieldName, oFieldValues)
{
if (!document.F1.elements[sFieldName] && !document.F1.elements[sFieldName + "[]"] && !document.F1.elements[sFieldName + "[0]"])
{
return;
}
var aValues = new Array();
if (null != oFieldValues)
{
for (iFieldSelect = 0; iFieldSelect < oFieldValues.length; iFieldSelect++)
{
aValues[iFieldSelect] = scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);
}
}
if (document.F1.elements[sFieldName + "[]"])
{
var oFormField = document.F1.elements[sFieldName + "[]"];
if (oFormField.length)
{
for (iFieldCheckbox = 0; iFieldCheckbox < oFormField.length; iFieldCheckbox++)
{
if (scAjaxInArray(oFormField[iFieldCheckbox].value, aValues))
{
oFormField[iFieldCheckbox].checked = true;
}
else
{
oFormField[iFieldCheckbox].checked = false;
}
}
}
else
{
if (scAjaxInArray(oFormField.value, aValues))
{
oFormField.checked = true;
}
else
{
oFormField.checked = false;
}
}
}
else if (document.F1.elements[sFieldName + "[0]"])
{
for (iFieldCheckbox = 0; iFieldCheckbox < document.F1.elements.length; iFieldCheckbox++)
{
oFormElement = document.F1.elements[iFieldCheckbox];
if (sFieldName + "[" == oFormElement.name.substr(0, sFieldName.length + 1) && scAjaxInArray(oFormElement.value, aValues))
{
oFormElement.checked = true;
}
else if (sFieldName + "[" == oFormElement.name.substr(0, sFieldName.length + 1))
{
oFormElement.checked = false;
}
}
}
else
{
oFormElement = document.F1.elements[sFieldName];
if (scAjaxInArray(oFormElement.value, aValues))
{
oFormElement.checked = true;
}
else
{
oFormElement.checked = false;
}
}
} // scAjaxSetCheckboxOptions
function scAjaxSetRadioOptions(sFieldName, oFieldValues)
{
if (!document.F1.elements[sFieldName])
{
return;
}
var oFormField = document.F1.elements[sFieldName];
var aValues = new Array();
if (null != oFieldValues)
{
for (iFieldSelect = 0; iFieldSelect < oFieldValues.length; iFieldSelect++)
{
aValues[iFieldSelect] = scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);
}
}
for (iFieldRadio = 0; iFieldRadio < oFormField.length; iFieldRadio++)
{
if (scAjaxInArray(oFormField[iFieldRadio].value, aValues))
{
oFormField[iFieldRadio].checked = true;
}
}
} // scAjaxSetRadioOptions
function scAjaxSetReadonlyValue(sFieldName, sFieldValue)
{
if (document.getElementById("id_read_on_" + sFieldName))
{
document.getElementById("id_read_on_" + sFieldName).innerHTML = sFieldValue;
}
} // scAjaxSetReadonlyValue
function scAjaxSetReadonlyArrayValue(sFieldName, oFieldValues, sDelim)
{
if (null == oFieldValues)
{
return;
}
if (null == sDelim)
{
sDelim = " ";
}
sReadLabel = "";
for (iReadArray = 0; iReadArray < oFieldValues.length; iReadArray++)
{
if (oFieldValues[iReadArray]["label"])
{
if ("" != sReadLabel)
{
sReadLabel += sDelim;
}
sReadLabel += oFieldValues[iReadArray]["label"];
}
else if (oFieldValues[iReadArray]["value"])
{
if ("" != sReadLabel)
{
sReadLabel += sDelim;
}
sReadLabel += oFieldValues[iReadArray]["value"];
}
}
scAjaxSetReadonlyValue(sFieldName, sReadLabel);
} // scAjaxSetReadonlyArrayValue
function scAjaxGetFieldValue(sFieldGet)
{
sValue = "";
if (!oResp["fldList"])
{
return sValue;
}
for (iFieldValue = 0; iFieldValue < oResp["fldList"].length; iFieldValue++)
{
var sFieldName = oResp["fldList"][iFieldValue]["fldName"];
if (oResp["fldList"][iFieldValue]["valList"])
{
var oFieldValues = oResp["fldList"][iFieldValue]["valList"];
if (0 == oFieldValues.length)
{
oFieldValues = null;
}
}
else
{
var oFieldValues = null;
}
if (sFieldGet == sFieldName && null != oFieldValues)
{
if (1 == oFieldValues.length)
{
sValue = scAjaxSpecCharParser(oFieldValues[0]["value"]);
}
else
{
sValue = new Array();
for (jFieldValue = 0; jFieldValue < oFieldValues.length; jFieldValue++)
{
sValue[jFieldValue] = scAjaxSpecCharParser(oFieldValues[jFieldValue]["value"]);
}
}
}
}
return sValue;
} // scAjaxGetFieldValue
function scAjaxGetKeyValue(sFieldGet)
{
sValue = "";
if (!oResp["fldList"])
{
return sValue;
}
for (iKeyValue = 0; iKeyValue < oResp["fldList"].length; iKeyValue++)
{
var sFieldName = oResp["fldList"][iKeyValue]["fldName"];
if (sFieldGet == sFieldName)
{
if (oResp["fldList"][iKeyValue]["keyVal"])
{
return scAjaxSpecCharParser(oResp["fldList"][iKeyValue]["keyVal"]);
}
else
{
return scAjaxGetFieldValue(sFieldGet);
}
}
}
return sValue;
} // scAjaxGetKeyValue
function scAjaxGetLineNumber()
{
sLineNumber = "";
if (oResp["errList"])
{
for (iLineNumber = 0; iLineNumber < oResp["errList"].length; iLineNumber++)
{
if (oResp["errList"][iLineNumber]["numLinha"])
{
sLineNumber = oResp["errList"][iLineNumber]["numLinha"];
}
}
return sLineNumber;
}
if (oResp["fldList"])
{
return oResp["fldList"][0]["numLinha"];
}
if (oResp["msgDisplay"])
{
return oResp["msgDisplay"]["numLinha"];
}
return sLineNumber;
} // scAjaxGetLineNumber
function scAjaxFieldExists(sFieldGet)
{
bExists = false;
if (!oResp["fldList"])
{
return bExists;
}
for (iFieldValue = 0; iFieldValue < oResp["fldList"].length; iFieldValue++)
{
var sFieldName = oResp["fldList"][iFieldValue]["fldName"];
if (oResp["fldList"][iFieldValue]["valList"])
{
var oFieldValues = oResp["fldList"][iFieldValue]["valList"];
if (0 == oFieldValues.length)
{
oFieldValues = null;
}
}
else
{
var oFieldValues = null;
}
if (sFieldGet == sFieldName && null != oFieldValues)
{
bExists = true;
}
}
return bExists;
} // scAjaxFieldExists
function scAjaxGetFieldText(sFieldName)
{
$oHidden = $("input[name=" + sFieldName + "]");
if ($oHidden.length)
{
for (var i = 0; i < $oHidden.length; i++)
{
if ("hidden" == $oHidden[i].type && $oHidden[i].form && $oHidden[i].form.name && "F1" == $oHidden[i].form.name)
{
return scAjaxSpecCharProtect($oHidden[i].value);//.replace(/[+]/g, "__NM_PLUS__");
}
}
}
$oField = $("#id_sc_field_" + sFieldName);
if ($oField.length && "select" != $oField[0].type.substr(0, 6))
{
return scAjaxSpecCharProtect($oField.val());//.replace(/[+]/g, "__NM_PLUS__");
}
else if (document.F1.elements[sFieldName])
{
return scAjaxSpecCharProtect(document.F1.elements[sFieldName].value);//.replace(/[+]/g, "__NM_PLUS__");
}
else
{
return '';
}
} // scAjaxGetFieldText
function scAjaxGetFieldHidden(sFieldName)
{
for( i= 0; i < document.F1.elements.length; i++)
{
if (document.F1.elements[i].name == sFieldName)
{
return scAjaxSpecCharProtect(document.F1.elements[i].value);//.replace(/[+]/g, "__NM_PLUS__");
}
}
// return document.F1.elements[sFieldName].value.replace(/[+]/g, "__NM_PLUS__");
} // scAjaxGetFieldHidden
function scAjaxGetFieldSelect(sFieldName)
{
sFieldNameHtml = sFieldName;
if (!document.F1.elements[sFieldName] && !document.F1.elements[sFieldName + "[]"])
{
return "";
}
if (!document.F1.elements[sFieldName] && document.F1.elements[sFieldName + "[]"])
{
sFieldNameHtml += "[]";
}
if ("hidden" == document.F1.elements[sFieldNameHtml].type)
{
return scAjaxGetFieldHidden(sFieldNameHtml);
}
var oFormField = document.F1.elements[sFieldNameHtml];
var iSelected = oFormField.selectedIndex;
if (-1 < iSelected)
{
return scAjaxSpecCharProtect(oFormField.options[iSelected].value);//.replace(/[+]/g, "__NM_PLUS__");
}
else
{
return "";
}
} // scAjaxGetFieldSelect
function scAjaxGetFieldSelectMult(sFieldName, sFieldDelim)
{
sFieldNameHtml = sFieldName;
if (!document.F1.elements[sFieldName] && document.F1.elements[sFieldName + "[]"])
{
sFieldNameHtml += "[]";
}
if ("hidden" == document.F1.elements[sFieldNameHtml].type)
{
return scAjaxGetFieldHidden(sFieldNameHtml);
}
var oFormField = document.F1.elements[sFieldNameHtml];
var sFieldVals = "";
for (iFieldSelect = 0; iFieldSelect < oFormField.length; iFieldSelect++)
{
if (oFormField[iFieldSelect].selected)
{
if ("" != sFieldVals)
{
sFieldVals += sFieldDelim;
}
sFieldVals += scAjaxSpecCharProtect(oFormField[iFieldSelect].value);//.replace(/[+]/g, "__NM_PLUS__");
}
}
return sFieldVals;
} // scAjaxGetFieldSelectMult
function scAjaxGetFieldCheckbox(sFieldName, sDelim)
{
var aValues = new Array();
var sValue = "";
if (!document.F1.elements[sFieldName] && !document.F1.elements[sFieldName + "[]"] && !document.F1.elements[sFieldName + "[0]"])
{
return sValue;
}
if (document.F1.elements[sFieldName + "[]"] && "hidden" == document.F1.elements[sFieldName + "[]"].type)
{
return scAjaxGetFieldHidden(sFieldName + "[]");
}
if (document.F1.elements[sFieldName] && "hidden" == document.F1.elements[sFieldName].type)
{
return scAjaxGetFieldHidden(sFieldName);
}
if (document.F1.elements[sFieldName + "[]"])
{
var oFormField = document.F1.elements[sFieldName + "[]"];
if (oFormField.length)
{
for (iFieldCheck = 0; iFieldCheck < oFormField.length; iFieldCheck++)
{
if (oFormField[iFieldCheck].checked)
{
aValues[aValues.length] = oFormField[iFieldCheck].value;
}
}
}
else
{
if (oFormField.checked)
{
aValues[aValues.length] = oFormField.value;
}
}
}
else
{
for (iFieldCheck = 0; iFieldCheck < document.F1.elements.length; iFieldCheck++)
{
oFormElement = document.F1.elements[iFieldCheck];
if (sFieldName + "[" == oFormElement.name.substr(0, sFieldName.length + 1) && oFormElement.checked)
{
aValues[aValues.length] = oFormElement.value;
}
else if (sFieldName == oFormElement.name && oFormElement.checked)
{
aValues[aValues.length] = oFormElement.value;
}
}
}
for (iFieldCheck = 0; iFieldCheck < aValues.length; iFieldCheck++)
{
sValue += scAjaxSpecCharProtect(aValues[iFieldCheck]);//.replace(/[+]/g, "__NM_PLUS__");
if (iFieldCheck + 1 != aValues.length)
{
sValue += sDelim;
}
}
return sValue;
} // scAjaxGetFieldCheckbox
function scAjaxGetFieldRadio(sFieldName)
{
if ("hidden" == document.F1.elements[sFieldName].type)
{
return scAjaxGetFieldHidden(sFieldName);
}
var sValue = "";
if (!document.F1.elements[sFieldName])
{
return sValue;
}
var oFormField = document.F1.elements[sFieldName];
if (!oFormField.length)
{
var sc_cmp_radio = eval("document.F1." + sFieldName);
if (sc_cmp_radio.checked)
{
sValue = scAjaxSpecCharProtect(sc_cmp_radio.value);//.replace(/[+]/g, "__NM_PLUS__");
}
}
else
{
for (iFieldRadio = 0; iFieldRadio < oFormField.length; iFieldRadio++)
{
if (oFormField[iFieldRadio].checked)
{
sValue = scAjaxSpecCharProtect(oFormField[iFieldRadio].value);//.replace(/[+]/g, "__NM_PLUS__");
}
}
}
return sValue;
} // scAjaxGetFieldRadio
function scAjaxGetFieldEditorHtml(sFieldName)
{
if ("hidden" == document.F1.elements[sFieldName].type)
{
return scAjaxGetFieldHidden(sFieldName);
}
var sValue = "";
if (!document.F1.elements[sFieldName])
{
return sValue;
}
if(tinymce.majorVersion > 3)
{
var oFormField = tinyMCE.get(sFieldName);
}
else
{
var oFormField = tinyMCE.getInstanceById(sFieldName);
}
return scAjaxSpecCharParser(scAjaxSpecCharProtect(oFormField.getContent()));//.replace(/[+]/g, "__NM_PLUS__"));
} // scAjaxGetFieldEditorHtml
function scAjaxDoNothing(e)
{
} // scAjaxDoNothing
function scAjaxInArray(mVal, aList)
{
for (iInArray = 0; iInArray < aList.length; iInArray++)
{
if (aList[iInArray] == mVal)
{
return true;
}
}
return false;
} // scAjaxInArray
function scAjaxSpecCharParser(sParseString)
{
if (null == sParseString) {
return "";
}
var ta = document.createElement("textarea");
ta.innerHTML = sParseString.replace(/</g, "<").replace(/>/g, ">");
return ta.value;
} // scAjaxSpecCharParser
function scAjaxSpecCharProtect(sOriginal)
{
var sProtected;
sProtected = sOriginal.replace(/[+]/g, "__NM_PLUS__");
sProtected = sProtected.replace(/[%]/g, "__NM_PERC__");
return sProtected;
} // scAjaxSpecCharProtect
function scAjaxRecreateOptions(sFieldType, sHtmlType, sFieldName, oFieldValues, oFieldOptions, iColNum, sHtmComp, sOptComp, sOptClass, sOptMulti)
{
var sSuffix = ("checkbox" == sHtmlType) ? "[]" : "";
var sDivName = "idAjax" + sFieldType + "_" + sFieldName;
var sDivText = "";
var iCntLine = 0;
var aValues = new Array();
var sClass;
if (null != oFieldValues)
{
for (iRecreate = 0; iRecreate < oFieldValues.length; iRecreate++)
{
aValues[iRecreate] = scAjaxSpecCharParser(oFieldValues[iRecreate]["value"]);
}
}
sDivText += "<table border=0>";
for (iRecreate = 0; iRecreate < oFieldOptions.length; iRecreate++)
{
sOptText = scAjaxSpecCharParser(oFieldOptions[iRecreate]["label"]);
sOptValue = scAjaxSpecCharParser(oFieldOptions[iRecreate]["value"]);
if (0 == iCntLine)
{
sDivText += "<tr>";
}
iCntLine++;
if ("" != sOptClass)
{
sClass = " class=\"" + sOptClass;
if ("" != sOptMulti)
{
sClass += " " + sOptClass + sOptMulti;
}
sClass += "\"";
}
if (sHtmComp == null)
{
sHtmComp = "";
}
sChecked = (scAjaxInArray(sOptValue, aValues)) ? " checked" : "";
sDivText += "<td class=\"scFormDataFontOdd\">";
sDivText += "<input type=\"" + sHtmlType + "\" name=\"" + sFieldName + sSuffix + "\" value=\"" + sOptValue + "\"" + sChecked + " " + sHtmComp + " " + sOptComp + sClass + ">";
sDivText += sOptText;
sDivText += "</td>";
if (iColNum == iCntLine)
{
sDivText += "</tr>";
iCntLine = 0;
}
}
sDivText += "</table>";
document.getElementById(sDivName).innerHTML = sDivText;
} // scAjaxRecreateOptions
function scAjaxProcOn(bForce)
{
if (null == bForce)
{
bForce = false;
}
if (document.getElementById("id_div_process"))
{
if ($ && $.blockUI && !bForce)
{
$.blockUI({
message: $("#id_div_process_block"),
overlayCSS: { backgroundColor: sc_ajaxBg },
css: {
borderColor: sc_ajaxBordC,
borderStyle: sc_ajaxBordS,
borderWidth: sc_ajaxBordW
}
});
}
else
{
document.getElementById("id_div_process").style.display = "";
document.getElementById("id_fatal_error").style.display = "none";
if (null != scCenterElement)
{
scCenterElement(document.getElementById("id_div_process"));
}
}
}
} // scAjaxProcOn
function scAjaxProcOff(bForce)
{
if (null == bForce)
{
bForce = false;
}
if (document.getElementById("id_div_process"))
{
if ($ && $.unblockUI && !bForce)
{
$.unblockUI();
}
else
{
document.getElementById("id_div_process").style.display = "none";
}
}
} // scAjaxProcOff
function scAjaxSetMaster()
{
if (!oResp["masterValue"])
{
return;
}
if (!parent || !parent.scAjaxDetailValue)
{
return;
}
for (iMaster = 0; iMaster < oResp["masterValue"].length; iMaster++)
{
parent.scAjaxDetailValue(oResp["masterValue"][iMaster]["index"], oResp["masterValue"][iMaster]["value"]);
}
} // scAjaxSetMaster
function scAjaxSetFocus()
{
if (!oResp["setFocus"] && '' == scFocusFirstErrorName)
{
return;
}
sFieldName = oResp["setFocus"];
if (document.F1.elements[sFieldName])
{
scFocusField(sFieldName);
}
scAjaxFocusError();
} // scAjaxSetFocus
function scAjaxFocusError()
{
if ('' != scFocusFirstErrorName)
{
scFocusField(scFocusFirstErrorName);
scFocusFirstErrorName = '';
}
} // scAjaxFocusError
function scAjaxSetNavStatus(sBarPos)
{
if (!oResp["navStatus"])
{
return;
}
sNavRet = "S";
sNavAva = "S";
if (oResp["navStatus"]["ret"])
{
sNavRet = oResp["navStatus"]["ret"];
}
if (oResp["navStatus"]["ava"])
{
sNavAva = oResp["navStatus"]["ava"];
}
if ("S" != sNavRet && "N" != sNavRet)
{
sNavRet = "S";
}
if ("S" != sNavAva && "N" != sNavAva)
{
sNavAva = "S";
}
Nav_permite_ret = sNavRet;
Nav_permite_ava = sNavAva;
nav_atualiza(Nav_permite_ret, Nav_permite_ava, sBarPos);
} // scAjaxSetNavStatus
function scAjaxSetSummary()
{
if (!oResp["navSummary"])
{
return;
}
sreg_ini = oResp["navSummary"].reg_ini;
sreg_qtd = oResp["navSummary"].reg_qtd;
sreg_tot = oResp["navSummary"].reg_tot;
summary_atualiza(sreg_ini, sreg_qtd, sreg_tot);
} // scAjaxSetSummary
function scAjaxSetNavpage()
{
navpage_atualiza(oResp["navPage"]);
} // scAjaxSetNavpage
function scAjaxRedir(oTemp)
{
if (oTemp && oTemp != null)
{
oResp = oTemp;
}
if (!oResp["redirInfo"])
{
return;
}
sMetodo = oResp["redirInfo"]["metodo"];
sAction = oResp["redirInfo"]["action"];
if ("location" == sMetodo)
{
if ("parent.parent" == oResp["redirInfo"]["target"])
{
parent.parent.location = sAction;
}
else if ("parent" == oResp["redirInfo"]["target"])
{
parent.location = sAction;
}
else if ("_blank" == oResp["redirInfo"]["target"])
{
window.open(sAction, "_blank");
}
else
{
document.location = sAction;
}
}
else if ("html" == sMetodo)
{
document.write(scAjaxSpecCharParser(oResp["redirInfo"]["action"]));
}
else
{
if (oResp["redirInfo"]["target"] == "modal")
{
tb_show('', sAction + '?script_case_init=' + oResp["redirInfo"]["script_case_init"] + '&script_case_session=d1llh22ahbgg5pl9qe6ci0ldd3&nmgp_parms=' + oResp["redirInfo"]["nmgp_parms"] + '&nmgp_outra_jan=true&nmgp_url_saida=modal&NMSC_modal=ok&TB_iframe=true&modal=true&height=' + oResp["redirInfo"]["h_modal"] + '&width=' + oResp["redirInfo"]["w_modal"], '');
return;
}
sFormRedir = (oResp["redirInfo"]["nmgp_outra_jan"]) ? "form_ajax_redir_1" : "form_ajax_redir_2";
document.forms[sFormRedir].action = sAction;
document.forms[sFormRedir].target = oResp["redirInfo"]["target"];
document.forms[sFormRedir].nmgp_parms.value = oResp["redirInfo"]["nmgp_parms"];
if ("form_ajax_redir_1" == sFormRedir)
{
document.forms[sFormRedir].nmgp_outra_jan.value = oResp["redirInfo"]["nmgp_outra_jan"];
}
else
{
document.forms[sFormRedir].nmgp_url_saida.value = oResp["redirInfo"]["nmgp_url_saida"];
document.forms[sFormRedir].script_case_init.value = oResp["redirInfo"]["script_case_init"];
}
document.forms[sFormRedir].submit();
}
} // scAjaxRedir
function scAjaxSetDisplay(bReset)
{
if (null == bReset)
{
bReset = false;
}
var aDispData = new Array();
var aDispCont = {};
if (bReset)
{
for (iDisplay = 0; iDisplay < ajax_block_list.length; iDisplay++)
{
aDispCont[ajax_block_list[iDisplay]] = aDispData.length;
aDispData[aDispData.length] = new Array(ajax_block_id[ajax_block_list[iDisplay]], "on");
}
for (iDisplay = 0; iDisplay < ajax_field_list.length; iDisplay++)
{
if (ajax_field_id[ajax_field_list[iDisplay]])
{
aFieldIds = ajax_field_id[ajax_field_list[iDisplay]];
for (iDisplay2 = 0; iDisplay2 < aFieldIds.length; iDisplay2++)
{
aDispCont[aFieldIds[iDisplay2]] = aDispData.length;
aDispData[aDispData.length] = new Array(aFieldIds[iDisplay2], "on");
}
}
}
}
if (oResp["blockDisplay"])
{
for (iDisplay = 0; iDisplay < oResp["blockDisplay"].length; iDisplay++)
{
if (bReset)
{
aDispData[ aDispCont[ oResp["blockDisplay"][iDisplay][0] ] ][1] = oResp["blockDisplay"][iDisplay][1];
}
else
{
aDispData[aDispData.length] = new Array(ajax_block_id[ oResp["blockDisplay"][iDisplay][0] ], oResp["blockDisplay"][iDisplay][1]);
}
}
}
if (oResp["fieldDisplay"])
{
for (iDisplay = 0; iDisplay < oResp["fieldDisplay"].length; iDisplay++)
{
for (iDisplay2 = 1; iDisplay2 < ajax_field_mult[ oResp["fieldDisplay"][iDisplay][0] ].length; iDisplay2++)
{
aFieldIds = ajax_field_id[ ajax_field_mult[ oResp["fieldDisplay"][iDisplay][0] ][iDisplay2] ];
for (iDisplay3 = 0; iDisplay3 < aFieldIds.length; iDisplay3++)
{
if (bReset)
{
aDispData[ aDispCont[ aFieldIds[iDisplay3] ] ][1] = oResp["fieldDisplay"][iDisplay][1];
}
else
{
aDispData[aDispData.length] = new Array(aFieldIds[iDisplay3], oResp["fieldDisplay"][iDisplay][1]);
}
}
}
}
}
if (oResp["buttonDisplay"])
{
for (iDisplay = 0; iDisplay < oResp["buttonDisplay"].length; iDisplay++)
{
var sBtnName2 = "";
switch (oResp["buttonDisplay"][iDisplay][0])
{
case "first": var sBtnName = "sc_b_ini"; break;
case "back": var sBtnName = "sc_b_ret"; break;
case "forward": var sBtnName = "sc_b_avc"; break;
case "last": var sBtnName = "sc_b_fim"; break;
case "insert": var sBtnName = "sc_b_ins"; break;
case "update": var sBtnName = "sc_b_upd"; break;
case "delete": var sBtnName = "sc_b_del"; break;
default: var sBtnName = "sc_b_" + oResp["buttonDisplay"][iDisplay][0]; sBtnName2 = "sc_" + oResp["buttonDisplay"][iDisplay][0]; break;
}
if ("sc_b_ini" == sBtnName || "sc_b_ret" == sBtnName || "sc_b_avc" == sBtnName || "sc_b_fim" == sBtnName)
{
scAjaxNavigateButtonDisplay(sBtnName, oResp["buttonDisplay"][iDisplay][1]);
}
else
{
aDispData[aDispData.length] = new Array(sBtnName, oResp["buttonDisplay"][iDisplay][1]);
aDispData[aDispData.length] = new Array(sBtnName + "_t", oResp["buttonDisplay"][iDisplay][1]);
aDispData[aDispData.length] = new Array(sBtnName + "_b", oResp["buttonDisplay"][iDisplay][1]);
}
if ("" != sBtnName2)
{
aDispData[aDispData.length] = new Array(sBtnName2, oResp["buttonDisplay"][iDisplay][1]);
aDispData[aDispData.length] = new Array(sBtnName2 + "_top", oResp["buttonDisplay"][iDisplay][1]);
aDispData[aDispData.length] = new Array(sBtnName2 + "_bot", oResp["buttonDisplay"][iDisplay][1]);
}
}
}
for (iDisplay = 0; iDisplay < aDispData.length; iDisplay++)
{
scAjaxElementDisplay(aDispData[iDisplay][0], aDispData[iDisplay][1]);
}
} // scAjaxSetDisplay
function scAjaxNavigateButtonDisplay(sButton, sStatus)
{
sButton2 = sButton + "_off";
if ("off" == sStatus)
{
sStatus2 = "off";
}
else
{
if ("sc_b_ini" == sButton || "sc_b_ret" == sButton)
{
if ("S" == Nav_permite_ret)
{
sStatus = "on";
sStatus2 = "off";
}
else
{
sStatus = "off";
sStatus2 = "on";
}
}
else
{
if ("S" == Nav_permite_ava)
{
sStatus = "on";
sStatus2 = "off";
}
else
{
sStatus = "off";
sStatus2 = "on";
}
}
}
scAjaxElementDisplay(sButton , sStatus);
scAjaxElementDisplay(sButton + "_t" , sStatus);
scAjaxElementDisplay(sButton + "_b" , sStatus);
scAjaxElementDisplay(sButton2 , sStatus2);
scAjaxElementDisplay(sButton2 + "_t", sStatus2);
scAjaxElementDisplay(sButton2 + "_b", sStatus2);
} // scAjaxNavigateButtonDisplay
function scAjaxElementDisplay(sElement, sAction)
{
sStyle = ("off" == sAction) ? "none" : "";
if (ajax_block_tab && ajax_block_tab[sElement] && "" != ajax_block_tab[sElement])
{
scAjaxElementDisplay(ajax_block_tab[sElement], sAction);
}
if (document.getElementById(sElement))
{
document.getElementById(sElement).style.display = sStyle;
if (document.getElementById(sElement + "_dumb"))
{
document.getElementById(sElement + "_dumb").style.display = ("off" == sAction) ? "" : "none";
}
}
} // scAjaxElementDisplay
function scAjaxSetLabel(bReset)
{
if (null == bReset)
{
bReset = false;
}
if (bReset)
{
for (iLabel = 0; iLabel < ajax_field_list.length; iLabel++)
{
if (ajax_field_list[iLabel] && ajax_error_list[ajax_field_list[iLabel]])
{
scAjaxFieldLabel(ajax_field_list[iLabel], ajax_error_list[ajax_field_list[iLabel]]["label"]);
}
}
}
if (oResp["fieldLabel"])
{
for (iLabel = 0; iLabel < oResp["fieldLabel"].length; iLabel++)
{
scAjaxFieldLabel(oResp["fieldLabel"][iLabel][0], scAjaxSpecCharParser(oResp["fieldLabel"][iLabel][1]));
}
}
} // scAjaxSetLabel
function scAjaxFieldLabel(sField, sLabel)
{
if (document.getElementById("id_label_" + sField) && document.getElementById("id_label_" + sField).innerHTML != sLabel)
{
document.getElementById("id_label_" + sField).innerHTML = sLabel;
}
} // scAjaxFieldLabel
function scAjaxSetReadonly(bReset)
{
if (null == bReset)
{
bReset = false;
}
if (bReset)
{
for (iRead = 0; iRead < ajax_field_list.length; iRead++)
{
scAjaxFieldRead(ajax_field_list[iRead], ajax_read_only[ajax_field_list[iRead]]);
}
for (iRead = 0; iRead < ajax_field_Dt_Hr.length; iRead++)
{
scAjaxFieldRead(ajax_field_Dt_Hr[iRead], ajax_read_only[ajax_field_Dt_Hr[iRead]]);
}
}
if (oResp["readOnly"])
{
for (iRead = 0; iRead < oResp["readOnly"].length; iRead++)
{
if (ajax_read_only[ oResp["readOnly"][iRead][0] ])
{
scAjaxFieldRead(oResp["readOnly"][iRead][0], oResp["readOnly"][iRead][1]);
}
else if (oResp["rsSize"])
{
for (var i = 0; i <= oResp["rsSize"]; i++)
{
if (ajax_read_only[ oResp["readOnly"][iRead][0] + i ])
{
scAjaxFieldRead(oResp["readOnly"][iRead][0] + i, oResp["readOnly"][iRead][1]);
}
}
}
}
}
} // scAjaxSetReadonly
function scAjaxFieldRead(sField, sStatus)
{
if ("on" == sStatus)
{
var sDisplayOff = "none";
var sDisplayOn = "";
}
else
{
var sDisplayOff = "";
var sDisplayOn = "none";
}
if (document.getElementById("id_read_off_" + sField))
{
document.getElementById("id_read_off_" + sField).style.display = sDisplayOff;
}
if (document.getElementById("id_read_on_" + sField))
{
document.getElementById("id_read_on_" + sField).style.display = sDisplayOn;
}
} // scAjaxFieldRead
function scAjaxSetBtnVars()
{
if (oResp["btnVars"])
{
for (iBtn = 0; iBtn < oResp["btnVars"].length; iBtn++)
{
eval(oResp["btnVars"][iBtn][0] + " = scAjaxSpecCharParser('" + oResp["btnVars"][iBtn][1] + "');");
}
}
} // scAjaxSetBtnVars
function scAjaxClearText(sFormField)
{
document.F1.elements[sFormField].value = "";
} // scAjaxClearText
function scAjaxClearLabel(sFormField)
{
document.getElementById("id_ajax_label_" + sFormField).innerHTML = "";
} // scAjaxClearLabel
function scAjaxClearSelect(sFormField)
{
document.F1.elements[sFormField].length = 0;
} // scAjaxClearSelect
function scAjaxClearCheckbox(sFormField)
{
document.getElementById("idAjaxCheckbox_" + sFormField).innerHTML = "";
} // scAjaxClearCheckbox
function scAjaxClearRadio(sFormField)
{
document.getElementById("idAjaxRadio_" + sFormField).innerHTML = "";
} // scAjaxClearRadio
function scAjaxClearEditorHtml(sFormField)
{
if(tinymce.majorVersion > 3)
{
var oFormField = tinyMCE.get(sFieldName);
}
else
{
var oFormField = tinyMCE.getInstanceById(sFieldName);
}
oFormField.setContent("");
} // scAjaxClearEditorHtml
function scAjaxJavascript()
{
if (oResp["ajaxJavascript"])
{
var sJsFunc = "";
for (var i = 0; i < oResp["ajaxJavascript"].length; i++)
{
sJsFunc = scAjaxSpecCharParser(oResp["ajaxJavascript"][i][0]);
if ("" != sJsFunc)
{
var aParam = new Array();
if (oResp["ajaxJavascript"][i][1] && 0 < oResp["ajaxJavascript"][i][1].length)
{
for (var j = 0; j < oResp["ajaxJavascript"][i][1].length; j++)
{
aParam.push("'" + oResp["ajaxJavascript"][i][1][j] + "'");
}
}
eval("if (" + sJsFunc + ") { " + sJsFunc + "(" + aParam.join(", ") + ") }");
}
}
}
} // scAjaxJavascript
function scAjaxAlert()
{
if (oResp["ajaxAlert"] && oResp["ajaxAlert"]["message"] && "" != oResp["ajaxAlert"]["message"])
{
alert(oResp["ajaxAlert"]["message"]);
}
} // scAjaxAlert
function scAjaxMessage(oTemp)
{
if (oTemp && oTemp != null)
{
oResp = oTemp;
}
if (oResp["ajaxMessage"] && oResp["ajaxMessage"]["message"] && "" != oResp["ajaxMessage"]["message"])
{
var sTitle = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["title"]) ? oResp["ajaxMessage"]["title"] : scMsgDefTitle,
bModal = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["modal"]) ? ("Y" == oResp["ajaxMessage"]["modal"]) : false,
iTimeout = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["timeout"]) ? parseInt(oResp["ajaxMessage"]["timeout"]) : 0,
bButton = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["button"]) ? ("Y" == oResp["ajaxMessage"]["button"]) : false,
sButton = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["button_label"]) ? oResp["ajaxMessage"]["button_label"] : "Ok",
iTop = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["top"]) ? parseInt(oResp["ajaxMessage"]["top"]) : 0,
iLeft = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["left"]) ? parseInt(oResp["ajaxMessage"]["left"]) : 0,
iWidth = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["width"]) ? parseInt(oResp["ajaxMessage"]["width"]) : 0,
iHeight = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["height"]) ? parseInt(oResp["ajaxMessage"]["height"]) : 0,
bClose = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["show_close"]) ? ("Y" == oResp["ajaxMessage"]["show_close"]) : true,
bBodyIcon = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["body_icon"]) ? ("Y" == oResp["ajaxMessage"]["body_icon"]) : true,
sRedir = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["redir"]) ? oResp["ajaxMessage"]["redir"] : "",
sTarget = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["redir_target"]) ? oResp["ajaxMessage"]["redir_target"] : "",
sParam = (oResp["ajaxMessage"] && oResp["ajaxMessage"]["redir_par"]) ? oResp["ajaxMessage"]["redir_par"] : "";
_scAjaxShowMessage(sTitle, oResp["ajaxMessage"]["message"], bModal, iTimeout, bButton, sButton, iTop, iLeft, iWidth, iHeight, sRedir, sTarget, sParam, bClose, bBodyIcon);
}
} // scAjaxAlert
function scAjaxResponse(sResp)
{
eval("var oResp = " + sResp);
return oResp;
} // scAjaxResponse
function scAjaxBreakLine(input)
{
if (null == input)
{
return "";
}
input += "";
while (input.lastIndexOf(String.fromCharCode(10)) > -1)
{
input = input.replace(String.fromCharCode(10), '<br>');
}
return input;
} // scAjaxBreakLine
function scAjaxProtectBreakLine(input)
{
if (null == input)
{
return "";
}
var input1 = input + "";
while (input1.lastIndexOf(String.fromCharCode(10)) > -1)
{
input1 = input1.replace(String.fromCharCode(10), '#@NM#@');
}
return input1;
} // scAjaxProtectBreakLine
function scAjaxReturnBreakLine(input)
{
if (null == input)
{
return "";
}
while (input.lastIndexOf('#@NM#@') > -1)
{
input = input.replace('#@NM#@', String.fromCharCode(10));
}
return input;
} // scAjaxReturnBreakLine
// ---------- Validate documento
function do_ajax_ctrAcesso_validate_documento()
{
var nomeCampo_documento = "documento";
var var_documento = scAjaxGetFieldText(nomeCampo_documento);
var var_script_case_init = document.F1.script_case_init.value;
x_ajax_ctrAcesso_validate_documento(var_documento, var_script_case_init, do_ajax_ctrAcesso_validate_documento_cb);
} // do_ajax_ctrAcesso_validate_documento
function do_ajax_ctrAcesso_validate_documento_cb(sResp)
{
oResp = scAjaxResponse(sResp);
sFieldValid = "documento";
scEventControl_onBlur(sFieldValid);
scAjaxUpdateFieldErrors(sFieldValid, "valid");
sAppErrors = scAjaxListErrors(true);
if ("" == sAppErrors)
{
var sImgStatus = sc_img_status_ok;
scAjaxHideErrorDisplay("table");
}
else
{
var sImgStatus = sc_img_status_err;
scAjaxShowErrorDisplay("table", sAppErrors);
}
var $oImg = $('#id_sc_status_' + sFieldValid);
if (0 < $oImg.length)
{
$oImg.attr('src', sImgStatus).css('display', '');
}
scAjaxShowDebug();
scAjaxSetMaster();
scAjaxSetFocus();
} // do_ajax_ctrAcesso_validate_documento_cb
// ---------- Validate inscricao
function do_ajax_ctrAcesso_validate_inscricao()
{
var nomeCampo_inscricao = "inscricao";
var var_inscricao = scAjaxGetFieldText(nomeCampo_inscricao);
var var_script_case_init = document.F1.script_case_init.value;
x_ajax_ctrAcesso_validate_inscricao(var_inscricao, var_script_case_init, do_ajax_ctrAcesso_validate_inscricao_cb);
} // do_ajax_ctrAcesso_validate_inscricao
function do_ajax_ctrAcesso_validate_inscricao_cb(sResp)
{
oResp = scAjaxResponse(sResp);
sFieldValid = "inscricao";
scEventControl_onBlur(sFieldValid);
scAjaxUpdateFieldErrors(sFieldValid, "valid");
sAppErrors = scAjaxListErrors(true);
if ("" == sAppErrors)
{
var sImgStatus = sc_img_status_ok;
scAjaxHideErrorDisplay("table");
}
else
{
var sImgStatus = sc_img_status_err;
scAjaxShowErrorDisplay("table", sAppErrors);
}
var $oImg = $('#id_sc_status_' + sFieldValid);
if (0 < $oImg.length)
{
$oImg.attr('src', sImgStatus).css('display', '');
}
scAjaxShowDebug();
scAjaxSetMaster();
scAjaxSetFocus();
} // do_ajax_ctrAcesso_validate_inscricao_cb
// ---------- Event onchange documento
function do_ajax_ctrAcesso_event_documento_onchange()
{
var var_documento = scAjaxGetFieldText("documento");
var var_inscricao = scAjaxGetFieldText("inscricao");
var var_script_case_init = document.F2.script_case_init.value;
scAjaxProcOn(true);
scEventControl_onChange_call("documento", "");
x_ajax_ctrAcesso_event_documento_onchange(var_documento, var_inscricao, var_script_case_init, do_ajax_ctrAcesso_event_documento_onchange_cb);
} // do_ajax_ctrAcesso_event_documento_onchange
function do_ajax_ctrAcesso_event_documento_onchange_cb(sResp)
{
scAjaxProcOff(true);
oResp = scAjaxResponse(sResp);
sFieldValid = "documento";
scEventControl_onChange(sFieldValid);
scAjaxUpdateFieldErrors(sFieldValid, "onchange");
sAppErrors = scAjaxListErrors(true);
if ("" == sAppErrors)
{
scAjaxHideErrorDisplay("table");
}
else
{
scAjaxShowErrorDisplay("table", sAppErrors);
}
if (!scAjaxHasError())
{
scAjaxSetFields();
}
scAjaxShowDebug();
scAjaxSetDisplay();
scAjaxSetLabel();
scAjaxSetReadonly();
scAjaxSetMaster();
scAjaxAlert();
scAjaxMessage();
scAjaxJavascript();
scAjaxSetFocus();
scAjaxRedir();
} // do_ajax_ctrAcesso_event_documento_onchange_cb
// ---------- Form
function do_ajax_ctrAcesso_submit_form()
{
if (scEventControl_active("")) {
setTimeout(function() { do_ajax_ctrAcesso_submit_form(); }, 500);
return;
}
scAjaxHideMessage();
var var_documento = scAjaxGetFieldText("documento");
var var_inscricao = scAjaxGetFieldText("inscricao");
var var_nm_form_submit = document.F1.nm_form_submit.value;
var var_nmgp_url_saida = document.F1.nmgp_url_saida.value;
var var_nmgp_opcao = document.F1.nmgp_opcao.value;
var var_nmgp_ancora = document.F1.nmgp_ancora.value;
var var_nmgp_num_form = document.F1.nmgp_num_form.value;
var var_nmgp_parms = document.F1.nmgp_parms.value;
var var_script_case_init = document.F1.script_case_init.value;
var var_csrf_token = scAjaxGetFieldText("csrf_token");
scAjaxProcOn();
x_ajax_ctrAcesso_submit_form(var_documento, var_inscricao, var_nm_form_submit, var_nmgp_url_saida, var_nmgp_opcao, var_nmgp_ancora, var_nmgp_num_form, var_nmgp_parms, var_script_case_init, var_csrf_token, do_ajax_ctrAcesso_submit_form_cb);
} // do_ajax_ctrAcesso_submit_form
function do_ajax_ctrAcesso_submit_form_cb(sResp)
{
scAjaxProcOff();
oResp = scAjaxResponse(sResp);
scAjaxCalendarReload();
scAjaxUpdateErrors("valid");
sAppErrors = scAjaxListErrors(true);
if ("" == sAppErrors)
{
$('.sc-js-ui-statusimg').css('display', 'none');
scAjaxHideErrorDisplay("table");
}
else
{
scAjaxShowErrorDisplay("table", sAppErrors);
}
if (scAjaxIsOk())
{
scAjaxShowMessage();
scAjaxHideErrorDisplay("table");
scLigEditLookupCall();
}
Nm_Proc_Atualiz = false;
if (!scAjaxHasError())
{
scAjaxSetFields();
scAjaxSetMaster();
if (scInlineFormSend())
{
self.parent.tb_remove();
return;
}
}
scAjaxShowDebug();
scAjaxSetDisplay();
scAjaxSetLabel();
scAjaxSetReadonly();
scAjaxAlert();
scAjaxMessage();
scAjaxJavascript();
scAjaxSetFocus();
scAjaxRedir();
if (hasJsFormOnload)
{
sc_form_onload();
}
} // do_ajax_ctrAcesso_submit_form_cb
var scStatusDetail = {};
function do_ajax_ctrAcesso_navigate_form()
{
if (scRefreshTable())
{
return;
}
} // do_ajax_ctrAcesso_navigate_form
function do_ajax_ctrAcesso_navigate_form_cb(sResp)
{
scAjaxProcOff();
oResp = scAjaxResponse(sResp);
if (oResp['empty_filter'] && oResp['empty_filter'] == "ok")
{
document.F5.nmgp_opcao.value = "inicio";
document.F5.nmgp_parms.value = "";
document.F5.submit();
}
sc_mupload_ok = true;
scAjaxSetFields();
scAjaxShowDebug();
scAjaxSetLabel(true);
scAjaxSetReadonly(true);
scAjaxSetMaster();
scAjaxSetNavStatus("b");
scAjaxSetDisplay(true);
scAjaxSetBtnVars();
$('.sc-js-ui-statusimg').css('display', 'none');
scAjaxAlert();
scAjaxMessage();
scAjaxJavascript();
scFocusField('documento');
scAjaxSetFocus();
if (hasJsFormOnload)
{
sc_form_onload();
}
} // do_ajax_ctrAcesso_navigate_form_cb
function sc_hide_ctrAcesso_form()
{
for (var block_id in ajax_block_id) {
$("#div_" + ajax_block_id[block_id]).hide();
}
} // sc_hide_ctrAcesso_form
function scAjaxDetailProc()
{
return true;
} // scAjaxDetailProc
var ajax_error_geral = "";
var ajax_error_type = new Array("valid", "onblur", "onchange", "onclick", "onfocus");
var ajax_field_list = new Array();
var ajax_field_Dt_Hr = new Array();
ajax_field_list[0] = "documento";
ajax_field_list[1] = "inscricao";
var ajax_block_list = new Array();
ajax_block_list[0] = "0";
var ajax_error_list = {
"documento": {"label": "CNPJ/CPF da Empresa", "valid": new Array(), "onblur": new Array(), "onchange": new Array(), "onclick": new Array(), "onfocus": new Array(), "timeout": 5},
"inscricao": {"label": "Inscrição", "valid": new Array(), "onblur": new Array(), "onchange": new Array(), "onclick": new Array(), "onfocus": new Array(), "timeout": 5}
};
var ajax_error_timeout = 5;
var ajax_block_id = {
"0": "hidden_bloco_0"
};
var ajax_block_tab = {
"hidden_bloco_0": ""
};
var ajax_field_mult = {
"documento": new Array(),
"inscricao": new Array()
};
ajax_field_mult["documento"][1] = "documento";
ajax_field_mult["inscricao"][1] = "inscricao";
var ajax_field_id = {
"documento": new Array("hidden_field_label_documento", "hidden_field_data_documento"),
"inscricao": new Array("hidden_field_label_inscricao", "hidden_field_data_inscricao")
};
var ajax_read_only = {
"documento": "off",
"inscricao": "off"
};
var bRefreshTable = false;
function scRefreshTable()
{
return false;
}
function scAjaxDetailValue(sIndex, sValue)
{
var aValue = new Array();
aValue[0] = {"value" : sValue};
if ("documento" == sIndex)
{
scAjaxSetFieldText(sIndex, aValue);
updateHeaderFooter(sIndex, aValue);
return;
}
if ("inscricao" == sIndex)
{
scAjaxSetFieldText(sIndex, aValue);
updateHeaderFooter(sIndex, aValue);
return;
}
scAjaxSetFieldInnerHtml(sIndex, aValue);
}
</SCRIPT>]]>
|
2885
| <![CDATA[<script type="text/javascript">
if (document.getElementById("id_error_display_fixed"))
{
scCenterFixedElement("id_error_display_fixed");
}
var posDispLeft = 0;
var posDispTop = 0;
var Nm_Proc_Atualiz = false;
function findPos(obj)
{
var posCurLeft = posCurTop = 0;
if (obj.offsetParent)
{
posCurLeft = obj.offsetLeft
posCurTop = obj.offsetTop
while (obj = obj.offsetParent)
{
posCurLeft += obj.offsetLeft
posCurTop += obj.offsetTop
}
}
posDispLeft = posCurLeft - 10;
posDispTop = posCurTop + 30;
}
var Nav_permite_ret = "S";
var Nav_permite_ava = "S";
var Nav_binicio = "button";
var Nav_binicio_off = "button";
var Nav_bavanca = "button";
var Nav_bavanca_off = "button";
var Nav_bretorna = "button";
var Nav_bretorna_off = "button";
var Nav_bfinal = "button";
var Nav_bfinal_off = "button";
function nav_atualiza(str_ret, str_ava, str_pos)
{
if ('S' == str_ret)
{
}
else
{
}
if ('S' == str_ava)
{
}
else
{
}
}
function nav_liga_img()
{
sExt = sImg.substr(sImg.length - 4);
sImg = sImg.substr(0, sImg.length - 4);
if ('_off' == sImg.substr(sImg.length - 4))
{
sImg = sImg.substr(0, sImg.length - 4);
}
sImg += sExt;
}
function nav_desliga_img()
{
sExt = sImg.substr(sImg.length - 4);
sImg = sImg.substr(0, sImg.length - 4);
if ('_off' != sImg.substr(sImg.length - 4))
{
sImg += '_off';
}
sImg += sExt;
}
function scJQGeneralAdd() {
$('input:text.sc-js-input').listen();
$('input:password.sc-js-input').listen();
$('input:checkbox.sc-js-input').listen();
$('input:radio.sc-js-input').listen();
$('select.sc-js-input').listen();
$('textarea.sc-js-input').listen();
} // scJQGeneralAdd
function scFocusField(sField) {
var $oField = $('#id_sc_field_' + sField);
if (0 == $oField.length) {
$oField = $('input[name=' + sField + ']');
}
if (0 == $oField.length && document.F1.elements[sField]) {
$oField = $(document.F1.elements[sField]);
}
if (false == scSetFocusOnField($oField) && $("#id_ac_" + sField).length > 0) {
if (false == scSetFocusOnField($("#id_ac_" + sField))) {
setTimeout(function () { scSetFocusOnField($("#id_ac_" + sField)); }, 500);
}
}
else {
setTimeout(function() { scSetFocusOnField($oField); }, 500);
}
} // scFocusField
function scSetFocusOnField($oField) {
if ($oField.length > 0 && $oField[0].offsetHeight > 0 && $oField[0].offsetWidth > 0 && !$oField[0].disabled) {
$oField[0].focus();
return true;
}
return false;
} // scSetFocusOnField
function scEventControl_init(iSeqRow) {
scEventControl_data["documento" + iSeqRow] = {"blur": false, "change": false, "autocomp": false, "original": ""};
scEventControl_data["inscricao" + iSeqRow] = {"blur": false, "change": false, "autocomp": false, "original": ""};
}
function scEventControl_active(iSeqRow) {
if (scEventControl_data["documento" + iSeqRow]["blur"]) {
return true;
}
if (scEventControl_data["documento" + iSeqRow]["change"]) {
return true;
}
if (scEventControl_data["inscricao" + iSeqRow]["blur"]) {
return true;
}
if (scEventControl_data["inscricao" + iSeqRow]["change"]) {
return true;
}
return false;
} // scEventControl_active
function scEventControl_onFocus(oField, iSeq) {
var fieldId, fieldName;
fieldId = $(oField).attr("id");
fieldName = fieldId.substr(12);
scEventControl_data[fieldName]["blur"] = true;
scEventControl_data[fieldName]["change"] = false;
} // scEventControl_onFocus
function scEventControl_onBlur(sFieldName) {
scEventControl_data[sFieldName]["blur"] = false;
if (scEventControl_data[sFieldName]["change"]) {
if (scEventControl_data[sFieldName]["original"] == $("#id_sc_field_" + sFieldName).val()) {
scEventControl_data[sFieldName]["change"] = false;
}
}
} // scEventControl_onBlur
function scEventControl_onChange(sFieldName) {
scEventControl_data[sFieldName]["change"] = false;
} // scEventControl_onChange
function scEventControl_onChange_call(sFieldName, iFieldSeq) {
var oField, fieldId, fieldName;
oField = $("#id_sc_field_" + sFieldName + iFieldSeq);
fieldId = oField.attr("id");
fieldName = fieldId.substr(12);
if ("documento" + iFieldSeq == fieldName) {
scEventControl_data[fieldName]["change"] = true;
scEventControl_data[fieldName]["original"] = oField.val();
return;
}
} // scEventControl_onChange
function scEventControl_onAutocomp(sFieldName) {
scEventControl_data[sFieldName]["autocomp"] = false;
} // scEventControl_onChange
var scEventControl_data = {};
function scJQEventsAdd(iSeqRow) {
$('#id_sc_field_documento' + iSeqRow).bind('blur', function() { sc_ctrAcesso_documento_onblur(this, iSeqRow) })
.bind('change', function() { sc_ctrAcesso_documento_onchange(this, iSeqRow) })
.bind('focus', function() { sc_ctrAcesso_documento_onfocus(this, iSeqRow) });
$('#id_sc_field_inscricao' + iSeqRow).bind('blur', function() { sc_ctrAcesso_inscricao_onblur(this, iSeqRow) })
.bind('focus', function() { sc_ctrAcesso_inscricao_onfocus(this, iSeqRow) });
} // scJQEventsAdd
function sc_ctrAcesso_documento_onblur(oThis, iSeqRow) {
do_ajax_ctrAcesso_validate_documento();
scCssBlur(oThis);
}
function sc_ctrAcesso_documento_onchange(oThis, iSeqRow) {
do_ajax_ctrAcesso_event_documento_onchange();
}
function sc_ctrAcesso_documento_onfocus(oThis, iSeqRow) {
scEventControl_onFocus(oThis, iSeqRow);
scCssFocus(oThis);
}
function sc_ctrAcesso_inscricao_onblur(oThis, iSeqRow) {
do_ajax_ctrAcesso_validate_inscricao();
scCssBlur(oThis);
}
function sc_ctrAcesso_inscricao_onfocus(oThis, iSeqRow) {
scEventControl_onFocus(oThis, iSeqRow);
scCssFocus(oThis);
}
function scJQPopupAdd(iSeqRow) {
$('.scFormPopupBubble' + iSeqRow).each(function() {
var distance = 10;
var time = 250;
var hideDelay = 500;
var hideDelayTimer = null;
var beingShown = false;
var shown = false;
var trigger = $('.scFormPopupTrigger', this);
var info = $('.scFormPopup', this).css('opacity', 0);
$([trigger.get(0), info.get(0)]).mouseover(function() {
if (hideDelayTimer) clearTimeout(hideDelayTimer);
if (beingShown || shown) {
// don't trigger the animation again
return;
} else {
// reset position of info box
beingShown = true;
info.css({
top: trigger.position().top - (info.height() - trigger.height()),
left: trigger.position().left - ((info.width() - trigger.width()) / 2),
display: 'block'
}).animate({
top: '-=' + distance + 'px',
opacity: 1
}, time, 'swing', function() {
beingShown = false;
shown = true;
});
}
return false;
}).mouseout(function() {
if (hideDelayTimer) clearTimeout(hideDelayTimer);
hideDelayTimer = setTimeout(function() {
hideDelayTimer = null;
info.animate({
top: '-=' + distance + 'px',
opacity: 0
}, time, 'swing', function() {
shown = false;
info.css('display', 'none');
});
}, hideDelay);
return false;
});
});
} // scJQPopupAdd
function scJQUploadAdd(iSeqRow) {
} // scJQUploadAdd
function scJQElementsAdd(iLine) {
scJQEventsAdd(iLine);
scEventControl_init(iLine);
scJQPopupAdd(iLine);
scJQUploadAdd(iLine);
} // scJQElementsAdd
var scQSInit = true;
var scQSPos = {};
var Dyn_Ini = true;
$(function() {
scJQElementsAdd('');
scJQGeneralAdd();
scFocusField('documento');
$(document).bind('drop dragover', function (e) {
e.preventDefault();
});
var i, iTestWidth, iMaxLabelWidth = 0, $labelList = $(".scUiLabelWidthFix");
for (i = 0; i < $labelList.length; i++) {
iTestWidth = $($labelList[i]).width();
sTestWidth = iTestWidth + "";
if ("" == iTestWidth) {
iTestWidth = 0;
}
else if ("px" == sTestWidth.substr(sTestWidth.length - 2)) {
iTestWidth = parseInt(sTestWidth.substr(0, sTestWidth.length - 2));
}
iMaxLabelWidth = Math.max(iMaxLabelWidth, iTestWidth);
}
if (0 < iMaxLabelWidth) {
$(".scUiLabelWidthFix").css("width", iMaxLabelWidth + "px");
}
});
$(window).load(function() {
});
if($(".sc-ui-block-control").length) {
preloadBlock = new Image();
preloadBlock.src = "/reabertura_empresas/_lib/img/" + sc_blockExp;
}
var show_block = {
};
function toggleBlock(e) {
var block = e.data.block,
block_id = $(block).attr("id");
block_img = $("#" + block_id + " .sc-ui-block-control");
if (1 >= block.rows.length) {
return;
}
show_block[block_id] = !show_block[block_id];
if (show_block[block_id]) {
$(block).css("height", "100%");
if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockCol));
}
else {
$(block).css("height", "");
if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockExp));
}
for (var i = 1; i < block.rows.length; i++) {
if (show_block[block_id])
$(block.rows[i]).show();
else
$(block.rows[i]).hide();
}
if (show_block[block_id]) {
}
}
function changeImgName(imgOld, imgNew) {
var aOld = imgOld.split("/");
aOld.pop();
aOld.push(imgNew);
return aOld.join("/");
}
</script>]]>
|
3231
| <![CDATA[<script type="text/javascript">
function NM_tp_critica(TP)
{
if (TP == 0 || TP == 1 || TP == 2)
{
nmdg_tipo_crit = TP;
}
}
</script>]]>
|
3286
| <![CDATA[<script type="text/javascript">
NM_tp_critica(1);
function nm_gp_submit(apl_lig, apl_saida, parms, opc, target, modal_h, modal_w, apl_name)
{
if (target == 'modal')
{
par_modal = '?script_case_init=8394&script_case_session=d1llh22ahbgg5pl9qe6ci0ldd3&nmgp_outra_jan=true&nmgp_url_saida=modal';
if (opc != null && opc != '')
{
par_modal += '&nmgp_opcao=grid';
}
if (parms != null && parms != '')
{
par_modal += '&nmgp_parms=' + parms;
}
tb_show('', apl_lig + par_modal + '&TB_iframe=true&modal=true&height=' + modal_h + '&width=' + modal_w, '');
return;
}
document.F3.target = "_self";
document.F3.action = apl_lig ;
if (opc != null && opc != "")
{
document.F3.nmgp_opcao.value = "grid" ;
}
else
{
document.F3.nmgp_opcao.value = "" ;
}
if (target != null && target == '_blank')
{
document.F3.nmgp_outra_jan.value = "true" ;
document.F3.target = target;
}
document.F3.nmgp_url_saida.value = apl_saida ;
document.F3.nmgp_parms.value = parms ;
document.F3.submit() ;
}
function sc_inline_form(seqRow, keyParams, width, height)
{
var callParams = "", i, listParams = keyParams.split(",");
for (i = 0; i < listParams.length; i++)
{
callParams += listParams[i] + "*scin" + $("#id_sc_field_" + listParams[i] + seqRow).val() + "*scout";
}
nm_gp_submit('/reabertura_empresas/ctrAcesso/ctrAcesso_inline.php', '/reabertura_empresas/ctrAcesso/', 'NM_btn_insert*scinN*scoutNM_btn_update*scinS*scoutNM_btn_delete*scinN*scoutNM_btn_navega*scinN*scoutNMSC_modal*scinok*scoutsc_redir_atualiz*scinok*scoutsc_inline_call*scinY*scoutsc_seq_row*scin' + seqRow + '*scout' + callParams, '', 'modal', height, width);
}
function scInlineFormReceive(oResponse, iLine)
{
var i;
oResp = oResponse;
if (oResp["fldList"])
{
for (i = 0; i < oResp["fldList"].length; i++)
{
oResp["fldList"][i].fldName += iLine;
}
}
scAjaxSetFields();
scAjaxRedir();
}
function scInlineFormSend()
{
return false;
}
function nm_move(x, y, z)
{
if (Nm_Proc_Atualiz)
{
return;
}
if (("inicio" == x || "retorna" == x) && "S" != Nav_permite_ret)
{
return;
}
if (("avanca" == x || "final" == x) && "S" != Nav_permite_ava)
{
return;
}
document.F2.nmgp_opcao.value = x;
document.F2.nmgp_ordem.value = y;
document.F2.nmgp_clone.value = "";
if ("apl_detalhe" == x)
{
document.F2.nmgp_opcao.value = 'igual';
document.F2.master_nav.value = 'on';
if (z)
{
document.F2.sc_ifr_height.value = z;
}
document.F2.submit();
return;
}
if ("clone" == x)
{
x = "novo";
document.F2.nmgp_clone.value = "S";
document.F2.nmgp_opcao.value = x;
}
if ("novo" == x || "edit_novo" == x)
{
document.F2.nmgp_parms.value = "";
document.F2.submit();
}
else
{
do_ajax_ctrAcesso_navigate_form();
}
}
var sc_mupload_ok = true;
function nm_atualiza(x, y)
{
if (!sc_mupload_ok)
{
if (!confirm("Ainda existem uploads remanescentes. Salvar o registro antes do upload vai descartar os mesmos. Deseja continuar?"))
{
return;
}
sc_mupload_ok = true;
}
var Nm_submit_ok = true;
if (Nm_Proc_Atualiz)
{
return;
}
if (!scAjaxDetailProc())
{
return;
}
document.F1.nmgp_parms.value = "";
document.F1.target = "_self";
if (x == "muda_form")
{
document.F1.nmgp_num_form.value = y;
}
document.F1.nmgp_opcao.value = x;
document.F1.submit();
if (Nm_submit_ok)
{
Nm_Proc_Atualiz = true;
}
}
function nm_saida_glo()
{
document.F4.target = "_self";
document.F4.action = "ctrAcesso_fim.php";
document.F4.submit();
}
function nm_mostra_img(imagem, altura, largura)
{
tb_show('', imagem, '');
}
function nm_mostra_mens(campo)
{
NovaJanela = window.open ("ctrAcesso_help.php?nm_cod_campo=" + campo + "&language=../_lib/lang/pt_br&help_css=../_lib/css/Sc8_Ceropegia/Sc8_Ceropegia_form.css", "ScriptCase", "height=100, width=300, resizable, scrollbars");
}
function nm_recarga_form(nm_ult_ancora, nm_ult_page)
{
document.F1.target = "_self";
document.F1.nmgp_parms.value = "";
document.F1.nmgp_ancora.value= nm_ult_page;
document.F1.nmgp_ancora.value= nm_ult_page;
document.F1.nmgp_opcao.value= "recarga";
document.F1.action += "#" + nm_ult_ancora;
document.F1.submit();
}
function nm_link_url(Sc_url)
{
if (Sc_url.substr(0, 7) != 'http://' && Sc_url.substr(0, 8) != 'https://')
{
Sc_url = 'http://' + Sc_url;
}
return Sc_url;
}
function sc_trim(str, chars) {
return sc_ltrim(sc_rtrim(str, chars), chars);
}
function sc_ltrim(str, chars) {
chars = chars || "\\s";
return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
function sc_rtrim(str, chars) {
chars = chars || "\\s";
return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
var hasJsFormOnload = false;
function scCssFocus(oHtmlObj)
{
if (navigator.userAgent && 0 < navigator.userAgent.indexOf("MSIE") && "select" == oHtmlObj.type.substr(0, 6))
return;
$(oHtmlObj).addClass('scFormObjectFocusOdd')
.removeClass('scFormObjectOdd');
}
function scCssBlur(oHtmlObj)
{
if (navigator.userAgent && 0 < navigator.userAgent.indexOf("MSIE") && "select" == oHtmlObj.type.substr(0, 6))
return;
$(oHtmlObj).addClass('scFormObjectOdd')
.removeClass('scFormObjectFocusOdd');
}
function nm_submit_cap(apl_dest, parms)
{
document.FCAP.action = apl_dest;
document.FCAP.nmgp_parms.value = parms;
window.open('','jan_cap','location=no,menubar=no,resizable,scrollbars,status=no,toolbar=no');
document.FCAP.target = "jan_cap";
document.FCAP.submit();
}
</script>]]>
|
3504
| <![CDATA[<script type="text/javascript">
function setLocale(oSel)
{
var sLocale = "";
if (-1 < oSel.selectedIndex)
{
sLocale = oSel.options[oSel.selectedIndex].value;
}
document.F1.nmgp_idioma_novo.value = sLocale;
}
function setSchema(oSel)
{
var sLocale = "";
if (-1 < oSel.selectedIndex)
{
sLocale = oSel.options[oSel.selectedIndex].value;
}
document.F1.nmgp_schema_f.value = sLocale;
}
</script>]]>
|
3559
| <![CDATA[<script type="text/javascript">
var scMsgDefTitle = "";
var scMsgDefButton = "Ok";
var scMsgDefClick = "close";
var scMsgDefScInit = "";
</script>]]>
|
3692
| <![CDATA[<script>
function updateHeaderFooter(sFldName, sFldValue)
{
if (sFldValue[0] && sFldValue[0]["value"])
{
sFldValue = sFldValue[0]["value"];
}
}
</script>]]>
|
3701
| <![CDATA[<script>
bLigEditLookupCall = false;
function scLigEditLookupCall()
{
}
if (bLigEditLookupCall)
{
scLigEditLookupCall();
}
</script>]]>
|
3711
| <![CDATA[<script type="text/javascript">
$(function() {
$("#sc-id-mobile-in").mouseover(function() {
$(this).css("cursor", "pointer");
}).click(function() {
scMobileDisplayControl("in");
});
$("#sc-id-mobile-out").mouseover(function() {
$(this).css("cursor", "pointer");
}).click(function() {
scMobileDisplayControl("out");
});
});
function scMobileDisplayControl(sOption) {
$("#sc-id-mobile-control").val(sOption);
nm_atualiza("recarga_mobile");
}
</script>]]>
|