../desenvolvimento/dd_files/Business.ddini,iDesenvolvedor=1,iKeyUser=0,sGlobalUserBrowser=Chrome~120~Windows,sGlobalUserIP=191.13.114.93,iGlobalUserPort=60501,psVerQTUX=1.0.0.0
1
sHoraIni=19/12/2023 18:02:00
iPost=134
sKey=pLogin, sValue=3979
sKey=sDescricao, sValue=InquirioProduto.xls
sKey=jEntSai, sValue=1
sKey=pImp, sValue=0
sKey=sPathSaida, sValue=
sKey=jFormato, sValue=3
sKey=jTpModITp, sValue=1
sKey=jCorpUNeg, sValue=1
sKey=jModelo, sValue=1
sKey=jCMargem, sValue=0
sKey=jTipoCanc, sValue=2
sKey=pEmi, sValue=10
sKey=pDest, sValue=0
sKey=pRep, sValue=34978
sKey=jRefat, sValue=2
sKey=pGrupoCUP, sValue=0
sKey=tEmiOrdemDe, sValue=
sKey=tEmiOrdemAte, sValue=Jan-31-2022
sKey=tEmiNFeDe, sValue=Jan-01-2022
sKey=tEmiNFeAte, sValue=Jan-31-2022
sKey=tCancDe, sValue=
sKey=tCancAte, sValue=
sKey=tEntPlaDe, sValue=
sKey=tEntPlaAte, sValue=
sKey=jMarcaP, sValue=0
sKey=pRegDep, sValue=0
sKey=pItem, sValue=0
sKey=pRegCom, sValue=0
sKey=pRepRegComU, sValue=0
sKey=fRepRegComU, sValue=0
sKey=jRep, sValue=0
sKey=lDetalhado, sValue=1
sKey=lABCCli, sValue=0
sKey=nABCPCA, sValue=0
sKey=nABCPCB, sValue=0
sKey=lABCFor, sValue=0
sKey=nABCPFA, sValue=0
sKey=nABCPFB, sValue=0
sKey=lABCItm, sValue=0
sKey=nABCPIA, sValue=0
sKey=nABCPIB, sValue=0
sKey=lABCRep, sValue=0
sKey=nABCPRA, sValue=0
sKey=nABCPRB, sValue=0
sKey=jOrdenarDestPor, sValue=0
sKey=jOrdenarForPor, sValue=0
sKey=jOrdenarItemPor, sValue=0
sKey=jOrdenarRepPor, sValue=0
sKey=pCPla, sValue=0
sKey=pRAtiv, sValue=0
sKey=lExcelTravaTit, sValue=1
sKey=lExcelLigaCor, sValue=1
sKey=iVer, sValue=121
sKey=pRAvancModeloI_TOper_1, sValue=1631
sKey=pRAvancModeloI_TOper_2, sValue=1632
sKey=pRAvancModeloI_TOper_3, sValue=1643
sKey=pRAvancModeloI_TOper_4, sValue=1644
sKey=pRAvancModeloI_TOper_5, sValue=1645
sKey=pRAvancModeloI_TOper_6, sValue=1646
sKey=pRAvancModeloI_TOper_7, sValue=1647
sKey=pRAvancModeloI_TOper_8, sValue=1648
sKey=pRAvancModeloI_TOper_9, sValue=1649
sKey=pRAvancModeloI_TOper_10, sValue=0
sKey=pRAvancModeloI_TOper_11, sValue=0
sKey=pRAvancModeloI_TOper_12, sValue=0
sKey=pRAvancModeloI_TOper_13, sValue=0
sKey=pRAvancModeloI_TOper_14, sValue=0
sKey=pRAvancModeloI_TOper_15, sValue=0
sKey=pRAvancModeloI_TOper_16, sValue=0
sKey=pRAvancModeloI_TOper_17, sValue=0
sKey=pRAvancModeloI_TOper_18, sValue=0
sKey=pRAvancModeloI_TOper_19, sValue=0
sKey=pTOper_1, sValue=131
sKey=pTOper_2, sValue=1
sKey=pTOper_3, sValue=52
sKey=pTOper_4, sValue=94
sKey=pTOper_5, sValue=96
sKey=pTOper_6, sValue=167
sKey=pTOper_7, sValue=40
sKey=pTOper_8, sValue=208
sKey=pTOper_9, sValue=159
sKey=pTOper_10, sValue=0
sKey=pTOper_11, sValue=0
sKey=pTOper_12, sValue=0
sKey=pTOper_13, sValue=0
sKey=pTOper_14, sValue=0
sKey=pTOper_15, sValue=0
sKey=pTOper_16, sValue=0
sKey=pTOper_17, sValue=0
sKey=pTOper_18, sValue=0
sKey=pTOper_19, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_1, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_2, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_3, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_4, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_5, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_6, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_7, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_8, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_9, sValue=0
sKey=pRAvancModeloI_SubGrupoItens_10, sValue=0
sKey=pSubGrpItens_1, sValue=0
sKey=pSubGrpItens_2, sValue=0
sKey=pSubGrpItens_3, sValue=0
sKey=pSubGrpItens_4, sValue=0
sKey=pSubGrpItens_5, sValue=0
sKey=pSubGrpItens_6, sValue=0
sKey=pSubGrpItens_7, sValue=0
sKey=pSubGrpItens_8, sValue=0
sKey=pSubGrpItens_9, sValue=0
sKey=pSubGrpItens_10, sValue=0
sKey=sCliPasta, sValue=desenvolvimento
sKey=pCiaLogin, sValue=0
sKey=iCompany, sValue=12
sKey=sTotLinSubGridPreenchidos, sValue=9,0
sKey=sDDFChamada, sValue=1
sKey=sId, sValue=142
sKey=sDDSFile, sValue=dd_files/erp_RAvancModeloI.dda
sKey=sDDSTag, sValue=Padrao_1
sKey=sDSN, sValue=127.0.0.1:/qtux/database/tq/gps_01.gdb
sKey=sAncestrais, sValue=142
sKey=sTDocsAncestrais, sValue=
sKey=sMnemTDocsAncestrais, sValue=RAvancModeloI
sKey=sQryGrid, sValue=select first 100 skip 0 a.pPId,     a.jTpModITp,     b.sCoringa,     a.jFormato,     a.jEntSai,     a.jCorpUNeg,     a.sDescricao,     a.tInc  from RAvancModeloI a left join CUP  b on a.pIn0 = b.pPId and b.iVer = b.iVAt  where a.lExc = 0    and a.iVer = a.iVAt   and (   (1=1) or (a.pInc=3979)   )  order by a.pPId desc
sKey=iTimeLogin, sValue=1703019709386
sKey=iSss, sValue=4
sKey=iDesenvolvedor, sValue=1
sKey=iKeyUser, sValue=0
sKey=sGlobalUserBrowser, sValue=Chrome~120~Windows
sKey=sGlobalUserIP, sValue=191.13.114.93
sKey=iGlobalUserPort, sValue=60501
sKey=psVerQTUX, sValue=1.0.0.0
sKey=sMarcados, sValue=/
sKey=pChaveDinamica, sValue=0
POST -> key => value = pLogin => 3979, pKey=ppLogin
eEval=$ppLogin=3979;
POST -> key => value = sDescricao => InquirioProduto.xls, pKey=psDescricao
eEval=$psDescricao=InquirioProduto.xls;
POST -> key => value = jEntSai => 1, pKey=pjEntSai
eEval=$pjEntSai=1;
POST -> key => value = pImp => 0, pKey=ppImp
eEval=$ppImp=0;
POST -> key => value = sPathSaida => , pKey=psPathSaida
eEval=$psPathSaida=;
POST -> key => value = jFormato => 3, pKey=pjFormato
eEval=$pjFormato=3;
POST -> key => value = jTpModITp => 1, pKey=pjTpModITp
eEval=$pjTpModITp=1;
POST -> key => value = jCorpUNeg => 1, pKey=pjCorpUNeg
eEval=$pjCorpUNeg=1;
POST -> key => value = jModelo => 1, pKey=pjModelo
eEval=$pjModelo=1;
POST -> key => value = jCMargem => 0, pKey=pjCMargem
eEval=$pjCMargem=0;
POST -> key => value = jTipoCanc => 2, pKey=pjTipoCanc
eEval=$pjTipoCanc=2;
POST -> key => value = pEmi => 10, pKey=ppEmi
eEval=$ppEmi=10;
POST -> key => value = pDest => 0, pKey=ppDest
eEval=$ppDest=0;
POST -> key => value = pRep => 34978, pKey=ppRep
eEval=$ppRep=34978;
POST -> key => value = jRefat => 2, pKey=pjRefat
eEval=$pjRefat=2;
POST -> key => value = pGrupoCUP => 0, pKey=ppGrupoCUP
eEval=$ppGrupoCUP=0;
POST -> key => value = tEmiOrdemDe => , pKey=ptEmiOrdemDe
eEval=$ptEmiOrdemDe=;
POST -> key => value = tEmiOrdemAte => Jan-31-2022, pKey=ptEmiOrdemAte
eEval=$ptEmiOrdemAte=Jan-31-2022;
POST -> key => value = tEmiNFeDe => Jan-01-2022, pKey=ptEmiNFeDe
eEval=$ptEmiNFeDe=Jan-01-2022;
POST -> key => value = tEmiNFeAte => Jan-31-2022, pKey=ptEmiNFeAte
eEval=$ptEmiNFeAte=Jan-31-2022;
POST -> key => value = tCancDe => , pKey=ptCancDe
eEval=$ptCancDe=;
POST -> key => value = tCancAte => , pKey=ptCancAte
eEval=$ptCancAte=;
POST -> key => value = tEntPlaDe => , pKey=ptEntPlaDe
eEval=$ptEntPlaDe=;
POST -> key => value = tEntPlaAte => , pKey=ptEntPlaAte
eEval=$ptEntPlaAte=;
POST -> key => value = jMarcaP => 0, pKey=pjMarcaP
eEval=$pjMarcaP=0;
POST -> key => value = pRegDep => 0, pKey=ppRegDep
eEval=$ppRegDep=0;
POST -> key => value = pItem => 0, pKey=ppItem
eEval=$ppItem=0;
POST -> key => value = pRegCom => 0, pKey=ppRegCom
eEval=$ppRegCom=0;
POST -> key => value = pRepRegComU => 0, pKey=ppRepRegComU
eEval=$ppRepRegComU=0;
POST -> key => value = fRepRegComU => 0, pKey=pfRepRegComU
eEval=$pfRepRegComU=0;
POST -> key => value = jRep => 0, pKey=pjRep
eEval=$pjRep=0;
POST -> key => value = lDetalhado => 1, pKey=plDetalhado
eEval=$plDetalhado=1;
POST -> key => value = lABCCli => 0, pKey=plABCCli
eEval=$plABCCli=0;
POST -> key => value = nABCPCA => 0, pKey=pnABCPCA
eEval=$pnABCPCA=0;
POST -> key => value = nABCPCB => 0, pKey=pnABCPCB
eEval=$pnABCPCB=0;
POST -> key => value = lABCFor => 0, pKey=plABCFor
eEval=$plABCFor=0;
POST -> key => value = nABCPFA => 0, pKey=pnABCPFA
eEval=$pnABCPFA=0;
POST -> key => value = nABCPFB => 0, pKey=pnABCPFB
eEval=$pnABCPFB=0;
POST -> key => value = lABCItm => 0, pKey=plABCItm
eEval=$plABCItm=0;
POST -> key => value = nABCPIA => 0, pKey=pnABCPIA
eEval=$pnABCPIA=0;
POST -> key => value = nABCPIB => 0, pKey=pnABCPIB
eEval=$pnABCPIB=0;
POST -> key => value = lABCRep => 0, pKey=plABCRep
eEval=$plABCRep=0;
POST -> key => value = nABCPRA => 0, pKey=pnABCPRA
eEval=$pnABCPRA=0;
POST -> key => value = nABCPRB => 0, pKey=pnABCPRB
eEval=$pnABCPRB=0;
POST -> key => value = jOrdenarDestPor => 0, pKey=pjOrdenarDestPor
eEval=$pjOrdenarDestPor=0;
POST -> key => value = jOrdenarForPor => 0, pKey=pjOrdenarForPor
eEval=$pjOrdenarForPor=0;
POST -> key => value = jOrdenarItemPor => 0, pKey=pjOrdenarItemPor
eEval=$pjOrdenarItemPor=0;
POST -> key => value = jOrdenarRepPor => 0, pKey=pjOrdenarRepPor
eEval=$pjOrdenarRepPor=0;
POST -> key => value = pCPla => 0, pKey=ppCPla
eEval=$ppCPla=0;
POST -> key => value = pRAtiv => 0, pKey=ppRAtiv
eEval=$ppRAtiv=0;
POST -> key => value = lExcelTravaTit => 1, pKey=plExcelTravaTit
eEval=$plExcelTravaTit=1;
POST -> key => value = lExcelLigaCor => 1, pKey=plExcelLigaCor
eEval=$plExcelLigaCor=1;
POST -> key => value = iVer => 121, pKey=piVer
eEval=$piVer=121;
POST -> key => value = pRAvancModeloI_TOper_1 => 1631, pKey=ppRAvancModeloI_TOper_1
eEval=$ppRAvancModeloI_TOper_1=1631;
POST -> key => value = pRAvancModeloI_TOper_2 => 1632, pKey=ppRAvancModeloI_TOper_2
eEval=$ppRAvancModeloI_TOper_2=1632;
POST -> key => value = pRAvancModeloI_TOper_3 => 1643, pKey=ppRAvancModeloI_TOper_3
eEval=$ppRAvancModeloI_TOper_3=1643;
POST -> key => value = pRAvancModeloI_TOper_4 => 1644, pKey=ppRAvancModeloI_TOper_4
eEval=$ppRAvancModeloI_TOper_4=1644;
POST -> key => value = pRAvancModeloI_TOper_5 => 1645, pKey=ppRAvancModeloI_TOper_5
eEval=$ppRAvancModeloI_TOper_5=1645;
POST -> key => value = pRAvancModeloI_TOper_6 => 1646, pKey=ppRAvancModeloI_TOper_6
eEval=$ppRAvancModeloI_TOper_6=1646;
POST -> key => value = pRAvancModeloI_TOper_7 => 1647, pKey=ppRAvancModeloI_TOper_7
eEval=$ppRAvancModeloI_TOper_7=1647;
POST -> key => value = pRAvancModeloI_TOper_8 => 1648, pKey=ppRAvancModeloI_TOper_8
eEval=$ppRAvancModeloI_TOper_8=1648;
POST -> key => value = pRAvancModeloI_TOper_9 => 1649, pKey=ppRAvancModeloI_TOper_9
eEval=$ppRAvancModeloI_TOper_9=1649;
POST -> key => value = pRAvancModeloI_TOper_10 => 0, pKey=ppRAvancModeloI_TOper_10
eEval=$ppRAvancModeloI_TOper_10=0;
POST -> key => value = pRAvancModeloI_TOper_11 => 0, pKey=ppRAvancModeloI_TOper_11
eEval=$ppRAvancModeloI_TOper_11=0;
POST -> key => value = pRAvancModeloI_TOper_12 => 0, pKey=ppRAvancModeloI_TOper_12
eEval=$ppRAvancModeloI_TOper_12=0;
POST -> key => value = pRAvancModeloI_TOper_13 => 0, pKey=ppRAvancModeloI_TOper_13
eEval=$ppRAvancModeloI_TOper_13=0;
POST -> key => value = pRAvancModeloI_TOper_14 => 0, pKey=ppRAvancModeloI_TOper_14
eEval=$ppRAvancModeloI_TOper_14=0;
POST -> key => value = pRAvancModeloI_TOper_15 => 0, pKey=ppRAvancModeloI_TOper_15
eEval=$ppRAvancModeloI_TOper_15=0;
POST -> key => value = pRAvancModeloI_TOper_16 => 0, pKey=ppRAvancModeloI_TOper_16
eEval=$ppRAvancModeloI_TOper_16=0;
POST -> key => value = pRAvancModeloI_TOper_17 => 0, pKey=ppRAvancModeloI_TOper_17
eEval=$ppRAvancModeloI_TOper_17=0;
POST -> key => value = pRAvancModeloI_TOper_18 => 0, pKey=ppRAvancModeloI_TOper_18
eEval=$ppRAvancModeloI_TOper_18=0;
POST -> key => value = pRAvancModeloI_TOper_19 => 0, pKey=ppRAvancModeloI_TOper_19
eEval=$ppRAvancModeloI_TOper_19=0;
POST -> key => value = pTOper_1 => 131, pKey=ppTOper_1
eEval=$ppTOper_1=131;
POST -> key => value = pTOper_2 => 1, pKey=ppTOper_2
eEval=$ppTOper_2=1;
POST -> key => value = pTOper_3 => 52, pKey=ppTOper_3
eEval=$ppTOper_3=52;
POST -> key => value = pTOper_4 => 94, pKey=ppTOper_4
eEval=$ppTOper_4=94;
POST -> key => value = pTOper_5 => 96, pKey=ppTOper_5
eEval=$ppTOper_5=96;
POST -> key => value = pTOper_6 => 167, pKey=ppTOper_6
eEval=$ppTOper_6=167;
POST -> key => value = pTOper_7 => 40, pKey=ppTOper_7
eEval=$ppTOper_7=40;
POST -> key => value = pTOper_8 => 208, pKey=ppTOper_8
eEval=$ppTOper_8=208;
POST -> key => value = pTOper_9 => 159, pKey=ppTOper_9
eEval=$ppTOper_9=159;
POST -> key => value = pTOper_10 => 0, pKey=ppTOper_10
eEval=$ppTOper_10=0;
POST -> key => value = pTOper_11 => 0, pKey=ppTOper_11
eEval=$ppTOper_11=0;
POST -> key => value = pTOper_12 => 0, pKey=ppTOper_12
eEval=$ppTOper_12=0;
POST -> key => value = pTOper_13 => 0, pKey=ppTOper_13
eEval=$ppTOper_13=0;
POST -> key => value = pTOper_14 => 0, pKey=ppTOper_14
eEval=$ppTOper_14=0;
POST -> key => value = pTOper_15 => 0, pKey=ppTOper_15
eEval=$ppTOper_15=0;
POST -> key => value = pTOper_16 => 0, pKey=ppTOper_16
eEval=$ppTOper_16=0;
POST -> key => value = pTOper_17 => 0, pKey=ppTOper_17
eEval=$ppTOper_17=0;
POST -> key => value = pTOper_18 => 0, pKey=ppTOper_18
eEval=$ppTOper_18=0;
POST -> key => value = pTOper_19 => 0, pKey=ppTOper_19
eEval=$ppTOper_19=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_1 => 0, pKey=ppRAvancModeloI_SubGrupoItens_1
eEval=$ppRAvancModeloI_SubGrupoItens_1=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_2 => 0, pKey=ppRAvancModeloI_SubGrupoItens_2
eEval=$ppRAvancModeloI_SubGrupoItens_2=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_3 => 0, pKey=ppRAvancModeloI_SubGrupoItens_3
eEval=$ppRAvancModeloI_SubGrupoItens_3=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_4 => 0, pKey=ppRAvancModeloI_SubGrupoItens_4
eEval=$ppRAvancModeloI_SubGrupoItens_4=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_5 => 0, pKey=ppRAvancModeloI_SubGrupoItens_5
eEval=$ppRAvancModeloI_SubGrupoItens_5=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_6 => 0, pKey=ppRAvancModeloI_SubGrupoItens_6
eEval=$ppRAvancModeloI_SubGrupoItens_6=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_7 => 0, pKey=ppRAvancModeloI_SubGrupoItens_7
eEval=$ppRAvancModeloI_SubGrupoItens_7=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_8 => 0, pKey=ppRAvancModeloI_SubGrupoItens_8
eEval=$ppRAvancModeloI_SubGrupoItens_8=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_9 => 0, pKey=ppRAvancModeloI_SubGrupoItens_9
eEval=$ppRAvancModeloI_SubGrupoItens_9=0;
POST -> key => value = pRAvancModeloI_SubGrupoItens_10 => 0, pKey=ppRAvancModeloI_SubGrupoItens_10
eEval=$ppRAvancModeloI_SubGrupoItens_10=0;
POST -> key => value = pSubGrpItens_1 => 0, pKey=ppSubGrpItens_1
eEval=$ppSubGrpItens_1=0;
POST -> key => value = pSubGrpItens_2 => 0, pKey=ppSubGrpItens_2
eEval=$ppSubGrpItens_2=0;
POST -> key => value = pSubGrpItens_3 => 0, pKey=ppSubGrpItens_3
eEval=$ppSubGrpItens_3=0;
POST -> key => value = pSubGrpItens_4 => 0, pKey=ppSubGrpItens_4
eEval=$ppSubGrpItens_4=0;
POST -> key => value = pSubGrpItens_5 => 0, pKey=ppSubGrpItens_5
eEval=$ppSubGrpItens_5=0;
POST -> key => value = pSubGrpItens_6 => 0, pKey=ppSubGrpItens_6
eEval=$ppSubGrpItens_6=0;
POST -> key => value = pSubGrpItens_7 => 0, pKey=ppSubGrpItens_7
eEval=$ppSubGrpItens_7=0;
POST -> key => value = pSubGrpItens_8 => 0, pKey=ppSubGrpItens_8
eEval=$ppSubGrpItens_8=0;
POST -> key => value = pSubGrpItens_9 => 0, pKey=ppSubGrpItens_9
eEval=$ppSubGrpItens_9=0;
POST -> key => value = pSubGrpItens_10 => 0, pKey=ppSubGrpItens_10
eEval=$ppSubGrpItens_10=0;
POST -> key => value = sCliPasta => desenvolvimento, pKey=psCliPasta
eEval=$psCliPasta=desenvolvimento;
POST -> key => value = pCiaLogin => 0, pKey=ppCiaLogin
eEval=$ppCiaLogin=0;
POST -> key => value = iCompany => 12, pKey=piCompany
eEval=$piCompany=12;
POST -> key => value = sTotLinSubGridPreenchidos => 9,0, pKey=psTotLinSubGridPreenchidos
eEval=$psTotLinSubGridPreenchidos=9,0;
POST -> key => value = sDDFChamada => 1, pKey=psDDFChamada
eEval=$psDDFChamada=1;
POST -> key => value = sId => 142, pKey=psId
eEval=$psId=142;
POST -> key => value = sDDSFile => dd_files/erp_RAvancModeloI.dda, pKey=psDDSFile
eEval=$psDDSFile=dd_files/erp_RAvancModeloI.dda;
POST -> key => value = sDDSTag => Padrao_1, pKey=psDDSTag
eEval=$psDDSTag=Padrao_1;
POST -> key => value = sDSN => 127.0.0.1:/qtux/database/tq/gps_01.gdb, pKey=psDSN
eEval=$psDSN=127.0.0.1:/qtux/database/tq/gps_01.gdb;
POST -> key => value = sAncestrais => 142, pKey=psAncestrais
eEval=$psAncestrais=142;
POST -> key => value = sTDocsAncestrais => , pKey=psTDocsAncestrais
eEval=$psTDocsAncestrais=;
POST -> key => value = sMnemTDocsAncestrais => RAvancModeloI, pKey=psMnemTDocsAncestrais
eEval=$psMnemTDocsAncestrais=RAvancModeloI;
POST -> key => value = sQryGrid => select first 100 skip 0 a.pPId,     a.jTpModITp,     b.sCoringa,     a.jFormato,     a.jEntSai,     a.jCorpUNeg,     a.sDescricao,     a.tInc  from RAvancModeloI a left join CUP  b on a.pIn0 = b.pPId and b.iVer = b.iVAt  where a.lExc = 0    and a.iVer = a.iVAt   and (   (1=1) or (a.pInc=3979)   )  order by a.pPId desc, pKey=psQryGrid
eEval=$psQryGrid=select first 100 skip 0 a.pPId,     a.jTpModITp,     b.sCoringa,     a.jFormato,     a.jEntSai,     a.jCorpUNeg,     a.sDescricao,     a.tInc  from RAvancModeloI a left join CUP  b on a.pIn0 = b.pPId and b.iVer = b.iVAt  where a.lExc = 0    and a.iVer = a.iVAt   and (   (1=1) or (a.pInc=3979)   )  order by a.pPId desc;
POST -> key => value = iTimeLogin => 1703019709386, pKey=piTimeLogin
eEval=$piTimeLogin=1703019709386;
POST -> key => value = iSss => 4, pKey=piSss
eEval=$piSss=4;
POST -> key => value = iDesenvolvedor => 1, pKey=piDesenvolvedor
eEval=$piDesenvolvedor=1;
POST -> key => value = iKeyUser => 0, pKey=piKeyUser
eEval=$piKeyUser=0;
POST -> key => value = sGlobalUserBrowser => Chrome~120~Windows, pKey=psGlobalUserBrowser
eEval=$psGlobalUserBrowser=Chrome~120~Windows;
POST -> key => value = sGlobalUserIP => 191.13.114.93, pKey=psGlobalUserIP
eEval=$psGlobalUserIP=191.13.114.93;
POST -> key => value = iGlobalUserPort => 60501, pKey=piGlobalUserPort
eEval=$piGlobalUserPort=60501;
POST -> key => value = psVerQTUX => 1.0.0.0, pKey=ppsVerQTUX
eEval=$ppsVerQTUX=1.0.0.0;
POST -> key => value = sMarcados => /, pKey=psMarcados
eEval=$psMarcados=/;
POST -> key => value = pChaveDinamica => 0, pKey=ppChaveDinamica
eEval=$ppChaveDinamica=0;
1-../desenvolvimento/dd_files/Business.ddini
2
$jHisDB = '0';
$iPagAtrasado = '0';
$jIdioma = '0';
$sMnemProp = 'Desenvolvimento';
$jClassUser = '1';
$sProprietario = 'DESENVOLVIMENTO QTUX - Banco TQ';
$sPathDB = '/qtux/database/tq';
$sHost = '127.0.0.1';
$sPathFileSys = '/qtux/database/desenvolvimento/db_file_sys';
$sDB = 'gps_01.gdb';
$sPathAnexos = 'anexos/gps_producao';
$sSairHtml = 'index.php';
$sSubDomain = '/desenvolvimento';
$sLocalServer = '<b>Qtux ERP/GPS - LOCAWEB/SP</b>';
$sIniMailHeader = 'From: gps_master@qtux.com.br';
$sIniMailAdvisor = 'Governance Advisor';
$sPathDBCentral = '/qtux/database/gps_producao/gps_01.gdb';
$sLTokenProd = 'iH1EjVbAieeMNi5rnyCm9q2mSELvD59pJyJDlm61aB';
$sLTokenHomo = 'hL2CAZ3v1bF0Pc7yvTeiFFZcO6BUMJNPe2Fx7Dd39d';
$sIFCUser = 'ifc-TotalQui';
$sIFCPass = 'wYpJ1pd934Fk';
$sConsIFCUser = 'totalquimica';
$sConsIFCPass = 'tQfF2hr504RgC';
$sTokenRecWS = 'c8fceed6762b7df02fc065afe340018f8de2038a7daaa28bc402b728407f52e4';
$iDiasRecWS = '20';
$sNFeCustom = 'Desenvolvimento';
$iTimeSleep = '10';
$iTimeOutSin = '3*60';
$sCanalACBR = 'Desenvolvimento';
$sPathQtux = '/qtux/samba/NFe/sinais/<sPathCia>/';
$sPathACBR = 'F:\qtux\samba\NFe\sinais\<sPathCia>\\';
$sPathEnv = '/qtux/samba/NFe/sinais/NFeEnviadas/<sPathCia>/';
$sPathEnvDesc = '/qtux/samba/NFe/sinais/<sPathCia>/Descarte/';
$sPathCanDesc = '/qtux/samba/NFe/sinais/<sPathCia>/Cancelamento/Descarte/';
$sPathCce = '/qtux/samba/NFe/sinais/<sPathCia>/Cce/';
$sPathACBREnv = 'F:\qtux\samba\NFe\sinais\NFeEnviadas\<sPathCia>\\';
$sImpressoraDanfe = '';
$lNFeAgruparLotes = '1';
$sPathERP = '/qtux/samba/NFe/sinais/QryAEnviar/';
$sPathERPEnv = '/qtux/samba/NFe/sinais/QryEnviadas/';
$sPathERPFalhou = '/qtux/samba/NFe/sinais/QryProblemas/';
$sFileLockGerarXML_Enviar = '/qtux/samba/NFe/sinais/<sPathCia>/GerarXML_Enviar.lock';
$sFileLockRecepcaoACBR = '/qtux/samba/NFe/sinais/<sPathCia>/RecepcaoACBR.lock';
$sFileLockSolicitaACBR = '/qtux/samba/NFe/sinais/<sPathCia>/SolicitaACBR.lock';
$sFileLockQryFromERP = '/qtux/samba/NFe/sinais/<sPathCia>/QryFromERP.lock';
$sPathEDICxEnt = '/qtux/samba/edi/<sCanalEDI>/cx_entrada/';
$sPathEDICxProc = '/qtux/samba/edi/<sCanalEDI>/cx_processadas/';
$sPathEDICxSai = '/qtux/samba/edi/<sCanalEDI>/cx_saida/';
$sPathEDICxProb = '/qtux/samba/edi/<sCanalEDI>/cx_problemas/';
$sPathReports1 = '/qtux/samba/reports/';
$sPathReports2 = '/qtux/samba/reports/AImprimir/';
$sImagemInd = 'logo_ind_desenvolvimento.png';
$sImagemRel = 'logo_rel_desenvolvimento.png';
$ghBase = '0';

