gx.evt.autoSkip=false;function gx0010(){this.ServerClass="Gx0010";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pTidCod=gx.fn.getControlValue("vPTIDCOD")};this.e13d12_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14d11_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,58,61];
this.GXLastCtrlId=61;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0010",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(863,53,"TIDCOD","Código","","TidCod","char",0,"px",3,3,"left",null,[],863,"TidCod",true,0,false,false);this.Grid1Container.addSingleLineEdit(868,54,"TIDDES","Descrição","Selecionar","TidDes","char",0,"px",50,50,"left",null,[],868,"TidDes",true,0,false,false);
this.Grid1Container.addSingleLineEdit(870,55,"TIDINDFORM","Modelo de referência","","TidIndForm","char",0,"px",3,3,"left",null,[],870,"TidIndForm",true,0,false,false);this.Grid1Container.addRadioButton(872,56,"TIDINDNROT","Número de Tombo ?","TidIndNroT","char",null,false,true,false);this.Grid1Container.addSingleLineEdit(879,57,"TIDVALDIAA","Valor por dia de atraso","","TidValDiaA","decimal",0,"px",14,12,"right",null,[],879,"TidValDiaA",true,2,false,false);this.Grid1Container.addComboBox(876,58,"TIDTIPEXTE","Tipo MEC","TidTipExte","char",null,0,true,false,0,"px");
this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKTIDCOD",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIDCOD",gxz:"ZV6cTidCod",gxold:"OV6cTidCod",gxvar:"AV6cTidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cTidCod=a},v2z:function(a){gx.O.ZV6cTidCod=a
},v2c:function(){gx.fn.setControlValue("vCTIDCOD",gx.O.AV6cTidCod,0)},c2v:function(){gx.O.AV6cTidCod=this.val()},val:function(){return gx.fn.getControlValue("vCTIDCOD")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKTIDDES",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIDDES",gxz:"ZV7cTidDes",gxold:"OV7cTidDes",gxvar:"AV7cTidDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cTidDes=a
},v2z:function(a){gx.O.ZV7cTidDes=a},v2c:function(){gx.fn.setControlValue("vCTIDDES",gx.O.AV7cTidDes,0)},c2v:function(){gx.O.AV7cTidDes=this.val()},val:function(){return gx.fn.getControlValue("vCTIDDES")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKTIDINDFORMAEXIBICAO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIDINDFORMAEXIBICAO",gxz:"ZV8cTidIndFormaExibicao",gxold:"OV8cTidIndFormaExibicao",gxvar:"AV8cTidIndFormaExibicao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cTidIndFormaExibicao=a
},v2z:function(a){gx.O.ZV8cTidIndFormaExibicao=a},v2c:function(){gx.fn.setControlValue("vCTIDINDFORMAEXIBICAO",gx.O.AV8cTidIndFormaExibicao,0)},c2v:function(){gx.O.AV8cTidIndFormaExibicao=this.val()},val:function(){return gx.fn.getControlValue("vCTIDINDFORMAEXIBICAO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKTIDINDNROTOMBO",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIDINDNROTOMBO",gxz:"ZV9cTidIndNroTombo",gxold:"OV9cTidIndNroTombo",gxvar:"AV9cTidIndNroTombo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV9cTidIndNroTombo=a
},v2z:function(a){gx.O.ZV9cTidIndNroTombo=a},v2c:function(){gx.fn.setRadioValue("vCTIDINDNROTOMBO",gx.O.AV9cTidIndNroTombo)},c2v:function(){gx.O.AV9cTidIndNroTombo=this.val()},val:function(){return gx.fn.getControlValue("vCTIDINDNROTOMBO")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKTIDVALDIAATRASO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"decimal",len:12,dec:2,sign:false,pic:"ZZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIDVALDIAATRASO",gxz:"ZV10cTidValDiaAtraso",gxold:"OV10cTidValDiaAtraso",gxvar:"AV10cTidValDiaAtraso",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cTidValDiaAtraso=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV10cTidValDiaAtraso=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCTIDVALDIAATRASO",gx.O.AV10cTidValDiaAtraso,2,",")},c2v:function(){gx.O.AV10cTidValDiaAtraso=this.val()},val:function(){return gx.fn.getDecimalValue("vCTIDVALDIAATRASO",".",",")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKTIDQTDDIASSUSPENSAOATRASO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCTIDQTDDIASSUSPENSAOATRASO",gxz:"ZV11cTidQtdDiasSuspensaoAtraso",gxold:"OV11cTidQtdDiasSuspensaoAtraso",gxvar:"AV11cTidQtdDiasSuspensaoAtraso",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cTidQtdDiasSuspensaoAtraso=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11cTidQtdDiasSuspensaoAtraso=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCTIDQTDDIASSUSPENSAOATRASO",gx.O.AV11cTidQtdDiasSuspensaoAtraso,0)},c2v:function(){gx.O.AV11cTidQtdDiasSuspensaoAtraso=this.val()},val:function(){return gx.fn.getIntegerValue("vCTIDQTDDIASSUSPENSAOATRASO",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKTIDCAMPO1LIVRE",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCTIDCAMPO1LIVRE",gxz:"ZV12cTidCampo1Livre",gxold:"OV12cTidCampo1Livre",gxvar:"AV12cTidCampo1Livre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV12cTidCampo1Livre=a
},v2z:function(a){gx.O.ZV12cTidCampo1Livre=a},v2c:function(){gx.fn.setComboBoxValue("vCTIDCAMPO1LIVRE",gx.O.AV12cTidCampo1Livre)},c2v:function(){gx.O.AV12cTidCampo1Livre=this.val()},val:function(){return gx.fn.getControlValue("vCTIDCAMPO1LIVRE")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIDCOD",gxz:"Z863TidCod",gxold:"O863TidCod",gxvar:"A863TidCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A863TidCod=a
},v2z:function(a){gx.O.Z863TidCod=a},v2c:function(){gx.fn.setGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(51),gx.O.A863TidCod,0)},c2v:function(){gx.O.A863TidCod=this.val()},val:function(){return gx.fn.getGridControlValue("TIDCOD",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIDDES",gxz:"Z868TidDes",gxold:"O868TidDes",gxvar:"A868TidDes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A868TidDes=a
},v2z:function(a){gx.O.Z868TidDes=a},v2c:function(){gx.fn.setGridControlValue("TIDDES",gx.fn.currentGridRowImpl(51),gx.O.A868TidDes,0)},c2v:function(){gx.O.A868TidDes=this.val()},val:function(){return gx.fn.getGridControlValue("TIDDES",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIDINDFORM",gxz:"Z870TidIndForm",gxold:"O870TidIndForm",gxvar:"A870TidIndForm",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A870TidIndForm=a
},v2z:function(a){gx.O.Z870TidIndForm=a},v2c:function(){gx.fn.setGridControlValue("TIDINDFORM",gx.fn.currentGridRowImpl(51),gx.O.A870TidIndForm,0)},c2v:function(){gx.O.A870TidIndForm=this.val()},val:function(){return gx.fn.getGridControlValue("TIDINDFORM",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIDINDNROT",gxz:"Z872TidIndNroT",gxold:"O872TidIndNroT",gxvar:"A872TidIndNroT",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.A872TidIndNroT=a
},v2z:function(a){gx.O.Z872TidIndNroT=a},v2c:function(){},c2v:function(){gx.O.A872TidIndNroT=this.val()},val:function(){return gx.fn.getGridControlValue("TIDINDNROT",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"decimal",len:12,dec:2,sign:false,pic:"ZZZ,ZZZ,ZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIDVALDIAA",gxz:"Z879TidValDiaA",gxold:"O879TidValDiaA",gxvar:"A879TidValDiaA",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A879TidValDiaA=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z879TidValDiaA=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("TIDVALDIAA",gx.fn.currentGridRowImpl(51),gx.O.A879TidValDiaA,2,",")},c2v:function(){gx.O.A879TidValDiaA=this.val()},val:function(){return gx.fn.getGridDecimalValue("TIDVALDIAA",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"char",len:5,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"TIDTIPEXTE",gxz:"Z876TidTipExte",gxold:"O876TidTipExte",gxvar:"A876TidTipExte",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A876TidTipExte=a
},v2z:function(a){gx.O.Z876TidTipExte=a},v2c:function(){gx.fn.setGridComboBoxValue("TIDTIPEXTE",gx.fn.currentGridRowImpl(51),gx.O.A876TidTipExte)},c2v:function(){gx.O.A876TidTipExte=this.val()},val:function(){return gx.fn.getGridControlValue("TIDTIPEXTE",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[61]={fld:"TABLE4",grid:0};this.AV6cTidCod="";this.ZV6cTidCod="";this.OV6cTidCod="";this.AV7cTidDes="";this.ZV7cTidDes="";this.OV7cTidDes="";this.AV8cTidIndFormaExibicao="";
this.ZV8cTidIndFormaExibicao="";this.OV8cTidIndFormaExibicao="";this.AV9cTidIndNroTombo="";this.ZV9cTidIndNroTombo="";this.OV9cTidIndNroTombo="";this.AV10cTidValDiaAtraso=0;this.ZV10cTidValDiaAtraso=0;this.OV10cTidValDiaAtraso=0;this.AV11cTidQtdDiasSuspensaoAtraso=0;this.ZV11cTidQtdDiasSuspensaoAtraso=0;this.OV11cTidQtdDiasSuspensaoAtraso=0;this.AV12cTidCampo1Livre="";this.ZV12cTidCampo1Livre="";this.OV12cTidCampo1Livre="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z863TidCod="";this.O863TidCod="";
this.Z868TidDes="";this.O868TidDes="";this.Z870TidIndForm="";this.O870TidIndForm="";this.Z872TidIndNroT="";this.O872TidIndNroT="";this.Z879TidValDiaA=0;this.O879TidValDiaA=0;this.Z876TidTipExte="";this.O876TidTipExte="";this.AV13pTidCod="";this.A874TidQtdDias=0;this.A861TidCampo1L="";this.AV5LinkSelection="";this.A863TidCod="";this.A868TidDes="";this.A870TidIndForm="";this.A872TidIndNroT="";this.A879TidValDiaA=0;this.A876TidTipExte="";this.ServerEvents=["e13d12_client","e14d11_client"];this.VarControlMap.AV13pTidCod={id:"vPTIDCOD",grid:0,type:"char"};
this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[44]);this.SetStandaloneVars()}gx0010.prototype=new gx.GxObject;gx.setParentObj(new gx0010());