gx.evt.autoSkip=false;function hmaw019(){this.ServerClass="HMaw019";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV10DicTipMaterialParm=gx.fn.getControlValue("vDICTIPMATERIALPARM")};this.Validv_Novotipomaterial=function(){try{var a=gx.util.balloon.getNew("vNOVOTIPOMATERIAL");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e132z2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])
};this.e112z2_client=function(){this.executeServerEvent("'REPLICAR'",false)};this.e122z2_client=function(){this.executeServerEvent("'APLICAR'",false)};this.e162z1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,16,20,23,26,27,30,32,36,37];this.GXLastCtrlId=37;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",35,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"hmaw019",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");
this.Grid1Container.addCheckBox("Grdindreplicar",36,"vGRDINDREPLICAR","","","GrdIndReplicar","char","S","N",null,true,false,0,"px");this.Grid1Container.addSingleLineEdit("Dictipmaterialscr",37,"vDICTIPMATERIALSCR","","","DicTipMaterialScr","char",0,"px",3,3,"left",null,[],"Dictipmaterialscr","DicTipMaterialScr",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[16]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[20]={fld:"TABLE2",grid:0};
this.GXValidFnc[23]={fld:"TABLE3",grid:0};this.GXValidFnc[26]={fld:"GROUP1",grid:0};this.GXValidFnc[27]={fld:"TABLE4",grid:0};this.GXValidFnc[30]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[32]={lvl:0,type:"char",len:3,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:this.Validv_Novotipomaterial,isvalid:null,fld:"vNOVOTIPOMATERIAL",gxz:"ZV15NovoTipoMaterial",gxold:"OV15NovoTipoMaterial",gxvar:"AV15NovoTipoMaterial",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV15NovoTipoMaterial=a
},v2z:function(a){gx.O.ZV15NovoTipoMaterial=a},v2c:function(){gx.fn.setControlValue("vNOVOTIPOMATERIAL",gx.O.AV15NovoTipoMaterial,0)},c2v:function(){gx.O.AV15NovoTipoMaterial=this.val()},val:function(){return gx.fn.getControlValue("vNOVOTIPOMATERIAL")},nac:function(){return false}};this.GXValidFnc[36]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vGRDINDREPLICAR",gxz:"ZV13GrdIndReplicar",gxold:"OV13GrdIndReplicar",gxvar:"AV13GrdIndReplicar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV13GrdIndReplicar=a
},v2z:function(a){gx.O.ZV13GrdIndReplicar=a},v2c:function(){gx.fn.setGridCheckBoxValue("vGRDINDREPLICAR",gx.fn.currentGridRowImpl(35),gx.O.AV13GrdIndReplicar,"S")},c2v:function(){gx.O.AV13GrdIndReplicar=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vGRDINDREPLICAR",gx.fn.currentGridRowImpl(35),"S","N")},nac:function(){return false}};this.GXValidFnc[37]={lvl:2,type:"char",len:3,dec:0,sign:false,ro:0,grid:35,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDICTIPMATERIALSCR",gxz:"ZV11DicTipMaterialScr",gxold:"OV11DicTipMaterialScr",gxvar:"AV11DicTipMaterialScr",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11DicTipMaterialScr=a
},v2z:function(a){gx.O.ZV11DicTipMaterialScr=a},v2c:function(){gx.fn.setGridControlValue("vDICTIPMATERIALSCR",gx.fn.currentGridRowImpl(35),gx.O.AV11DicTipMaterialScr,0)},c2v:function(){gx.O.AV11DicTipMaterialScr=this.val()},val:function(){return gx.fn.getGridControlValue("vDICTIPMATERIALSCR",gx.fn.currentGridRowImpl(35))},nac:function(){return false}};this.AV15NovoTipoMaterial="";this.ZV15NovoTipoMaterial="";this.OV15NovoTipoMaterial="";this.ZV13GrdIndReplicar="";this.OV13GrdIndReplicar="";this.ZV11DicTipMaterialScr="";
this.OV11DicTipMaterialScr="";this.AV10DicTipMaterialParm="";this.AV13GrdIndReplicar="";this.AV11DicTipMaterialScr="";this.A203DicTipMate="";this.A196DicIndAtiv="";this.A198DicNomCamp="";this.ServerEvents=["e132z2_client","e112z2_client","e122z2_client","e162z1_client"];this.VarControlMap.AV10DicTipMaterialParm={id:"vDICTIPMATERIALPARM",grid:0,type:"char"};this.VarControlMap.A198DicNomCamp={id:"DICNOMCAMP",grid:0,type:"char"};this.VarControlMap.A203DicTipMate={id:"DICTIPMATE",grid:0,type:"char"};
this.Grid1Container.addRefreshingVar({rfrVar:"AV13GrdIndReplicar",rfrProp:"Enabled"});this.Grid1Container.addRefreshingVar({rfrVar:"A198DicNomCamp"});this.Grid1Container.addRefreshingVar({rfrVar:"A203DicTipMate"});this.SetStandaloneVars()}hmaw019.prototype=new gx.GxObject;gx.setParentObj(new hmaw019());