psTotLinSubGridPreenchidos=9,0
al_Get_fsLoad_include.php-inicio
fsLoadTag
fsLoadBloco
fsLoadFTag
fsLoadFBloco
al_Get_fsLoad_include.php-fim-sTxt=<Padrao_1>
   sTagMnemTDoc     = RAvancModeloI
   sTagTit          = Tit1
   sTagCpoTit       = CpoTit1
   sTagCpo          = Cpo1
   sTagSql          = Sql1
   sTagSqlSum       = SqlSum1
   sTagMainTable    = RAvancModeloI
   sTagMenu         = Menu1
   sTagNr0          = Nr02
   sTagTipoNr0      = TipoNr02
   sTagToolsBar     = Incluir,Excluir,Alterar,Zoom,Pesquisar
   sTagRAc          = false
   sTagPesquisar    = Pesquisar1
   sTagDbToVars     = DbToVars1
   sTagVarsDef      = VarsDefault1
   sTagScript       = ScriptForm1
   sTagVarsToServer = VarsToServer1
   sTagVarsToDb     = VarsToDb1
   sTagServerVal    = ServerValids1
   sTagTitulo       = TelaTit1
   sLabelsAlign     = Left
   sTagSubGrid      = 1,2
</Padrao_1>
<Padrao_1a>
   sTagMnemTDoc     = RAvancModeloI
   sTagTit          = Tit1a
   sTagCpoTit       = CpoTit1
   sTagCpo          = Cpo1
   sTagSql          = Sql1a
   sTagSqlSum       = SqlSum1
   sTagMainTable    = RAvancModeloI
   sTagMenu         = Menu1a
   sTagNr0          = Nr02
   sTagTipoNr0      = TipoNr02
   sTagToolsBar     = Incluir,Excluir,Alterar,Zoom,Pesquisar
   sTagRAc          = false
   sTagPesquisar    = Pesquisar1
   sTagDbToVars     = DbToVars1
   sTagVarsDef      = VarsDefault1a
   sTagScript       = ScriptForm1
   sTagVarsToServer = VarsToServer1
   sTagVarsToDb     = VarsToDb1
   sTagServerVal    = ServerValids1
   sTagTitulo       = TelaTit1
   sLabelsAlign     = Left
   sTagSubGrid      = 1,2
