gx.evt.autoSkip=false;function hgsh004(){this.ServerClass="HGsh004";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Valid_Trsnrodocu=function(){try{if(gx.fn.currentGridRowImpl(23)===0){return true}var a=gx.util.balloon.getNew("TRSNRODOCU",gx.fn.currentGridRowImpl(23));this.AnyError=0;this.StandaloneModal();this.StandaloneNotModal()}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Trsnroseqr=function(){try{if(gx.fn.currentGridRowImpl(23)===0){return true
}var a=gx.util.balloon.getNew("TRSNROSEQR",gx.fn.currentGridRowImpl(23));this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e113o2_client=function(){this.executeServerEvent("ENTER",true)};this.e123o2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e163o2_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[3,12,15,18,20,24,25,26,27,28,29,30];this.GXLastCtrlId=30;this.Grid2Container=new gx.grid.grid(this,2,"WbpLvl2",23,"Grid2","Grid2","Grid2Container",this.CmpContext,this.IsMasterPage,"hgsh004",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid2Container.addSingleLineEdit("Desacao",24,"vDESACAO","Ação","","DesAcao","char",0,"px",8,8,"left",null,[],"Desacao","DesAcao",true,0,false,false);this.Grid2Container.addSingleLineEdit(913,25,"TRSNRODOCU","Documento","","TrsNroDocu","int",0,"px",7,7,"right",null,[],913,"TrsNroDocu",true,0,false,false);this.Grid2Container.addSingleLineEdit("Docdsctitulo",26,"vDOCDSCTITULO","Título","","DocDscTitulo","char",0,"px",60,60,"left",null,[],"Docdsctitulo","DocDscTitulo",true,0,false,false);this.Grid2Container.addSingleLineEdit(914,27,"TRSNROSEQR","Seq","","TrsNroSeqR","int",0,"px",6,6,"right",null,[],914,"TrsNroSeqR",true,0,false,false);
this.Grid2Container.addSingleLineEdit("Resnrovolume",28,"vRESNROVOLUME","Item","","ResNroVolume","int",0,"px",6,6,"right",null,[],"Resnrovolume","ResNroVolume",true,0,false,false);this.Grid2Container.addSingleLineEdit("Resdatvalidade",29,"vRESDATVALIDADE","Validade","","ResDatValidade","date",0,"px",10,10,"right",null,[],"Resdatvalidade","ResDatValidade",true,0,false,false);this.Grid2Container.addSingleLineEdit("Usbnom",30,"vUSBNOM","Usuário","","UsbNom","char",0,"px",50,50,"left",null,[],"Usbnom","UsbNom",true,0,false,false);
this.setGrid(this.Grid2Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[12]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE2",grid:0};this.GXValidFnc[18]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[20]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATOPERACAO",gxz:"ZV8DatOperacao",gxold:"OV8DatOperacao",gxvar:"AV8DatOperacao",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.AV8DatOperacao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8DatOperacao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATOPERACAO",gx.O.AV8DatOperacao,0)},c2v:function(){gx.O.AV8DatOperacao=this.val()},val:function(){return gx.fn.getControlValue("vDATOPERACAO")},nac:function(){return false}};this.GXValidFnc[24]={lvl:2,type:"char",len:8,dec:0,sign:false,ro:1,grid:23,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vDESACAO",gxz:"ZV6DesAcao",gxold:"OV6DesAcao",gxvar:"AV6DesAcao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6DesAcao=a
},v2z:function(a){gx.O.ZV6DesAcao=a},v2c:function(){gx.fn.setGridControlValue("vDESACAO",gx.fn.currentGridRowImpl(23),gx.O.AV6DesAcao,0)},c2v:function(){gx.O.AV6DesAcao=this.val()},val:function(){return gx.fn.getGridControlValue("vDESACAO",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.GXValidFnc[25]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:23,gxgrid:this.Grid2Container,fnc:this.Valid_Trsnrodocu,isvalid:null,rgrid:[],fld:"TRSNRODOCU",gxz:"Z913TrsNroDocu",gxold:"O913TrsNroDocu",gxvar:"A913TrsNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A913TrsNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z913TrsNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TRSNRODOCU",gx.fn.currentGridRowImpl(23),gx.O.A913TrsNroDocu,0)},c2v:function(){gx.O.A913TrsNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("TRSNRODOCU",gx.fn.currentGridRowImpl(23),".")},nac:function(){return false}};this.GXValidFnc[26]={lvl:2,type:"char",len:60,dec:0,sign:false,ro:1,grid:23,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vDOCDSCTITULO",gxz:"ZV12DocDscTitulo",gxold:"OV12DocDscTitulo",gxvar:"AV12DocDscTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12DocDscTitulo=a
},v2z:function(a){gx.O.ZV12DocDscTitulo=a},v2c:function(){gx.fn.setGridControlValue("vDOCDSCTITULO",gx.fn.currentGridRowImpl(23),gx.O.AV12DocDscTitulo,0)},c2v:function(){gx.O.AV12DocDscTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDOCDSCTITULO",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.GXValidFnc[27]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:23,gxgrid:this.Grid2Container,fnc:this.Valid_Trsnroseqr,isvalid:null,rgrid:[],fld:"TRSNROSEQR",gxz:"Z914TrsNroSeqR",gxold:"O914TrsNroSeqR",gxvar:"A914TrsNroSeqR",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A914TrsNroSeqR=gx.num.intval(a)
},v2z:function(a){gx.O.Z914TrsNroSeqR=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("TRSNROSEQR",gx.fn.currentGridRowImpl(23),gx.O.A914TrsNroSeqR,0)},c2v:function(){gx.O.A914TrsNroSeqR=this.val()},val:function(){return gx.fn.getGridIntegerValue("TRSNROSEQR",gx.fn.currentGridRowImpl(23),".")},nac:function(){return false}};this.GXValidFnc[28]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:23,gxgrid:this.Grid2Container,fnc:null,isvalid:null,rgrid:[],fld:"vRESNROVOLUME",gxz:"ZV10ResNroVolume",gxold:"OV10ResNroVolume",gxvar:"AV10ResNroVolume",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10ResNroVolume=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10ResNroVolume=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(23),gx.O.AV10ResNroVolume,0)},c2v:function(){gx.O.AV10ResNroVolume=this.val()},val:function(){return gx.fn.getGridIntegerValue("vRESNROVOLUME",gx.fn.currentGridRowImpl(23),".")},nac:function(){return false}};this.GXValidFnc[29]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:23,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vRESDATVALIDADE",gxz:"ZV9ResDatValidade",gxold:"OV9ResDatValidade",gxvar:"AV9ResDatValidade",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.AV9ResDatValidade=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV9ResDatValidade=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(23),gx.O.AV9ResDatValidade,0)},c2v:function(){gx.O.AV9ResDatValidade=this.val()},val:function(){return gx.fn.getGridControlValue("vRESDATVALIDADE",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.GXValidFnc[30]={lvl:2,type:"char",len:50,dec:0,sign:false,ro:1,grid:23,gxgrid:this.Grid2Container,fnc:null,isvalid:null,fld:"vUSBNOM",gxz:"ZV11UsbNom",gxold:"OV11UsbNom",gxvar:"AV11UsbNom",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11UsbNom=a
},v2z:function(a){gx.O.ZV11UsbNom=a},v2c:function(){gx.fn.setGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(23),gx.O.AV11UsbNom,0)},c2v:function(){gx.O.AV11UsbNom=this.val()},val:function(){return gx.fn.getGridControlValue("vUSBNOM",gx.fn.currentGridRowImpl(23))},nac:function(){return false}};this.AV8DatOperacao=gx.date.nullDate();this.ZV8DatOperacao=gx.date.nullDate();this.OV8DatOperacao=gx.date.nullDate();this.ZV6DesAcao="";this.OV6DesAcao="";this.Z913TrsNroDocu=0;this.O913TrsNroDocu=0;this.ZV12DocDscTitulo="";
this.OV12DocDscTitulo="";this.Z914TrsNroSeqR=0;this.O914TrsNroSeqR=0;this.ZV10ResNroVolume=0;this.OV10ResNroVolume=0;this.ZV9ResDatValidade=gx.date.nullDate();this.OV9ResDatValidade=gx.date.nullDate();this.ZV11UsbNom="";this.OV11UsbNom="";this.A912TrsCodOper="";this.A915TrsTipAcao="";this.AV6DesAcao="";this.A913TrsNroDocu=0;this.AV12DocDscTitulo="";this.A914TrsNroSeqR=0;this.AV10ResNroVolume=0;this.AV9ResDatValidade=gx.date.nullDate();this.AV11UsbNom="";this.A258DocNro=0;this.A727ResNroSeq=0;this.A724ResDatVali=gx.date.nullDate();
this.A729ResNroVolu=0;this.A786UsbNom="";this.A787UsbCod="";this.A242DocDesL1Ti="";this.ServerEvents=["e113o2_client","e123o2_client","e163o2_client"];this.EnterCtrl=["OK"];this.VarControlMap.A786UsbNom={id:"USBNOM",grid:0,type:"char"};this.VarControlMap.A729ResNroVolu={id:"RESNROVOLU",grid:0,type:"int"};this.VarControlMap.A724ResDatVali={id:"RESDATVALI",grid:0,type:"date"};this.VarControlMap.A242DocDesL1Ti={id:"DOCDESL1TI",grid:0,type:"char"};this.VarControlMap.A915TrsTipAcao={id:"TRSTIPACAO",grid:0,type:"char"};
this.Grid2Container.addRefreshingVar({rfrVar:"A786UsbNom"});this.Grid2Container.addRefreshingVar({rfrVar:"A729ResNroVolu"});this.Grid2Container.addRefreshingVar({rfrVar:"A724ResDatVali"});this.Grid2Container.addRefreshingVar({rfrVar:"A242DocDesL1Ti"});this.Grid2Container.addRefreshingVar({rfrVar:"A915TrsTipAcao"});this.SetStandaloneVars()}hgsh004.prototype=new gx.GxObject;gx.setParentObj(new hgsh004());