gx.evt.autoSkip=false;function gx0250(){this.ServerClass="Gx0250";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pSlcNro=gx.fn.getIntegerValue("vPSLCNRO",".");this.AV14pSlbNro=gx.fn.getIntegerValue("vPSLBNRO",".")};this.e13bo2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14bo1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,34,37,39,42,44,47,48,52,53,54,55,56,57,58,59,60,63];
this.GXLastCtrlId=63;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0250",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",52,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(819,53,"SLCNRO","Nro da solicitação","","SlcNro","int",0,"px",6,6,"right",null,[],819,"SlcNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(797,54,"SLBNRO","Número da baixa","","SlbNro","int",0,"px",3,3,"right",null,[],797,"SlbNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(795,55,"SLBDATMOVI","Data do movimento","Selecionar","SlbDatMovi","date",0,"px",10,10,"right",null,[],795,"SlbDatMovi",true,0,false,false);this.Grid1Container.addSingleLineEdit(798,56,"SLBQTDMOVI","Qtd movimentada","","SlbQtdMovi","int",0,"px",3,3,"right",null,[],798,"SlbQtdMovi",true,0,false,false);this.Grid1Container.addSingleLineEdit(800,57,"SLBVALUNIT","Valor unitário","","SlbValUnit","decimal",0,"px",13,11,"right",null,[],800,"SlbValUnit",true,2,false,false);
this.Grid1Container.addComboBox(799,58,"SLBTIPMOVI","Tipo de movimento","SlbTipMovi","char",null,0,true,false,0,"px");this.Grid1Container.addComboBox(796,59,"SLBINDCANC","Cancelada","SlbIndCanc","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(794,60,"SLBCAMPO1L","Campo livre","","SlbCampo1L","char",0,"px",15,15,"left",null,[],794,"SlbCampo1L",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[2]={fld:"TABLE1",grid:0};this.GXValidFnc[8]={fld:"GROUP1",grid:0};
this.GXValidFnc[9]={fld:"TABLE2",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCKSLCNRO",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSLCNRO",gxz:"ZV6cSlcNro",gxold:"OV6cSlcNro",gxvar:"AV6cSlcNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cSlcNro=gx.num.intval(a)},v2z:function(a){gx.O.ZV6cSlcNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSLCNRO",gx.O.AV6cSlcNro,0)
},c2v:function(){gx.O.AV6cSlcNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCSLCNRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKSLBNRO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSLBNRO",gxz:"ZV7cSlbNro",gxold:"OV7cSlbNro",gxvar:"AV7cSlbNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cSlbNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7cSlbNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSLBNRO",gx.O.AV7cSlbNro,0)},c2v:function(){gx.O.AV7cSlbNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCSLBNRO",".")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKSLBDATMOVIMENTO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSLBDATMOVIMENTO",gxz:"ZV8cSlbDatMovimento",gxold:"OV8cSlbDatMovimento",gxvar:"AV8cSlbDatMovimento",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.AV8cSlbDatMovimento=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cSlbDatMovimento=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCSLBDATMOVIMENTO",gx.O.AV8cSlbDatMovimento,0)},c2v:function(){gx.O.AV8cSlbDatMovimento=this.val()},val:function(){return gx.fn.getControlValue("vCSLBDATMOVIMENTO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKSLBQTDMOVIMENTADA",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSLBQTDMOVIMENTADA",gxz:"ZV9cSlbQtdMovimentada",gxold:"OV9cSlbQtdMovimentada",gxvar:"AV9cSlbQtdMovimentada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cSlbQtdMovimentada=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cSlbQtdMovimentada=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSLBQTDMOVIMENTADA",gx.O.AV9cSlbQtdMovimentada,0)},c2v:function(){gx.O.AV9cSlbQtdMovimentada=this.val()},val:function(){return gx.fn.getIntegerValue("vCSLBQTDMOVIMENTADA",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKSLBVALUNITARIO",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSLBVALUNITARIO",gxz:"ZV10cSlbValUnitario",gxold:"OV10cSlbValUnitario",gxvar:"AV10cSlbValUnitario",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cSlbValUnitario=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV10cSlbValUnitario=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCSLBVALUNITARIO",gx.O.AV10cSlbValUnitario,2,",")},c2v:function(){gx.O.AV10cSlbValUnitario=this.val()},val:function(){return gx.fn.getDecimalValue("vCSLBVALUNITARIO",".",",")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKSLBTIPMOVIMENTO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSLBTIPMOVIMENTO",gxz:"ZV11cSlbTipMovimento",gxold:"OV11cSlbTipMovimento",gxvar:"AV11cSlbTipMovimento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV11cSlbTipMovimento=a
},v2z:function(a){gx.O.ZV11cSlbTipMovimento=a},v2c:function(){gx.fn.setComboBoxValue("vCSLBTIPMOVIMENTO",gx.O.AV11cSlbTipMovimento)},c2v:function(){gx.O.AV11cSlbTipMovimento=this.val()},val:function(){return gx.fn.getControlValue("vCSLBTIPMOVIMENTO")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKSLBINDCANCELADA",format:0,grid:0};this.GXValidFnc[44]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSLBINDCANCELADA",gxz:"ZV12cSlbIndCancelada",gxold:"OV12cSlbIndCancelada",gxvar:"AV12cSlbIndCancelada",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV12cSlbIndCancelada=a
},v2z:function(a){gx.O.ZV12cSlbIndCancelada=a},v2c:function(){gx.fn.setComboBoxValue("vCSLBINDCANCELADA",gx.O.AV12cSlbIndCancelada)},c2v:function(){gx.O.AV12cSlbIndCancelada=this.val()},val:function(){return gx.fn.getControlValue("vCSLBINDCANCELADA")},nac:function(){return false}};this.GXValidFnc[47]={fld:"GROUP2",grid:0};this.GXValidFnc[48]={fld:"TABLE3",grid:0};this.GXValidFnc[52]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vLINKSELECTION",gxz:"ZV5LinkSelection",gxold:"OV5LinkSelection",gxvar:"AV5LinkSelection",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5LinkSelection=a
},v2z:function(a){gx.O.ZV5LinkSelection=a},v2c:function(){},c2v:function(){gx.O.AV5LinkSelection=this.val()},val:function(){return gx.fn.getGridControlValue("vLINKSELECTION",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLCNRO",gxz:"Z819SlcNro",gxold:"O819SlcNro",gxvar:"A819SlcNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A819SlcNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z819SlcNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCNRO",gx.fn.currentGridRowImpl(51),gx.O.A819SlcNro,0)},c2v:function(){gx.O.A819SlcNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:51,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(51),gx.O.A797SlbNro,0)},c2v:function(){gx.O.A797SlbNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLBNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A795SlbDatMovi,0)},c2v:function(){gx.O.A795SlbDatMovi=this.val()},val:function(){return gx.fn.getGridControlValue("SLBDATMOVI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:51,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(51),gx.O.A798SlbQtdMovi,0)},c2v:function(){gx.O.A798SlbQtdMovi=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLBQTDMOVI",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:1,grid:51,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(51),gx.O.A800SlbValUnit,2,",")},c2v:function(){gx.O.A800SlbValUnit=this.val()},val:function(){return gx.fn.getGridDecimalValue("SLBVALUNIT",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A799SlbTipMovi)},c2v:function(){gx.O.A799SlbTipMovi=this.val()},val:function(){return gx.fn.getGridControlValue("SLBTIPMOVI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[59]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:51,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(51),gx.O.A796SlbIndCanc)},c2v:function(){gx.O.A796SlbIndCanc=this.val()},val:function(){return gx.fn.getGridControlValue("SLBINDCANC",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLBCAMPO1L",gxz:"Z794SlbCampo1L",gxold:"O794SlbCampo1L",gxvar:"A794SlbCampo1L",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A794SlbCampo1L=a
},v2z:function(a){gx.O.Z794SlbCampo1L=a},v2c:function(){gx.fn.setGridControlValue("SLBCAMPO1L",gx.fn.currentGridRowImpl(51),gx.O.A794SlbCampo1L,0)},c2v:function(){gx.O.A794SlbCampo1L=this.val()},val:function(){return gx.fn.getGridControlValue("SLBCAMPO1L",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[63]={fld:"TABLE4",grid:0};this.AV6cSlcNro=0;this.ZV6cSlcNro=0;this.OV6cSlcNro=0;this.AV7cSlbNro=0;this.ZV7cSlbNro=0;this.OV7cSlbNro=0;this.AV8cSlbDatMovimento=gx.date.nullDate();
this.ZV8cSlbDatMovimento=gx.date.nullDate();this.OV8cSlbDatMovimento=gx.date.nullDate();this.AV9cSlbQtdMovimentada=0;this.ZV9cSlbQtdMovimentada=0;this.OV9cSlbQtdMovimentada=0;this.AV10cSlbValUnitario=0;this.ZV10cSlbValUnitario=0;this.OV10cSlbValUnitario=0;this.AV11cSlbTipMovimento="";this.ZV11cSlbTipMovimento="";this.OV11cSlbTipMovimento="";this.AV12cSlbIndCancelada="";this.ZV12cSlbIndCancelada="";this.OV12cSlbIndCancelada="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z819SlcNro=0;this.O819SlcNro=0;
this.Z797SlbNro=0;this.O797SlbNro=0;this.Z795SlbDatMovi=gx.date.nullDate();this.O795SlbDatMovi=gx.date.nullDate();this.Z798SlbQtdMovi=0;this.O798SlbQtdMovi=0;this.Z800SlbValUnit=0;this.O800SlbValUnit=0;this.Z799SlbTipMovi="";this.O799SlbTipMovi="";this.Z796SlbIndCanc="";this.O796SlbIndCanc="";this.Z794SlbCampo1L="";this.O794SlbCampo1L="";this.AV13pSlcNro=0;this.AV14pSlbNro=0;this.AV5LinkSelection="";this.A819SlcNro=0;this.A797SlbNro=0;this.A795SlbDatMovi=gx.date.nullDate();this.A798SlbQtdMovi=0;this.A800SlbValUnit=0;
this.A799SlbTipMovi="";this.A796SlbIndCanc="";this.A794SlbCampo1L="";this.ServerEvents=["e13bo2_client","e14bo1_client"];this.VarControlMap.AV13pSlcNro={id:"vPSLCNRO",grid:0,type:"int"};this.VarControlMap.AV14pSlbNro={id:"vPSLBNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[14]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[19]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[24]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[34]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[39]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[44]);this.SetStandaloneVars()}gx0250.prototype=new gx.GxObject;gx.setParentObj(new gx0250());