gx.evt.autoSkip=false;function himh096(){this.ServerClass="HImh096";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=false;this.SetStandaloneVars=function(){this.A819SlcNro=gx.fn.getIntegerValue("SLCNRO",".")};this.e111m2_client=function(){this.executeServerEvent("'GERAR EXEMPLAR'",false)};this.e121m2_client=function(){this.executeServerEvent("'CANCELAR RECEBIMENTO'",false)};this.e131m2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e161m1_client=function(){this.executeServerEvent("ENTER",true)
};this.e171m2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,16,20,21,22,23,24,25,26,27];this.GXLastCtrlId=27;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",19,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"himh096",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,true,null,null,false,"");this.Grid1Container.addCheckBox("Op",20,"vOP","","","Op","char","S","N",null,true,false,0,"px");
this.Grid1Container.addSingleLineEdit(797,21,"SLBNRO","Nro","","SlbNro","int",0,"px",3,3,"right",null,[],797,"SlbNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(795,22,"SLBDATMOVI","Data","","SlbDatMovi","date",0,"px",10,10,"right",null,[],795,"SlbDatMovi",true,0,false,false);this.Grid1Container.addSingleLineEdit(798,23,"SLBQTDMOVI","Qtd","","SlbQtdMovi","int",0,"px",3,3,"right",null,[],798,"SlbQtdMovi",true,0,false,false);this.Grid1Container.addComboBox(799,24,"SLBTIPMOVI","Tipo","SlbTipMovi","char",null,0,true,false,0,"px");
this.Grid1Container.addSingleLineEdit(800,25,"SLBVALUNIT","Valor unitário","","SlbValUnit","decimal",0,"px",13,11,"right",null,[],800,"SlbValUnit",true,2,false,false);this.Grid1Container.addComboBox(796,26,"SLBINDCANC","Cancelada","SlbIndCanc","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(549,27,"MTCDES","Motivo cancelamento","","Mtcdes","char",0,"px",50,50,"left",null,[],549,"Mtcdes",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]={lvl:2,type:"char",len:1,dec:0,sign:true,ro:0,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vOP",gxz:"ZV28Op",gxold:"OV28Op",gxvar:"AV28Op",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"checkbox",v2v:function(a){gx.O.AV28Op=a},v2z:function(a){gx.O.ZV28Op=a},v2c:function(){gx.fn.setGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(19),gx.O.AV28Op,"S")},c2v:function(){gx.O.AV28Op=this.val()},val:function(){return gx.fn.getGridCheckBoxValue("vOP",gx.fn.currentGridRowImpl(19),"S","N")
},nac:function(){return false}};this.GXValidFnc[21]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLBNRO",gxz:"Z797SlbNro",gxold:"O797SlbNro",gxvar:"A797SlbNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A797SlbNro=gx.num.intval(a)},v2z:function(a){gx.O.Z797SlbNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLBNRO",gx.fn.currentGridRowImpl(19),gx.O.A797SlbNro,0)},c2v:function(){gx.O.A797SlbNro=this.val()
},val:function(){return gx.fn.getGridIntegerValue("SLBNRO",gx.fn.currentGridRowImpl(19),".")},nac:function(){return false}};this.GXValidFnc[22]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLBDATMOVI",gxz:"Z795SlbDatMovi",gxold:"O795SlbDatMovi",gxvar:"A795SlbDatMovi",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.A795SlbDatMovi=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.Z795SlbDatMovi=gx.fn.toDatetimeValue(a)
},v2c:function(){gx.fn.setGridControlValue("SLBDATMOVI",gx.fn.currentGridRowImpl(19),gx.O.A795SlbDatMovi,0)},c2v:function(){gx.O.A795SlbDatMovi=this.val()},val:function(){return gx.fn.getGridControlValue("SLBDATMOVI",gx.fn.currentGridRowImpl(19))},nac:function(){return false}};this.GXValidFnc[23]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLBQTDMOVI",gxz:"Z798SlbQtdMovi",gxold:"O798SlbQtdMovi",gxvar:"A798SlbQtdMovi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A798SlbQtdMovi=gx.num.intval(a)
},v2z:function(a){gx.O.Z798SlbQtdMovi=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLBQTDMOVI",gx.fn.currentGridRowImpl(19),gx.O.A798SlbQtdMovi,0)},c2v:function(){gx.O.A798SlbQtdMovi=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLBQTDMOVI",gx.fn.currentGridRowImpl(19),".")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLBTIPMOVI",gxz:"Z799SlbTipMovi",gxold:"O799SlbTipMovi",gxvar:"A799SlbTipMovi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A799SlbTipMovi=a
},v2z:function(a){gx.O.Z799SlbTipMovi=a},v2c:function(){gx.fn.setGridComboBoxValue("SLBTIPMOVI",gx.fn.currentGridRowImpl(19),gx.O.A799SlbTipMovi)},c2v:function(){gx.O.A799SlbTipMovi=this.val()},val:function(){return gx.fn.getGridControlValue("SLBTIPMOVI",gx.fn.currentGridRowImpl(19))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLBVALUNIT",gxz:"Z800SlbValUnit",gxold:"O800SlbValUnit",gxvar:"A800SlbValUnit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A800SlbValUnit=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z800SlbValUnit=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("SLBVALUNIT",gx.fn.currentGridRowImpl(19),gx.O.A800SlbValUnit,2,",")},c2v:function(){gx.O.A800SlbValUnit=this.val()},val:function(){return gx.fn.getGridDecimalValue("SLBVALUNIT",gx.fn.currentGridRowImpl(19),".",",")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLBINDCANC",gxz:"Z796SlbIndCanc",gxold:"O796SlbIndCanc",gxvar:"A796SlbIndCanc",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A796SlbIndCanc=a
},v2z:function(a){gx.O.Z796SlbIndCanc=a},v2c:function(){gx.fn.setGridComboBoxValue("SLBINDCANC",gx.fn.currentGridRowImpl(19),gx.O.A796SlbIndCanc)},c2v:function(){gx.O.A796SlbIndCanc=this.val()},val:function(){return gx.fn.getGridControlValue("SLBINDCANC",gx.fn.currentGridRowImpl(19))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:19,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"MTCDES",gxz:"Z549Mtcdes",gxold:"O549Mtcdes",gxvar:"A549Mtcdes",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A549Mtcdes=a
},v2z:function(a){gx.O.Z549Mtcdes=a},v2c:function(){gx.fn.setGridControlValue("MTCDES",gx.fn.currentGridRowImpl(19),gx.O.A549Mtcdes,0)},c2v:function(){gx.O.A549Mtcdes=this.val()},val:function(){return gx.fn.getGridControlValue("MTCDES",gx.fn.currentGridRowImpl(19))},nac:function(){return false}};this.ZV28Op="";this.OV28Op="";this.Z797SlbNro=0;this.O797SlbNro=0;this.Z795SlbDatMovi=gx.date.nullDate();this.O795SlbDatMovi=gx.date.nullDate();this.Z798SlbQtdMovi=0;this.O798SlbQtdMovi=0;this.Z799SlbTipMovi="";
this.O799SlbTipMovi="";this.Z800SlbValUnit=0;this.O800SlbValUnit=0;this.Z796SlbIndCanc="";this.O796SlbIndCanc="";this.Z549Mtcdes="";this.O549Mtcdes="";this.A819SlcNro=0;this.A548MtcCod=0;this.AV28Op="";this.A797SlbNro=0;this.A795SlbDatMovi=gx.date.nullDate();this.A798SlbQtdMovi=0;this.A799SlbTipMovi="";this.A800SlbValUnit=0;this.A796SlbIndCanc="";this.A549Mtcdes="";this.ServerEvents=["e111m2_client","e121m2_client","e131m2_client","e161m1_client","e171m2_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.A819SlcNro={id:"SLCNRO",grid:0,type:"int"};
this.VarControlMap.A819SlcNro={id:"SLCNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar({rfrVar:"A819SlcNro"});this.SetStandaloneVars()}himh096.prototype=new gx.GxObject;gx.setParentObj(new himh096());