</Padrao_1a>
<Padrao_1b>
   sTagMnemTDoc     = RAvancModeloI
   sTagTit          = Tit1b
   sTagCpoTit       = CpoTit1
   sTagCpo          = Cpo1
   sTagSql          = Sql1b
   sTagSqlSum       = SqlSum1
   sTagMainTable    = RAvancModeloI
   sTagMenu         = Menu1a
   sTagNr0          = Nr02
   sTagTipoNr0      = TipoNr02
   sTagToolsBar     = Incluir,Excluir,Alterar,Zoom,Pesquisar
   sTagRAc          = false
   sTagPesquisar    = Pesquisar1
   sTagDbToVars     = DbToVars1
   sTagVarsDef      = VarsDefault1b
   sTagScript       = ScriptForm1
   sTagVarsToServer = VarsToServer1
   sTagVarsToDb     = VarsToDb1
   sTagServerVal    = ServerValids1
   sTagTitulo       = TelaTit1
   sLabelsAlign     = Left
   sTagSubGrid      = 1,2
</Padrao_1b>
<Padrao_2>
   sTagMnemTDoc     = RAvancModeloI
   sTagTit          = Tit1
   sTagCpoTit       = CpoTit2
   sTagCpo          = Cpo2
   sTagSql          = Sql2
   sTagSqlSum       = SqlSum1
   sTagMainTable    = RAvancModeloI
   sTagMenu         = Menu1
   sTagNr0          = Nr01
   sTagTipoNr0      = TipoNr01
   sTagToolsBar     = Zoom,Pesquisar
   sTagRAc          = false
   sTagPesquisar    = Pesquisar1
   sTagDbToVars     = DbToVars1
   sTagVarsDef      = VarsDefault1
   sTagScript       = ScriptForm1
   sTagVarsToServer = VarsToServer1
   sTagVarsToDb     = VarsToDb1
   sTagServerVal    = ServerValids1
   sTagTitulo       = TelaTit1
   sLabelsAlign     = Left
   sTagSubGrid      = 1,2
