gx.evt.autoSkip=false;function timt026(){this.ServerClass="TImt026";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.Gx_mode=gx.fn.getControlValue("vMODE");this.A716RciCampo1L=gx.fn.getControlValue("RCICAMPO1L");this.A942UsbIndAtiv=gx.fn.getControlValue("USBINDATIV");this.A954UsbNroFonT=gx.fn.getControlValue("USBNROFONT");this.A957UsbNroRama=gx.fn.getControlValue("USBNRORAMA");this.A936UsbDesLoca=gx.fn.getControlValue("USBDESLOCA");
this.AV11Origem=gx.fn.getControlValue("vORIGEM")};this.Valid_Assnro=function(){gx.ajax.validSrvEvt("dyncall","Valid_Assnro",["gx.O.A57AssNro"],["Gx_mode","Z57AssNro","Grid1",["BUTTON5","Enabled"],["BUTTON1","Enabled"]]);return true};this.Valid_Rcicodlayo=function(){try{if(gx.fn.currentGridRowImpl(39)===0){return true}var a=gx.util.balloon.getNew("RCICODLAYO",gx.fn.currentGridRowImpl(39));this.AnyError=0;this.sMode117=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(117,39);this.standaloneModal3O117();
this.standaloneNotModal3O117()}catch(b){}try{this.Gx_mode=this.sMode117;if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Rcinrosequ=function(){try{if(gx.fn.currentGridRowImpl(39)===0){return true}var a=gx.util.balloon.getNew("RCINROSEQU",gx.fn.currentGridRowImpl(39));this.AnyError=0;this.sMode117=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(117,39);if(gx.fn.gridDuplicateKey(41)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode117;
if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Usbcod=function(){this.sMode117=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(117,39);gx.ajax.validSrvEvt("dyncall","Valid_Usbcod",["gx.O.A787UsbCod","gx.O.A786UsbNom","gx.O.A942UsbIndAtiv","gx.O.A954UsbNroFonT","gx.O.A957UsbNroRama","gx.O.A936UsbDesLoca"],["A786UsbNom","A942UsbIndAtiv","A954UsbNroFonT","A957UsbNroRama","A936UsbDesLoca"]);this.Gx_mode=this.sMode117;return true};this.standaloneModal3O117=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("RCICODLAYO","Enabled",0)
}else{gx.fn.setCtrlProperty("RCICODLAYO","Enabled",1)}}catch(a){}try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("RCINROSEQU","Enabled",0)}else{gx.fn.setCtrlProperty("RCINROSEQU","Enabled",1)}}catch(a){}return true};this.standaloneNotModal3O117=function(){return true};this.e123o2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e133o116_client=function(){this.executeServerEvent("ENTER",true)};this.e143o116_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];
this.GXCtrlIds=[3,12,15,18,21,23,26,31,33,40,41,42,43,44];this.GXLastCtrlId=44;this.Grid1Container=new gx.grid.grid(this,117,"Level1",39,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt026",[717,718],false,1,false,true,5,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit(717,40,"RCICODLAYO","Layout","","RciCodLayo","char",43,"px",2,1,"left",null,[],717,"RciCodLayo",true,0,false,false);this.Grid1Container.addSingleLineEdit(718,41,"RCINROSEQU","Seq","","RciNroSequ","int",34,"px",4,4,"right",null,[],718,"RciNroSequ",true,0,false,false);
this.Grid1Container.addSingleLineEdit(787,42,"USBCOD","Leitor","","UsbCod","char",100,"px",14,14,"left",null,[],787,"UsbCod",true,0,false,false);this.Grid1Container.addBitmap("prompt_787","PROMPT_787",45,0,"",0,"",null,"","");this.Grid1Container.addSingleLineEdit(786,43,"USBNOM","Nome","","UsbNom","char",260,"px",50,50,"left",null,[],786,"UsbNom",true,0,false,false);this.Grid1Container.addSingleLineEdit(719,44,"RCIQTDDIAS","Dias de prazo","","RciQtdDias","int",87,"px",3,3,"right",null,[],719,"RciQtdDias",true,0,false,false);
this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE3",grid:0};this.GXValidFnc[18]={fld:"TABLE2",grid:0};this.GXValidFnc[21]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[23]={fld:"TABLE4",grid:0};this.GXValidFnc[26]={lvl:0,type:"int",len:5,dec:0,sign:false,pic:"ZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Assnro,isvalid:null,rgrid:[this.Grid1Container],fld:"ASSNRO",gxz:"Z57AssNro",gxold:"O57AssNro",gxvar:"A57AssNro",ucs:[],op:[],ip:[26],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A57AssNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z57AssNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("ASSNRO",gx.O.A57AssNro,0)},c2v:function(){gx.O.A57AssNro=this.val()},val:function(){return gx.fn.getIntegerValue("ASSNRO",".")},nac:function(){return false}};this.GXValidFnc[31]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[33]={lvl:0,type:"char",len:50,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vPERDESLONGOTITULO",gxz:"ZV8PerDesLongoTitulo",gxold:"OV8PerDesLongoTitulo",gxvar:"AV8PerDesLongoTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8PerDesLongoTitulo=a
},v2z:function(a){gx.O.ZV8PerDesLongoTitulo=a},v2c:function(){gx.fn.setControlValue("vPERDESLONGOTITULO",gx.O.AV8PerDesLongoTitulo,0)},c2v:function(){gx.O.AV8PerDesLongoTitulo=this.val()},val:function(){return gx.fn.getControlValue("vPERDESLONGOTITULO")},nac:function(){return false}};this.GXValidFnc[40]={lvl:117,type:"char",len:1,dec:0,sign:false,ro:0,grid:39,gxgrid:this.Grid1Container,fnc:this.Valid_Rcicodlayo,isvalid:null,fld:"RCICODLAYO",gxz:"Z717RciCodLayo",gxold:"O717RciCodLayo",gxvar:"A717RciCodLayo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A717RciCodLayo=a
},v2z:function(a){gx.O.Z717RciCodLayo=a},v2c:function(){gx.fn.setGridControlValue("RCICODLAYO",gx.fn.currentGridRowImpl(39),gx.O.A717RciCodLayo,0)},c2v:function(){gx.O.A717RciCodLayo=this.val()},val:function(){return gx.fn.getGridControlValue("RCICODLAYO",gx.fn.currentGridRowImpl(39))},nac:function(){return false}};this.GXValidFnc[41]={lvl:117,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:39,gxgrid:this.Grid1Container,fnc:this.Valid_Rcinrosequ,isvalid:null,rgrid:[],fld:"RCINROSEQU",gxz:"Z718RciNroSequ",gxold:"O718RciNroSequ",gxvar:"A718RciNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A718RciNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z718RciNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RCINROSEQU",gx.fn.currentGridRowImpl(39),gx.O.A718RciNroSequ,0)},c2v:function(){gx.O.A718RciNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("RCINROSEQU",gx.fn.currentGridRowImpl(39),".")},nac:function(){return false}};this.GXValidFnc[42]={lvl:117,type:"char",len:14,dec:0,sign:false,ro:0,grid:39,gxgrid:this.Grid1Container,fnc:this.Valid_Usbcod,isvalid:null,fld:"USBCOD",gxz:"Z787UsbCod",gxold:"O787UsbCod",gxvar:"A787UsbCod",ucs:[],op:[43],ip:[43,42],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A787UsbCod=a
},v2z:function(a){gx.O.Z787UsbCod=a},v2c:function(){gx.fn.setGridControlValue("USBCOD",gx.fn.currentGridRowImpl(39),gx.O.A787UsbCod,0)},c2v:function(){gx.O.A787UsbCod=this.val()},val:function(){return gx.fn.getGridControlValue("USBCOD",gx.fn.currentGridRowImpl(39))},nac:function(){return false}};this.GXValidFnc[43]={lvl:117,type:"char",len:50,dec:0,sign:false,ro:1,grid:39,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USBNOM",gxz:"Z786UsbNom",gxold:"O786UsbNom",gxvar:"A786UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A786UsbNom=a
},v2z:function(a){gx.O.Z786UsbNom=a},v2c:function(){gx.fn.setGridControlValue("USBNOM",gx.fn.currentGridRowImpl(39),gx.O.A786UsbNom,0)},c2v:function(){gx.O.A786UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("USBNOM",gx.fn.currentGridRowImpl(39))},nac:function(){return false}};this.GXValidFnc[44]={lvl:117,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:39,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"RCIQTDDIAS",gxz:"Z719RciQtdDias",gxold:"O719RciQtdDias",gxvar:"A719RciQtdDias",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A719RciQtdDias=gx.num.intval(a)
},v2z:function(a){gx.O.Z719RciQtdDias=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("RCIQTDDIAS",gx.fn.currentGridRowImpl(39),gx.O.A719RciQtdDias,0)},c2v:function(){gx.O.A719RciQtdDias=this.val()},val:function(){return gx.fn.getGridIntegerValue("RCIQTDDIAS",gx.fn.currentGridRowImpl(39),".")},nac:function(){return false}};this.A57AssNro=0;this.Z57AssNro=0;this.O57AssNro=0;this.AV8PerDesLongoTitulo="";this.ZV8PerDesLongoTitulo="";this.OV8PerDesLongoTitulo="";this.Z717RciCodLayo="";this.O717RciCodLayo="";
this.Z718RciNroSequ=0;this.O718RciNroSequ=0;this.Z787UsbCod="";this.O787UsbCod="";this.Z786UsbNom="";this.O786UsbNom="";this.Z719RciQtdDias=0;this.O719RciQtdDias=0;this.A717RciCodLayo="";this.A718RciNroSequ=0;this.A787UsbCod="";this.A786UsbNom="";this.A942UsbIndAtiv="";this.A954UsbNroFonT="";this.A957UsbNroRama="";this.A936UsbDesLoca="";this.A719RciQtdDias=0;this.A716RciCampo1L="";this.AV9UsuCodCorr="";this.AV7PerDesAbrevTitulo="";this.AV11Origem="";this.ServerEvents=["e123o2_client","e133o116_client","e143o116_client"];
this.setPrompt("PROMPT_787",[42]);this.EnterCtrl=["BUTTON1"];this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.VarControlMap.A716RciCampo1L={id:"RCICAMPO1L",grid:39,type:"char"};this.VarControlMap.A942UsbIndAtiv={id:"USBINDATIV",grid:39,type:"char"};this.VarControlMap.A954UsbNroFonT={id:"USBNROFONT",grid:39,type:"char"};this.VarControlMap.A957UsbNroRama={id:"USBNRORAMA",grid:39,type:"char"};this.VarControlMap.A936UsbDesLoca={id:"USBDESLOCA",grid:39,type:"char"};this.VarControlMap.AV11Origem={id:"vORIGEM",grid:0,type:"char"};
this.SetStandaloneVars()}timt026.prototype=new gx.GxObject;gx.setParentObj(new timt026());