<?php
class billing_item_edit_grid_form extends billing_item_edit_grid_apl
{
function Form_Init()
{
   global $sc_seq_vert, $nm_apl_dependente, $opcao_botoes, $nm_url_saida; 
?>
<?php

if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output'])
{
    $sOBContents = ob_get_contents();
    ob_end_clean();
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

<html<?php echo $_SESSION['scriptcase']['reg_conf']['html_dir'] ?>>
<HEAD>
 <TITLE><?php if ('novo' == $this->nmgp_opcao) { echo strip_tags("Invoice Detail"); } else { echo strip_tags("Invoice Detail"); } ?></TITLE>
 <META http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['scriptcase']['charset_html'] ?>" />
 <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
 <META http-equiv="Last-Modified" content="<?php echo gmdate("D, d M Y H:i:s"); ?> GMT"/>
 <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>
 <META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/>
 <META http-equiv="Pragma" content="no-cache"/>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript">
  var sc_pathToTB = '<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/';
  var sc_blockCol = '<?php echo $this->Ini->Block_img_col; ?>';
  var sc_blockExp = '<?php echo $this->Ini->Block_img_exp; ?>';
  var sc_ajaxBg = '<?php echo $this->Ini->Color_bg_ajax; ?>';
  var sc_ajaxBordC = '<?php echo $this->Ini->Border_c_ajax; ?>';
  var sc_ajaxBordS = '<?php echo $this->Ini->Border_s_ajax; ?>';
  var sc_ajaxBordW = '<?php echo $this->Ini->Border_w_ajax; ?>';
  var sc_ajaxMsgTime = 2;
  var sc_img_status_ok = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_ok; ?>';
  var sc_img_status_err = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_err; ?>';
  var sc_css_status = '<?php echo $this->Ini->Css_status; ?>';
<?php
if ($this->Embutida_form && isset($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['sc_modal'] && isset($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['sc_redir_atualiz']) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['sc_redir_atualiz'] == 'ok')
{
?>
  var sc_closeChange = true;
<?php
}
else
{
?>
  var sc_closeChange = false;
<?php
}
?>
 </SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery-ui.js"></SCRIPT>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery/css/smoothness/jquery-ui.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.iframe-transport.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fileupload.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/thickbox/thickbox-compressed.js"></SCRIPT>
 <style type="text/css">
  #quicksearchph_t {
   position: relative;
  }
  #quicksearchph_t img {
   position: absolute;
   top: 0;
   right: 0;
  }
 </style>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.scInput.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fieldSelection.js"></SCRIPT>
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_form.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_tab.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/buttons/<?php echo $this->Ini->Str_btn_form . '/' . $this->Ini->Str_btn_form ?>.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar.css" />
<?php
include_once("../_lib/css/" . $this->Ini->str_schema_all . "_tab.php");
?>

<script>
var scFocusFirstErrorField = false;
var scFocusFirstErrorName  = "<?php echo $this->scFormFocusErrorName; ?>";
</script>

<?php
include_once("billing_item_edit_grid_sajax_js.php");
?>
<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 = "<?php if ($this->Nav_permite_ret) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_permite_ava = "<?php if ($this->Nav_permite_ava) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_binicio     = "<?php echo $this->arr_buttons['binicio']['type']; ?>";
var Nav_binicio_off = "<?php echo $this->arr_buttons['binicio_off']['type']; ?>";
var Nav_bavanca     = "<?php echo $this->arr_buttons['bavanca']['type']; ?>";
var Nav_bavanca_off = "<?php echo $this->arr_buttons['bavanca_off']['type']; ?>";
var Nav_bretorna    = "<?php echo $this->arr_buttons['bretorna']['type']; ?>";
var Nav_bretorna_off = "<?php echo $this->arr_buttons['bretorna_off']['type']; ?>";
var Nav_bfinal      = "<?php echo $this->arr_buttons['bfinal']['type']; ?>";
var Nav_bfinal_off  = "<?php echo $this->arr_buttons['bfinal_off']['type']; ?>";
function nav_atualiza(str_ret, str_ava, str_pos)
{
 if ('S' == str_ret)
 {
  if (Nav_binicio == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)){
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_binicio_off == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio_off']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna_off == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna_off']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 if ('S' == str_ava)
 {
  if (Nav_bavanca == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_bavanca_off == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca_off']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal_off == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal_off']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
}
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 summary_atualiza(reg_ini, reg_qtd, reg_tot)
{
    nm_sumario = "[<?php echo $this->Ini->Nm_lang['lang_othr_smry_info']?>]";
    nm_sumario = nm_sumario.replace("?start?", reg_ini);
    nm_sumario = nm_sumario.replace("?final?", reg_qtd);
    nm_sumario = nm_sumario.replace("?total?", reg_tot);
    if (reg_qtd < 1) {
        nm_sumario = "";
    }
    if (document.getElementById("sc_b_summary_b")) document.getElementById("sc_b_summary_b").innerHTML = nm_sumario;
}
function navpage_atualiza(str_navpage)
{
    if (document.getElementById("sc_b_navpage_b")) document.getElementById("sc_b_navpage_b").innerHTML = str_navpage;
}
<?php

include_once('billing_item_edit_grid_jquery.php');

?>

 var scQSInit = true;
 var scQSPos = {};
 $(function() {


  scJQGeneralAdd();

  $('#SC_fast_search_t').keyup(function(e) {
   scQuickSearchKeyUp('t', e);
  });

  $(document).bind('drop dragover', function (e) {
      e.preventDefault();
  });

<?php
if (!$this->NM_ajax_flag && isset($this->NM_non_ajax_info['ajaxJavascript']) && !empty($this->NM_non_ajax_info['ajaxJavascript']))
{
    foreach ($this->NM_non_ajax_info['ajaxJavascript'] as $aFnData)
    {
?>
  <?php echo $aFnData[0]; ?>(<?php echo implode(', ', $aFnData[1]); ?>);

<?php
    }
}
?>
 });

   $(window).load(function() {
     scQuickSearchInit(false, '');
     $('#SC_fast_search_t').listen();
     scQuickSearchKeyUp('t', null);
     scQSInit = false;
   });
   function scQuickSearchSubmit_t() {
     nm_move('fast_search', 't');
   }

   function scQuickSearchInit(bPosOnly, sPos) {
     if (!bPosOnly) {
       if ('' == sPos || 't' == sPos) scQuickSearchSize('SC_fast_search_t', 'SC_fast_search_close_t', 'SC_fast_search_submit_t', 'quicksearchph_t');
     }
   }
   function scQuickSearchSize(sIdInput, sIdClose, sIdSubmit, sPlaceHolder) {
     var oInput = $('#' + sIdInput),
         oClose = $('#' + sIdClose),
         oSubmit = $('#' + sIdSubmit),
         oPlace = $('#' + sPlaceHolder),
         iInputP = parseInt(oInput.css('padding-right')) || 0,
         iInputB = parseInt(oInput.css('border-right-width')) || 0,
         iInputW = oInput.outerWidth(),
         iPlaceW = oPlace.outerWidth(),
         oInputO = oInput.offset(),
         oPlaceO = oPlace.offset(),
         iNewRight;
     iNewRight = (iPlaceW - iInputW) - (oInputO.left - oPlaceO.left) + iInputB + 1;
     oInput.css({
       'height': Math.max(oInput.height(), 16) + 'px',
       'padding-right': iInputP + 16 + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px'
     });
     oClose.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
     oSubmit.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
   }
   function scQuickSearchKeyUp(sPos, e) {
     if ('' != scQSInitVal && $('#SC_fast_search_' + sPos).val() == scQSInitVal && scQSInit) {
       $('#SC_fast_search_close_' + sPos).show();
       $('#SC_fast_search_submit_' + sPos).hide();
     }
     else {
       $('#SC_fast_search_close_' + sPos).hide();
       $('#SC_fast_search_submit_' + sPos).show();
     }
     if (null != e) {
       var keyPressed = e.charCode || e.keyCode || e.which;
       if (13 == keyPressed) {
         if ('t' == sPos) scQuickSearchSubmit_t();
       }
     }
   }
 if($(".sc-ui-block-control").length) {
  preloadBlock = new Image();
  preloadBlock.src = "<?php echo $this->Ini->path_icones; ?>/" + 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>
</HEAD>
<?php
$str_iframe_body = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe']) ? 'margin: 2px;' : '';
 if (isset($_SESSION['nm_aba_bg_color']))
 {
     $this->Ini->cor_bg_grid = $_SESSION['nm_aba_bg_color'];
     $this->Ini->img_fun_pag = $_SESSION['nm_aba_bg_img'];
 }
if ($GLOBALS["erro_incl"] == 1)
{
    $this->nmgp_opcao = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['recarga'];
}
if ('novo' == $opcao_botoes && $this->Embutida_form)
{
    $opcao_botoes = 'inicio';
}
?>
<body class="scFormPage" style="<?php echo $str_iframe_body; ?>">
<?php

if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output'])
{
    echo $sOBContents;
}

?>
<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> 
<?php
 include_once("billing_item_edit_grid_js0.php");
?>
<script type="text/javascript" src="<?php echo str_replace("{str_idioma}", $this->Ini->str_lang, "../_lib/js/tab_erro_{str_idioma}.js"); ?>"> 
</script> 
<script type="text/javascript"> 
nmdg_enter_tab = true;
  sc_quant_excl = <?php echo count($sc_check_excl); ?>; 
 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="nmgp_opcao" value="">
<input type=hidden name="nmgp_ancora" value="">
<input type=hidden name="nmgp_num_form" value="<?php  echo NM_encode_input($nmgp_num_form); ?>">
<input type=hidden name="nmgp_parms" value="">
<input type=hidden name="script_case_init" value="<?php  echo NM_encode_input($this->Ini->sc_page); ?>"> 
<input type=hidden name="script_case_session" value="<?php  echo NM_encode_input(session_id()); ?>"> 
<?php
$int_iframe_padding = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['billing_item_edit_grid'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['billing_item_edit_grid'] = '' != $this->Ini->Err_ico_title ? $this->Ini->path_icones . '/' . $this->Ini->Err_ico_title : '';
?>
<div style="display: none; position: absolute" id="id_error_display_table_frame">
<table class="scFormErrorTable">
<tr><?php if ($this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><td style="padding: 0px" rowspan="2"><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top"></td><?php } ?><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%"><?php if (!$this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top">&nbsp;<?php } ?><?php echo $this->Ini->Nm_lang['lang_errm_errt'] ?></td><td style="padding: 0px; vertical-align: top"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideErrorDisplay('table')", "scAjaxHideErrorDisplay('table')", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
</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" 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"><?php
if ('' != $this->Ini->Msg_ico_title) {
?>
<img src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_title; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmessageclose", "_scAjaxMessageBtnClose()", "_scAjaxMessageBtnClose()", "id_message_display_close_icon", "", "", "float: right", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>
  </tr>
  <tr>
   <td class="scFormMessageMessage"><?php
if ('' != $this->Ini->Msg_ico_body) {
?>
<img id="id_message_display_body_icon" src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_body; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<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 = "<?php echo $this->Ini->Nm_lang['lang_usr_lang_othr_msgs_titl']; ?>";
var scMsgDefButton = "Ok";
var scMsgDefClick = "close";
var scMsgDefScInit = "<?php echo $this->Ini->page; ?>";
</script>
<table id="main_table_form"  align="left" cellpadding="<?php echo $int_iframe_padding; ?>" cellspacing=0 class="scFormBorder"  width="100%">
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['mostra_cab'] != "N"))
  {
?>
<tr><td>
<style>
#lin1_col1 { padding-left:9px; padding-top:7px;  height:27px; overflow:hidden; text-align:left;}			 
#lin1_col2 { padding-right:9px; padding-top:7px; height:27px; text-align:right; overflow:hidden;   font-size:12px; font-weight:normal;}
</style>

<div style="width: 100%">
 <div class="scFormHeader" style="height:11px; display: block; border-width:0px; "></div>
 <div style="height:37px; border-width:0px 0px 1px 0px;  border-style: dashed; border-color:#ddd; display: block">
 	<table style="width:100%; border-collapse:collapse; padding:0;">
    	<tr>
        	<td id="lin1_col1" class="scFormHeaderFont"><span><?php if ($this->nmgp_opcao == "novo") { echo "Invoice Detail"; } else { echo "Invoice Detail"; } ?></span></td>
            <td id="lin1_col2" class="scFormHeaderFont"><span><?php echo date($this->dateDefaultFormat()); ?></span></td>
        </tr>
    </table>		 
 </div>
</div>
</td></tr>
<?php
  }
?>
<tr><td>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R")
{
?>
    <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"> 
<?php
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($this->nmgp_botoes['qsearch'] == "on" && $opcao_botoes != "novo")
      {
          $OPC_cmp = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <input type="hidden" name="nmgp_fast_search_t" value="SC_all_Cmp">
          <input type="hidden" name="nmgp_cond_fast_search_t" value="qp">
          <script type="text/javascript">var scQSInitVal = "<?php echo $OPC_dat ?>";</script>
          <span id="quicksearchph_t">
           <input type="text" id="SC_fast_search_t" class="scFormToolbarInput" style="vertical-align: middle" name="nmgp_arg_fast_search_t" value="<?php echo NM_encode_input($OPC_dat) ?>" size="10" onChange="change_fast_t = 'CH';" alt="{watermark:'<?php echo $this->Ini->Nm_lang['lang_othr_qk_watermark'] ?>', watermarkClass: 'scFormToolbarInputWm', maxLength: 255}">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_close_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_clean; ?>" onclick="document.getElementById('SC_fast_search_t').value = ''; nm_move('fast_search', 't');">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_submit_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_search; ?>" onclick="scQuickSearchSubmit_t();">
          </span>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($this->Embutida_form) {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "do_ajax_billing_item_edit_grid_add_new_line(); return false;", "do_ajax_billing_item_edit_grid_add_new_line(); return false;", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!isset($this->Grid_editavel) || !$this->Grid_editavel) && (!$this->Embutida_form) && (!$this->Embutida_call || $this->Embutida_multi)) {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "nm_move ('novo'); return false;", "nm_move ('novo'); return false;", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!isset($this->Grid_editavel) || !$this->Grid_editavel) && (!$this->Embutida_form) && (!$this->Embutida_call || $this->Embutida_multi)) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bincluir", "nm_atualiza ('incluir'); return false;", "nm_atualiza ('incluir'); return false;", "sc_b_ins_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") && ($this->nm_flag_saida_novo != "S" || $this->nmgp_botoes['exit'] != "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bcancelar", "document.F5.submit();return false;", "document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!isset($this->Grid_editavel) || !$this->Grid_editavel) && (!$this->Embutida_form) && (!$this->Embutida_call || $this->Embutida_multi)) {
        $sCondStyle = ($this->nmgp_botoes['update'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "balterar", "nm_atualiza ('alterar'); return false;", "nm_atualiza ('alterar'); return false;", "sc_b_upd_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_0'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_0", "sc_btn_sc_btn_0()", "sc_btn_sc_btn_0()", "sc_sc_btn_0_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && ($opcao_botoes != "novo")) {
        $sCondStyle = ($this->nmgp_botoes['sc_btn_0'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "sc_btn_0", "sc_btn_sc_btn_0()", "sc_btn_sc_btn_0()", "sc_sc_btn_0_top", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ('' != $this->url_webhelp) {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bhelp", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && ($nm_apl_dependente != 1 || $this->nm_Start_new) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R") && (!$this->Embutida_call)) {
        $sCondStyle = (($this->nm_flag_saida_novo == "S" || ($this->nm_Start_new && !$this->aba_iframe)) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] == "R") && (!$this->Embutida_call)) {
        $sCondStyle = ($this->nm_flag_saida_novo == "S" && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && $nm_apl_dependente != 1 && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R" && (!$this->aba_iframe || $this->is_calendar_app) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente == 1 && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente != 1 || $this->nmgp_botoes['exit'] != "on") && (!$this->aba_iframe && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 't');</script><?php } ?>
</td></tr> 
<tr><td>
<?php
  if ($this->nmgp_form_empty)
  {
       echo "</td></tr><tr><td align=center>";
       echo "<font face=\"" . $this->Ini->pag_fonte_tipo . "\" color=\"" . $this->Ini->cor_txt_grid . "\" size=\"2\"><b>" . $this->Ini->Nm_lang['lang_errm_empt'] . "</b></font>";
       echo "</td></tr>";
       echo "<tr><td>";
  }
?>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_0"><!-- bloco_c -->
     <div id="SC_tab_mult_reg">
<?php
}

function Form_Table($Table_refresh = false)
{
   global $sc_seq_vert, $nm_apl_dependente, $opcao_botoes, $nm_url_saida; 
   if ($Table_refresh) 
   { 
       ob_start();
   }
?>
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;">   <tr>
<?php
$orderColName = '';
$orderColOrient = '';
?>
    <script type="text/javascript">
     var orderImgAsc = "<?php echo $this->Ini->path_img_global . "/" . $this->Ini->Label_sort_asc ?>";
     var orderImgDesc = "<?php echo $this->Ini->path_img_global . "/" . $this->Ini->Label_sort_desc ?>";
     var orderImgNone = "<?php echo $this->Ini->path_img_global . "/" . $this->Ini->Label_sort ?>";
     var orderColName = "";
     function scSetOrderColumn(clickedColumn) {
      $(".sc-ui-img-order-column").attr("src", orderImgNone);
      if (clickedColumn != orderColName) {
       orderColName = clickedColumn;
       orderColOrient = orderImgAsc;
      }
      else if ("" != orderColName) {
       orderColOrient = orderColOrient == orderImgAsc ? orderImgDesc : orderImgAsc;
      }
      else {
       orderColName = "";
       orderColOrient = "";
      }
      $("#sc-id-img-order-" + orderColName).attr("src", orderColOrient);
     }
    </script>
<?php
     $Col_span = "";


       if (!$this->Embutida_form && $this->nmgp_opcao != "novo" && $this->nmgp_botoes['delete'] == "on") { $Col_span = " colspan=2"; }
    if (!$this->Embutida_form && $this->nmgp_opcao == "novo") { $Col_span = " colspan=2"; }
 ?>

    <TD class="scFormLabelOddMult" style="display: none;" <?php echo $Col_span ?>> &nbsp; </TD>
   

   <?php if ($this->Embutida_form && $this->nmgp_botoes['insert'] == "on") {?>
    <TD class="scFormLabelOddMult"  width="10">  </TD>
   <?php }?>

   <?php if ($this->Embutida_form && $this->nmgp_botoes['insert'] != "on") {?>
    <TD class="scFormLabelOddMult"  width="10"> &nbsp; </TD>
   <?php }?>

   <?php if (isset($this->nmgp_cmp_hidden['invoice_']) && $this->nmgp_cmp_hidden['invoice_'] == 'off') { $sStyleHidden_invoice_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['invoice_']) || $this->nmgp_cmp_hidden['invoice_'] == 'on') {
      if (!isset($this->nm_new_label['invoice_'])) {
          $this->nm_new_label['invoice_'] = "INVOICE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_invoice_" style=";<?php echo $sStyleHidden_invoice_; ?>" > <?php echo $this->nm_new_label['invoice_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['item_']) && $this->nmgp_cmp_hidden['item_'] == 'off') { $sStyleHidden_item_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['item_']) || $this->nmgp_cmp_hidden['item_'] == 'on') {
      if (!isset($this->nm_new_label['item_'])) {
          $this->nm_new_label['item_'] = "ITEM"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_item_" style="text-align:right;<?php echo $sStyleHidden_item_; ?>" > <?php echo $this->nm_new_label['item_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['date_']) && $this->nmgp_cmp_hidden['date_'] == 'off') { $sStyleHidden_date_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['date_']) || $this->nmgp_cmp_hidden['date_'] == 'on') {
      if (!isset($this->nm_new_label['date_'])) {
          $this->nm_new_label['date_'] = "DATE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_date_" style=";<?php echo $sStyleHidden_date_; ?>" > <?php echo $this->nm_new_label['date_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['bcode_']) && $this->nmgp_cmp_hidden['bcode_'] == 'off') { $sStyleHidden_bcode_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['bcode_']) || $this->nmgp_cmp_hidden['bcode_'] == 'on') {
      if (!isset($this->nm_new_label['bcode_'])) {
          $this->nm_new_label['bcode_'] = "BCODE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_bcode_" style=";<?php echo $sStyleHidden_bcode_; ?>" > <?php echo $this->nm_new_label['bcode_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['lin_']) && $this->nmgp_cmp_hidden['lin_'] == 'off') { $sStyleHidden_lin_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['lin_']) || $this->nmgp_cmp_hidden['lin_'] == 'on') {
      if (!isset($this->nm_new_label['lin_'])) {
          $this->nm_new_label['lin_'] = "LIN"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_lin_" style=";<?php echo $sStyleHidden_lin_; ?>" > <?php echo $this->nm_new_label['lin_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['sq_']) && $this->nmgp_cmp_hidden['sq_'] == 'off') { $sStyleHidden_sq_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['sq_']) || $this->nmgp_cmp_hidden['sq_'] == 'on') {
      if (!isset($this->nm_new_label['sq_'])) {
          $this->nm_new_label['sq_'] = "SQ"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_sq_" style=";<?php echo $sStyleHidden_sq_; ?>" > <?php echo $this->nm_new_label['sq_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['style_']) && $this->nmgp_cmp_hidden['style_'] == 'off') { $sStyleHidden_style_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['style_']) || $this->nmgp_cmp_hidden['style_'] == 'on') {
      if (!isset($this->nm_new_label['style_'])) {
          $this->nm_new_label['style_'] = "STYLE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_style_" style=";<?php echo $sStyleHidden_style_; ?>" > <?php echo $this->nm_new_label['style_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['width_']) && $this->nmgp_cmp_hidden['width_'] == 'off') { $sStyleHidden_width_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['width_']) || $this->nmgp_cmp_hidden['width_'] == 'on') {
      if (!isset($this->nm_new_label['width_'])) {
          $this->nm_new_label['width_'] = "WIDTH"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_width_" style=";<?php echo $sStyleHidden_width_; ?>" > <?php echo $this->nm_new_label['width_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['color_']) && $this->nmgp_cmp_hidden['color_'] == 'off') { $sStyleHidden_color_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['color_']) || $this->nmgp_cmp_hidden['color_'] == 'on') {
      if (!isset($this->nm_new_label['color_'])) {
          $this->nm_new_label['color_'] = "COLOR"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_color_" style=";<?php echo $sStyleHidden_color_; ?>" > <?php echo $this->nm_new_label['color_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['cust_order_']) && $this->nmgp_cmp_hidden['cust_order_'] == 'off') { $sStyleHidden_cust_order_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['cust_order_']) || $this->nmgp_cmp_hidden['cust_order_'] == 'on') {
      if (!isset($this->nm_new_label['cust_order_'])) {
          $this->nm_new_label['cust_order_'] = "CUST ORDER"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_cust_order_" style=";<?php echo $sStyleHidden_cust_order_; ?>" > <?php echo $this->nm_new_label['cust_order_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['our_order_']) && $this->nmgp_cmp_hidden['our_order_'] == 'off') { $sStyleHidden_our_order_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['our_order_']) || $this->nmgp_cmp_hidden['our_order_'] == 'on') {
      if (!isset($this->nm_new_label['our_order_'])) {
          $this->nm_new_label['our_order_'] = "OUR ORDER"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_our_order_" style=";<?php echo $sStyleHidden_our_order_; ?>" > <?php echo $this->nm_new_label['our_order_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['price_']) && $this->nmgp_cmp_hidden['price_'] == 'off') { $sStyleHidden_price_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['price_']) || $this->nmgp_cmp_hidden['price_'] == 'on') {
      if (!isset($this->nm_new_label['price_'])) {
          $this->nm_new_label['price_'] = "PRICE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_price_" style=";<?php echo $sStyleHidden_price_; ?>" > <?php echo $this->nm_new_label['price_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['unit_']) && $this->nmgp_cmp_hidden['unit_'] == 'off') { $sStyleHidden_unit_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['unit_']) || $this->nmgp_cmp_hidden['unit_'] == 'on') {
      if (!isset($this->nm_new_label['unit_'])) {
          $this->nm_new_label['unit_'] = "UNIT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_unit_" style=";<?php echo $sStyleHidden_unit_; ?>" > <?php echo $this->nm_new_label['unit_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['amount_']) && $this->nmgp_cmp_hidden['amount_'] == 'off') { $sStyleHidden_amount_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['amount_']) || $this->nmgp_cmp_hidden['amount_'] == 'on') {
      if (!isset($this->nm_new_label['amount_'])) {
          $this->nm_new_label['amount_'] = "AMOUNT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_amount_" style="text-align:right;<?php echo $sStyleHidden_amount_; ?>" > <?php echo $this->nm_new_label['amount_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['descrip_']) && $this->nmgp_cmp_hidden['descrip_'] == 'off') { $sStyleHidden_descrip_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['descrip_']) || $this->nmgp_cmp_hidden['descrip_'] == 'on') {
      if (!isset($this->nm_new_label['descrip_'])) {
          $this->nm_new_label['descrip_'] = "DESCRIP"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_descrip_" style=";<?php echo $sStyleHidden_descrip_; ?>" > <?php echo $this->nm_new_label['descrip_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['dye_order_']) && $this->nmgp_cmp_hidden['dye_order_'] == 'off') { $sStyleHidden_dye_order_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['dye_order_']) || $this->nmgp_cmp_hidden['dye_order_'] == 'on') {
      if (!isset($this->nm_new_label['dye_order_'])) {
          $this->nm_new_label['dye_order_'] = "DYE ORDER"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_dye_order_" style=";<?php echo $sStyleHidden_dye_order_; ?>" > <?php echo $this->nm_new_label['dye_order_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['dye_lot_']) && $this->nmgp_cmp_hidden['dye_lot_'] == 'off') { $sStyleHidden_dye_lot_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['dye_lot_']) || $this->nmgp_cmp_hidden['dye_lot_'] == 'on') {
      if (!isset($this->nm_new_label['dye_lot_'])) {
          $this->nm_new_label['dye_lot_'] = "DYE LOT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_dye_lot_" style=";<?php echo $sStyleHidden_dye_lot_; ?>" > <?php echo $this->nm_new_label['dye_lot_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['cases_']) && $this->nmgp_cmp_hidden['cases_'] == 'off') { $sStyleHidden_cases_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['cases_']) || $this->nmgp_cmp_hidden['cases_'] == 'on') {
      if (!isset($this->nm_new_label['cases_'])) {
          $this->nm_new_label['cases_'] = "CASES"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_cases_" style=";<?php echo $sStyleHidden_cases_; ?>" > <?php echo $this->nm_new_label['cases_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['cost_']) && $this->nmgp_cmp_hidden['cost_'] == 'off') { $sStyleHidden_cost_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['cost_']) || $this->nmgp_cmp_hidden['cost_'] == 'on') {
      if (!isset($this->nm_new_label['cost_'])) {
          $this->nm_new_label['cost_'] = "COST"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_cost_" style="text-align:right;<?php echo $sStyleHidden_cost_; ?>" > <?php echo $this->nm_new_label['cost_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['cost_yd_']) && $this->nmgp_cmp_hidden['cost_yd_'] == 'off') { $sStyleHidden_cost_yd_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['cost_yd_']) || $this->nmgp_cmp_hidden['cost_yd_'] == 'on') {
      if (!isset($this->nm_new_label['cost_yd_'])) {
          $this->nm_new_label['cost_yd_'] = "COST YD"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_cost_yd_" style=";<?php echo $sStyleHidden_cost_yd_; ?>" > <?php echo $this->nm_new_label['cost_yd_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['gp_']) && $this->nmgp_cmp_hidden['gp_'] == 'off') { $sStyleHidden_gp_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['gp_']) || $this->nmgp_cmp_hidden['gp_'] == 'on') {
      if (!isset($this->nm_new_label['gp_'])) {
          $this->nm_new_label['gp_'] = "GP"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_gp_" style="text-align:right;<?php echo $sStyleHidden_gp_; ?>" > <?php echo $this->nm_new_label['gp_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['gp_yd_']) && $this->nmgp_cmp_hidden['gp_yd_'] == 'off') { $sStyleHidden_gp_yd_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['gp_yd_']) || $this->nmgp_cmp_hidden['gp_yd_'] == 'on') {
      if (!isset($this->nm_new_label['gp_yd_'])) {
          $this->nm_new_label['gp_yd_'] = "GP YD"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_gp_yd_" style=";<?php echo $sStyleHidden_gp_yd_; ?>" > <?php echo $this->nm_new_label['gp_yd_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['pc_']) && $this->nmgp_cmp_hidden['pc_'] == 'off') { $sStyleHidden_pc_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['pc_']) || $this->nmgp_cmp_hidden['pc_'] == 'on') {
      if (!isset($this->nm_new_label['pc_'])) {
          $this->nm_new_label['pc_'] = "PC"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_pc_" style=";<?php echo $sStyleHidden_pc_; ?>" > <?php echo $this->nm_new_label['pc_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['adate_']) && $this->nmgp_cmp_hidden['adate_'] == 'off') { $sStyleHidden_adate_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['adate_']) || $this->nmgp_cmp_hidden['adate_'] == 'on') {
      if (!isset($this->nm_new_label['adate_'])) {
          $this->nm_new_label['adate_'] = "ADATE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_adate_" style=";<?php echo $sStyleHidden_adate_; ?>" > <?php echo $this->nm_new_label['adate_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['edate_']) && $this->nmgp_cmp_hidden['edate_'] == 'off') { $sStyleHidden_edate_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['edate_']) || $this->nmgp_cmp_hidden['edate_'] == 'on') {
      if (!isset($this->nm_new_label['edate_'])) {
          $this->nm_new_label['edate_'] = "EDATE"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_edate_" style=";<?php echo $sStyleHidden_edate_; ?>" > <?php echo $this->nm_new_label['edate_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['smit_']) && $this->nmgp_cmp_hidden['smit_'] == 'off') { $sStyleHidden_smit_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['smit_']) || $this->nmgp_cmp_hidden['smit_'] == 'on') {
      if (!isset($this->nm_new_label['smit_'])) {
          $this->nm_new_label['smit_'] = "SMIT"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_smit_" style=";<?php echo $sStyleHidden_smit_; ?>" > <?php echo $this->nm_new_label['smit_'] ?> </TD>
   <?php } ?>


   <?php if (isset($this->nmgp_cmp_hidden['memo_']) && $this->nmgp_cmp_hidden['memo_'] == 'off') { $sStyleHidden_memo_ = 'display: none'; }
      if (1 || !isset($this->nmgp_cmp_hidden['memo_']) || $this->nmgp_cmp_hidden['memo_'] == 'on') {
      if (!isset($this->nm_new_label['memo_'])) {
          $this->nm_new_label['memo_'] = "MEMO"; } ?>

    <TD class="scFormLabelOddMult" id="hidden_field_label_memo_" style=";<?php echo $sStyleHidden_memo_; ?>" > <?php echo $this->nm_new_label['memo_'] ?> </TD>
   <?php } ?>






    <script type="text/javascript">
     var orderColOrient = "<?php echo $orderColOrient ?>";
     scSetOrderColumn("<?php echo $orderColName ?>");
    </script>
   </tr>
<?php   
} 
function Form_Corpo($Line_Add = false, $Table_refresh = false) 
{ 
   global $sc_seq_vert; 
   if ($Line_Add) 
   { 
       ob_start();
       $iStart = sizeof($this->form_vert_billing_item_edit_grid);
       $guarda_nmgp_opcao = $this->nmgp_opcao;
       $guarda_form_vert_billing_item_edit_grid = $this->form_vert_billing_item_edit_grid;
       $this->nmgp_opcao = 'novo';
   } 
   if ($this->Embutida_form && empty($this->form_vert_billing_item_edit_grid))
   {
       $sc_seq_vert = 0;
   }
   foreach ($this->form_vert_billing_item_edit_grid as $sc_seq_vert => $sc_lixo)
   {
       if (isset($this->Embutida_ronly) && $this->Embutida_ronly && !$Line_Add)
       {
           $this->nmgp_cmp_readonly['invoice_'] = true;
           $this->nmgp_cmp_readonly['item_'] = true;
           $this->nmgp_cmp_readonly['date_'] = true;
           $this->nmgp_cmp_readonly['bcode_'] = true;
           $this->nmgp_cmp_readonly['lin_'] = true;
           $this->nmgp_cmp_readonly['sq_'] = true;
           $this->nmgp_cmp_readonly['style_'] = true;
           $this->nmgp_cmp_readonly['width_'] = true;
           $this->nmgp_cmp_readonly['color_'] = true;
           $this->nmgp_cmp_readonly['cust_order_'] = true;
           $this->nmgp_cmp_readonly['our_order_'] = true;
           $this->nmgp_cmp_readonly['price_'] = true;
           $this->nmgp_cmp_readonly['unit_'] = true;
           $this->nmgp_cmp_readonly['amount_'] = true;
           $this->nmgp_cmp_readonly['descrip_'] = true;
           $this->nmgp_cmp_readonly['dye_order_'] = true;
           $this->nmgp_cmp_readonly['dye_lot_'] = true;
           $this->nmgp_cmp_readonly['cases_'] = true;
           $this->nmgp_cmp_readonly['cost_'] = true;
           $this->nmgp_cmp_readonly['cost_yd_'] = true;
           $this->nmgp_cmp_readonly['gp_'] = true;
           $this->nmgp_cmp_readonly['gp_yd_'] = true;
           $this->nmgp_cmp_readonly['pc_'] = true;
           $this->nmgp_cmp_readonly['adate_'] = true;
           $this->nmgp_cmp_readonly['edate_'] = true;
           $this->nmgp_cmp_readonly['smit_'] = true;
           $this->nmgp_cmp_readonly['memo_'] = true;
       }
       elseif ($Line_Add)
       {
           if (!isset($this->nmgp_cmp_readonly['invoice_']) || $this->nmgp_cmp_readonly['invoice_'] != "on") {$this->nmgp_cmp_readonly['invoice_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['item_']) || $this->nmgp_cmp_readonly['item_'] != "on") {$this->nmgp_cmp_readonly['item_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['date_']) || $this->nmgp_cmp_readonly['date_'] != "on") {$this->nmgp_cmp_readonly['date_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['bcode_']) || $this->nmgp_cmp_readonly['bcode_'] != "on") {$this->nmgp_cmp_readonly['bcode_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['lin_']) || $this->nmgp_cmp_readonly['lin_'] != "on") {$this->nmgp_cmp_readonly['lin_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['sq_']) || $this->nmgp_cmp_readonly['sq_'] != "on") {$this->nmgp_cmp_readonly['sq_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['style_']) || $this->nmgp_cmp_readonly['style_'] != "on") {$this->nmgp_cmp_readonly['style_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['width_']) || $this->nmgp_cmp_readonly['width_'] != "on") {$this->nmgp_cmp_readonly['width_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['color_']) || $this->nmgp_cmp_readonly['color_'] != "on") {$this->nmgp_cmp_readonly['color_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['cust_order_']) || $this->nmgp_cmp_readonly['cust_order_'] != "on") {$this->nmgp_cmp_readonly['cust_order_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['our_order_']) || $this->nmgp_cmp_readonly['our_order_'] != "on") {$this->nmgp_cmp_readonly['our_order_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['price_']) || $this->nmgp_cmp_readonly['price_'] != "on") {$this->nmgp_cmp_readonly['price_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['unit_']) || $this->nmgp_cmp_readonly['unit_'] != "on") {$this->nmgp_cmp_readonly['unit_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['amount_']) || $this->nmgp_cmp_readonly['amount_'] != "on") {$this->nmgp_cmp_readonly['amount_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['descrip_']) || $this->nmgp_cmp_readonly['descrip_'] != "on") {$this->nmgp_cmp_readonly['descrip_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['dye_order_']) || $this->nmgp_cmp_readonly['dye_order_'] != "on") {$this->nmgp_cmp_readonly['dye_order_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['dye_lot_']) || $this->nmgp_cmp_readonly['dye_lot_'] != "on") {$this->nmgp_cmp_readonly['dye_lot_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['cases_']) || $this->nmgp_cmp_readonly['cases_'] != "on") {$this->nmgp_cmp_readonly['cases_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['cost_']) || $this->nmgp_cmp_readonly['cost_'] != "on") {$this->nmgp_cmp_readonly['cost_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['cost_yd_']) || $this->nmgp_cmp_readonly['cost_yd_'] != "on") {$this->nmgp_cmp_readonly['cost_yd_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['gp_']) || $this->nmgp_cmp_readonly['gp_'] != "on") {$this->nmgp_cmp_readonly['gp_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['gp_yd_']) || $this->nmgp_cmp_readonly['gp_yd_'] != "on") {$this->nmgp_cmp_readonly['gp_yd_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['pc_']) || $this->nmgp_cmp_readonly['pc_'] != "on") {$this->nmgp_cmp_readonly['pc_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['adate_']) || $this->nmgp_cmp_readonly['adate_'] != "on") {$this->nmgp_cmp_readonly['adate_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['edate_']) || $this->nmgp_cmp_readonly['edate_'] != "on") {$this->nmgp_cmp_readonly['edate_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['smit_']) || $this->nmgp_cmp_readonly['smit_'] != "on") {$this->nmgp_cmp_readonly['smit_'] = false;}
           if (!isset($this->nmgp_cmp_readonly['memo_']) || $this->nmgp_cmp_readonly['memo_'] != "on") {$this->nmgp_cmp_readonly['memo_'] = false;}
       }
              foreach ($this->form_vert_form_preenchimento[$sc_seq_vert] as $sCmpNome => $mCmpVal)
              {
                  eval("\$this->" . $sCmpNome . " = \$mCmpVal;");
              }
        $this->invoice_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['invoice_']; 
       $invoice_ = $this->invoice_; 
       $sStyleHidden_invoice_ = '';
       if (isset($sCheckRead_invoice_))
       {
           unset($sCheckRead_invoice_);
       }
       if (isset($this->nmgp_cmp_readonly['invoice_']))
       {
           $sCheckRead_invoice_ = $this->nmgp_cmp_readonly['invoice_'];
       }
       if (isset($this->nmgp_cmp_hidden['invoice_']) && $this->nmgp_cmp_hidden['invoice_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['invoice_']);
           $sStyleHidden_invoice_ = 'display: none;';
       }
       $bTestReadOnly_invoice_ = true;
       $sStyleReadLab_invoice_ = 'display: none;';
       $sStyleReadInp_invoice_ = '';
       if (isset($this->nmgp_cmp_readonly['invoice_']) && $this->nmgp_cmp_readonly['invoice_'] == 'on')
       {
           $bTestReadOnly_invoice_ = false;
           unset($this->nmgp_cmp_readonly['invoice_']);
           $sStyleReadLab_invoice_ = '';
           $sStyleReadInp_invoice_ = 'display: none;';
       }
       $this->item_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['item_']; 
       $item_ = $this->item_; 
       $sStyleHidden_item_ = '';
       if (isset($sCheckRead_item_))
       {
           unset($sCheckRead_item_);
       }
       if (isset($this->nmgp_cmp_readonly['item_']))
       {
           $sCheckRead_item_ = $this->nmgp_cmp_readonly['item_'];
       }
       if (isset($this->nmgp_cmp_hidden['item_']) && $this->nmgp_cmp_hidden['item_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['item_']);
           $sStyleHidden_item_ = 'display: none;';
       }
       $bTestReadOnly_item_ = true;
       $sStyleReadLab_item_ = 'display: none;';
       $sStyleReadInp_item_ = '';
       if (isset($this->nmgp_cmp_readonly['item_']) && $this->nmgp_cmp_readonly['item_'] == 'on')
       {
           $bTestReadOnly_item_ = false;
           unset($this->nmgp_cmp_readonly['item_']);
           $sStyleReadLab_item_ = '';
           $sStyleReadInp_item_ = 'display: none;';
       }
       $this->date_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['date_']; 
       $date_ = $this->date_; 
       $sStyleHidden_date_ = '';
       if (isset($sCheckRead_date_))
       {
           unset($sCheckRead_date_);
       }
       if (isset($this->nmgp_cmp_readonly['date_']))
       {
           $sCheckRead_date_ = $this->nmgp_cmp_readonly['date_'];
       }
       if (isset($this->nmgp_cmp_hidden['date_']) && $this->nmgp_cmp_hidden['date_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['date_']);
           $sStyleHidden_date_ = 'display: none;';
       }
       $bTestReadOnly_date_ = true;
       $sStyleReadLab_date_ = 'display: none;';
       $sStyleReadInp_date_ = '';
       if (isset($this->nmgp_cmp_readonly['date_']) && $this->nmgp_cmp_readonly['date_'] == 'on')
       {
           $bTestReadOnly_date_ = false;
           unset($this->nmgp_cmp_readonly['date_']);
           $sStyleReadLab_date_ = '';
           $sStyleReadInp_date_ = 'display: none;';
       }
       $this->bcode_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['bcode_']; 
       $bcode_ = $this->bcode_; 
       $sStyleHidden_bcode_ = '';
       if (isset($sCheckRead_bcode_))
       {
           unset($sCheckRead_bcode_);
       }
       if (isset($this->nmgp_cmp_readonly['bcode_']))
       {
           $sCheckRead_bcode_ = $this->nmgp_cmp_readonly['bcode_'];
       }
       if (isset($this->nmgp_cmp_hidden['bcode_']) && $this->nmgp_cmp_hidden['bcode_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['bcode_']);
           $sStyleHidden_bcode_ = 'display: none;';
       }
       $bTestReadOnly_bcode_ = true;
       $sStyleReadLab_bcode_ = 'display: none;';
       $sStyleReadInp_bcode_ = '';
       if (isset($this->nmgp_cmp_readonly['bcode_']) && $this->nmgp_cmp_readonly['bcode_'] == 'on')
       {
           $bTestReadOnly_bcode_ = false;
           unset($this->nmgp_cmp_readonly['bcode_']);
           $sStyleReadLab_bcode_ = '';
           $sStyleReadInp_bcode_ = 'display: none;';
       }
       $this->lin_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['lin_']; 
       $lin_ = $this->lin_; 
       $sStyleHidden_lin_ = '';
       if (isset($sCheckRead_lin_))
       {
           unset($sCheckRead_lin_);
       }
       if (isset($this->nmgp_cmp_readonly['lin_']))
       {
           $sCheckRead_lin_ = $this->nmgp_cmp_readonly['lin_'];
       }
       if (isset($this->nmgp_cmp_hidden['lin_']) && $this->nmgp_cmp_hidden['lin_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['lin_']);
           $sStyleHidden_lin_ = 'display: none;';
       }
       $bTestReadOnly_lin_ = true;
       $sStyleReadLab_lin_ = 'display: none;';
       $sStyleReadInp_lin_ = '';
       if (isset($this->nmgp_cmp_readonly['lin_']) && $this->nmgp_cmp_readonly['lin_'] == 'on')
       {
           $bTestReadOnly_lin_ = false;
           unset($this->nmgp_cmp_readonly['lin_']);
           $sStyleReadLab_lin_ = '';
           $sStyleReadInp_lin_ = 'display: none;';
       }
       $this->sq_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['sq_']; 
       $sq_ = $this->sq_; 
       $sStyleHidden_sq_ = '';
       if (isset($sCheckRead_sq_))
       {
           unset($sCheckRead_sq_);
       }
       if (isset($this->nmgp_cmp_readonly['sq_']))
       {
           $sCheckRead_sq_ = $this->nmgp_cmp_readonly['sq_'];
       }
       if (isset($this->nmgp_cmp_hidden['sq_']) && $this->nmgp_cmp_hidden['sq_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['sq_']);
           $sStyleHidden_sq_ = 'display: none;';
       }
       $bTestReadOnly_sq_ = true;
       $sStyleReadLab_sq_ = 'display: none;';
       $sStyleReadInp_sq_ = '';
       if (isset($this->nmgp_cmp_readonly['sq_']) && $this->nmgp_cmp_readonly['sq_'] == 'on')
       {
           $bTestReadOnly_sq_ = false;
           unset($this->nmgp_cmp_readonly['sq_']);
           $sStyleReadLab_sq_ = '';
           $sStyleReadInp_sq_ = 'display: none;';
       }
       $this->style_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['style_']; 
       $style_ = $this->style_; 
       $sStyleHidden_style_ = '';
       if (isset($sCheckRead_style_))
       {
           unset($sCheckRead_style_);
       }
       if (isset($this->nmgp_cmp_readonly['style_']))
       {
           $sCheckRead_style_ = $this->nmgp_cmp_readonly['style_'];
       }
       if (isset($this->nmgp_cmp_hidden['style_']) && $this->nmgp_cmp_hidden['style_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['style_']);
           $sStyleHidden_style_ = 'display: none;';
       }
       $bTestReadOnly_style_ = true;
       $sStyleReadLab_style_ = 'display: none;';
       $sStyleReadInp_style_ = '';
       if (isset($this->nmgp_cmp_readonly['style_']) && $this->nmgp_cmp_readonly['style_'] == 'on')
       {
           $bTestReadOnly_style_ = false;
           unset($this->nmgp_cmp_readonly['style_']);
           $sStyleReadLab_style_ = '';
           $sStyleReadInp_style_ = 'display: none;';
       }
       $this->width_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['width_']; 
       $width_ = $this->width_; 
       $sStyleHidden_width_ = '';
       if (isset($sCheckRead_width_))
       {
           unset($sCheckRead_width_);
       }
       if (isset($this->nmgp_cmp_readonly['width_']))
       {
           $sCheckRead_width_ = $this->nmgp_cmp_readonly['width_'];
       }
       if (isset($this->nmgp_cmp_hidden['width_']) && $this->nmgp_cmp_hidden['width_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['width_']);
           $sStyleHidden_width_ = 'display: none;';
       }
       $bTestReadOnly_width_ = true;
       $sStyleReadLab_width_ = 'display: none;';
       $sStyleReadInp_width_ = '';
       if (isset($this->nmgp_cmp_readonly['width_']) && $this->nmgp_cmp_readonly['width_'] == 'on')
       {
           $bTestReadOnly_width_ = false;
           unset($this->nmgp_cmp_readonly['width_']);
           $sStyleReadLab_width_ = '';
           $sStyleReadInp_width_ = 'display: none;';
       }
       $this->color_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['color_']; 
       $color_ = $this->color_; 
       $sStyleHidden_color_ = '';
       if (isset($sCheckRead_color_))
       {
           unset($sCheckRead_color_);
       }
       if (isset($this->nmgp_cmp_readonly['color_']))
       {
           $sCheckRead_color_ = $this->nmgp_cmp_readonly['color_'];
       }
       if (isset($this->nmgp_cmp_hidden['color_']) && $this->nmgp_cmp_hidden['color_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['color_']);
           $sStyleHidden_color_ = 'display: none;';
       }
       $bTestReadOnly_color_ = true;
       $sStyleReadLab_color_ = 'display: none;';
       $sStyleReadInp_color_ = '';
       if (isset($this->nmgp_cmp_readonly['color_']) && $this->nmgp_cmp_readonly['color_'] == 'on')
       {
           $bTestReadOnly_color_ = false;
           unset($this->nmgp_cmp_readonly['color_']);
           $sStyleReadLab_color_ = '';
           $sStyleReadInp_color_ = 'display: none;';
       }
       $this->cust_order_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['cust_order_']; 
       $cust_order_ = $this->cust_order_; 
       $sStyleHidden_cust_order_ = '';
       if (isset($sCheckRead_cust_order_))
       {
           unset($sCheckRead_cust_order_);
       }
       if (isset($this->nmgp_cmp_readonly['cust_order_']))
       {
           $sCheckRead_cust_order_ = $this->nmgp_cmp_readonly['cust_order_'];
       }
       if (isset($this->nmgp_cmp_hidden['cust_order_']) && $this->nmgp_cmp_hidden['cust_order_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['cust_order_']);
           $sStyleHidden_cust_order_ = 'display: none;';
       }
       $bTestReadOnly_cust_order_ = true;
       $sStyleReadLab_cust_order_ = 'display: none;';
       $sStyleReadInp_cust_order_ = '';
       if (isset($this->nmgp_cmp_readonly['cust_order_']) && $this->nmgp_cmp_readonly['cust_order_'] == 'on')
       {
           $bTestReadOnly_cust_order_ = false;
           unset($this->nmgp_cmp_readonly['cust_order_']);
           $sStyleReadLab_cust_order_ = '';
           $sStyleReadInp_cust_order_ = 'display: none;';
       }
       $this->our_order_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['our_order_']; 
       $our_order_ = $this->our_order_; 
       $sStyleHidden_our_order_ = '';
       if (isset($sCheckRead_our_order_))
       {
           unset($sCheckRead_our_order_);
       }
       if (isset($this->nmgp_cmp_readonly['our_order_']))
       {
           $sCheckRead_our_order_ = $this->nmgp_cmp_readonly['our_order_'];
       }
       if (isset($this->nmgp_cmp_hidden['our_order_']) && $this->nmgp_cmp_hidden['our_order_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['our_order_']);
           $sStyleHidden_our_order_ = 'display: none;';
       }
       $bTestReadOnly_our_order_ = true;
       $sStyleReadLab_our_order_ = 'display: none;';
       $sStyleReadInp_our_order_ = '';
       if (isset($this->nmgp_cmp_readonly['our_order_']) && $this->nmgp_cmp_readonly['our_order_'] == 'on')
       {
           $bTestReadOnly_our_order_ = false;
           unset($this->nmgp_cmp_readonly['our_order_']);
           $sStyleReadLab_our_order_ = '';
           $sStyleReadInp_our_order_ = 'display: none;';
       }
       $this->price_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['price_']; 
       $price_ = $this->price_; 
       $sStyleHidden_price_ = '';
       if (isset($sCheckRead_price_))
       {
           unset($sCheckRead_price_);
       }
       if (isset($this->nmgp_cmp_readonly['price_']))
       {
           $sCheckRead_price_ = $this->nmgp_cmp_readonly['price_'];
       }
       if (isset($this->nmgp_cmp_hidden['price_']) && $this->nmgp_cmp_hidden['price_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['price_']);
           $sStyleHidden_price_ = 'display: none;';
       }
       $bTestReadOnly_price_ = true;
       $sStyleReadLab_price_ = 'display: none;';
       $sStyleReadInp_price_ = '';
       if (isset($this->nmgp_cmp_readonly['price_']) && $this->nmgp_cmp_readonly['price_'] == 'on')
       {
           $bTestReadOnly_price_ = false;
           unset($this->nmgp_cmp_readonly['price_']);
           $sStyleReadLab_price_ = '';
           $sStyleReadInp_price_ = 'display: none;';
       }
       $this->unit_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['unit_']; 
       $unit_ = $this->unit_; 
       $sStyleHidden_unit_ = '';
       if (isset($sCheckRead_unit_))
       {
           unset($sCheckRead_unit_);
       }
       if (isset($this->nmgp_cmp_readonly['unit_']))
       {
           $sCheckRead_unit_ = $this->nmgp_cmp_readonly['unit_'];
       }
       if (isset($this->nmgp_cmp_hidden['unit_']) && $this->nmgp_cmp_hidden['unit_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['unit_']);
           $sStyleHidden_unit_ = 'display: none;';
       }
       $bTestReadOnly_unit_ = true;
       $sStyleReadLab_unit_ = 'display: none;';
       $sStyleReadInp_unit_ = '';
       if (isset($this->nmgp_cmp_readonly['unit_']) && $this->nmgp_cmp_readonly['unit_'] == 'on')
       {
           $bTestReadOnly_unit_ = false;
           unset($this->nmgp_cmp_readonly['unit_']);
           $sStyleReadLab_unit_ = '';
           $sStyleReadInp_unit_ = 'display: none;';
       }
       $this->amount_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['amount_']; 
       $amount_ = $this->amount_; 
       $sStyleHidden_amount_ = '';
       if (isset($sCheckRead_amount_))
       {
           unset($sCheckRead_amount_);
       }
       if (isset($this->nmgp_cmp_readonly['amount_']))
       {
           $sCheckRead_amount_ = $this->nmgp_cmp_readonly['amount_'];
       }
       if (isset($this->nmgp_cmp_hidden['amount_']) && $this->nmgp_cmp_hidden['amount_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['amount_']);
           $sStyleHidden_amount_ = 'display: none;';
       }
       $bTestReadOnly_amount_ = true;
       $sStyleReadLab_amount_ = 'display: none;';
       $sStyleReadInp_amount_ = '';
       if (isset($this->nmgp_cmp_readonly['amount_']) && $this->nmgp_cmp_readonly['amount_'] == 'on')
       {
           $bTestReadOnly_amount_ = false;
           unset($this->nmgp_cmp_readonly['amount_']);
           $sStyleReadLab_amount_ = '';
           $sStyleReadInp_amount_ = 'display: none;';
       }
       $this->descrip_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['descrip_']; 
       $descrip_ = $this->descrip_; 
       $sStyleHidden_descrip_ = '';
       if (isset($sCheckRead_descrip_))
       {
           unset($sCheckRead_descrip_);
       }
       if (isset($this->nmgp_cmp_readonly['descrip_']))
       {
           $sCheckRead_descrip_ = $this->nmgp_cmp_readonly['descrip_'];
       }
       if (isset($this->nmgp_cmp_hidden['descrip_']) && $this->nmgp_cmp_hidden['descrip_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['descrip_']);
           $sStyleHidden_descrip_ = 'display: none;';
       }
       $bTestReadOnly_descrip_ = true;
       $sStyleReadLab_descrip_ = 'display: none;';
       $sStyleReadInp_descrip_ = '';
       if (isset($this->nmgp_cmp_readonly['descrip_']) && $this->nmgp_cmp_readonly['descrip_'] == 'on')
       {
           $bTestReadOnly_descrip_ = false;
           unset($this->nmgp_cmp_readonly['descrip_']);
           $sStyleReadLab_descrip_ = '';
           $sStyleReadInp_descrip_ = 'display: none;';
       }
       $this->dye_order_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['dye_order_']; 
       $dye_order_ = $this->dye_order_; 
       $sStyleHidden_dye_order_ = '';
       if (isset($sCheckRead_dye_order_))
       {
           unset($sCheckRead_dye_order_);
       }
       if (isset($this->nmgp_cmp_readonly['dye_order_']))
       {
           $sCheckRead_dye_order_ = $this->nmgp_cmp_readonly['dye_order_'];
       }
       if (isset($this->nmgp_cmp_hidden['dye_order_']) && $this->nmgp_cmp_hidden['dye_order_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['dye_order_']);
           $sStyleHidden_dye_order_ = 'display: none;';
       }
       $bTestReadOnly_dye_order_ = true;
       $sStyleReadLab_dye_order_ = 'display: none;';
       $sStyleReadInp_dye_order_ = '';
       if (isset($this->nmgp_cmp_readonly['dye_order_']) && $this->nmgp_cmp_readonly['dye_order_'] == 'on')
       {
           $bTestReadOnly_dye_order_ = false;
           unset($this->nmgp_cmp_readonly['dye_order_']);
           $sStyleReadLab_dye_order_ = '';
           $sStyleReadInp_dye_order_ = 'display: none;';
       }
       $this->dye_lot_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['dye_lot_']; 
       $dye_lot_ = $this->dye_lot_; 
       $sStyleHidden_dye_lot_ = '';
       if (isset($sCheckRead_dye_lot_))
       {
           unset($sCheckRead_dye_lot_);
       }
       if (isset($this->nmgp_cmp_readonly['dye_lot_']))
       {
           $sCheckRead_dye_lot_ = $this->nmgp_cmp_readonly['dye_lot_'];
       }
       if (isset($this->nmgp_cmp_hidden['dye_lot_']) && $this->nmgp_cmp_hidden['dye_lot_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['dye_lot_']);
           $sStyleHidden_dye_lot_ = 'display: none;';
       }
       $bTestReadOnly_dye_lot_ = true;
       $sStyleReadLab_dye_lot_ = 'display: none;';
       $sStyleReadInp_dye_lot_ = '';
       if (isset($this->nmgp_cmp_readonly['dye_lot_']) && $this->nmgp_cmp_readonly['dye_lot_'] == 'on')
       {
           $bTestReadOnly_dye_lot_ = false;
           unset($this->nmgp_cmp_readonly['dye_lot_']);
           $sStyleReadLab_dye_lot_ = '';
           $sStyleReadInp_dye_lot_ = 'display: none;';
       }
       $this->cases_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['cases_']; 
       $cases_ = $this->cases_; 
       $sStyleHidden_cases_ = '';
       if (isset($sCheckRead_cases_))
       {
           unset($sCheckRead_cases_);
       }
       if (isset($this->nmgp_cmp_readonly['cases_']))
       {
           $sCheckRead_cases_ = $this->nmgp_cmp_readonly['cases_'];
       }
       if (isset($this->nmgp_cmp_hidden['cases_']) && $this->nmgp_cmp_hidden['cases_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['cases_']);
           $sStyleHidden_cases_ = 'display: none;';
       }
       $bTestReadOnly_cases_ = true;
       $sStyleReadLab_cases_ = 'display: none;';
       $sStyleReadInp_cases_ = '';
       if (isset($this->nmgp_cmp_readonly['cases_']) && $this->nmgp_cmp_readonly['cases_'] == 'on')
       {
           $bTestReadOnly_cases_ = false;
           unset($this->nmgp_cmp_readonly['cases_']);
           $sStyleReadLab_cases_ = '';
           $sStyleReadInp_cases_ = 'display: none;';
       }
       $this->cost_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['cost_']; 
       $cost_ = $this->cost_; 
       $sStyleHidden_cost_ = '';
       if (isset($sCheckRead_cost_))
       {
           unset($sCheckRead_cost_);
       }
       if (isset($this->nmgp_cmp_readonly['cost_']))
       {
           $sCheckRead_cost_ = $this->nmgp_cmp_readonly['cost_'];
       }
       if (isset($this->nmgp_cmp_hidden['cost_']) && $this->nmgp_cmp_hidden['cost_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['cost_']);
           $sStyleHidden_cost_ = 'display: none;';
       }
       $bTestReadOnly_cost_ = true;
       $sStyleReadLab_cost_ = 'display: none;';
       $sStyleReadInp_cost_ = '';
       if (isset($this->nmgp_cmp_readonly['cost_']) && $this->nmgp_cmp_readonly['cost_'] == 'on')
       {
           $bTestReadOnly_cost_ = false;
           unset($this->nmgp_cmp_readonly['cost_']);
           $sStyleReadLab_cost_ = '';
           $sStyleReadInp_cost_ = 'display: none;';
       }
       $this->cost_yd_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['cost_yd_']; 
       $cost_yd_ = $this->cost_yd_; 
       $sStyleHidden_cost_yd_ = '';
       if (isset($sCheckRead_cost_yd_))
       {
           unset($sCheckRead_cost_yd_);
       }
       if (isset($this->nmgp_cmp_readonly['cost_yd_']))
       {
           $sCheckRead_cost_yd_ = $this->nmgp_cmp_readonly['cost_yd_'];
       }
       if (isset($this->nmgp_cmp_hidden['cost_yd_']) && $this->nmgp_cmp_hidden['cost_yd_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['cost_yd_']);
           $sStyleHidden_cost_yd_ = 'display: none;';
       }
       $bTestReadOnly_cost_yd_ = true;
       $sStyleReadLab_cost_yd_ = 'display: none;';
       $sStyleReadInp_cost_yd_ = '';
       if (isset($this->nmgp_cmp_readonly['cost_yd_']) && $this->nmgp_cmp_readonly['cost_yd_'] == 'on')
       {
           $bTestReadOnly_cost_yd_ = false;
           unset($this->nmgp_cmp_readonly['cost_yd_']);
           $sStyleReadLab_cost_yd_ = '';
           $sStyleReadInp_cost_yd_ = 'display: none;';
       }
       $this->gp_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['gp_']; 
       $gp_ = $this->gp_; 
       $sStyleHidden_gp_ = '';
       if (isset($sCheckRead_gp_))
       {
           unset($sCheckRead_gp_);
       }
       if (isset($this->nmgp_cmp_readonly['gp_']))
       {
           $sCheckRead_gp_ = $this->nmgp_cmp_readonly['gp_'];
       }
       if (isset($this->nmgp_cmp_hidden['gp_']) && $this->nmgp_cmp_hidden['gp_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['gp_']);
           $sStyleHidden_gp_ = 'display: none;';
       }
       $bTestReadOnly_gp_ = true;
       $sStyleReadLab_gp_ = 'display: none;';
       $sStyleReadInp_gp_ = '';
       if (isset($this->nmgp_cmp_readonly['gp_']) && $this->nmgp_cmp_readonly['gp_'] == 'on')
       {
           $bTestReadOnly_gp_ = false;
           unset($this->nmgp_cmp_readonly['gp_']);
           $sStyleReadLab_gp_ = '';
           $sStyleReadInp_gp_ = 'display: none;';
       }
       $this->gp_yd_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['gp_yd_']; 
       $gp_yd_ = $this->gp_yd_; 
       $sStyleHidden_gp_yd_ = '';
       if (isset($sCheckRead_gp_yd_))
       {
           unset($sCheckRead_gp_yd_);
       }
       if (isset($this->nmgp_cmp_readonly['gp_yd_']))
       {
           $sCheckRead_gp_yd_ = $this->nmgp_cmp_readonly['gp_yd_'];
       }
       if (isset($this->nmgp_cmp_hidden['gp_yd_']) && $this->nmgp_cmp_hidden['gp_yd_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['gp_yd_']);
           $sStyleHidden_gp_yd_ = 'display: none;';
       }
       $bTestReadOnly_gp_yd_ = true;
       $sStyleReadLab_gp_yd_ = 'display: none;';
       $sStyleReadInp_gp_yd_ = '';
       if (isset($this->nmgp_cmp_readonly['gp_yd_']) && $this->nmgp_cmp_readonly['gp_yd_'] == 'on')
       {
           $bTestReadOnly_gp_yd_ = false;
           unset($this->nmgp_cmp_readonly['gp_yd_']);
           $sStyleReadLab_gp_yd_ = '';
           $sStyleReadInp_gp_yd_ = 'display: none;';
       }
       $this->pc_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['pc_']; 
       $pc_ = $this->pc_; 
       $sStyleHidden_pc_ = '';
       if (isset($sCheckRead_pc_))
       {
           unset($sCheckRead_pc_);
       }
       if (isset($this->nmgp_cmp_readonly['pc_']))
       {
           $sCheckRead_pc_ = $this->nmgp_cmp_readonly['pc_'];
       }
       if (isset($this->nmgp_cmp_hidden['pc_']) && $this->nmgp_cmp_hidden['pc_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['pc_']);
           $sStyleHidden_pc_ = 'display: none;';
       }
       $bTestReadOnly_pc_ = true;
       $sStyleReadLab_pc_ = 'display: none;';
       $sStyleReadInp_pc_ = '';
       if (isset($this->nmgp_cmp_readonly['pc_']) && $this->nmgp_cmp_readonly['pc_'] == 'on')
       {
           $bTestReadOnly_pc_ = false;
           unset($this->nmgp_cmp_readonly['pc_']);
           $sStyleReadLab_pc_ = '';
           $sStyleReadInp_pc_ = 'display: none;';
       }
       $this->adate_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['adate_']; 
       $adate_ = $this->adate_; 
       $sStyleHidden_adate_ = '';
       if (isset($sCheckRead_adate_))
       {
           unset($sCheckRead_adate_);
       }
       if (isset($this->nmgp_cmp_readonly['adate_']))
       {
           $sCheckRead_adate_ = $this->nmgp_cmp_readonly['adate_'];
       }
       if (isset($this->nmgp_cmp_hidden['adate_']) && $this->nmgp_cmp_hidden['adate_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['adate_']);
           $sStyleHidden_adate_ = 'display: none;';
       }
       $bTestReadOnly_adate_ = true;
       $sStyleReadLab_adate_ = 'display: none;';
       $sStyleReadInp_adate_ = '';
       if (isset($this->nmgp_cmp_readonly['adate_']) && $this->nmgp_cmp_readonly['adate_'] == 'on')
       {
           $bTestReadOnly_adate_ = false;
           unset($this->nmgp_cmp_readonly['adate_']);
           $sStyleReadLab_adate_ = '';
           $sStyleReadInp_adate_ = 'display: none;';
       }
       $this->edate_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['edate_']; 
       $edate_ = $this->edate_; 
       $sStyleHidden_edate_ = '';
       if (isset($sCheckRead_edate_))
       {
           unset($sCheckRead_edate_);
       }
       if (isset($this->nmgp_cmp_readonly['edate_']))
       {
           $sCheckRead_edate_ = $this->nmgp_cmp_readonly['edate_'];
       }
       if (isset($this->nmgp_cmp_hidden['edate_']) && $this->nmgp_cmp_hidden['edate_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['edate_']);
           $sStyleHidden_edate_ = 'display: none;';
       }
       $bTestReadOnly_edate_ = true;
       $sStyleReadLab_edate_ = 'display: none;';
       $sStyleReadInp_edate_ = '';
       if (isset($this->nmgp_cmp_readonly['edate_']) && $this->nmgp_cmp_readonly['edate_'] == 'on')
       {
           $bTestReadOnly_edate_ = false;
           unset($this->nmgp_cmp_readonly['edate_']);
           $sStyleReadLab_edate_ = '';
           $sStyleReadInp_edate_ = 'display: none;';
       }
       $this->smit_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['smit_']; 
       $smit_ = $this->smit_; 
       $sStyleHidden_smit_ = '';
       if (isset($sCheckRead_smit_))
       {
           unset($sCheckRead_smit_);
       }
       if (isset($this->nmgp_cmp_readonly['smit_']))
       {
           $sCheckRead_smit_ = $this->nmgp_cmp_readonly['smit_'];
       }
       if (isset($this->nmgp_cmp_hidden['smit_']) && $this->nmgp_cmp_hidden['smit_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['smit_']);
           $sStyleHidden_smit_ = 'display: none;';
       }
       $bTestReadOnly_smit_ = true;
       $sStyleReadLab_smit_ = 'display: none;';
       $sStyleReadInp_smit_ = '';
       if (isset($this->nmgp_cmp_readonly['smit_']) && $this->nmgp_cmp_readonly['smit_'] == 'on')
       {
           $bTestReadOnly_smit_ = false;
           unset($this->nmgp_cmp_readonly['smit_']);
           $sStyleReadLab_smit_ = '';
           $sStyleReadInp_smit_ = 'display: none;';
       }
       $this->memo_ = $this->form_vert_billing_item_edit_grid[$sc_seq_vert]['memo_']; 
       $memo_ = $this->memo_; 
       $memo__tmp = str_replace(array('\r\n', '\n\r', '\n', '\r'), array("\r\n", "\n\r", "\n", "\r"), $memo_);
       $memo__val = nl2br($memo__tmp);
       $sStyleHidden_memo_ = '';
       if (isset($sCheckRead_memo_))
       {
           unset($sCheckRead_memo_);
       }
       if (isset($this->nmgp_cmp_readonly['memo_']))
       {
           $sCheckRead_memo_ = $this->nmgp_cmp_readonly['memo_'];
       }
       if (isset($this->nmgp_cmp_hidden['memo_']) && $this->nmgp_cmp_hidden['memo_'] == 'off')
       {
           unset($this->nmgp_cmp_hidden['memo_']);
           $sStyleHidden_memo_ = 'display: none;';
       }
       $bTestReadOnly_memo_ = true;
       $sStyleReadLab_memo_ = 'display: none;';
       $sStyleReadInp_memo_ = '';
       if (isset($this->nmgp_cmp_readonly['memo_']) && $this->nmgp_cmp_readonly['memo_'] == 'on')
       {
           $bTestReadOnly_memo_ = false;
           unset($this->nmgp_cmp_readonly['memo_']);
           $sStyleReadLab_memo_ = '';
           $sStyleReadInp_memo_ = 'display: none;';
       }

       $nm_cor_fun_vert = ($nm_cor_fun_vert == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
       $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);

       $sHideNewLine = '';
?>   
   <tr id="idVertRow<?php echo $sc_seq_vert; ?>"<?php echo $sHideNewLine; ?>>


   
    <TD class="scFormDataOddMult"  id="hidden_field_data_sc_seq<?php echo $sc_seq_vert; ?>"  style="display: none;"> <?php echo $sc_seq_vert; ?> </TD>
   

   <?php if (!$this->Embutida_form && $this->nmgp_opcao != "novo" && $this->nmgp_botoes['delete'] == "on") {?>
    <TD class="scFormDataOddMult" > 
<input type=checkbox name="sc_check_vert[<?php echo $sc_seq_vert ?>]" value="<?php echo $sc_seq_vert . "\""; if (in_array($sc_seq_vert, $sc_check_excl)) { echo " checked";} ?> onclick="if (this.checked) {sc_quant_excl++; } else {sc_quant_excl--; }"> </TD>
   <?php }?>

   <?php if (!$this->Embutida_form && $this->nmgp_opcao == "novo") {?>
    <TD class="scFormDataOddMult" > 
<input type=checkbox name="sc_check_vert[<?php echo $sc_seq_vert ?>]" value="<?php echo $sc_seq_vert . "\"" ; if (in_array($sc_seq_vert, $sc_check_incl)) { echo " checked";} ?>> </TD>
   <?php }?>

   <?php if ($this->Embutida_form) {?>
    <TD class="scFormDataOddMult"  id="hidden_field_data_sc_actions<?php echo $sc_seq_vert; ?>" NOWRAP> <?php if ($this->nmgp_botoes['delete'] == "on" && $this->nmgp_opcao != "novo") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_excluir", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "sc_exc_line_" . $sc_seq_vert . "", "", "", "display: ''", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>

<?php
if ($this->nmgp_botoes['update'] == "on" && $this->nmgp_opcao != "novo") {
    if ($this->Embutida_ronly) {
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_edit", "mdOpenLine(" . $sc_seq_vert . ")", "mdOpenLine(" . $sc_seq_vert . ")", "sc_open_line_" . $sc_seq_vert . "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php
        $sButDisp = 'display: none';
    }
    else
    {
        $sButDisp = '';
    }
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_alterar", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "sc_upd_line_" . $sc_seq_vert . "", "", "", "" . $sButDisp. "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php
}
?>

<?php if ($this->nmgp_botoes['insert'] == "on" && $this->nmgp_opcao == "novo") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_incluir", "findPos(this); nm_atualiza_line('incluir', " . $sc_seq_vert . ")", "findPos(this); nm_atualiza_line('incluir', " . $sc_seq_vert . ")", "sc_ins_line_" . $sc_seq_vert . "", "", "", "display: ''", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php if ($this->nmgp_botoes['delete'] == "on") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_excluir", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "nm_atualiza_line('excluir', " . $sc_seq_vert . ")", "sc_exc_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>

<?php if ($Line_Add && $this->Embutida_ronly) {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_edit", "mdOpenLine(" . $sc_seq_vert . ")", "mdOpenLine(" . $sc_seq_vert . ")", "sc_open_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>

<?php if ($this->nmgp_botoes['update'] == "on") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_alterar", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "findPos(this); nm_atualiza_line('alterar', " . $sc_seq_vert . ")", "sc_upd_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>
<?php }?>
<?php if ($this->nmgp_botoes['insert'] == "on") {?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_novo", "do_ajax_billing_item_edit_grid_add_new_line(" . $sc_seq_vert . ")", "do_ajax_billing_item_edit_grid_add_new_line(" . $sc_seq_vert . ")", "sc_new_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php }?>
<?php
  $Style_add_line = (!$Line_Add) ? "display: none" : "";
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_cancelar", "do_ajax_billing_item_edit_grid_cancel_insert(" . $sc_seq_vert . ")", "do_ajax_billing_item_edit_grid_cancel_insert(" . $sc_seq_vert . ")", "sc_canceli_line_" . $sc_seq_vert . "", "", "", "" . $Style_add_line . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php echo nmButtonOutput($this->arr_buttons, "bmd_cancelar", "do_ajax_billing_item_edit_grid_cancel_update(" . $sc_seq_vert . ")", "do_ajax_billing_item_edit_grid_cancel_update(" . $sc_seq_vert . ")", "sc_cancelu_line_" . $sc_seq_vert . "", "", "", "display: none", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 </TD>
   <?php }?>

   <?php if (isset($this->nmgp_cmp_hidden['invoice_']) && $this->nmgp_cmp_hidden['invoice_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="invoice_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($invoice_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_invoice_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_invoice_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_invoice_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["invoice_"]) &&  $this->nmgp_cmp_readonly["invoice_"] == "on") { 

 ?>
<input type=hidden name="invoice_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($invoice_) . "\">" . $invoice_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_invoice_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-invoice_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_invoice_; ?>"><?php echo NM_encode_input($this->invoice_); ?></span><span id="id_read_off_invoice_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_invoice_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_invoice_<?php echo $sc_seq_vert ?>" type=text name="invoice_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($invoice_) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_invoice_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_invoice_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['item_']) && $this->nmgp_cmp_hidden['item_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="item_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($item_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_item_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_item_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_item_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["item_"]) &&  $this->nmgp_cmp_readonly["item_"] == "on") { 

 ?>
<input type=hidden name="item_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($item_) . "\">" . $item_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_item_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-item_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_item_; ?>"><?php echo NM_encode_input($this->item_); ?></span><span id="id_read_off_item_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_item_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_item_<?php echo $sc_seq_vert ?>" type=text name="item_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($item_) ?>"
 size=4 alt="{datatype: 'integer', maxLength: 4, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['item_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['item_']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_item_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_item_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['date_']) && $this->nmgp_cmp_hidden['date_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="date_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($date_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_date_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_date_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_date_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["date_"]) &&  $this->nmgp_cmp_readonly["date_"] == "on") { 

 ?>
<input type=hidden name="date_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($date_) . "\">" . $date_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_date_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-date_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_date_; ?>"><?php echo NM_encode_input($this->date_); ?></span><span id="id_read_off_date_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_date_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_date_<?php echo $sc_seq_vert ?>" type=text name="date_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($date_) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['date_']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['date_']['date_format']; ?>', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['date_']['date_format'];
$tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data);
$tmp_form_data = str_replace('dd'  , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data);
$tmp_form_data = str_replace('mm'  , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data);
$tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data);
$tmp_form_data = str_replace('hh'  , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data);
$tmp_form_data = str_replace('ii'  , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data);
$tmp_form_data = str_replace('ss'  , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data);
$tmp_form_data = str_replace(';'   , ' '                                       , $tmp_form_data);
?>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_date_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_date_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['bcode_']) && $this->nmgp_cmp_hidden['bcode_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bcode_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($bcode_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_bcode_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_bcode_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_bcode_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["bcode_"]) &&  $this->nmgp_cmp_readonly["bcode_"] == "on") { 

 ?>
<input type=hidden name="bcode_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($bcode_) . "\">" . $bcode_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_bcode_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-bcode_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_bcode_; ?>"><?php echo NM_encode_input($this->bcode_); ?></span><span id="id_read_off_bcode_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_bcode_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_bcode_<?php echo $sc_seq_vert ?>" type=text name="bcode_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($bcode_) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_bcode_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bcode_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['lin_']) && $this->nmgp_cmp_hidden['lin_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="lin_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($lin_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_lin_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_lin_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_lin_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["lin_"]) &&  $this->nmgp_cmp_readonly["lin_"] == "on") { 

 ?>
<input type=hidden name="lin_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($lin_) . "\">" . $lin_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_lin_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-lin_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_lin_; ?>"><?php echo NM_encode_input($this->lin_); ?></span><span id="id_read_off_lin_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_lin_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_lin_<?php echo $sc_seq_vert ?>" type=text name="lin_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($lin_) ?>"
 size=13 alt="{datatype: 'decimal', maxLength: 13, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['lin_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['lin_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['lin_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_lin_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_lin_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['sq_']) && $this->nmgp_cmp_hidden['sq_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sq_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($sq_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_sq_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_sq_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_sq_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["sq_"]) &&  $this->nmgp_cmp_readonly["sq_"] == "on") { 

 ?>
<input type=hidden name="sq_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($sq_) . "\">" . $sq_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_sq_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-sq_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_sq_; ?>"><?php echo NM_encode_input($this->sq_); ?></span><span id="id_read_off_sq_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_sq_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_sq_<?php echo $sc_seq_vert ?>" type=text name="sq_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($sq_) ?>"
 size=13 alt="{datatype: 'decimal', maxLength: 13, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['sq_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['sq_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['sq_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_sq_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sq_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['style_']) && $this->nmgp_cmp_hidden['style_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="style_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($style_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_style_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_style_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_style_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["style_"]) &&  $this->nmgp_cmp_readonly["style_"] == "on") { 

 ?>
<input type=hidden name="style_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($style_) . "\">" . $style_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_style_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-style_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_style_; ?>"><?php echo NM_encode_input($this->style_); ?></span><span id="id_read_off_style_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_style_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_style_<?php echo $sc_seq_vert ?>" type=text name="style_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($style_) ?>"
 size=13 maxlength=13 alt="{datatype: 'text', maxLength: 13, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_style_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_style_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['width_']) && $this->nmgp_cmp_hidden['width_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="width_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($width_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_width_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_width_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_width_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["width_"]) &&  $this->nmgp_cmp_readonly["width_"] == "on") { 

 ?>
<input type=hidden name="width_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($width_) . "\">" . $width_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_width_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-width_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_width_; ?>"><?php echo NM_encode_input($this->width_); ?></span><span id="id_read_off_width_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_width_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_width_<?php echo $sc_seq_vert ?>" type=text name="width_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($width_) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_width_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_width_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['color_']) && $this->nmgp_cmp_hidden['color_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="color_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_color_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_color_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_color_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["color_"]) &&  $this->nmgp_cmp_readonly["color_"] == "on") { 

 ?>
<input type=hidden name="color_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_) . "\">" . $color_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_color_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-color_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_color_; ?>"><?php echo NM_encode_input($this->color_); ?></span><span id="id_read_off_color_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_color_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_color_<?php echo $sc_seq_vert ?>" type=text name="color_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($color_) ?>"
 size=16 maxlength=16 alt="{datatype: 'text', maxLength: 16, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_color_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_color_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['cust_order_']) && $this->nmgp_cmp_hidden['cust_order_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cust_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cust_order_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_cust_order_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_cust_order_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_cust_order_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cust_order_"]) &&  $this->nmgp_cmp_readonly["cust_order_"] == "on") { 

 ?>
<input type=hidden name="cust_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cust_order_) . "\">" . $cust_order_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_cust_order_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-cust_order_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_cust_order_; ?>"><?php echo NM_encode_input($this->cust_order_); ?></span><span id="id_read_off_cust_order_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_cust_order_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_cust_order_<?php echo $sc_seq_vert ?>" type=text name="cust_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cust_order_) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cust_order_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cust_order_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['our_order_']) && $this->nmgp_cmp_hidden['our_order_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="our_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($our_order_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_our_order_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_our_order_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_our_order_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["our_order_"]) &&  $this->nmgp_cmp_readonly["our_order_"] == "on") { 

 ?>
<input type=hidden name="our_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($our_order_) . "\">" . $our_order_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_our_order_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-our_order_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_our_order_; ?>"><?php echo NM_encode_input($this->our_order_); ?></span><span id="id_read_off_our_order_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_our_order_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_our_order_<?php echo $sc_seq_vert ?>" type=text name="our_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($our_order_) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_our_order_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_our_order_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['price_']) && $this->nmgp_cmp_hidden['price_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="price_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($price_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_price_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_price_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_price_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["price_"]) &&  $this->nmgp_cmp_readonly["price_"] == "on") { 

 ?>
<input type=hidden name="price_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($price_) . "\">" . $price_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_price_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-price_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_price_; ?>"><?php echo NM_encode_input($this->price_); ?></span><span id="id_read_off_price_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_price_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_price_<?php echo $sc_seq_vert ?>" type=text name="price_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($price_) ?>"
 size=9 alt="{datatype: 'decimal', maxLength: 9, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['price_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['price_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['price_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_price_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_price_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['unit_']) && $this->nmgp_cmp_hidden['unit_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="unit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($unit_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_unit_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_unit_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_unit_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["unit_"]) &&  $this->nmgp_cmp_readonly["unit_"] == "on") { 

 ?>
<input type=hidden name="unit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($unit_) . "\">" . $unit_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_unit_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-unit_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_unit_; ?>"><?php echo NM_encode_input($this->unit_); ?></span><span id="id_read_off_unit_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_unit_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_unit_<?php echo $sc_seq_vert ?>" type=text name="unit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($unit_) ?>"
 size=3 maxlength=3 alt="{datatype: 'text', maxLength: 3, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_unit_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_unit_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['amount_']) && $this->nmgp_cmp_hidden['amount_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="amount_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($amount_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_amount_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_amount_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_amount_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["amount_"]) &&  $this->nmgp_cmp_readonly["amount_"] == "on") { 

 ?>
<input type=hidden name="amount_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($amount_) . "\">" . $amount_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_amount_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-amount_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_amount_; ?>"><?php echo NM_encode_input($this->amount_); ?></span><span id="id_read_off_amount_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_amount_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_amount_<?php echo $sc_seq_vert ?>" type=text name="amount_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($amount_) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['amount_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['amount_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['amount_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_amount_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_amount_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['descrip_']) && $this->nmgp_cmp_hidden['descrip_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="descrip_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($descrip_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_descrip_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_descrip_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_descrip_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["descrip_"]) &&  $this->nmgp_cmp_readonly["descrip_"] == "on") { 

 ?>
<input type=hidden name="descrip_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($descrip_) . "\">" . $descrip_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_descrip_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-descrip_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_descrip_; ?>"><?php echo NM_encode_input($this->descrip_); ?></span><span id="id_read_off_descrip_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_descrip_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_descrip_<?php echo $sc_seq_vert ?>" type=text name="descrip_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($descrip_) ?>"
 size=17 maxlength=17 alt="{datatype: 'text', maxLength: 17, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_descrip_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_descrip_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['dye_order_']) && $this->nmgp_cmp_hidden['dye_order_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dye_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_order_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_dye_order_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_dye_order_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_dye_order_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["dye_order_"]) &&  $this->nmgp_cmp_readonly["dye_order_"] == "on") { 

 ?>
<input type=hidden name="dye_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_order_) . "\">" . $dye_order_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_dye_order_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-dye_order_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_dye_order_; ?>"><?php echo NM_encode_input($this->dye_order_); ?></span><span id="id_read_off_dye_order_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_dye_order_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_dye_order_<?php echo $sc_seq_vert ?>" type=text name="dye_order_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_order_) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dye_order_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dye_order_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['dye_lot_']) && $this->nmgp_cmp_hidden['dye_lot_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="dye_lot_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_lot_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_dye_lot_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_dye_lot_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_dye_lot_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["dye_lot_"]) &&  $this->nmgp_cmp_readonly["dye_lot_"] == "on") { 

 ?>
<input type=hidden name="dye_lot_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_lot_) . "\">" . $dye_lot_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_dye_lot_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-dye_lot_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_dye_lot_; ?>"><?php echo NM_encode_input($this->dye_lot_); ?></span><span id="id_read_off_dye_lot_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_dye_lot_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_dye_lot_<?php echo $sc_seq_vert ?>" type=text name="dye_lot_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($dye_lot_) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_dye_lot_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_dye_lot_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['cases_']) && $this->nmgp_cmp_hidden['cases_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cases_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cases_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_cases_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_cases_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_cases_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cases_"]) &&  $this->nmgp_cmp_readonly["cases_"] == "on") { 

 ?>
<input type=hidden name="cases_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cases_) . "\">" . $cases_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_cases_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-cases_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_cases_; ?>"><?php echo NM_encode_input($this->cases_); ?></span><span id="id_read_off_cases_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_cases_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_cases_<?php echo $sc_seq_vert ?>" type=text name="cases_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cases_) ?>"
 size=3 maxlength=3 alt="{datatype: 'text', maxLength: 3, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cases_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cases_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['cost_']) && $this->nmgp_cmp_hidden['cost_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cost_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_cost_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_cost_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_cost_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cost_"]) &&  $this->nmgp_cmp_readonly["cost_"] == "on") { 

 ?>
<input type=hidden name="cost_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cost_) . "\">" . $cost_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_cost_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-cost_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_cost_; ?>"><?php echo NM_encode_input($this->cost_); ?></span><span id="id_read_off_cost_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_cost_<?php echo $sc_seq_vert ?>" type=text name="cost_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cost_) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cost_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['cost_yd_']) && $this->nmgp_cmp_hidden['cost_yd_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cost_yd_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cost_yd_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_cost_yd_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_cost_yd_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_cost_yd_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cost_yd_"]) &&  $this->nmgp_cmp_readonly["cost_yd_"] == "on") { 

 ?>
<input type=hidden name="cost_yd_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cost_yd_) . "\">" . $cost_yd_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_cost_yd_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-cost_yd_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_cost_yd_; ?>"><?php echo NM_encode_input($this->cost_yd_); ?></span><span id="id_read_off_cost_yd_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_cost_yd_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_cost_yd_<?php echo $sc_seq_vert ?>" type=text name="cost_yd_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($cost_yd_) ?>"
 size=8 alt="{datatype: 'decimal', maxLength: 8, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_yd_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['cost_yd_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['cost_yd_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cost_yd_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cost_yd_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['gp_']) && $this->nmgp_cmp_hidden['gp_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="gp_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($gp_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_gp_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_gp_; ?>text-align:right;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%;float:right"><tr><td  class="scFormDataFontOddMult" style="text-align:right;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_gp_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["gp_"]) &&  $this->nmgp_cmp_readonly["gp_"] == "on") { 

 ?>
<input type=hidden name="gp_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($gp_) . "\">" . $gp_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_gp_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-gp_<?php echo $sc_seq_vert ?>" style="text-align:right;<?php echo $sStyleReadLab_gp_; ?>"><?php echo NM_encode_input($this->gp_); ?></span><span id="id_read_off_gp_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_gp_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style="text-align:left;" id="id_sc_field_gp_<?php echo $sc_seq_vert ?>" type=text name="gp_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($gp_) ?>"
 size=11 alt="{datatype: 'decimal', maxLength: 11, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['gp_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gp_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gp_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_gp_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gp_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['gp_yd_']) && $this->nmgp_cmp_hidden['gp_yd_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="gp_yd_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($gp_yd_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_gp_yd_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_gp_yd_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_gp_yd_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["gp_yd_"]) &&  $this->nmgp_cmp_readonly["gp_yd_"] == "on") { 

 ?>
<input type=hidden name="gp_yd_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($gp_yd_) . "\">" . $gp_yd_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_gp_yd_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-gp_yd_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_gp_yd_; ?>"><?php echo NM_encode_input($this->gp_yd_); ?></span><span id="id_read_off_gp_yd_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_gp_yd_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_gp_yd_<?php echo $sc_seq_vert ?>" type=text name="gp_yd_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($gp_yd_) ?>"
 size=9 alt="{datatype: 'decimal', maxLength: 9, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['gp_yd_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['gp_yd_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['gp_yd_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_gp_yd_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gp_yd_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['pc_']) && $this->nmgp_cmp_hidden['pc_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="pc_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($pc_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_pc_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_pc_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_pc_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["pc_"]) &&  $this->nmgp_cmp_readonly["pc_"] == "on") { 

 ?>
<input type=hidden name="pc_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($pc_) . "\">" . $pc_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_pc_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-pc_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_pc_; ?>"><?php echo NM_encode_input($this->pc_); ?></span><span id="id_read_off_pc_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_pc_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_pc_<?php echo $sc_seq_vert ?>" type=text name="pc_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($pc_) ?>"
 size=9 alt="{datatype: 'decimal', maxLength: 9, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['pc_']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['pc_']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['pc_']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_pc_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_pc_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['adate_']) && $this->nmgp_cmp_hidden['adate_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="adate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($adate_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_adate_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_adate_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_adate_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["adate_"]) &&  $this->nmgp_cmp_readonly["adate_"] == "on") { 

 ?>
<input type=hidden name="adate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($adate_) . "\">" . $adate_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_adate_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-adate_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_adate_; ?>"><?php echo NM_encode_input($this->adate_); ?></span><span id="id_read_off_adate_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_adate_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_adate_<?php echo $sc_seq_vert ?>" type=text name="adate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($adate_) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['adate_']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['adate_']['date_format']; ?>', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['adate_']['date_format'];
$tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data);
$tmp_form_data = str_replace('dd'  , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data);
$tmp_form_data = str_replace('mm'  , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data);
$tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data);
$tmp_form_data = str_replace('hh'  , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data);
$tmp_form_data = str_replace('ii'  , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data);
$tmp_form_data = str_replace('ss'  , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data);
$tmp_form_data = str_replace(';'   , ' '                                       , $tmp_form_data);
?>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_adate_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_adate_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['edate_']) && $this->nmgp_cmp_hidden['edate_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="edate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($edate_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_edate_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_edate_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_edate_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["edate_"]) &&  $this->nmgp_cmp_readonly["edate_"] == "on") { 

 ?>
<input type=hidden name="edate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($edate_) . "\">" . $edate_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_edate_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-edate_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_edate_; ?>"><?php echo NM_encode_input($this->edate_); ?></span><span id="id_read_off_edate_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_edate_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_edate_<?php echo $sc_seq_vert ?>" type=text name="edate_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($edate_) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['edate_']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['edate_']['date_format']; ?>', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['edate_']['date_format'];
$tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data);
$tmp_form_data = str_replace('dd'  , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data);
$tmp_form_data = str_replace('mm'  , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data);
$tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data);
$tmp_form_data = str_replace('hh'  , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data);
$tmp_form_data = str_replace('ii'  , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data);
$tmp_form_data = str_replace('ss'  , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data);
$tmp_form_data = str_replace(';'   , ' '                                       , $tmp_form_data);
?>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_edate_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_edate_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['smit_']) && $this->nmgp_cmp_hidden['smit_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="smit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($smit_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_smit_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_smit_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly_smit_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["smit_"]) &&  $this->nmgp_cmp_readonly["smit_"] == "on") { 

 ?>
<input type=hidden name="smit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($smit_) . "\">" . $smit_ . ""; ?>
<?php } else { ?>
<span id="id_read_on_smit_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-smit_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_smit_; ?>"><?php echo NM_encode_input($this->smit_); ?></span><span id="id_read_off_smit_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_smit_; ?>">
 <input class="sc-js-input scFormObjectOddMult" style=";" id="id_sc_field_smit_<?php echo $sc_seq_vert ?>" type=text name="smit_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($smit_) ?>"
 size=10 maxlength=10 alt="{datatype: 'text', maxLength: 10, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_smit_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_smit_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>


   <?php if (isset($this->nmgp_cmp_hidden['memo_']) && $this->nmgp_cmp_hidden['memo_'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="memo_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($memo_) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormDataOddMult" id="hidden_field_data_memo_<?php echo $sc_seq_vert; ?>" style="<?php echo $sStyleHidden_memo_; ?>;"> <table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOddMult" style=";;vertical-align: top;padding: 0px">
<?php
$memo__val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($memo_));

?>

<?php if ($bTestReadOnly_memo_ && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["memo_"]) &&  $this->nmgp_cmp_readonly["memo_"] == "on") { 

 ?>
<input type=hidden name="memo_<?php echo $sc_seq_vert ?>" value="<?php echo NM_encode_input($memo_) . "\">" . $memo__val . ""; ?>
<?php } else { ?>
<span id="id_read_on_memo_<?php echo $sc_seq_vert ?>" class="sc-ui-readonly-memo_<?php echo $sc_seq_vert ?>" style=";<?php echo $sStyleReadLab_memo_; ?>"><?php echo NM_encode_input($memo__val); ?></span><span id="id_read_off_memo_<?php echo $sc_seq_vert ?>" style="white-space: nowrap;<?php echo $sStyleReadInp_memo_; ?>">
 <textarea  class="sc-js-input scFormObjectOddMult" style=";" name="memo_<?php echo $sc_seq_vert ?>" id="id_sc_field_memo_<?php echo $sc_seq_vert ?>" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: true, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddMultWm', maskChars: '(){}[].,;:-+/ '}">
<?php echo str_replace(array('\r\n', '\n\r', '\n', '\r'), array("\r\n", "\n\r", "\n", "\r"), $memo_); ?>
</textarea>
</span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_memo_<?php echo $sc_seq_vert; ?>_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_memo_<?php echo $sc_seq_vert; ?>_text"></span></td></tr></table></td></tr></table> </TD>
   <?php }?>






   </tr>
<?php   
        if (isset($sCheckRead_invoice_))
       {
           $this->nmgp_cmp_readonly['invoice_'] = $sCheckRead_invoice_;
       }
       if ('display: none;' == $sStyleHidden_invoice_)
       {
           $this->nmgp_cmp_hidden['invoice_'] = 'off';
       }
       if (isset($sCheckRead_item_))
       {
           $this->nmgp_cmp_readonly['item_'] = $sCheckRead_item_;
       }
       if ('display: none;' == $sStyleHidden_item_)
       {
           $this->nmgp_cmp_hidden['item_'] = 'off';
       }
       if (isset($sCheckRead_date_))
       {
           $this->nmgp_cmp_readonly['date_'] = $sCheckRead_date_;
       }
       if ('display: none;' == $sStyleHidden_date_)
       {
           $this->nmgp_cmp_hidden['date_'] = 'off';
       }
       if (isset($sCheckRead_bcode_))
       {
           $this->nmgp_cmp_readonly['bcode_'] = $sCheckRead_bcode_;
       }
       if ('display: none;' == $sStyleHidden_bcode_)
       {
           $this->nmgp_cmp_hidden['bcode_'] = 'off';
       }
       if (isset($sCheckRead_lin_))
       {
           $this->nmgp_cmp_readonly['lin_'] = $sCheckRead_lin_;
       }
       if ('display: none;' == $sStyleHidden_lin_)
       {
           $this->nmgp_cmp_hidden['lin_'] = 'off';
       }
       if (isset($sCheckRead_sq_))
       {
           $this->nmgp_cmp_readonly['sq_'] = $sCheckRead_sq_;
       }
       if ('display: none;' == $sStyleHidden_sq_)
       {
           $this->nmgp_cmp_hidden['sq_'] = 'off';
       }
       if (isset($sCheckRead_style_))
       {
           $this->nmgp_cmp_readonly['style_'] = $sCheckRead_style_;
       }
       if ('display: none;' == $sStyleHidden_style_)
       {
           $this->nmgp_cmp_hidden['style_'] = 'off';
       }
       if (isset($sCheckRead_width_))
       {
           $this->nmgp_cmp_readonly['width_'] = $sCheckRead_width_;
       }
       if ('display: none;' == $sStyleHidden_width_)
       {
           $this->nmgp_cmp_hidden['width_'] = 'off';
       }
       if (isset($sCheckRead_color_))
       {
           $this->nmgp_cmp_readonly['color_'] = $sCheckRead_color_;
       }
       if ('display: none;' == $sStyleHidden_color_)
       {
           $this->nmgp_cmp_hidden['color_'] = 'off';
       }
       if (isset($sCheckRead_cust_order_))
       {
           $this->nmgp_cmp_readonly['cust_order_'] = $sCheckRead_cust_order_;
       }
       if ('display: none;' == $sStyleHidden_cust_order_)
       {
           $this->nmgp_cmp_hidden['cust_order_'] = 'off';
       }
       if (isset($sCheckRead_our_order_))
       {
           $this->nmgp_cmp_readonly['our_order_'] = $sCheckRead_our_order_;
       }
       if ('display: none;' == $sStyleHidden_our_order_)
       {
           $this->nmgp_cmp_hidden['our_order_'] = 'off';
       }
       if (isset($sCheckRead_price_))
       {
           $this->nmgp_cmp_readonly['price_'] = $sCheckRead_price_;
       }
       if ('display: none;' == $sStyleHidden_price_)
       {
           $this->nmgp_cmp_hidden['price_'] = 'off';
       }
       if (isset($sCheckRead_unit_))
       {
           $this->nmgp_cmp_readonly['unit_'] = $sCheckRead_unit_;
       }
       if ('display: none;' == $sStyleHidden_unit_)
       {
           $this->nmgp_cmp_hidden['unit_'] = 'off';
       }
       if (isset($sCheckRead_amount_))
       {
           $this->nmgp_cmp_readonly['amount_'] = $sCheckRead_amount_;
       }
       if ('display: none;' == $sStyleHidden_amount_)
       {
           $this->nmgp_cmp_hidden['amount_'] = 'off';
       }
       if (isset($sCheckRead_descrip_))
       {
           $this->nmgp_cmp_readonly['descrip_'] = $sCheckRead_descrip_;
       }
       if ('display: none;' == $sStyleHidden_descrip_)
       {
           $this->nmgp_cmp_hidden['descrip_'] = 'off';
       }
       if (isset($sCheckRead_dye_order_))
       {
           $this->nmgp_cmp_readonly['dye_order_'] = $sCheckRead_dye_order_;
       }
       if ('display: none;' == $sStyleHidden_dye_order_)
       {
           $this->nmgp_cmp_hidden['dye_order_'] = 'off';
       }
       if (isset($sCheckRead_dye_lot_))
       {
           $this->nmgp_cmp_readonly['dye_lot_'] = $sCheckRead_dye_lot_;
       }
       if ('display: none;' == $sStyleHidden_dye_lot_)
       {
           $this->nmgp_cmp_hidden['dye_lot_'] = 'off';
       }
       if (isset($sCheckRead_cases_))
       {
           $this->nmgp_cmp_readonly['cases_'] = $sCheckRead_cases_;
       }
       if ('display: none;' == $sStyleHidden_cases_)
       {
           $this->nmgp_cmp_hidden['cases_'] = 'off';
       }
       if (isset($sCheckRead_cost_))
       {
           $this->nmgp_cmp_readonly['cost_'] = $sCheckRead_cost_;
       }
       if ('display: none;' == $sStyleHidden_cost_)
       {
           $this->nmgp_cmp_hidden['cost_'] = 'off';
       }
       if (isset($sCheckRead_cost_yd_))
       {
           $this->nmgp_cmp_readonly['cost_yd_'] = $sCheckRead_cost_yd_;
       }
       if ('display: none;' == $sStyleHidden_cost_yd_)
       {
           $this->nmgp_cmp_hidden['cost_yd_'] = 'off';
       }
       if (isset($sCheckRead_gp_))
       {
           $this->nmgp_cmp_readonly['gp_'] = $sCheckRead_gp_;
       }
       if ('display: none;' == $sStyleHidden_gp_)
       {
           $this->nmgp_cmp_hidden['gp_'] = 'off';
       }
       if (isset($sCheckRead_gp_yd_))
       {
           $this->nmgp_cmp_readonly['gp_yd_'] = $sCheckRead_gp_yd_;
       }
       if ('display: none;' == $sStyleHidden_gp_yd_)
       {
           $this->nmgp_cmp_hidden['gp_yd_'] = 'off';
       }
       if (isset($sCheckRead_pc_))
       {
           $this->nmgp_cmp_readonly['pc_'] = $sCheckRead_pc_;
       }
       if ('display: none;' == $sStyleHidden_pc_)
       {
           $this->nmgp_cmp_hidden['pc_'] = 'off';
       }
       if (isset($sCheckRead_adate_))
       {
           $this->nmgp_cmp_readonly['adate_'] = $sCheckRead_adate_;
       }
       if ('display: none;' == $sStyleHidden_adate_)
       {
           $this->nmgp_cmp_hidden['adate_'] = 'off';
       }
       if (isset($sCheckRead_edate_))
       {
           $this->nmgp_cmp_readonly['edate_'] = $sCheckRead_edate_;
       }
       if ('display: none;' == $sStyleHidden_edate_)
       {
           $this->nmgp_cmp_hidden['edate_'] = 'off';
       }
       if (isset($sCheckRead_smit_))
       {
           $this->nmgp_cmp_readonly['smit_'] = $sCheckRead_smit_;
       }
       if ('display: none;' == $sStyleHidden_smit_)
       {
           $this->nmgp_cmp_hidden['smit_'] = 'off';
       }
       if (isset($sCheckRead_memo_))
       {
           $this->nmgp_cmp_readonly['memo_'] = $sCheckRead_memo_;
       }
       if ('display: none;' == $sStyleHidden_memo_)
       {
           $this->nmgp_cmp_hidden['memo_'] = 'off';
       }

   }
   if ($Line_Add) 
   { 
       $this->New_Line = ob_get_contents();
       ob_end_clean();
       $this->nmgp_opcao = $guarda_nmgp_opcao;
       $this->form_vert_billing_item_edit_grid = $guarda_form_vert_billing_item_edit_grid;
   } 
   if ($Table_refresh) 
   { 
       $this->Table_refresh = ob_get_contents();
       ob_end_clean();
   } 
}

function Form_Fim() 
{
   global $sc_seq_vert, $opcao_botoes, $nm_url_saida; 
?>   
</TABLE></div><!-- bloco_f -->
 </div> 
<?php
$iContrVert = $this->Embutida_form ? $sc_seq_vert + 1 : $sc_seq_vert + 1;
if ($sc_seq_vert < $this->sc_max_reg)
{
    echo " <script type=\"text/javascript\">";
    echo "    bRefreshTable = true;";
    echo "</script>";
}
?>
<input type=hidden name="sc_contr_vert" value="<?php echo NM_encode_input($iContrVert); ?>">
<?php
    $sEmptyStyle = 0 == $sc_seq_vert ? '' : 'display: none;';
?>
</td></tr>
<tr id="sc-ui-empty-form" style="<?php echo $sEmptyStyle; ?>"><td class="scFormPageText" style="padding: 10px; text-align: center">
<?php echo $this->Ini->Nm_lang['lang_errm_empt'];
?>
</td></tr> 
<tr><td>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R")
{
?>
    <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"> 
<?php
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($opcao_botoes != "novo" && $this->nmgp_botoes['goto'] == "on")
      {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "birpara", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", "brec_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
?> 
   <input type="text" class="scFormToolbarInput" name="nmgp_rec_b" value="" style="width:25px;vertical-align: middle;"/> 
<?php 
      }
      if ($opcao_botoes != "novo" && $this->nmgp_botoes['qtline'] == "on")
      {
?> 
          <span class="<?php echo $this->css_css_toolbar_obj ?>" style="border: 0px;"><?php echo $this->Ini->Nm_lang['lang_btns_rows'] ?></span>
          <select class="scFormToolbarInput" name="nmgp_quant_linhas_b" onchange="document.F7.nmgp_max_line.value = this.value; document.F7.submit();"> 
<?php 
              $obj_sel = ($this->sc_max_reg == 10) ? " selected" : "";
?> 
           <option value="10" <?php echo $obj_sel ?>>10</option>
<?php 
              $obj_sel = ($this->sc_max_reg == 20) ? " selected" : "";
?> 
           <option value="20" <?php echo $obj_sel ?>>20</option>
<?php 
              $obj_sel = ($this->sc_max_reg == 50) ? " selected" : "";
?> 
           <option value="50" <?php echo $obj_sel ?>>50</option>
          </select>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['first'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "binicio", "nm_move ('inicio'); return false;", "nm_move ('inicio'); return false;", "sc_b_ini_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bretorna", "nm_move ('retorna'); return false;", "nm_move ('retorna'); return false;", "sc_b_ret_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
if ($opcao_botoes != "novo" && $this->nmgp_botoes['navpage'] == "on")
{
?> 
     <span nowrap id="sc_b_navpage_b" class="scFormToolbarPadding"></span> 
<?php 
}
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['forward'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bavanca", "nm_move ('avanca'); return false;", "nm_move ('avanca'); return false;", "sc_b_avc_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && ('total' != $this->form_paginacao)) {
        $sCondStyle = ($this->nmgp_botoes['last'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bfinal", "nm_move ('final'); return false;", "nm_move ('final'); return false;", "sc_b_fim_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?php 
}
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 'b');</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['total'] + 1)?>);</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['run_iframe'] != "F") { ?><script>navpage_atualiza('<?php echo $this->SC_nav_page ?>');</script><?php } ?>
</td></tr> 
</table> 

<div id="id_debug_window" style="display: none; position: absolute; left: 50px; top: 50px"><table class="scFormMessageTable">
<tr><td class="scFormMessageTitle"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideDebug()", "scAjaxHideDebug()", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
&nbsp;&nbsp;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>
<script> 
 var iAjaxNewLine = <?php echo $sc_seq_vert; ?>;
 for (var iLine = 1; iLine <= iAjaxNewLine; iLine++) {
  scJQElementsAdd(iLine);
 }
</script> 
<div id="new_line_dummy" style="display: none">
</div>

</form> 
<script> 
<?php
  $nm_sc_blocos_da_pag = array(0);

  foreach ($this->Ini->nm_hidden_blocos as $bloco => $hidden)
  {
      if ($hidden == "off" && in_array($bloco, $nm_sc_blocos_da_pag))
      {
          echo "document.getElementById('hidden_bloco_" . $bloco . "').style.display = 'none';";
          if (isset($nm_sc_blocos_aba[$bloco]))
          {
               echo "document.getElementById('id_tabs_" . $nm_sc_blocos_aba[$bloco] . "_" . $bloco . "').style.display = 'none';";
          }
      }
  }
?>
</script> 
   </td></tr></table>
<script>
function updateHeaderFooter(sFldName, sFldValue)
{
  if (sFldValue[0] && sFldValue[0]["value"])
  {
    sFldValue = sFldValue[0]["value"];
  }
}
</script>
<?php
if (isset($_POST['master_nav']) && 'on' == $_POST['master_nav'])
{
    $sTamanhoIframe = isset($_POST['sc_ifr_height']) && '' != $_POST['sc_ifr_height'] ? '"' . $_POST['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailStatus("billing_item_edit_grid");
 parent.scAjaxDetailHeight("billing_item_edit_grid", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
elseif (isset($_GET['script_case_detail']) && 'Y' == $_GET['script_case_detail'])
{
    $sTamanhoIframe = isset($_GET['sc_ifr_height']) && '' != $_GET['sc_ifr_height'] ? '"' . $_GET['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailHeight("billing_item_edit_grid", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
?>
<?php
if (isset($this->NM_ajax_info['displayMsg']) && $this->NM_ajax_info['displayMsg'])
{
?>
<script type="text/javascript">
_scAjaxShowMessage(scMsgDefTitle, "<?php echo $this->NM_ajax_info['displayMsgTxt']; ?>", false, sc_ajaxMsgTime, false, "Ok", 0, 0, 0, 0, "", "", "", false, true);
</script>
<?php
}
?>
<?php
if ('' != $this->scFormFocusErrorName)
{
?>
<script>
scAjaxFocusError();
</script>
<?php
}
?>
<script>
bLigEditLookupCall = <?php if ($this->lig_edit_lookup_call) { ?>true<?php } else { ?>false<?php } ?>;
function scLigEditLookupCall()
{
<?php
if ($this->lig_edit_lookup && isset($_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['billing_item_edit_grid']['sc_modal'])
{
?>
  parent.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
elseif ($this->lig_edit_lookup)
{
?>
  opener.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
?>
}
if (bLigEditLookupCall)
{
  scLigEditLookupCall();
}
<?php
if (isset($this->redir_modal) && !empty($this->redir_modal))
{
    echo $this->redir_modal;
}
?>
</script>
</body> 
</html> 
<?php 
 } 
} 
?> 