</Padrao_2>
<Tit1>Relatrio Avanado modelo (I) Comercial</Tit1>
<Tit1a>Relatrio Avanado modelo (I) Comercial - Representantes</Tit1a>
<Tit1b>Relatrio Avanado modelo (I) Comercial - Comisses</Tit1b>
<CpoTit1>
  Id-i-10
  Processado em-t-20
  Processado por-s-50
  Descrio-s-50
  Formato-s-10
  Operaes-s-10
  Corporativo/Unidade de Negcio-s-10
  Tipo-s-50
  Modelo-s-10
</CpoTit1>
<Cpo1>
   $aLin["PPID"]
   $aLin["TINC"]
   $aLin["SCORINGA"]
   $aLin["SDESCRICAO"]
   $aFormato[$aLin["JFORMATO"]]
   $aLin["JENTSAI"]==0 ? '0-Entrada' : '1-Saida'
   $aLin["JCORPUNEG"]==0 ? '1-Corporativo' : '2-Unidade de Negcio'
   $aLin["JTPMODITP"]==0 ? '1-Representante {Regiao Comercial Representante}' : ($aLin["JTPMODITP"]==1 ? '2-Item {Grupo/SubGrupo}' : ($aLin["JTPMODITP"]==2 ? '3-CUP {Grupo CUP}' : ($aLin["JTPMODITP"]==3 ? '4-Regio Comercial Representante' : ($aLin["JTPMODITP"]==4 ? '5-Regio Comercial CUP' : ($aLin["JTPMODITP"]==5 ? '6-NCM' : ($aLin["JTPMODITP"]==6 ? '7-Tipo de Operacao' : ($aLin["JTPMODITP"]==7 ? '8-SubGrupo de Itens' : ($aLin["JTPMODITP"]==8 ? '9-Grupo de CUP' : '10-Representante {Regiao Comercial Representante Unico}' ))))))))
   $aLin["JMODELO"]==0 ? '1-Comercial Valores' : '2-Comercial Contratos'
   $aLin["PPID"]
