gx.evt.autoSkip=false;function himh121(){this.ServerClass="HImh121";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.AV30TipOrigem=gx.fn.getControlValue("vTIPORIGEM");this.AV29CrcNroSeq=gx.fn.getIntegerValue("vCRCNROSEQ",".")};this.Valid_Crcnroseq=function(){try{if(gx.fn.currentGridRowImpl(21)===0){return true}var a=gx.util.balloon.getNew("CRCNROSEQ",gx.fn.currentGridRowImpl(21));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()
}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11122_client=function(){this.executeServerEvent("'CANCELA'",false)};this.e12122_client=function(){this.executeServerEvent("'RECRIA RESUMO BAIXAS'",false)};this.e16122_client=function(){this.executeServerEvent("'HOME'",true,arguments[0])};this.e13122_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e17122_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e18122_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])
};this.GXValidFnc=[];this.GXCtrlIds=[2,5,18,22,23,24,25,26,27,28,29,30,31,32];this.GXLastCtrlId=32;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",21,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh121",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.Subfile1Container.addCheckBox("Op",22,"vOP","","","Op","char","S","N",null,true,false,0,"px");this.Subfile1Container.addSingleLineEdit(157,23,"CRCNROSEQ","Penalidade","","CrcNroSeq","int",0,"px",7,7,"right",null,[],157,"CrcNroSeq",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(144,24,"CRBNROSEQ","Seq","","CrbNroSeq","int",0,"px",3,3,"right",null,[],144,"CrbNroSeq",true,0,false,false);this.Subfile1Container.addSingleLineEdit(786,25,"USBNOM","Leitor","","UsbNom","char",260,"px",50,50,"left",null,[],786,"UsbNom",true,0,false,false);this.Subfile1Container.addSingleLineEdit(141,26,"CRBDATBAIX","Data baixa","","CrbDatBaix","dtime",106,"px",16,10,"right",null,[],141,"CrbDatBaix",true,5,false,false);this.Subfile1Container.addSingleLineEdit(146,27,"CRBVALBAIX","Valor baixa","","CrbValBaix","decimal",0,"px",13,11,"right",null,[],146,"CrbValBaix",true,2,false,false);
this.Subfile1Container.addSingleLineEdit(145,28,"CRBVALACRE","Acréscimo","","CrbValAcre","decimal",0,"px",13,11,"right",null,[],145,"CrbValAcre",true,2,false,false);this.Subfile1Container.addSingleLineEdit(147,29,"CRBVALDEDU","Dedução","","CrbValDedu","decimal",0,"px",13,11,"right",null,[],147,"CrbValDedu",true,2,false,false);this.Subfile1Container.addComboBox(143,30,"CRBINDCANC","Cancelado","CrbIndCanc","char",null,0,true,false,0,"px");this.Subfile1Container.addSingleLineEdit(139,31,"CRBCODUNID","Un.dep.","","CrbCodUnid","int",0,"px",3,3,"right",null,[],139,"CrbCodUnid",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(140,32,"CRBCODUSUA","Operador","","CrbCodUsua","char",0,"px",6,6,"left",null,[],140,"CrbCodUsua",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[2]={fld:"TABLE2",grid:0};this.GXValidFnc[5]={fld:"TABLE1",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[22]={lvl:2,type:"char",len:1,dec:0,sign:true,ro:0,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vOP",gxz:"ZV36Op",gxold:"OV36Op",gxvar:"AV36Op",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV36Op=a
},v2z:function(a){gx.O.ZV36Op=a},v2c:function(){gx.fn.setGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(21),gx.O.AV36Op,"S")},c2v:function(){gx.O.AV36Op=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(21),"S","N")},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:this.Valid_Crcnroseq,isvalid:null,rgrid:[],fld:"CRCNROSEQ",gxz:"Z157CrcNroSeq",gxold:"O157CrcNroSeq",gxvar:"A157CrcNroSeq",ucs:[],op:[25],ip:[25,23],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A157CrcNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z157CrcNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CRCNROSEQ",gx.fn.currentGridRowImpl(21),gx.O.A157CrcNroSeq,0)},c2v:function(){gx.O.A157CrcNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRCNROSEQ",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRBNROSEQ",gxz:"Z144CrbNroSeq",gxold:"O144CrbNroSeq",gxvar:"A144CrbNroSeq",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A144CrbNroSeq=gx.num.intval(a)
},v2z:function(a){gx.O.Z144CrbNroSeq=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CRBNROSEQ",gx.fn.currentGridRowImpl(21),gx.O.A144CrbNroSeq,0)},c2v:function(){gx.O.A144CrbNroSeq=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRBNROSEQ",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:21,gxgrid:this.Subfile1Container,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(21),gx.O.A786UsbNom,0)},c2v:function(){gx.O.A786UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("USBNOM",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"CRBDATBAIX",gxz:"Z141CrbDatBaix",gxold:"O141CrbDatBaix",gxvar:"A141CrbDatBaix",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.A141CrbDatBaix=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z141CrbDatBaix=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("CRBDATBAIX",gx.fn.currentGridRowImpl(21),gx.O.A141CrbDatBaix,0)},c2v:function(){gx.O.A141CrbDatBaix=this.val()},val:function(){return gx.fn.getGridControlValue("CRBDATBAIX",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRBVALBAIX",gxz:"Z146CrbValBaix",gxold:"O146CrbValBaix",gxvar:"A146CrbValBaix",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A146CrbValBaix=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z146CrbValBaix=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRBVALBAIX",gx.fn.currentGridRowImpl(21),gx.O.A146CrbValBaix,2,",")},c2v:function(){gx.O.A146CrbValBaix=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRBVALBAIX",gx.fn.currentGridRowImpl(21),".",",")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRBVALACRE",gxz:"Z145CrbValAcre",gxold:"O145CrbValAcre",gxvar:"A145CrbValAcre",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A145CrbValAcre=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z145CrbValAcre=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRBVALACRE",gx.fn.currentGridRowImpl(21),gx.O.A145CrbValAcre,2,",")},c2v:function(){gx.O.A145CrbValAcre=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRBVALACRE",gx.fn.currentGridRowImpl(21),".",",")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRBVALDEDU",gxz:"Z147CrbValDedu",gxold:"O147CrbValDedu",gxvar:"A147CrbValDedu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A147CrbValDedu=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z147CrbValDedu=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("CRBVALDEDU",gx.fn.currentGridRowImpl(21),gx.O.A147CrbValDedu,2,",")},c2v:function(){gx.O.A147CrbValDedu=this.val()},val:function(){return gx.fn.getGridDecimalValue("CRBVALDEDU",gx.fn.currentGridRowImpl(21),".",",")},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"CRBINDCANC",gxz:"Z143CrbIndCanc",gxold:"O143CrbIndCanc",gxvar:"A143CrbIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A143CrbIndCanc=a
},v2z:function(a){gx.O.Z143CrbIndCanc=a},v2c:function(){gx.fn.setGridComboBoxValue("CRBINDCANC",gx.fn.currentGridRowImpl(21),gx.O.A143CrbIndCanc)},c2v:function(){gx.O.A143CrbIndCanc=this.val()},val:function(){return gx.fn.getGridControlValue("CRBINDCANC",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"CRBCODUNID",gxz:"Z139CrbCodUnid",gxold:"O139CrbCodUnid",gxvar:"A139CrbCodUnid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A139CrbCodUnid=gx.num.intval(a)
},v2z:function(a){gx.O.Z139CrbCodUnid=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("CRBCODUNID",gx.fn.currentGridRowImpl(21),gx.O.A139CrbCodUnid,0)},c2v:function(){gx.O.A139CrbCodUnid=this.val()},val:function(){return gx.fn.getGridIntegerValue("CRBCODUNID",gx.fn.currentGridRowImpl(21),".")},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:21,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"CRBCODUSUA",gxz:"Z140CrbCodUsua",gxold:"O140CrbCodUsua",gxvar:"A140CrbCodUsua",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A140CrbCodUsua=a
},v2z:function(a){gx.O.Z140CrbCodUsua=a},v2c:function(){gx.fn.setGridControlValue("CRBCODUSUA",gx.fn.currentGridRowImpl(21),gx.O.A140CrbCodUsua,0)},c2v:function(){gx.O.A140CrbCodUsua=this.val()},val:function(){return gx.fn.getGridControlValue("CRBCODUSUA",gx.fn.currentGridRowImpl(21))},nac:function(){return false}};this.ZV36Op="";this.OV36Op="";this.Z157CrcNroSeq=0;this.O157CrcNroSeq=0;this.Z144CrbNroSeq=0;this.O144CrbNroSeq=0;this.Z786UsbNom="";this.O786UsbNom="";this.Z141CrbDatBaix=gx.date.nullDate();
this.O141CrbDatBaix=gx.date.nullDate();this.Z146CrbValBaix=0;this.O146CrbValBaix=0;this.Z145CrbValAcre=0;this.O145CrbValAcre=0;this.Z147CrbValDedu=0;this.O147CrbValDedu=0;this.Z143CrbIndCanc="";this.O143CrbIndCanc="";this.Z139CrbCodUnid=0;this.O139CrbCodUnid=0;this.Z140CrbCodUsua="";this.O140CrbCodUsua="";this.AV30TipOrigem="";this.AV29CrcNroSeq=0;this.A787UsbCod="";this.AV36Op="";this.A157CrcNroSeq=0;this.A144CrbNroSeq=0;this.A786UsbNom="";this.A141CrbDatBaix=gx.date.nullDate();this.A146CrbValBaix=0;
this.A145CrbValAcre=0;this.A147CrbValDedu=0;this.A143CrbIndCanc="";this.A139CrbCodUnid=0;this.A140CrbCodUsua="";this.ServerEvents=["e11122_client","e12122_client","e16122_client","e13122_client","e17122_client","e18122_client"];this.VarControlMap.AV30TipOrigem={id:"vTIPORIGEM",grid:0,type:"char"};this.VarControlMap.AV29CrcNroSeq={id:"vCRCNROSEQ",grid:0,type:"int"};this.VarControlMap.AV29CrcNroSeq={id:"vCRCNROSEQ",grid:0,type:"int"};this.Subfile1Container.addRefreshingVar({rfrVar:"AV29CrcNroSeq"});
this.SetStandaloneVars()}himh121.prototype=new gx.GxObject;gx.setParentObj(new himh121());