gx.evt.autoSkip=false;function gx03a0(){this.ServerClass="Gx03A0";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pSgiNroSequencia=gx.fn.getIntegerValue("vPSGINROSEQUENCIA",".")};this.e13c02_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14c01_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,"gx03a0",[],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(791,53,"SGINROSEQU","Nro sugestão","","SgiNroSequ","int",0,"px",7,7,"right",null,[],791,"SgiNroSequ",true,0,false,false);
this.Grid1Container.addSingleLineEdit(782,54,"SGICODLEIT","Cod. leitor","Selecionar","SgiCodLeit","char",0,"px",14,14,"left",null,[],782,"SgiCodLeit",true,0,false,false);this.Grid1Container.addSingleLineEdit(783,55,"SGIDTHINSE","Data inserçao","","SgiDthInse","dtime",0,"px",16,10,"right",null,[],783,"SgiDthInse",true,5,false,false);this.Grid1Container.addSingleLineEdit(789,56,"SGINRODOCU","Nro documento","","SgiNroDocu","int",0,"px",6,6,"right",null,[],789,"SgiNroDocu",true,0,false,false);this.Grid1Container.addSingleLineEdit(790,57,"SGINROITEM","Nro item","","SgiNroItem","int",0,"px",6,6,"right",null,[],790,"SgiNroItem",true,0,false,false);
this.Grid1Container.addSingleLineEdit(788,58,"SGINROARTI","Nro artigo","","SgiNroArti","int",0,"px",4,4,"right",null,[],788,"SgiNroArti",true,0,false,false);this.Grid1Container.addComboBox(784,59,"SGIINDSITU","Situação","SgiIndSitu","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(781,60,"SGICAMPOLI","Campo livre","","SgiCampoLi","char",0,"px",20,20,"left",null,[],781,"SgiCampoLi",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:"TEXTBLOCKSGINROSEQUENCIA",format:0,grid:0};this.GXValidFnc[14]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSGINROSEQUENCIA",gxz:"ZV6cSgiNroSequencia",gxold:"OV6cSgiNroSequencia",gxvar:"AV6cSgiNroSequencia",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cSgiNroSequencia=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cSgiNroSequencia=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSGINROSEQUENCIA",gx.O.AV6cSgiNroSequencia,0)},c2v:function(){gx.O.AV6cSgiNroSequencia=this.val()},val:function(){return gx.fn.getIntegerValue("vCSGINROSEQUENCIA",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKSGICODLEITOR",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSGICODLEITOR",gxz:"ZV7cSgiCodLeitor",gxold:"OV7cSgiCodLeitor",gxvar:"AV7cSgiCodLeitor",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cSgiCodLeitor=a
},v2z:function(a){gx.O.ZV7cSgiCodLeitor=a},v2c:function(){gx.fn.setControlValue("vCSGICODLEITOR",gx.O.AV7cSgiCodLeitor,0)},c2v:function(){gx.O.AV7cSgiCodLeitor=this.val()},val:function(){return gx.fn.getControlValue("vCSGICODLEITOR")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKSGIDTHINSERCAO",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCSGIDTHINSERCAO",gxz:"ZV8cSgiDthInsercao",gxold:"OV8cSgiDthInsercao",gxvar:"AV8cSgiDthInsercao",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cSgiDthInsercao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8cSgiDthInsercao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vCSGIDTHINSERCAO",gx.O.AV8cSgiDthInsercao,0)},c2v:function(){gx.O.AV8cSgiDthInsercao=this.val()},val:function(){return gx.fn.getControlValue("vCSGIDTHINSERCAO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKSGINRODOCUMENTO",format:0,grid:0};this.GXValidFnc[29]={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:"vCSGINRODOCUMENTO",gxz:"ZV9cSgiNroDocumento",gxold:"OV9cSgiNroDocumento",gxvar:"AV9cSgiNroDocumento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cSgiNroDocumento=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9cSgiNroDocumento=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSGINRODOCUMENTO",gx.O.AV9cSgiNroDocumento,0)},c2v:function(){gx.O.AV9cSgiNroDocumento=this.val()},val:function(){return gx.fn.getIntegerValue("vCSGINRODOCUMENTO",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKSGINROITEM",format:0,grid:0};this.GXValidFnc[34]={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:"vCSGINROITEM",gxz:"ZV10cSgiNroItem",gxold:"OV10cSgiNroItem",gxvar:"AV10cSgiNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cSgiNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10cSgiNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSGINROITEM",gx.O.AV10cSgiNroItem,0)},c2v:function(){gx.O.AV10cSgiNroItem=this.val()},val:function(){return gx.fn.getIntegerValue("vCSGINROITEM",".")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKSGINROARTIGO",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vCSGINROARTIGO",gxz:"ZV11cSgiNroArtigo",gxold:"OV11cSgiNroArtigo",gxvar:"AV11cSgiNroArtigo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cSgiNroArtigo=gx.num.intval(a)
},v2z:function(a){gx.O.ZV11cSgiNroArtigo=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCSGINROARTIGO",gx.O.AV11cSgiNroArtigo,0)},c2v:function(){gx.O.AV11cSgiNroArtigo=this.val()},val:function(){return gx.fn.getIntegerValue("vCSGINROARTIGO",".")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKSGIINDSITUACAO",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:"vCSGIINDSITUACAO",gxz:"ZV12cSgiIndSituacao",gxold:"OV12cSgiIndSituacao",gxvar:"AV12cSgiIndSituacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV12cSgiIndSituacao=a
},v2z:function(a){gx.O.ZV12cSgiIndSituacao=a},v2c:function(){gx.fn.setComboBoxValue("vCSGIINDSITUACAO",gx.O.AV12cSgiIndSituacao)},c2v:function(){gx.O.AV12cSgiIndSituacao=this.val()},val:function(){return gx.fn.getControlValue("vCSGIINDSITUACAO")},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:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SGINROSEQU",gxz:"Z791SgiNroSequ",gxold:"O791SgiNroSequ",gxvar:"A791SgiNroSequ",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A791SgiNroSequ=gx.num.intval(a)
},v2z:function(a){gx.O.Z791SgiNroSequ=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SGINROSEQU",gx.fn.currentGridRowImpl(51),gx.O.A791SgiNroSequ,0)},c2v:function(){gx.O.A791SgiNroSequ=this.val()},val:function(){return gx.fn.getGridIntegerValue("SGINROSEQU",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:14,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SGICODLEIT",gxz:"Z782SgiCodLeit",gxold:"O782SgiCodLeit",gxvar:"A782SgiCodLeit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A782SgiCodLeit=a
},v2z:function(a){gx.O.Z782SgiCodLeit=a},v2c:function(){gx.fn.setGridControlValue("SGICODLEIT",gx.fn.currentGridRowImpl(51),gx.O.A782SgiCodLeit,0)},c2v:function(){gx.O.A782SgiCodLeit=this.val()},val:function(){return gx.fn.getGridControlValue("SGICODLEIT",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SGIDTHINSE",gxz:"Z783SgiDthInse",gxold:"O783SgiDthInse",gxvar:"A783SgiDthInse",dp:{f:0,st:true,wn:false,mf:false,pic:"99/99/9999 99:99",dec:5},ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A783SgiDthInse=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z783SgiDthInse=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("SGIDTHINSE",gx.fn.currentGridRowImpl(51),gx.O.A783SgiDthInse,0)},c2v:function(){gx.O.A783SgiDthInse=this.val()},val:function(){return gx.fn.getGridControlValue("SGIDTHINSE",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={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:"SGINRODOCU",gxz:"Z789SgiNroDocu",gxold:"O789SgiNroDocu",gxvar:"A789SgiNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A789SgiNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z789SgiNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SGINRODOCU",gx.fn.currentGridRowImpl(51),gx.O.A789SgiNroDocu,0)},c2v:function(){gx.O.A789SgiNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("SGINRODOCU",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[57]={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:"SGINROITEM",gxz:"Z790SgiNroItem",gxold:"O790SgiNroItem",gxvar:"A790SgiNroItem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A790SgiNroItem=gx.num.intval(a)
},v2z:function(a){gx.O.Z790SgiNroItem=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SGINROITEM",gx.fn.currentGridRowImpl(51),gx.O.A790SgiNroItem,0)},c2v:function(){gx.O.A790SgiNroItem=this.val()},val:function(){return gx.fn.getGridIntegerValue("SGINROITEM",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[58]={lvl:2,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SGINROARTI",gxz:"Z788SgiNroArti",gxold:"O788SgiNroArti",gxvar:"A788SgiNroArti",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A788SgiNroArti=gx.num.intval(a)
},v2z:function(a){gx.O.Z788SgiNroArti=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SGINROARTI",gx.fn.currentGridRowImpl(51),gx.O.A788SgiNroArti,0)},c2v:function(){gx.O.A788SgiNroArti=this.val()},val:function(){return gx.fn.getGridIntegerValue("SGINROARTI",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:"SGIINDSITU",gxz:"Z784SgiIndSitu",gxold:"O784SgiIndSitu",gxvar:"A784SgiIndSitu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A784SgiIndSitu=a
},v2z:function(a){gx.O.Z784SgiIndSitu=a},v2c:function(){gx.fn.setGridComboBoxValue("SGIINDSITU",gx.fn.currentGridRowImpl(51),gx.O.A784SgiIndSitu)},c2v:function(){gx.O.A784SgiIndSitu=this.val()},val:function(){return gx.fn.getGridControlValue("SGIINDSITU",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[60]={lvl:2,type:"char",len:20,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SGICAMPOLI",gxz:"Z781SgiCampoLi",gxold:"O781SgiCampoLi",gxvar:"A781SgiCampoLi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A781SgiCampoLi=a
},v2z:function(a){gx.O.Z781SgiCampoLi=a},v2c:function(){gx.fn.setGridControlValue("SGICAMPOLI",gx.fn.currentGridRowImpl(51),gx.O.A781SgiCampoLi,0)},c2v:function(){gx.O.A781SgiCampoLi=this.val()},val:function(){return gx.fn.getGridControlValue("SGICAMPOLI",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[63]={fld:"TABLE4",grid:0};this.AV6cSgiNroSequencia=0;this.ZV6cSgiNroSequencia=0;this.OV6cSgiNroSequencia=0;this.AV7cSgiCodLeitor="";this.ZV7cSgiCodLeitor="";this.OV7cSgiCodLeitor="";
this.AV8cSgiDthInsercao=gx.date.nullDate();this.ZV8cSgiDthInsercao=gx.date.nullDate();this.OV8cSgiDthInsercao=gx.date.nullDate();this.AV9cSgiNroDocumento=0;this.ZV9cSgiNroDocumento=0;this.OV9cSgiNroDocumento=0;this.AV10cSgiNroItem=0;this.ZV10cSgiNroItem=0;this.OV10cSgiNroItem=0;this.AV11cSgiNroArtigo=0;this.ZV11cSgiNroArtigo=0;this.OV11cSgiNroArtigo=0;this.AV12cSgiIndSituacao="";this.ZV12cSgiIndSituacao="";this.OV12cSgiIndSituacao="";this.ZV5LinkSelection="";this.OV5LinkSelection="";this.Z791SgiNroSequ=0;
this.O791SgiNroSequ=0;this.Z782SgiCodLeit="";this.O782SgiCodLeit="";this.Z783SgiDthInse=gx.date.nullDate();this.O783SgiDthInse=gx.date.nullDate();this.Z789SgiNroDocu=0;this.O789SgiNroDocu=0;this.Z790SgiNroItem=0;this.O790SgiNroItem=0;this.Z788SgiNroArti=0;this.O788SgiNroArti=0;this.Z784SgiIndSitu="";this.O784SgiIndSitu="";this.Z781SgiCampoLi="";this.O781SgiCampoLi="";this.AV13pSgiNroSequencia=0;this.AV5LinkSelection="";this.A791SgiNroSequ=0;this.A782SgiCodLeit="";this.A783SgiDthInse=gx.date.nullDate();
this.A789SgiNroDocu=0;this.A790SgiNroItem=0;this.A788SgiNroArti=0;this.A784SgiIndSitu="";this.A781SgiCampoLi="";this.ServerEvents=["e13c02_client","e14c01_client"];this.VarControlMap.AV13pSgiNroSequencia={id:"vPSGINROSEQUENCIA",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()}gx03a0.prototype=new gx.GxObject;gx.setParentObj(new gx03a0());