gx.evt.autoSkip=false;function himh042(){this.ServerClass="HImh042";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV11DocNro=gx.fn.getIntegerValue("vDOCNRO",".");this.AV12CedNroItem=gx.fn.getIntegerValue("vCEDNROITEM",".");this.AV13CedNroArtigo=gx.fn.getIntegerValue("vCEDNROARTIGO",".");this.AV17DicNroSequencia=gx.fn.getIntegerValue("vDICNROSEQUENCIA",".");this.AV18CedNroRepCampo=gx.fn.getIntegerValue("vCEDNROREPCAMPO",".");this.AV19DisNroSequenciaSubcampo=gx.fn.getIntegerValue("vDISNROSEQUENCIASUBCAMPO",".");
this.AV20ScdNroAgrupamento=gx.fn.getIntegerValue("vSCDNROAGRUPAMENTO",".");this.AV21ScdNroRepSubcampo=gx.fn.getIntegerValue("vSCDNROREPSUBCAMPO",".");this.AV30ParmIndGravar=gx.fn.getControlValue("vPARMINDGRAVAR");this.AV29RetornoChamada=gx.fn.getControlValue("vRETORNOCHAMADA")};this.Valid_Cgacod=function(){try{if(gx.fn.currentGridRowImpl(37)===0){return true}var a=gx.util.balloon.getNew("CGACOD",gx.fn.currentGridRowImpl(37));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true
}return a.show()}catch(b){}return true};this.Valid_Cgadsc=function(){try{if(gx.fn.currentGridRowImpl(37)===0){return true}var a=gx.util.balloon.getNew("CGADSC",gx.fn.currentGridRowImpl(37));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Scadsc=function(){try{if(gx.fn.currentGridRowImpl(37)===0){return true}var a=gx.util.balloon.getNew("SCADSC",gx.fn.currentGridRowImpl(37));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()
}catch(b){}return true};this.e13422_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e11422_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e15422_client=function(){this.executeServerEvent("'GRAVARCHAMADA'",true,arguments[0])};this.e16422_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,16,19,21,23,25,28,30,32,34,38,39,40,41,42,43];this.GXLastCtrlId=43;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",37,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"himh042",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Subfile1Container.addSingleLineEdit(128,38,"CGACOD","Categoria","","CgaCod","char",0,"px",12,12,"left",null,[],128,"CgaCod",false,0,false,false);this.Subfile1Container.addSingleLineEdit(760,39,"SCACOD","Sub-categoria","","ScaCod","char",0,"px",12,12,"left",null,[],760,"ScaCod",false,0,false,false);this.Subfile1Container.addSingleLineEdit("Nrochamada",40,"vNROCHAMADA","","","NroChamada","char",0,"px",30,30,"left","e15422_client",[],"Nrochamada","NroChamada",true,0,false,false);this.Subfile1Container.addSingleLineEdit(129,41,"CGADSC","Categoria","","CgaDsc","char",0,"px",100,100,"left",null,[],129,"CgaDsc",true,0,false,false);
this.Subfile1Container.addSingleLineEdit(761,42,"SCADSC","Sub-categoria","","ScaDsc","char",0,"px",100,100,"left",null,[],761,"ScaDsc",true,0,false,false);this.Subfile1Container.addSingleLineEdit(762,43,"SCANROSEQU","Seq. atual","","ScaNroSequ","int",0,"px",6,6,"right",null,[],762,"ScaNroSequ",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[16]={fld:"TABLE2",grid:0};this.GXValidFnc[19]={fld:"TEXTBLOCK2",format:0,grid:0};
this.GXValidFnc[21]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCGADSCFILTRO1",gxz:"ZV7CgaDscFiltro1",gxold:"OV7CgaDscFiltro1",gxvar:"AV7CgaDscFiltro1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7CgaDscFiltro1=a},v2z:function(a){gx.O.ZV7CgaDscFiltro1=a},v2c:function(){gx.fn.setControlValue("vCGADSCFILTRO1",gx.O.AV7CgaDscFiltro1,0)},c2v:function(){gx.O.AV7CgaDscFiltro1=this.val()},val:function(){return gx.fn.getControlValue("vCGADSCFILTRO1")
},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCGADSCFILTRO2",gxz:"ZV8CgaDscFiltro2",gxold:"OV8CgaDscFiltro2",gxvar:"AV8CgaDscFiltro2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8CgaDscFiltro2=a},v2z:function(a){gx.O.ZV8CgaDscFiltro2=a},v2c:function(){gx.fn.setControlValue("vCGADSCFILTRO2",gx.O.AV8CgaDscFiltro2,0)},c2v:function(){gx.O.AV8CgaDscFiltro2=this.val()
},val:function(){return gx.fn.getControlValue("vCGADSCFILTRO2")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCADSCFILTRO1",gxz:"ZV9ScaDscFiltro1",gxold:"OV9ScaDscFiltro1",gxvar:"AV9ScaDscFiltro1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9ScaDscFiltro1=a},v2z:function(a){gx.O.ZV9ScaDscFiltro1=a},v2c:function(){gx.fn.setControlValue("vSCADSCFILTRO1",gx.O.AV9ScaDscFiltro1,0)
},c2v:function(){gx.O.AV9ScaDscFiltro1=this.val()},val:function(){return gx.fn.getControlValue("vSCADSCFILTRO1")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"char",len:25,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCADSCFILTRO2",gxz:"ZV10ScaDscFiltro2",gxold:"OV10ScaDscFiltro2",gxvar:"AV10ScaDscFiltro2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10ScaDscFiltro2=a},v2z:function(a){gx.O.ZV10ScaDscFiltro2=a
},v2c:function(){gx.fn.setControlValue("vSCADSCFILTRO2",gx.O.AV10ScaDscFiltro2,0)},c2v:function(){gx.O.AV10ScaDscFiltro2=this.val()},val:function(){return gx.fn.getControlValue("vSCADSCFILTRO2")},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"char",len:12,dec:0,sign:false,ro:1,grid:37,gxgrid:this.Subfile1Container,fnc:this.Valid_Cgacod,isvalid:null,fld:"CGACOD",gxz:"Z128CgaCod",gxold:"O128CgaCod",gxvar:"A128CgaCod",ucs:[],op:[41],ip:[41,38,42],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A128CgaCod=a
},v2z:function(a){gx.O.Z128CgaCod=a},v2c:function(){gx.fn.setGridControlValue("CGACOD",gx.fn.currentGridRowImpl(37),gx.O.A128CgaCod,0)},c2v:function(){gx.O.A128CgaCod=this.val()},val:function(){return gx.fn.getGridControlValue("CGACOD",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:12,dec:0,sign:false,ro:1,grid:37,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"SCACOD",gxz:"Z760ScaCod",gxold:"O760ScaCod",gxvar:"A760ScaCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A760ScaCod=a
},v2z:function(a){gx.O.Z760ScaCod=a},v2c:function(){gx.fn.setGridControlValue("SCACOD",gx.fn.currentGridRowImpl(37),gx.O.A760ScaCod,0)},c2v:function(){gx.O.A760ScaCod=this.val()},val:function(){return gx.fn.getGridControlValue("SCACOD",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"char",len:30,dec:0,sign:false,ro:0,grid:37,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vNROCHAMADA",gxz:"ZV6NroChamada",gxold:"OV6NroChamada",gxvar:"AV6NroChamada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6NroChamada=a
},v2z:function(a){gx.O.ZV6NroChamada=a},v2c:function(){gx.fn.setGridControlValue("vNROCHAMADA",gx.fn.currentGridRowImpl(37),gx.O.AV6NroChamada,0)},c2v:function(){gx.O.AV6NroChamada=this.val()},val:function(){return gx.fn.getGridControlValue("vNROCHAMADA",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:37,gxgrid:this.Subfile1Container,fnc:this.Valid_Cgadsc,isvalid:null,fld:"CGADSC",gxz:"Z129CgaDsc",gxold:"O129CgaDsc",gxvar:"A129CgaDsc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A129CgaDsc=a
},v2z:function(a){gx.O.Z129CgaDsc=a},v2c:function(){gx.fn.setGridControlValue("CGADSC",gx.fn.currentGridRowImpl(37),gx.O.A129CgaDsc,0)},c2v:function(){gx.O.A129CgaDsc=this.val()},val:function(){return gx.fn.getGridControlValue("CGADSC",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[42]={lvl:2,type:"char",len:100,dec:0,sign:false,ro:1,grid:37,gxgrid:this.Subfile1Container,fnc:this.Valid_Scadsc,isvalid:null,fld:"SCADSC",gxz:"Z761ScaDsc",gxold:"O761ScaDsc",gxvar:"A761ScaDsc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A761ScaDsc=a
},v2z:function(a){gx.O.Z761ScaDsc=a},v2c:function(){gx.fn.setGridControlValue("SCADSC",gx.fn.currentGridRowImpl(37),gx.O.A761ScaDsc,0)},c2v:function(){gx.O.A761ScaDsc=this.val()},val:function(){return gx.fn.getGridControlValue("SCADSC",gx.fn.currentGridRowImpl(37))},nac:function(){return false}};this.GXValidFnc[43]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:37,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,rgrid:[],fld:"SCANROSEQU",gxz:"Z762ScaNroSequ",gxold:"O762ScaNroSequ",gxvar:"A762ScaNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A762ScaNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z762ScaNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SCANROSEQU",gx.fn.currentGridRowImpl(37),gx.O.A762ScaNroSequ,0)},c2v:function(){gx.O.A762ScaNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("SCANROSEQU",gx.fn.currentGridRowImpl(37),".")},nac:function(){return false}};this.AV7CgaDscFiltro1="";this.ZV7CgaDscFiltro1="";this.OV7CgaDscFiltro1="";this.AV8CgaDscFiltro2="";this.ZV8CgaDscFiltro2="";this.OV8CgaDscFiltro2="";this.AV9ScaDscFiltro1="";
this.ZV9ScaDscFiltro1="";this.OV9ScaDscFiltro1="";this.AV10ScaDscFiltro2="";this.ZV10ScaDscFiltro2="";this.OV10ScaDscFiltro2="";this.Z128CgaCod="";this.O128CgaCod="";this.Z760ScaCod="";this.O760ScaCod="";this.ZV6NroChamada="";this.OV6NroChamada="";this.Z129CgaDsc="";this.O129CgaDsc="";this.Z761ScaDsc="";this.O761ScaDsc="";this.Z762ScaNroSequ=0;this.O762ScaNroSequ=0;this.AV11DocNro=0;this.AV12CedNroItem=0;this.AV13CedNroArtigo=0;this.AV17DicNroSequencia=0;this.AV18CedNroRepCampo=0;this.AV19DisNroSequenciaSubcampo=0;
this.AV20ScdNroAgrupamento=0;this.AV21ScdNroRepSubcampo=0;this.AV30ParmIndGravar="";this.AV29RetornoChamada="";this.A128CgaCod="";this.A760ScaCod="";this.AV6NroChamada="";this.A129CgaDsc="";this.A761ScaDsc="";this.A762ScaNroSequ=0;this.ServerEvents=["e13422_client","e11422_client","e15422_client","e16422_client"];this.VarControlMap.AV11DocNro={id:"vDOCNRO",grid:0,type:"int"};this.VarControlMap.AV12CedNroItem={id:"vCEDNROITEM",grid:0,type:"int"};this.VarControlMap.AV13CedNroArtigo={id:"vCEDNROARTIGO",grid:0,type:"int"};
this.VarControlMap.AV17DicNroSequencia={id:"vDICNROSEQUENCIA",grid:0,type:"int"};this.VarControlMap.AV18CedNroRepCampo={id:"vCEDNROREPCAMPO",grid:0,type:"int"};this.VarControlMap.AV19DisNroSequenciaSubcampo={id:"vDISNROSEQUENCIASUBCAMPO",grid:0,type:"int"};this.VarControlMap.AV20ScdNroAgrupamento={id:"vSCDNROAGRUPAMENTO",grid:0,type:"int"};this.VarControlMap.AV21ScdNroRepSubcampo={id:"vSCDNROREPSUBCAMPO",grid:0,type:"int"};this.VarControlMap.AV30ParmIndGravar={id:"vPARMINDGRAVAR",grid:0,type:"char"};
this.VarControlMap.AV29RetornoChamada={id:"vRETORNOCHAMADA",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar(this.GXValidFnc[21]);this.Subfile1Container.addRefreshingVar(this.GXValidFnc[25]);this.Subfile1Container.addRefreshingVar(this.GXValidFnc[30]);this.Subfile1Container.addRefreshingVar(this.GXValidFnc[34]);this.SetStandaloneVars()}himh042.prototype=new gx.GxObject;gx.setParentObj(new himh042());