</Cpo1>
<Sql1>
   select a.pPId,
          a.jTpModITp,
          b.sCoringa,
          a.jFormato,
          a.jEntSai,
          a.jCorpUNeg,
          a.sDescricao,
          a.tInc
   from RAvancModeloI a left join CUP    b  on a.pIn0 = b.pPId and b.iVer = b.iVAt
   where a.lExc = 0  
     and a.iVer = a.iVAt
     and (
     ({iLoginRoot}=1) or (a.pInc={pLogin})
     )
   order by a.pPId desc
</Sql1>
<Sql1a>
   select a.pPId,
          a.jTpModITp,
          b.sCoringa,
          a.jFormato,
          a.jEntSai,
          a.jCorpUNeg,
          a.sDescricao,
          a.tInc
   from RAvancModeloI a left join CUP    b  on a.pIn0 = b.pPId and b.iVer = b.iVAt
   where a.lExc = 0  
     and a.iVer = a.iVAt
     and a.jRep = 1 
     and (
     ({iLoginRoot}=1) or (a.pInc={pLogin})
     )
   order by a.pPId desc
</Sql1a>
<Sql1b>
   select a.pPId,
          a.jTpModITp,
          b.sCoringa,
          a.jFormato,
          a.jEntSai,
          a.jCorpUNeg,
          a.sDescricao,
          a.tInc
   from RAvancModeloI a left join CUP    b  on a.pIn0 = b.pPId and b.iVer = b.iVAt
   where a.lExc = 0  
     and a.iVer = a.iVAt
     and a.jComissao = 1 
     and (
     ({iLoginRoot}=1) or (a.pInc={pLogin})
     )
   order by a.pPId desc
</Sql1b>
<CpoTit2>   
  Id-i-10
  Descrio-s-50
  Corporativo/Unidade de Negcio-s-10
</CpoTit2>
<Cpo2>
   $aLin["PPID"]
   $aLin["SDESCRICAO"]
   $aLin["JCORPUNEG"]==0 ? '1-Corporativo' : '2-Unidade de Negcio'
   $aLin["PPID"]
</Cpo2>
<Sql2>
   select a.pPId,
          a.jTpModITp,
          b.sCoringa,
          a.jFormato,
          a.jEntSai,
          a.jCorpUNeg,
          a.sDescricao,
          a.tInc
   from RAvancModeloI     a, 
        CUP               b,
        RAvancModeloI_Rep c
   where a.lExc = 0  
     and a.pIn0    = b.pPId and b.iVer = b.iVAt
     and c.pRAModI = a.pPId and c.iVer = c.iVAt
     and c.lExc    = 0 
     and a.iVer    = a.iVAt
     and c.pRep    = {pLogin}
   order by a.pPId desc
</Sql2>
<Pesquisar1>
   ((upper(a.tInc) like '%{p0}%') or (upper(b.sCoringa) like '%{p0}%'))
</Pesquisar1>
<Menu1>
   main1 ; Processar ; flOpenWindowPost('processos/RAvancImprimir.php?iCompany='+parent.iGlobalCompany+'&sCliPasta='+parent.sCliPasta+'&sId='+this.oPai.fiChaveAtual()+'&sLogin='+parent.aGlobalLogin[1]+'&sRoot='+parent.sGlobalRoot+'&sMarcados='+this.oPai.sMarcados)
   main1 ; Trade ; flOpenWindowPost('processos/Trade.php?iCompany='+parent.iGlobalCompany+'&sCliPasta='+parent.sCliPasta+'&sId='+this.oPai.fiChaveAtual()+'&sLogin='+parent.aGlobalLogin[1]+'&sRoot='+parent.sGlobalRoot+'&sMarcados='+this.oPai.sMarcados)
</Menu1>
<Menu1a>
   main1 ; Processar ; flOpenWindowPost('processos/RAvancImprimir.php?iCompany='+parent.iGlobalCompany+'&sCliPasta='+parent.sCliPasta+'&sId='+this.oPai.fiChaveAtual()+'&sLogin='+parent.aGlobalLogin[1]+'&sRoot='+parent.sGlobalRoot+'&sMarcados='+this.oPai.sMarcados)
   main1 ; Representantes ; flGrid(this.oPai,'dd_files/erp_RAvancModeloI_Rep.dda','Padrao_1')
</Menu1a>
<Nr01>alert("Qtux-Dialog\n\nNada a relacionar ...")</Nr01>
<Nr02>oGrid.flGridInc()</Nr02>
<TipoNr01>0</TipoNr01>
<TipoNr02>1</TipoNr02>
<TelaTit1>
    Relatrio Avanado modelo (I) Comercial
</TelaTit1>
<DbToVars1> 
   select a.tInc,
          a.iVer,
          a.iVAt,
          a.pPId,
          a.jTpModITp,
          a.jModelo,
          a.sDescricao,
          a.tEmiOrdemDe   dEmiOrdemDe,
          a.tEmiOrdemAte  dEmiOrdemAte, 
          a.tEmiNFeDe     dEmiNFeDe,  
          a.tEmiNFeAte    dEmiNFeAte,
          a.tCancDe       dCancDe,    
          a.tCancAte      dCancAte,
          a.tEntPlaDe       dEntPlaDe,    
          a.tEntPlaAte      dEntPlaAte,
          a.pDest,
          b.sCoringa sEmi,
          a.pEmi,
          c.sCoringa  sDest,
          c.sCoringa  sDest0,
          a.pRep,    
          e.sCoringa sRep,
          a.pRegDep,
          b1.pDep,
          bb.pUFis,
          e1.sUFis      sUn1,
          f1.sUFis      sUn2,
          g1.sUFis      sUn3,
          h1.sUFis      sUn4,
          i1.sUFis      sUn5,
          j1.sUFis      sUn6,
          k1.sUFis      sUn7,
          a.pItem,   
          g.sDescricao   sDesItem,
          g.sCodigo      sCodItem,
          a.pRegCom,
          h.sCodigo  sCodRegCom,
          h.sRegiao,
          a.pGrupoCUP,
          i.sGrupo sGrupo,
          a.jCorpUNeg,
          a.jCMargem,
          a.sPathSaida,
          a.jFormato,
          a.pImp,
          f.sImp,
          f.sDescricao sDesImp,
          a.jEntSai,
          a.pRepRegComU,
          a.fRepRegComU,
          i2.sCodigo  sCodRepRegComU,
          i2.sRegiao  sRepRegComU,
          a.jTipoCanc,
          a.lABCCli,
          a.nABCPCA, 
          a.nABCPCB,
          a.lABCFor,
          a.nABCPFA,
          a.nABCPFB,
          a.lABCItm,
          a.nABCPIA,
          a.nABCPIB,
          a.lABCRep,
          a.nABCPRA,
          a.nABCPRB,
          a.lDetalhado,
          a.jOrdenarDestPor,
          a.jOrdenarForPor,
          a.jOrdenarItemPor,
          a.jOrdenarRepPor,
          a.pCPla,
          d.sCodigo    sCodCPla,
          d.sDescricao sDesCPla,
          a.jRefat,
          a.jRep,
          a.jMarcaP,
          a.pRAtiv,
          a.lExcelTravaTit,
          a.lExcelLigaCor,
          j.sDescricao sRAtiv,
          z.sCoringa
   from   RAvancModeloI a   left join CUP                b on a.pEmi            = b.pPId and b.iVer = b.iVAt 
                            left join CUP                c on a.pDest           = c.pPId and c.iVer = c.iVAt 
                            left join CUP                e on a.pRep            = e.pPId and e.iVer = e.iVAt
                            left join Itens              g on a.pItem           = g.pPId and g.iVer = g.iVAt
                            left join RegiaoCom          h on a.pRegCom         = h.pPId and h.iVer=h.iVAt
                            left join GrupoCUP           i on a.pGrupoCUP       = i.pPId and i.iVer=i.iVAt
                            left join RegiaoCom          i2 on a.pRepRegComU    = i2.pPId and i2.iVer=i2.iVAt
                            left join Impressora         f on a.pImp            = f.pPId and f.iVer = f.iVAt  
                            left join PlaConta           d on a.pCPla           = d.pPId and d.iVer = d.iVAt
                            left join RAtiv              j on a.pRAtiv          = j.pPId and j.iVer = j.iVAt
                            left join EST_RegDepositos   b1 on a.pRegDep        = b1.pPId    and b1.iVer = b1.iVAt
                            left join EST_Depositos      bb on b1.pDep          = bb.pPId    and bb.iVer = bb.iVAt
                            left join UFis               e1 on bb.pUFis         = e1.pPId    and e1.iVer = e1.iVAt
                            left join UFis               f1 on e1.pParent       = f1.pPId    and f1.iVer = f1.iVAt
                            left join UFis               g1 on f1.pParent       = g1.pPId    and g1.iVer = g1.iVAt
                            left join UFis               h1 on g1.pParent       = h1.pPId    and h1.iVer = h1.iVAt
                            left join UFis               i1 on h1.pParent       = i1.pPId    and i1.iVer = i1.iVAt
                            left join UFis               j1 on i1.pParent       = j1.pPId    and j1.iVer = j1.iVAt
                            left join UFis               k1 on j1.pParent       = k1.pPId    and k1.iVer = k1.iVAt,
          CUP            z
   where a.pPId = {pId}
     and a.iVer = {a.iVer}
     and a.pInc = z.pPId and z.iVer = z.iVAt
