gx.evt.autoSkip=false;function testesanderson(){this.ServerClass="TestesAnderson";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV38Diferenca=gx.fn.getIntegerValue("vDIFERENCA",".")};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.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.e21gr2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[2,20,29,38,47,56,57,66,67,77,78,79,80,81,82,83,88,89,90];this.GXLastCtrlId=90;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",76,"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("GXV125",77,"CTLTIDDES","TidDes","","TidDes","char",0,"px",50,50,"left",null,[],"GXV125","GXV125",true,0,false,false);
this.Grid1Container.addSingleLineEdit("GXV126",78,"CTLIDIDES","IdiDes","","IdiDes","char",0,"px",30,30,"left",null,[],"GXV126","GXV126",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV127",79,"CTLACODES","AcoDes","","AcoDes","char",0,"px",50,50,"left",null,[],"GXV127","GXV127",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV128",80,"CTLSACNOM","SacNom","","SacNom","char",0,"px",50,50,"left",null,[],"GXV128","GXV128",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV129",81,"CTLQTDDOCUMENTOS","QtdDocumentos","","QtdDocumentos","int",0,"px",7,7,"right",null,[],"GXV129","GXV129",true,0,false,false);
this.Grid1Container.addSingleLineEdit("GXV12A",82,"CTLQTDEXEMPLARES","QtdExemplares","","QtdExemplares","int",0,"px",7,7,"right",null,[],"GXV12A","GXV12A",true,0,false,false);this.Grid1Container.addSingleLineEdit("GXV12B",83,"CTLQTDITENS","QtdItens","","QtdItens","int",0,"px",7,7,"right",null,[],"GXV12B","GXV12B",true,0,false,false);this.setGrid(this.Grid1Container);this.Grid2Container=new gx.grid.grid(this,3,"WbpLvl3",87,"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("GXV12G",88,"CTLNROSEQCAMPO","NroSeqCampo","","NroSeqCampo","int",0,"px",4,4,"right",null,[],"GXV12G","GXV12G",true,0,false,false);this.Grid2Container.addSingleLineEdit("GXV12H",89,"CTLNROREPCAMPO","NroRepCampo","","NroRepCampo","int",0,"px",3,3,"right",null,[],"GXV12H","GXV12H",true,0,false,false);this.Grid2Container.addSingleLineEdit("GXV12I",90,"CTLVALORDENACAO","ValOrdenacao","","ValOrdenacao","char",0,"px",10,10,"left",null,[],"GXV12I","GXV12I",true,0,false,false);
this.setGrid(this.Grid2Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[20]={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[29]={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[38]={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[47]={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[56]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[57]={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[66]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[67]={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[77]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:76,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLTIDDES",gxz:"ZV48GXV125",gxold:"OV48GXV125",gxvar:"GXV125",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV125=a
},v2z:function(a){gx.O.ZV48GXV125=a},v2c:function(){gx.fn.setGridControlValue("CTLTIDDES",gx.fn.currentGridRowImpl(76),gx.O.GXV125,0)},c2v:function(){gx.O.GXV125=this.val()},val:function(){return gx.fn.getGridControlValue("CTLTIDDES",gx.fn.currentGridRowImpl(76))},nac:function(){return false}};this.GXValidFnc[78]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:1,grid:76,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLIDIDES",gxz:"ZV49GXV126",gxold:"OV49GXV126",gxvar:"GXV126",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV126=a
},v2z:function(a){gx.O.ZV49GXV126=a},v2c:function(){gx.fn.setGridControlValue("CTLIDIDES",gx.fn.currentGridRowImpl(76),gx.O.GXV126,0)},c2v:function(){gx.O.GXV126=this.val()},val:function(){return gx.fn.getGridControlValue("CTLIDIDES",gx.fn.currentGridRowImpl(76))},nac:function(){return false}};this.GXValidFnc[79]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:76,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLACODES",gxz:"ZV50GXV127",gxold:"OV50GXV127",gxvar:"GXV127",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV127=a
},v2z:function(a){gx.O.ZV50GXV127=a},v2c:function(){gx.fn.setGridControlValue("CTLACODES",gx.fn.currentGridRowImpl(76),gx.O.GXV127,0)},c2v:function(){gx.O.GXV127=this.val()},val:function(){return gx.fn.getGridControlValue("CTLACODES",gx.fn.currentGridRowImpl(76))},nac:function(){return false}};this.GXValidFnc[80]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:76,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"CTLSACNOM",gxz:"ZV51GXV128",gxold:"OV51GXV128",gxvar:"GXV128",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV128=a
},v2z:function(a){gx.O.ZV51GXV128=a},v2c:function(){gx.fn.setGridControlValue("CTLSACNOM",gx.fn.currentGridRowImpl(76),gx.O.GXV128,0)},c2v:function(){gx.O.GXV128=this.val()},val:function(){return gx.fn.getGridControlValue("CTLSACNOM",gx.fn.currentGridRowImpl(76))},nac:function(){return false}};this.GXValidFnc[81]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:76,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLQTDDOCUMENTOS",gxz:"ZV52GXV129",gxold:"OV52GXV129",gxvar:"GXV129",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV129=gx.num.intval(a)
},v2z:function(a){gx.O.ZV52GXV129=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLQTDDOCUMENTOS",gx.fn.currentGridRowImpl(76),gx.O.GXV129,0)},c2v:function(){gx.O.GXV129=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLQTDDOCUMENTOS",gx.fn.currentGridRowImpl(76),".")},nac:function(){return false}};this.GXValidFnc[82]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:76,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLQTDEXEMPLARES",gxz:"ZV53GXV12A",gxold:"OV53GXV12A",gxvar:"GXV12A",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12A=gx.num.intval(a)
},v2z:function(a){gx.O.ZV53GXV12A=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLQTDEXEMPLARES",gx.fn.currentGridRowImpl(76),gx.O.GXV12A,0)},c2v:function(){gx.O.GXV12A=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLQTDEXEMPLARES",gx.fn.currentGridRowImpl(76),".")},nac:function(){return false}};this.GXValidFnc[83]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:76,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLQTDITENS",gxz:"ZV54GXV12B",gxold:"OV54GXV12B",gxvar:"GXV12B",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12B=gx.num.intval(a)
},v2z:function(a){gx.O.ZV54GXV12B=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLQTDITENS",gx.fn.currentGridRowImpl(76),gx.O.GXV12B,0)},c2v:function(){gx.O.GXV12B=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLQTDITENS",gx.fn.currentGridRowImpl(76),".")},nac:function(){return false}};this.GXValidFnc[88]={lvl:3,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:87,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLNROSEQCAMPO",gxz:"ZV56GXV12G",gxold:"OV56GXV12G",gxvar:"GXV12G",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12G=gx.num.intval(a)
},v2z:function(a){gx.O.ZV56GXV12G=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLNROSEQCAMPO",gx.fn.currentGridRowImpl(87),gx.O.GXV12G,0)},c2v:function(){gx.O.GXV12G=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLNROSEQCAMPO",gx.fn.currentGridRowImpl(87),".")},nac:function(){return false}};this.GXValidFnc[89]={lvl:3,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:87,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"CTLNROREPCAMPO",gxz:"ZV57GXV12H",gxold:"OV57GXV12H",gxvar:"GXV12H",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12H=gx.num.intval(a)
},v2z:function(a){gx.O.ZV57GXV12H=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CTLNROREPCAMPO",gx.fn.currentGridRowImpl(87),gx.O.GXV12H,0)},c2v:function(){gx.O.GXV12H=this.val()},val:function(){return gx.fn.getGridIntegerValue("CTLNROREPCAMPO",gx.fn.currentGridRowImpl(87),".")},nac:function(){return false}};this.GXValidFnc[90]={lvl:3,type:"char",len:10,dec:0,sign:false,ro:1,grid:87,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"CTLVALORDENACAO",gxz:"ZV58GXV12I",gxold:"OV58GXV12I",gxvar:"GXV12I",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.GXV12I=a
},v2z:function(a){gx.O.ZV58GXV12I=a},v2c:function(){gx.fn.setGridControlValue("CTLVALORDENACAO",gx.fn.currentGridRowImpl(87),gx.O.GXV12I,0)},c2v:function(){gx.O.GXV12I=this.val()},val:function(){return gx.fn.getGridControlValue("CTLVALORDENACAO",gx.fn.currentGridRowImpl(87))},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.ZV48GXV125="";this.OV48GXV125="";this.ZV49GXV126="";this.OV49GXV126="";this.ZV50GXV127="";this.OV50GXV127="";this.ZV51GXV128="";this.OV51GXV128="";this.ZV52GXV129=0;this.OV52GXV129=0;this.ZV53GXV12A=0;this.OV53GXV12A=0;
this.ZV54GXV12B=0;this.OV54GXV12B=0;this.ZV56GXV12G=0;this.OV56GXV12G=0;this.ZV57GXV12H=0;this.OV57GXV12H=0;this.ZV58GXV12I="";this.OV58GXV12I="";this.GXV12G=0;this.GXV12H=0;this.GXV12I="";this.GXV125="";this.GXV126="";this.GXV127="";this.GXV128="";this.GXV129=0;this.GXV12A=0;this.GXV12B=0;this.AV38Diferenca=0;this.ServerEvents=["e11gr2_client","e12gr2_client","e13gr2_client","e14gr2_client","e15gr2_client","e16gr2_client","e21gr2_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.AV38Diferenca={id:"vDIFERENCA",grid:0,type:"int"};
this.SetStandaloneVars()}testesanderson.prototype=new gx.GxObject;gx.setParentObj(new testesanderson());