gx.evt.autoSkip=false;function testesanderson(){this.ServerClass="TestesAnderson";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV38Diferenca=gx.fn.getIntegerValue("vDIFERENCA",".");this.Gx_date=gx.fn.getDateValue("vTODAY")};this.e20gr1_client=function(){this.clearMessages();this.AV38Diferenca=gx.date.age(this.AV30ScrDataInicial,this.AV31ScrDataFinal);this.addMessage("Diferença entre "+gx.text.toformattedstring(this.AV30ScrDataInicial)+" e "+gx.text.toformattedstring(this.AV31ScrDataFinal)+" é igual a: "+gx.num.str(this.AV38Diferenca,4,0));
this.refreshOutputs([{av:"AV38Diferenca",fld:"vDIFERENCA"}])};this.e21gr1_client=function(){this.clearMessages();this.addMessage("DateTime: "+gx.date.dttoc(this.AV45DateTime,"DMY",5));this.addMessage("Today: "+gx.date.dtoc(this.Gx_date,"DMY","/"));if(new gx.date.gxdate(this.Gx_date).compare(this.AV45DateTime)==0){this.addMessage("Mesma data")}if(new gx.date.gxdate(this.Gx_date).compare(this.AV45DateTime)>0){this.addMessage("Menor")}if(new gx.date.gxdate(this.Gx_date).compare(this.AV45DateTime)<0){this.addMessage("Maior")
}this.refreshOutputs([])};this.e11gr2_client=function(){this.executeServerEvent("ENTER",true)};this.e12gr2_client=function(){this.executeServerEvent("'TESTE'",false)};this.e13gr2_client=function(){this.executeServerEvent("'NRO ETIQUETAS'",false)};this.e14gr2_client=function(){this.executeServerEvent("'TESTA QUADROS DE EXEMPLARES'",false)};this.e15gr2_client=function(){this.executeServerEvent("'INSERE MULTIPLOS DADOS BIOMETRIA'",false)};this.e16gr2_client=function(){this.executeServerEvent("'TESTA PROCEDURE DE RETORNO DE CONFIGURAçãO'",false)
};this.e22gr2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[2,22,32,42,52,62,63,73,74,84,95,96,97,98,99,100,101,106,107,108];this.GXLastCtrlId=108;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",94,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"testesanderson",[],false,1,false,true,0,false,false,false,"CollSdtAcervoTipoDocumento",0,"px","Novo registro",false,false,false,null,null,false,"AV22SdtRolAcervo");this.Grid1Container.addSingleLineEdit("GXV12N",95,"CTLTIDDES","TidDes","","TidDes","char",0,"px",50,50,"left",null,[],"GXV12N","GXV12N",true,0,false,false);
this.Grid1Container.addSingleLineEdit("GXV12O",96,"CTLIDIDES","IdiDes","","IdiDes","char",0,"px",30,30,"left",null,[],"GXV12O","GXV12O",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV12P",97,"CTLACODES","AcoDes","","AcoDes","char",0,"px",50,50,"left",null,[],"GXV12P","GXV12P",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV12Q",98,"CTLSACNOM","SacNom","","SacNom","char",0,"px",50,50,"left",null,[],"GXV12Q","GXV12Q",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV12R",99,"CTLQTDDOCUMENTOS","QtdDocumentos","","QtdDocumentos","int",0,"px",7,7,"right",null,[],"GXV12R","GXV12R",true,0,false,false);
this.Grid1Container.addSingleLineEdit("GXV12S",100,"CTLQTDEXEMPLARES","QtdExemplares","","QtdExemplares","int",0,"px",7,7,"right",null,[],"GXV12S","GXV12S",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV12T",101,"CTLQTDITENS","QtdItens","","QtdItens","int",0,"px",7,7,"right",null,[],"GXV12T","GXV12T",true,0,false,false);this.setGrid(this.Grid1Container);this.Grid2Container=new gx.grid.grid(this,3,"WbpLvl3",105,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"testesanderson",[],false,1,false,true,0,false,false,false,"CollSdtCamposDoDocumento",0,"px","Novo registro",false,false,false,null,null,false,"AV35SdtRolCampos");
this.Grid2Container.addSingleLineEdit("GXV12Y",106,"CTLNROSEQCAMPO","NroSeqCampo","","NroSeqCampo","int",0,"px",4,4,"right",null,[],"GXV12Y","GXV12Y",true,0,false,false);this.Grid2Container.addSingleLineEdit("GXV12Z",107,"CTLNROREPCAMPO","NroRepCampo","","NroRepCampo","int",0,"px",3,3,"right",null,[],"GXV12Z","GXV12Z",true,0,false,false);this.Grid2Container.addSingleLineEdit("GXV130",108,"CTLVALORDENACAO","ValOrdenacao","","ValOrdenacao","char",0,"px",10,10,"left",null,[],"GXV130","GXV130",true,0,false,false);
this.setGrid(this.Grid2Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[22]={lvl:0,type:"char",len:100,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRTESTE",gxz:"ZV5ScrTeste",gxold:"OV5ScrTeste",gxvar:"AV5ScrTeste",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5ScrTeste=a},v2z:function(a){gx.O.ZV5ScrTeste=a},v2c:function(){gx.fn.setControlValue("vSCRTESTE",gx.O.AV5ScrTeste,0)},c2v:function(){gx.O.AV5ScrTeste=this.val()},val:function(){return gx.fn.getControlValue("vSCRTESTE")
},nac:function(){return false}};this.GXValidFnc[32]={lvl:0,type:"char",len:20,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRTESTE2",gxz:"ZV7ScrTeste2",gxold:"OV7ScrTeste2",gxvar:"AV7ScrTeste2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7ScrTeste2=a},v2z:function(a){gx.O.ZV7ScrTeste2=a},v2c:function(){gx.fn.setControlValue("vSCRTESTE2",gx.O.AV7ScrTeste2,0)},c2v:function(){gx.O.AV7ScrTeste2=this.val()},val:function(){return gx.fn.getControlValue("vSCRTESTE2")
},nac:function(){return false}};this.GXValidFnc[42]={lvl:0,type:"date",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRDATAINICIAL",gxz:"ZV30ScrDataInicial",gxold:"OV30ScrDataInicial",gxvar:"AV30ScrDataInicial",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/99",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV30ScrDataInicial=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.ZV30ScrDataInicial=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vSCRDATAINICIAL",gx.O.AV30ScrDataInicial,0)
},c2v:function(){gx.O.AV30ScrDataInicial=this.val()},val:function(){return gx.fn.getControlValue("vSCRDATAINICIAL")},nac:function(){return false}};this.GXValidFnc[52]={lvl:0,type:"date",len:8,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCRDATAFINAL",gxz:"ZV31ScrDataFinal",gxold:"OV31ScrDataFinal",gxvar:"AV31ScrDataFinal",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/99",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV31ScrDataFinal=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV31ScrDataFinal=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vSCRDATAFINAL",gx.O.AV31ScrDataFinal,0)},c2v:function(){gx.O.AV31ScrDataFinal=this.val()},val:function(){return gx.fn.getControlValue("vSCRDATAFINAL")},nac:function(){return false}};this.GXValidFnc[62]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[63]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRDOCNRO",gxz:"ZV39ScrDocNro",gxold:"OV39ScrDocNro",gxvar:"AV39ScrDocNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV39ScrDocNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV39ScrDocNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRDOCNRO",gx.O.AV39ScrDocNro,0)},c2v:function(){gx.O.AV39ScrDocNro=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRDOCNRO",".")},nac:function(){return false}};this.GXValidFnc[73]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[74]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCRUNDCOD",gxz:"ZV40ScrUndCod",gxold:"OV40ScrUndCod",gxvar:"AV40ScrUndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV40ScrUndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV40ScrUndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCRUNDCOD",gx.O.AV40ScrUndCod,0)},c2v:function(){gx.O.AV40ScrUndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vSCRUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[84]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATETIME",gxz:"ZV45DateTime",gxold:"OV45DateTime",gxvar:"AV45DateTime",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV45DateTime=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV45DateTime=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATETIME",gx.O.AV45DateTime,0)},c2v:function(){gx.O.AV45DateTime=this.val()},val:function(){return gx.fn.getControlValue("vDATETIME")},nac:function(){return false}};this.GXValidFnc[95]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:94,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLTIDDES",gxz:"ZV49GXV12N",gxold:"OV49GXV12N",gxvar:"GXV12N",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12N=a
},v2z:function(a){gx.O.ZV49GXV12N=a},v2c:function(){gx.fn.setGridControlValue("CTLTIDDES",gx.fn.currentGridRowImpl(94),gx.O.GXV12N,0)},c2v:function(){gx.O.GXV12N=this.val()},val:function(){return gx.fn.getGridControlValue("CTLTIDDES",gx.fn.currentGridRowImpl(94))},nac:function(){return false}};this.GXValidFnc[96]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:94,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLIDIDES",gxz:"ZV50GXV12O",gxold:"OV50GXV12O",gxvar:"GXV12O",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12O=a
},v2z:function(a){gx.O.ZV50GXV12O=a},v2c:function(){gx.fn.setGridControlValue("CTLIDIDES",gx.fn.currentGridRowImpl(94),gx.O.GXV12O,0)},c2v:function(){gx.O.GXV12O=this.val()},val:function(){return gx.fn.getGridControlValue("CTLIDIDES",gx.fn.currentGridRowImpl(94))},nac:function(){return false}};this.GXValidFnc[97]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:94,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLACODES",gxz:"ZV51GXV12P",gxold:"OV51GXV12P",gxvar:"GXV12P",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12P=a
},v2z:function(a){gx.O.ZV51GXV12P=a},v2c:function(){gx.fn.setGridControlValue("CTLACODES",gx.fn.currentGridRowImpl(94),gx.O.GXV12P,0)},c2v:function(){gx.O.GXV12P=this.val()},val:function(){return gx.fn.getGridControlValue("CTLACODES",gx.fn.currentGridRowImpl(94))},nac:function(){return false}};this.GXValidFnc[98]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:94,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLSACNOM",gxz:"ZV52GXV12Q",gxold:"OV52GXV12Q",gxvar:"GXV12Q",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12Q=a
},v2z:function(a){gx.O.ZV52GXV12Q=a},v2c:function(){gx.fn.setGridControlValue("CTLSACNOM",gx.fn.currentGridRowImpl(94),gx.O.GXV12Q,0)},c2v:function(){gx.O.GXV12Q=this.val()},val:function(){return gx.fn.getGridControlValue("CTLSACNOM",gx.fn.currentGridRowImpl(94))},nac:function(){return false}};this.GXValidFnc[99]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:94,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLQTDDOCUMENTOS",gxz:"ZV53GXV12R",gxold:"OV53GXV12R",gxvar:"GXV12R",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12R=gx.num.intval(a)
},v2z:function(a){gx.O.ZV53GXV12R=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLQTDDOCUMENTOS",gx.fn.currentGridRowImpl(94),gx.O.GXV12R,0)},c2v:function(){gx.O.GXV12R=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLQTDDOCUMENTOS",gx.fn.currentGridRowImpl(94),".")},nac:function(){return false}};this.GXValidFnc[100]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:94,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLQTDEXEMPLARES",gxz:"ZV54GXV12S",gxold:"OV54GXV12S",gxvar:"GXV12S",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12S=gx.num.intval(a)
},v2z:function(a){gx.O.ZV54GXV12S=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLQTDEXEMPLARES",gx.fn.currentGridRowImpl(94),gx.O.GXV12S,0)},c2v:function(){gx.O.GXV12S=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLQTDEXEMPLARES",gx.fn.currentGridRowImpl(94),".")},nac:function(){return false}};this.GXValidFnc[101]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:94,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLQTDITENS",gxz:"ZV55GXV12T",gxold:"OV55GXV12T",gxvar:"GXV12T",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12T=gx.num.intval(a)
},v2z:function(a){gx.O.ZV55GXV12T=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLQTDITENS",gx.fn.currentGridRowImpl(94),gx.O.GXV12T,0)},c2v:function(){gx.O.GXV12T=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLQTDITENS",gx.fn.currentGridRowImpl(94),".")},nac:function(){return false}};this.GXValidFnc[106]={lvl:3,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:105,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLNROSEQCAMPO",gxz:"ZV57GXV12Y",gxold:"OV57GXV12Y",gxvar:"GXV12Y",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12Y=gx.num.intval(a)
},v2z:function(a){gx.O.ZV57GXV12Y=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLNROSEQCAMPO",gx.fn.currentGridRowImpl(105),gx.O.GXV12Y,0)},c2v:function(){gx.O.GXV12Y=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLNROSEQCAMPO",gx.fn.currentGridRowImpl(105),".")},nac:function(){return false}};this.GXValidFnc[107]={lvl:3,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:105,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLNROREPCAMPO",gxz:"ZV58GXV12Z",gxold:"OV58GXV12Z",gxvar:"GXV12Z",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12Z=gx.num.intval(a)
},v2z:function(a){gx.O.ZV58GXV12Z=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLNROREPCAMPO",gx.fn.currentGridRowImpl(105),gx.O.GXV12Z,0)},c2v:function(){gx.O.GXV12Z=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLNROREPCAMPO",gx.fn.currentGridRowImpl(105),".")},nac:function(){return false}};this.GXValidFnc[108]={lvl:3,type:"char",len:10,dec:0,sign:false,ro:1,grid:105,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"CTLVALORDENACAO",gxz:"ZV59GXV130",gxold:"OV59GXV130",gxvar:"GXV130",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV130=a
},v2z:function(a){gx.O.ZV59GXV130=a},v2c:function(){gx.fn.setGridControlValue("CTLVALORDENACAO",gx.fn.currentGridRowImpl(105),gx.O.GXV130,0)},c2v:function(){gx.O.GXV130=this.val()},val:function(){return gx.fn.getGridControlValue("CTLVALORDENACAO",gx.fn.currentGridRowImpl(105))},nac:function(){return false}};this.AV5ScrTeste="";this.ZV5ScrTeste="";this.OV5ScrTeste="";this.AV7ScrTeste2="";this.ZV7ScrTeste2="";this.OV7ScrTeste2="";this.AV30ScrDataInicial=gx.date.nullDate();this.ZV30ScrDataInicial=gx.date.nullDate();
this.OV30ScrDataInicial=gx.date.nullDate();this.AV31ScrDataFinal=gx.date.nullDate();this.ZV31ScrDataFinal=gx.date.nullDate();this.OV31ScrDataFinal=gx.date.nullDate();this.AV39ScrDocNro=0;this.ZV39ScrDocNro=0;this.OV39ScrDocNro=0;this.AV40ScrUndCod=0;this.ZV40ScrUndCod=0;this.OV40ScrUndCod=0;this.AV45DateTime=gx.date.nullDate();this.ZV45DateTime=gx.date.nullDate();this.OV45DateTime=gx.date.nullDate();this.ZV49GXV12N="";this.OV49GXV12N="";this.ZV50GXV12O="";this.OV50GXV12O="";this.ZV51GXV12P="";this.OV51GXV12P="";
this.ZV52GXV12Q="";this.OV52GXV12Q="";this.ZV53GXV12R=0;this.OV53GXV12R=0;this.ZV54GXV12S=0;this.OV54GXV12S=0;this.ZV55GXV12T=0;this.OV55GXV12T=0;this.ZV57GXV12Y=0;this.OV57GXV12Y=0;this.ZV58GXV12Z=0;this.OV58GXV12Z=0;this.ZV59GXV130="";this.OV59GXV130="";this.GXV12Y=0;this.GXV12Z=0;this.GXV130="";this.GXV12N="";this.GXV12O="";this.GXV12P="";this.GXV12Q="";this.GXV12R=0;this.GXV12S=0;this.GXV12T=0;this.AV38Diferenca=0;this.Gx_date=gx.date.nullDate();this.ServerEvents=["e11gr2_client","e12gr2_client","e13gr2_client","e14gr2_client","e15gr2_client","e16gr2_client","e22gr2_client"];
this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV38Diferenca={id:"vDIFERENCA",grid:0,type:"int"};this.VarControlMap.Gx_date={id:"vTODAY",grid:0,type:"date"};this.SetStandaloneVars()}testesanderson.prototype=new gx.GxObject;gx.setParentObj(new testesanderson());