</DbToVars1>
<1>
   select a.pPId        pRAvancModeloI_TOper_i,
          b.pPId        pTOper_i,
          b.sDescricao  sDesTOper_i,
          b.sCodigo     sCodTOper_i
   from RAvancModeloI_TOper a,
        TOper               b
   where a.iVer      = a.iVAt
     and a.pTOper    = b.pPId and b.iVer = b.iVAt
     and a.lExc      = 0
     and a.pRAvancMI = {ChaveAtual_0}
</1>
<2>
   select a.pPId           pRAvancModeloI_SubGrupoItens_i,
          b.pPId           pSubGrpItens_i,
          b.sCodigo        sSubGrpSkuCod_i,
          b.sSubGrupo      sSubGrpSku_i
   from RAvancModeloI_SubGrupoItens a, 
        SubGrupoSKU                 b 
   where a.iVer      = a.iVAt
     and a.lExc      = 0
     and a.pSubGrpItens  = b.pPId  and  b.iVer =  b.iVAt
     and a.pRAvancMI = {ChaveAtual_0}
</2>
<VarsDefault1>
   sVerVAt   = {iVer+'/'+iVAt}
   sRastro   = {sVerVAt+', '+sCoringa+', '+tInc}
   aModelo   = 1-Comercial Valores, 2-Comercial Contratos,3-Positivacao,4-Participacao,5-Canal Vendas
   aTpModITp = 1-Representante {Regiao Comercial Representante},2-Item {Grupo/SubGrupo},3-CUP {Grupo CUP},4-Regio Comercial Representante,5-Regio Comercial CUP,6-NCM,7-Tipo de Operacao,8-SubGrupo de Itens,9-Grupo de CUP,10-Representante {Regiao Comercial Representante Unico},11-Item {Grupo/SubGrupo} sem PZM e Meta,12-CUP {Ramo de Atividade} 
   aCorpUNeg = 1-Corporativo,2-Unidade de Negcio
   aCMargem  = 1-Custo Mdio,2-Ultimo Custo
   aFormato  = 1-Visualizar,2-Imprimir,3-Arquivo,4-Excel
   aEntSai   = 0-Entrada,1-Saida
   aTipoCanc = Ambas,Somente as canceladas,Somente as no canceladas
   aRefat    = Ambas, Refaturadas,No Refaturadas
   aOrdenarDestPor = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarForPor  = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarItemPor = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarRepPor  = 0-Valor,1-Quantidade,2-Alfabtica
   aMarcaP     = Ambos, Apenas MP, Fora MP
   aExcelTitCor = NO,SIM
</VarsDefault1>
<VarsDefault1a>
   sVerVAt   = {iVer+'/'+iVAt}
   sRastro   = {sVerVAt+', '+sCoringa+', '+tInc}
   aModelo   = 1-Comercial Valores, 2-Comercial Contratos,3-Positivacao,4-Participacao,5-Canal Vendas
   aTpModITp = 1-Representante {Regiao Comercial Representante},2-Item {Grupo/SubGrupo},3-CUP {Grupo CUP},4-Regio Comercial Representante,5-Regio Comercial CUP,6-NCM,7-Tipo de Operacao,8-SubGrupo de Itens,9-Grupo de CUP,10-Representante {Regiao Comercial Representante Unico},11-Item {Grupo/SubGrupo} sem PZM e Meta,12-CUP {Ramo de Atividade} 
   aCorpUNeg = 1-Corporativo,2-Unidade de Negcio
   aCMargem  = 1-Custo Mdio,2-Ultimo Custo
   aFormato  = 1-Visualizar,2-Imprimir,3-Arquivo,4-Excel
   aEntSai   = 0-Entrada,1-Saida
   aTipoCanc = Ambas,Somente as canceladas,Somente as no canceladas
   aRefat    = Ambas, Refaturadas,No Refaturadas
   jRep      = 1 
   aOrdenarDestPor = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarForPor  = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarItemPor = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarRepPor  = 0-Valor,1-Quantidade,2-Alfabtica
   aMarcaP     = Ambos, Apenas MP, Fora MP
   aExcelTitCor = NO,SIM
</VarsDefault1a>
<VarsDefault1b>
   sVerVAt   = {iVer+'/'+iVAt}
   sRastro   = {sVerVAt+', '+sCoringa+', '+tInc}
   aModelo   = 1-Comercial Valores, 2-Comercial Contratos,3-Positivacao,4-Participacao,5-Canal Vendas
   aTpModITp = 1-Representante {Regiao Comercial Representante},2-Item {Grupo/SubGrupo},3-CUP {Grupo CUP},4-Regio Comercial Representante,5-Regio Comercial CUP,6-NCM,7-Tipo de Operacao,8-SubGrupo de Itens,9-Grupo de CUP,10-Representante {Regiao Comercial Representante Unico},11-Item {Grupo/SubGrupo} sem PZM e Meta,12-CUP {Ramo de Atividade} 
   aCorpUNeg = 1-Corporativo,2-Unidade de Negcio
   aCMargem  = 1-Custo Mdio,2-Ultimo Custo
   aFormato  = 1-Visualizar,2-Imprimir,3-Arquivo,4-Excel
   aEntSai   = 0-Entrada,1-Saida
   aTipoCanc = Ambas,Somente as canceladas,Somente as no canceladas
   aRefat    = Ambas, Refaturadas,No Refaturadas
   jComissao = 1
   aOrdenarDestPor = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarForPor  = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarItemPor = 0-Valor,1-Quantidade,2-Alfabtica
   aOrdenarRepPor  = 0-Valor,1-Quantidade,2-Alfabtica
   aMarcaP     = Ambos, Apenas MP, Fora MP
   aExcelTitCor = NO,SIM
