gx.evt.autoSkip=false;function gx03c1(){this.ServerClass="Gx03C1";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV10pUsuCod=gx.fn.getControlValue("vPUSUCOD");this.AV11pUndCod=gx.fn.getIntegerValue("vPUNDCOD",".")};this.e13ak2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14ak1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[2,8,9,12,14,17,19,22,24,27,29,32,33,37,38,39,40,41,42,45];
this.GXLastCtrlId=45;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",36,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx03c1",[],false,1,false,true,10,true,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");this.Grid1Container.addBitmap("&Linkselection","vLINKSELECTION",37,0,"px",17,"px",null,"","");this.Grid1Container.addSingleLineEdit(922,38,"UNDCOD","Unidade depositária","","UndCod","int",0,"px",3,3,"right",null,[],922,"UndCod",true,0,false,false);
this.Grid1Container.addComboBox(557,39,"OPUINDMOVI","Indicador unidade a movimentar","OpuIndMovi","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(555,40,"OPUIND1","Indicador livre 1","","OpuInd1","char",0,"px",1,1,"left",null,[],555,"OpuInd1",true,0,false,false);this.Grid1Container.addSingleLineEdit(556,41,"OPUIND2","Indicador livre 2","","OpuInd2","char",0,"px",1,1,"left",null,[],556,"OpuInd2",true,0,false,false);this.Grid1Container.addSingleLineEdit(968,42,"USUCOD","Operador","","UsuCod","char",0,"px",6,6,"left",null,[],968,"UsuCod",false,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:"TEXTBLOCKUNDCOD",format:0,grid:0};this.GXValidFnc[14]={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:"vCUNDCOD",gxz:"ZV6cUndCod",gxold:"OV6cUndCod",gxvar:"AV6cUndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cUndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cUndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCUNDCOD",gx.O.AV6cUndCod,0)},c2v:function(){gx.O.AV6cUndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKOPUINDMOVIMENTACAO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCOPUINDMOVIMENTACAO",gxz:"ZV7cOpuIndMovimentacao",gxold:"OV7cOpuIndMovimentacao",gxvar:"AV7cOpuIndMovimentacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV7cOpuIndMovimentacao=a
},v2z:function(a){gx.O.ZV7cOpuIndMovimentacao=a},v2c:function(){gx.fn.setComboBoxValue("vCOPUINDMOVIMENTACAO",gx.O.AV7cOpuIndMovimentacao)},c2v:function(){gx.O.AV7cOpuIndMovimentacao=this.val()},val:function(){return gx.fn.getControlValue("vCOPUINDMOVIMENTACAO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKOPUIND1",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCOPUIND1",gxz:"ZV8cOpuInd1",gxold:"OV8cOpuInd1",gxvar:"AV8cOpuInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cOpuInd1=a
},v2z:function(a){gx.O.ZV8cOpuInd1=a},v2c:function(){gx.fn.setControlValue("vCOPUIND1",gx.O.AV8cOpuInd1,0)},c2v:function(){gx.O.AV8cOpuInd1=this.val()},val:function(){return gx.fn.getControlValue("vCOPUIND1")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKOPUIND2",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCOPUIND2",gxz:"ZV9cOpuInd2",gxold:"OV9cOpuInd2",gxvar:"AV9cOpuInd2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cOpuInd2=a
},v2z:function(a){gx.O.ZV9cOpuInd2=a},v2c:function(){gx.fn.setControlValue("vCOPUIND2",gx.O.AV9cOpuInd2,0)},c2v:function(){gx.O.AV9cOpuInd2=this.val()},val:function(){return gx.fn.getControlValue("vCOPUIND2")},nac:function(){return false}};this.GXValidFnc[32]={fld:"GROUP2",grid:0};this.GXValidFnc[33]={fld:"TABLE3",grid:0};this.GXValidFnc[37]={lvl:2,type:"bits",len:4,dec:0,sign:false,ro:1,grid:36,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(36))},nac:function(){return false}};this.GXValidFnc[38]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"UNDCOD",gxz:"Z922UndCod",gxold:"O922UndCod",gxvar:"A922UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A922UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.Z922UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("UNDCOD",gx.fn.currentGridRowImpl(36),gx.O.A922UndCod,0)},c2v:function(){gx.O.A922UndCod=this.val()},val:function(){return gx.fn.getGridIntegerValue("UNDCOD",gx.fn.currentGridRowImpl(36),".")},nac:function(){return false}};this.GXValidFnc[39]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"OPUINDMOVI",gxz:"Z557OpuIndMovi",gxold:"O557OpuIndMovi",gxvar:"A557OpuIndMovi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A557OpuIndMovi=a
},v2z:function(a){gx.O.Z557OpuIndMovi=a},v2c:function(){gx.fn.setGridComboBoxValue("OPUINDMOVI",gx.fn.currentGridRowImpl(36),gx.O.A557OpuIndMovi)},c2v:function(){gx.O.A557OpuIndMovi=this.val()},val:function(){return gx.fn.getGridControlValue("OPUINDMOVI",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[40]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"OPUIND1",gxz:"Z555OpuInd1",gxold:"O555OpuInd1",gxvar:"A555OpuInd1",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A555OpuInd1=a
},v2z:function(a){gx.O.Z555OpuInd1=a},v2c:function(){gx.fn.setGridControlValue("OPUIND1",gx.fn.currentGridRowImpl(36),gx.O.A555OpuInd1,0)},c2v:function(){gx.O.A555OpuInd1=this.val()},val:function(){return gx.fn.getGridControlValue("OPUIND1",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[41]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"OPUIND2",gxz:"Z556OpuInd2",gxold:"O556OpuInd2",gxvar:"A556OpuInd2",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A556OpuInd2=a
},v2z:function(a){gx.O.Z556OpuInd2=a},v2c:function(){gx.fn.setGridControlValue("OPUIND2",gx.fn.currentGridRowImpl(36),gx.O.A556OpuInd2,0)},c2v:function(){gx.O.A556OpuInd2=this.val()},val:function(){return gx.fn.getGridControlValue("OPUIND2",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[42]={lvl:2,type:"char",len:6,dec:0,sign:false,ro:1,grid:36,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"USUCOD",gxz:"Z968UsuCod",gxold:"O968UsuCod",gxvar:"A968UsuCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A968UsuCod=a
},v2z:function(a){gx.O.Z968UsuCod=a},v2c:function(){gx.fn.setGridControlValue("USUCOD",gx.fn.currentGridRowImpl(36),gx.O.A968UsuCod,0)},c2v:function(){gx.O.A968UsuCod=this.val()},val:function(){return gx.fn.getGridControlValue("USUCOD",gx.fn.currentGridRowImpl(36))},nac:function(){return false}};this.GXValidFnc[45]={fld:"TABLE4",grid:0};this.AV6cUndCod=0;this.ZV6cUndCod=0;this.OV6cUndCod=0;this.AV7cOpuIndMovimentacao="";this.ZV7cOpuIndMovimentacao="";this.OV7cOpuIndMovimentacao="";this.AV8cOpuInd1="";
this.ZV8cOpuInd1="";this.OV8cOpuInd1="";this.AV9cOpuInd2="";this.ZV9cOpuInd2="";this.OV9cOpuInd2="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z922UndCod=0;this.O922UndCod=0;this.Z557OpuIndMovi="";this.O557OpuIndMovi="";this.Z555OpuInd1="";this.O555OpuInd1="";this.Z556OpuInd2="";this.O556OpuInd2="";this.Z968UsuCod="";this.O968UsuCod="";this.AV10pUsuCod="";this.AV11pUndCod=0;this.AV5LinkSelection="";this.A922UndCod=0;this.A557OpuIndMovi="";this.A555OpuInd1="";this.A556OpuInd2="";this.A968UsuCod="";
this.ServerEvents=["e13ak2_client","e14ak1_client"];this.VarControlMap.AV10pUsuCod={id:"vPUSUCOD",grid:0,type:"char"};this.VarControlMap.AV11pUndCod={id:"vPUNDCOD",grid:0,type:"int"};this.VarControlMap.AV10pUsuCod={id:"vPUSUCOD",grid:0,type:"char"};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({rfrVar:"AV10pUsuCod"});
this.SetStandaloneVars()}gx03c1.prototype=new gx.GxObject;gx.setParentObj(new gx03c1());