gx.evt.autoSkip=false;function himh101(){this.ServerClass="HImh101";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.AV13PedNroOut=gx.fn.getIntegerValue("vPEDNROOUT",".")};this.e121r2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e131r2_client=function(){this.executeServerEvent("'VOLTAR'",true,arguments[0])};this.e151r1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,6,13,16,19,21,24,26,31,32,33,34];
this.GXLastCtrlId=34;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",30,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh101",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Grid1Container.addSingleLineEdit("Datchar",31,"vDATCHAR","Data","","DatChar","char",60,"px",10,10,"left",null,[],"Datchar","DatChar",true,0,false,false);this.Grid1Container.addSingleLineEdit("Pednro",32,"vPEDNRO","Nro","","PedNro","int",46,"px",6,6,"right",null,[],"Pednro","PedNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit("Fornec",33,"vFORNEC","Fornecedor","","Fornec","char",0,"px",60,60,"left",null,[],"Fornec","Fornec",true,0,false,false);this.Grid1Container.addSingleLineEdit("Tittela",34,"vTITTELA","Título","","TitTela","char",0,"px",250,250,"left",null,[],"Tittela","TitTela",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE3",grid:0};this.GXValidFnc[6]={fld:"TABLE1",grid:0};this.GXValidFnc[13]={fld:"TEXTBLOCK4",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:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATINI",gxz:"ZV5DatIni",gxold:"OV5DatIni",gxvar:"AV5DatIni",dp:{f:0,st:false,wn:false,mf:false,pic:"99/99/9999",dec:0},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5DatIni=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.ZV5DatIni=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATINI",gx.O.AV5DatIni,0)
},c2v:function(){gx.O.AV5DatIni=this.val()},val:function(){return gx.fn.getControlValue("vDATINI")},nac:function(){return false}};this.GXValidFnc[24]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTITULO",gxz:"ZV6Titulo",gxold:"OV6Titulo",gxvar:"AV6Titulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6Titulo=a},v2z:function(a){gx.O.ZV6Titulo=a},v2c:function(){gx.fn.setControlValue("vTITULO",gx.O.AV6Titulo,0)
},c2v:function(){gx.O.AV6Titulo=this.val()},val:function(){return gx.fn.getControlValue("vTITULO")},nac:function(){return false}};this.GXValidFnc[31]={lvl:2,type:"char",len:10,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDATCHAR",gxz:"ZV9DatChar",gxold:"OV9DatChar",gxvar:"AV9DatChar",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9DatChar=a},v2z:function(a){gx.O.ZV9DatChar=a},v2c:function(){gx.fn.setGridControlValue("vDATCHAR",gx.fn.currentGridRowImpl(30),gx.O.AV9DatChar,0)
},c2v:function(){gx.O.AV9DatChar=this.val()},val:function(){return gx.fn.getGridControlValue("vDATCHAR",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[32]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"vPEDNRO",gxz:"ZV12PedNro",gxold:"OV12PedNro",gxvar:"AV12PedNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12PedNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV12PedNro=gx.num.intval(a)
},v2c:function(){gx.fn.setGridControlValue("vPEDNRO",gx.fn.currentGridRowImpl(30),gx.O.AV12PedNro,0)},c2v:function(){gx.O.AV12PedNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("vPEDNRO",gx.fn.currentGridRowImpl(30),".")},nac:function(){return false}};this.GXValidFnc[33]={lvl:2,type:"char",len:60,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vFORNEC",gxz:"ZV11Fornec",gxold:"OV11Fornec",gxvar:"AV11Fornec",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11Fornec=a
},v2z:function(a){gx.O.ZV11Fornec=a},v2c:function(){gx.fn.setGridControlValue("vFORNEC",gx.fn.currentGridRowImpl(30),gx.O.AV11Fornec,0)},c2v:function(){gx.O.AV11Fornec=this.val()},val:function(){return gx.fn.getGridControlValue("vFORNEC",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.GXValidFnc[34]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:30,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vTITTELA",gxz:"ZV10TitTela",gxold:"OV10TitTela",gxvar:"AV10TitTela",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10TitTela=a
},v2z:function(a){gx.O.ZV10TitTela=a},v2c:function(){gx.fn.setGridControlValue("vTITTELA",gx.fn.currentGridRowImpl(30),gx.O.AV10TitTela,0)},c2v:function(){gx.O.AV10TitTela=this.val()},val:function(){return gx.fn.getGridControlValue("vTITTELA",gx.fn.currentGridRowImpl(30))},nac:function(){return false}};this.AV5DatIni=gx.date.nullDate();this.ZV5DatIni=gx.date.nullDate();this.OV5DatIni=gx.date.nullDate();this.AV6Titulo="";this.ZV6Titulo="";this.OV6Titulo="";this.ZV9DatChar="";this.OV9DatChar="";this.ZV12PedNro=0;
this.OV12PedNro=0;this.ZV11Fornec="";this.OV11Fornec="";this.ZV10TitTela="";this.OV10TitTela="";this.AV13PedNroOut=0;this.AV9DatChar="";this.AV12PedNro=0;this.AV11Fornec="";this.AV10TitTela="";this.A621PedDat=gx.date.nullDate();this.A627PedNro=0;this.A622PedDesPaga="";this.A809SlcDesL1Ti="";this.A444ForNomComp="";this.A819SlcNro=0;this.A811SlcDscTitu="";this.A433ForCod=0;this.A812SlcNroDocu=0;this.ServerEvents=["e121r2_client","e131r2_client","e151r1_client"];this.VarControlMap.A809SlcDesL1Ti={id:"SLCDESL1TI",grid:0,type:"char"};
this.VarControlMap.AV13PedNroOut={id:"vPEDNROOUT",grid:0,type:"int"};this.VarControlMap.A811SlcDscTitu={id:"SLCDSCTITU",grid:0,type:"char"};this.VarControlMap.A444ForNomComp={id:"FORNOMCOMP",grid:0,type:"char"};this.VarControlMap.A819SlcNro={id:"SLCNRO",grid:0,type:"int"};this.VarControlMap.A627PedNro={id:"PEDNRO",grid:0,type:"int"};this.VarControlMap.A622PedDesPaga={id:"PEDDESPAGA",grid:0,type:"char"};this.VarControlMap.A621PedDat={id:"PEDDAT",grid:0,type:"date"};this.Grid1Container.addRefreshingVar({rfrVar:"A811SlcDscTitu"});
this.Grid1Container.addRefreshingVar({rfrVar:"A444ForNomComp"});this.Grid1Container.addRefreshingVar({rfrVar:"A819SlcNro"});this.Grid1Container.addRefreshingVar({rfrVar:"A627PedNro"});this.Grid1Container.addRefreshingVar({rfrVar:"A622PedDesPaga"});this.Grid1Container.addRefreshingVar({rfrVar:"A621PedDat"});this.SetStandaloneVars()}himh101.prototype=new gx.GxObject;gx.setParentObj(new himh101());