</VarsDefault1b>
<ScriptForm1>
   Rastreabilidade    ; sRastro-100     ; fontweight='bold' ; editable=false  ; visible=(iDDFChamada>0)
   Identificao      ;                 ; fontweight='bold'
      ;
      Descrio                         ; sDescricao-50                  ; identlabel=5 ; editable=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      ;
      Formato                           ; aFormato[jFormato]             ; identlabel=5 ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Excel com Titulo fixo?            ; aExcelTitCor[lExcelTravaTit]        ; identlabel=5 ; visible=(jFormato==3)
      Excel com Colunas coloridas?      ; aExcelTitCor[lExcelLigaCor]         ; identlabel=5 ; visible=(jFormato==3)
      ;; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Path/arquivo de sada            ; sPathSaida-70                ; identlabel=5 ; visible=(((jFormato==2))&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      Descrio                        ; sDesImp-50                   ; esc=('dd_files/erp_Impressora.dda','Esc_Padrao_1','sDesImp','pImp,sDesImp,sImp') ; identlabel=5 ; visible=((jFormato==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      Impressora                       ; sImp-50                      ; identlabel=5 ; visible=((jFormato==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))) ; editable=false
      ; ; visible=((jFormato==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      ; ; visible=(((jFormato==2))&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      Operaes                          ; aEntSai[jEntSai]    ;  identlabel=5 ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')) ; exec=(this.flSetVar('pDest',0) && this.flSetVar('sDest','') && this.flSetVar('sDest0','') && flSOA_RAvancModeloI(this,iTotLinSubGridPreenchidos_1))
      ; ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Corporativo/Unidade de Negcio      ; aCorpUNeg[jCorpUNeg]           ; identlabel=5 ; 
      ;
      Modelo                              ; aModelo[jModelo]               ; identlabel=5 ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      ; ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Tipo                                ; aTpModITp[jTpModITp]           ; identlabel=5 ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      ; ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      BC Margem Contribuico              ; aCMargem[jCMargem]             ; identlabel=5 ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      ; ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Cancelamento                        ; aTipoCanc[jTipoCanc]                   ; identlabel=5 ; 
      ;
      Refaturamento                       ; aRefat[jRefat]                 ; identlabel=5 ; visible=(jEntSai==1)
      ;
      Marca Prpria                       ; aMarcaP[jMarcaP]               ; identlabel=5 ; visible=(jEntSai==1)
      ;
      Emissor                             ; sEmi-60                        ; identlabel=5 ; esc=('dd_files/UNeg.dda','Esc_Padrao_1','sEmi','pEmi,sEmi')
      Destinatrio                        ; sDest0-60                      ; identlabel=5 ; esc=('dd_files/erp_Fornec.dda','Esc_Padrao_1','sDest0','pDest,sDest0,fDest') ;  visible=(jEntSai==0) ;
      Destinatrio                        ; sDest-60                       ; identlabel=5 ; esc=('dd_files/erp_Cliente.dda','Esc_Padrao_1','sDest','pDest,fDest,sDest')  ;  visible=(jEntSai==1)
      ;     
      Ramo de Atividade                   ; sRAtiv-60                      ; identlabel=5 ; esc=('dd_files/RAtiv.dda','Esc_Padrao_1','sRAtiv','pRAtiv,sRAtiv')
      Grupo Comercial do CUP              ; sGrupo-60                      ; identlabel=5 ; esc=('dd_files/erp_GrupoCUP.dda','Esc_Padrao_1','sGrupo','pGrupoCUP,sCodigo,sGrupo') ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Representante                       ; sRep-60                        ; identlabel=5 ; esc=('dd_files/erp_Repres.dda','Esc_Padrao_1','sRep','pRep,sRep,fRep') ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Regio Comercial do CUP             ; sRegiao-60                     ; identlabel=5 ; esc=('dd_files/erp_RegiaoComercial.dda','Esc_Padrao_1','sRegiao','pRegCom,sRegiao') ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Regio Comercial do Representante Unico  ; sRepRegComU-60            ; identlabel=5      ; esc=('dd_files/erp_RegiaoComercial.dda','Esc_Padrao_1','sRepRegComU','pRepRegComU,sRepRegComU') ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      ; ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Emisso da Ordem de Saida  De / At ; dEmiOrdemDe-20,dEmiOrdemAte-20 ; identlabel=5 ;  
      Emisso da NFe De / At             ; dEmiNFeDe-20  ,dEmiNFeAte-20   ; identlabel=5 ;  
      Cancelamento De / At               ; dCancDe-20    ,dCancAte-20     ; identlabel=5 ;  
      Entrega Planejada De / At          ; dEntPlaDe-20  ,dEntPlaAte-20   ; identlabel=5 ;  
      ;
      Item                                ; sCodItem-20                    ; identlabel=5 ; esc=('dd_files/erp_Itens.dda','Esc_Padrao_4','sCodItem','pItem,stmp,sCodItem,sDesItem') 
                                          ; sDesItem-60                    ; identlabel=5 ; editable=false ; 
      ;
      Plano de Contas                     ; sCodCPla-30                    ; identlabel=5  ; esc=('dd_files/erp_PlaConta.dda','Esc_Padrao_1','sCodPla','pCPla,sCodCPla,sDesCPla,fCPla')
                                          ; sDesCPla-50                    ; identlabel=5  ; editable=false ; visible=(pCPla>0)
      ;
Tipo de Operao ;; fontweight='bold'; identlabel=5 ;   
   SubGrid-1 {
     (i))                                 ; sCodTOper_i-30    ; identlabel=5 ; esc=('dd_files/erp_TOper.dda','Esc_Padrao_6','sCodTOper_i,jEntSai','pTOper_i,sCodTOper_i,sDesTOper_i') ; visible=(((i))<=(iTotLinSubGridPreenchidos_1))
                                         ; sDesTOper_i-60    ; identlabel=5 ; editable=false ; visible=(((i))<=(iTotLinSubGridPreenchidos_1))
      ;;visible=(((i))<=(iTotLinSubGridPreenchidos_1))
   }
   <span style='color: #00AA00_ text-decoration: underline_ cursor: pointer_' onclick='oTelaDefault.flIncSubGrid(1,"pTOper")_'>Incluir novo Tipo de Operao </span> ; ; identlabel=10; visible=(iDDFChamada<2)
;
Sub-grupo de Itens  ;; fontweight='bold'; identlabel=5 ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
   SubGrid-2 {
      (i))                    ; sSubGrpSku_i-50    ; identlabel=5 ; esc=('dd_files/erp_SubGrupoSKU.dda','Esc_Padrao_2','sSubGrpSku_i','pSubGrpItens_i,sSubGrpSkuCod_i,sSubGrpSku_i') ; visible=(((i))<=(iTotLinSubGridPreenchidos_2)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      ;;visible=(((i))<=(iTotLinSubGridPreenchidos_2)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
   }
   <span style='color: #00AA00_ text-decoration: underline_ cursor: pointer_' onclick='oTelaDefault.flIncSubGrid(2,"pSubGrpItens")_'>Incluir novo Sub-grupo de Itens </span> ; ; identlabel=10; visible=((iDDFChamada<2)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
; ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Depsitos                           ; sUn1-50                        ; identlabel=5   ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')) ; esc=('dd_files/erp_EST_RegDepositos.dda','Esc_Padrao_1','sUn1,pItem,pEmi','pRegDep,sUn1,sUn2,sUn3,sUn4,sUn5,sUn6,sUn7,sIns,fRegDep,sUnidade')
                                          ; sUn2-50                        ; editable=false ; fieldborder=0 ; visible=((sUn2!='')&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))   
                                          ; sUn3-50                        ; editable=false ; fieldborder=0 ; visible=((sUn3!='')&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))   
                                          ; sUn4-50                        ; editable=false ; fieldborder=0 ; visible=((sUn4!='')&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))  
                                          ; sUn5-50                        ; editable=false ; fieldborder=0 ; visible=((sUn5!='')&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))  
                                          ; sUn6-50                        ; editable=false ; fieldborder=0 ; visible=((sUn6!='')&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))   
                                          ; sUn7-50                        ; editable=false ; fieldborder=0 ; visible=((sUn7!='')&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))) 
; ;  visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
  Imprimir Curva ABC do Cliente (Faturado)      ; lABCCli           ;  identlabel=5  ; visible=((jEntSai==1)&&(sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Ordenao                                 ; aOrdenarDestPor[jOrdenarDestPor] ;  identlabel=15 ; visible=((lABCCli==1)&&(jEntSai==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Cliente A                               ; nABCPCA-12-2      ;  identlabel=15 ; visible=((lABCCli==1)&&(jEntSai==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Cliente B                               ; nABCPCB-12-2      ;  identlabel=15 ; visible=((lABCCli==1)&&(jEntSai==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
   Imprimir Curba ABC do Fornecedor (Faturado)  ; lABCFor-12-2      ;  identlabel=5  ; visible=((jEntSai==0)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      Ordenao                                 ; aOrdenarForPor[jOrdenarForPor] ;  identlabel=15 ; visible=((lABCFor==1)&&(jEntSai==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Fornecedor A                            ; nABCPFA-12-2      ;  identlabel=15 ; visible=((lABCFor==1)&&(jEntSai==0)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Fornecedor B                            ; nABCPFB-12-2      ;  identlabel=15 ; visible=((lABCFor==1)&&(jEntSai==0)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
   Imprimir Curva ABC do Item (Faturado)        ; lABCItm           ;  identlabel=5  ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Ordenao                                 ; aOrdenarItemPor[jOrdenarItemPor] ;  identlabel=15 ; visible=((lABCItm==1)&&(jEntSai==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Item A                                  ; nABCPIA-12-2      ;  identlabel=15 ; visible=((lABCItm==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Item B                                  ; nABCPIB-12-2      ;  identlabel=15 ; visible=((lABCItm==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
   Imprimir Curva ABC do Representante (Faturado)        ; lABCRep       ;  identlabel=5 ; visible=((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b'))
      Ordenao                                 ; aOrdenarRepPor[jOrdenarRepPor] ;  identlabel=15 ; visible=((lABCRep==1)&&(jEntSai==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Item A                                  ; nABCPRA-12-2      ;  identlabel=15 ; visible=((lABCRep==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
      % Item B                                  ; nABCPRB-12-2      ;  identlabel=15 ; visible=((lABCRep==1)&&((sDDFTagApl=='Padrao_1')||(sDDFTagApl=='Padrao_1a')||(sDDFTagApl=='Padrao_1b')))
;;
</ScriptForm1>
<VarsToServer1>
   sDescricao
   jEntSai
   pImp
   sPathSaida
   jFormato
   jTpModITp     
   jCorpUNeg
   jModelo 
   jCMargem      
   jTipoCanc
   pEmi          
   pDest         
   pRep          
   jRefat
   pGrupoCUP     
   tEmiOrdemDe   = dEmiOrdemDe
   tEmiOrdemAte  = dEmiOrdemAte
   tEmiNFeDe     = dEmiNFeDe
   tEmiNFeAte    = dEmiNFeAte
   tCancDe       = dCancDe
   tCancAte      = dCancAte
   tEntPlaDe     = dEntPlaDe
   tEntPlaAte    = dEntPlaAte
   jMarcaP
   pRegDep       
   pItem         
   pRegCom       
   pRepRegComU
   fRepRegComU
   jRep
   lDetalhado = (lABCCli+lABCFor+lABCItm+lABCRep==0) ? 1 : 0
   lABCCli
   nABCPCA
   nABCPCB
   lABCFor
   nABCPFA
   nABCPFB
   lABCItm
   nABCPIA
   nABCPIB
   lABCRep
   nABCPRA
   nABCPRB
   jOrdenarDestPor
   jOrdenarForPor
   jOrdenarItemPor
   jOrdenarRepPor
   pCPla
   pRAtiv
   lExcelTravaTit
   lExcelLigaCor
   iVer
   pRAvancModeloI_TOper_{i}
   pTOper_{i}
   pRAvancModeloI_SubGrupoItens_{i}
   pSubGrpItens_{i}
</VarsToServer1>
<VarsToDb1>  
   sDDFTabela = RAvancModeloI
   sDescricao
   jEntSai
   pImp
   sPathSaida
   jFormato
   jCorpUNeg
   jCMargem
   jTpModITp
   jModelo
   jTipoCanc
   pEmi
   pDest
   pRep
   pGrupoCUP
   tEmiOrdemDe
   tEmiOrdemAte
   tEmiNFeDe
   tEmiNFeAte
   tCancDe
   tCancAte
   tEntPlaDe 
   tEntPlaAte
   pRegDep
   pItem
   pRegCom
   pRepRegComU
   fRepRegComU
   jRefat
   jRep
   jMarcaP
   lDetalhado
   lABCCli
   nABCPCA
   nABCPCB
   lABCFor
   nABCPFA
   nABCPFB
   lABCItm
   nABCPIA
   nABCPIB
   lABCRep
   nABCPRA
   nABCPRB
   jOrdenarDestPor
   jOrdenarForPor
   jOrdenarItemPor
   jOrdenarRepPor
   pCPla
   pRAtiv
   lExcelTravaTit
   lExcelLigaCor
   sDDFSubTabela      = RAvancModeloI_TOper
   pSubPId            = $_POST[pRAvancModeloI_TOper_{i}]
   pRAvancMI          = {ChaveAtual_0}
   pTOper             = $_POST[pTOper_{i}]
   lExc               = $_POST[pTOper_{i}]==0 ? 1 : 0
   sDDFSubTabela      = RAvancModeloI_SubGrupoItens
   pSubPId            = $_POST[pRAvancModeloI_SubGrupoItens_{i}]
   pRAvancMI          = {ChaveAtual_0}
   pSubGrpItens       = $_POST[pSubGrpItens_{i}]
   lExc               = $_POST[pSubGrpItens_{i}]==0 ? 1 : 0
</VarsToDb1>
<ServerValids1>
  tEmiNFeDe    ; $_POST[.]!='' ; A Data da Emisso da NFe De deve ser preenchida.
  tEmiNFeAte   ; $_POST[.]!='' ; A Data da Emisso da NFe At deve ser preenchida.
  pEmi         ;  $_POST[.]>0  ;  A Unidade de Negcio deve ser informada.
</ServerValids1>
fsTratarIncAltSeq-inicio
fsTratarIncAltSeq-fim
sTagVarsToDb=VarsToDb1
sVTDb=   sDDFTabela = RAvancModeloI
   sDescricao
   jEntSai
   pImp
   sPathSaida
   jFormato
   jCorpUNeg
   jCMargem
   jTpModITp
   jModelo
   jTipoCanc
   pEmi
   pDest
   pRep
   pGrupoCUP
   tEmiOrdemDe
   tEmiOrdemAte
   tEmiNFeDe
   tEmiNFeAte
   tCancDe
   tCancAte
   tEntPlaDe 
   tEntPlaAte
   pRegDep
   pItem
   pRegCom
   pRepRegComU
   fRepRegComU
   jRefat
   jRep
   jMarcaP
   lDetalhado
   lABCCli
   nABCPCA
   nABCPCB
   lABCFor
   nABCPFA
   nABCPFB
   lABCItm
   nABCPIA
   nABCPIB
   lABCRep
   nABCPRA
   nABCPRB
   jOrdenarDestPor
   jOrdenarForPor
   jOrdenarItemPor
   jOrdenarRepPor
   pCPla
   pRAtiv
   lExcelTravaTit
   lExcelLigaCor
   sDDFSubTabela      = RAvancModeloI_TOper
   pSubPId            = $_POST[pRAvancModeloI_TOper_{i}]
   pRAvancMI          = {ChaveAtual_0}
   pTOper             = $_POST[pTOper_{i}]
   lExc               = $_POST[pTOper_{i}]==0 ? 1 : 0
   sDDFSubTabela      = RAvancModeloI_SubGrupoItens
   pSubPId            = $_POST[pRAvancModeloI_SubGrupoItens_{i}]
   pRAvancMI          = {ChaveAtual_0}
   pSubGrpItens       = $_POST[pSubGrpItens_{i}]
   lExc               = $_POST[pSubGrpItens_{i}]==0 ? 1 : 0
sUser=sysdba, ghBase=Resource id #439
psQry=select current_transaction from rdb$database
durao 0, iDb=1
fhDBConnect - sUser=sysdba, Transaction ID=47526 , hBase=Resource id #439, hTr=Resource id #441, ghBase=Resource id #439
psQry=select iVAt from RAvancModeloI where pPId=142 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1631 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1632 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1643 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1644 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1645 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1646 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1647 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1648 and iVer=iVAt
durao 0, iDb=1
psQry=select pRAvancMI,pTOper,lExc from RAvancModeloI_TOper where pPId=1649 and iVer=iVAt
durao 0, iDb=1
psQry=select sDescricao,jEntSai,pImp,sPathSaida,jFormato,jCorpUNeg,jCMargem,jTpModITp,jModelo,jTipoCanc,pEmi,pDest,pRep,pGrupoCUP,tEmiOrdemDe,tEmiOrdemAte,tEmiNFeDe,tEmiNFeAte,tCancDe,tCancAte,tEntPlaDe,tEntPlaAte,pRegDep,pItem,pRegCom,pRepRegComU,fRepRegComU,jRefat,jRep,jMarcaP,lDetalhado,lABCCli,nABCPCA,nABCPCB,lABCFor,nABCPFA,nABCPFB,lABCItm,nABCPIA,nABCPIB,lABCRep,nABCPRA,nABCPRB,jOrdenarDestPor,jOrdenarForPor,jOrdenarItemPor,jOrdenarRepPor,pCPla,pRAtiv,lExcelTravaTit,lExcelLigaCor from RAvancModeloI where pPId=142 and iVer=iVAt
durao 0, iDb=1
flDBDisconnect - phBase=Resource id #441, ghBase=Resource id #439
sHoraFim=19/12/2023 18:02:01