gx.evt.autoSkip=false;function himh318(){this.ServerClass="HImh318";this.PackageName="GeneXus.Programs";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV23File=gx.fn.getControlValue("vFILE")};this.e16la1_client=function(){this.clearMessages();this.AV23File=this.UPLOADIFY1Container.File;this.addMessage("Cancel:"+this.AV23File.OriginalFileName);this.refreshOutputs([{av:"AV23File",fld:"vFILE"}])};this.e17la1_client=function(){this.clearMessages();
this.AV23File=this.UPLOADIFY1Container.File;this.addMessage("Error uploading file:"+this.AV23File.OriginalFileName);this.addMessage(this.UPLOADIFY1Container.Error);this.refreshOutputs([{av:"AV23File",fld:"vFILE"}])};this.e13la2_client=function(){this.executeServerEvent("ENTER",true)};this.e14la2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e11la2_client=function(){this.executeServerEvent("UPLOADIFY1.ONALLCOMPLETE",true)};this.e18la2_client=function(){this.executeServerEvent("CANCEL",true)
};this.GXValidFnc=[];this.GXCtrlIds=[2,11,13,16,18,21,23,26,28,30,33,35,38];this.GXLastCtrlId=38;this.UPLOADIFY1Container=gx.uc.getNew(this,40,18,"Uploadify","UPLOADIFY1Container","Uploadify1");this.UPLOADIFY1Container.setProperty("Width","Width","300","str");this.UPLOADIFY1Container.setProperty("Height","Height","30","str");this.UPLOADIFY1Container.setProperty("Multi","Multi",false,"bool");this.UPLOADIFY1Container.setProperty("AutomaticUpload","Automaticupload",true,"bool");this.UPLOADIFY1Container.setProperty("ButtonText","Buttontext","Escolher arquivo","str");
this.UPLOADIFY1Container.setProperty("ButtonImage","Buttonimage","","str");this.UPLOADIFY1Container.setProperty("SizeLimit","Sizelimit",512000,"num");this.UPLOADIFY1Container.setProperty("SimultaneousUploadLimit","Simultaneousuploadlimit","1","str");this.UPLOADIFY1Container.setProperty("Error","Error","","char");this.UPLOADIFY1Container.File="";this.UPLOADIFY1Container.addV2CFunction(function(a){a.ParentObject.AV22UploadedFiles=gx.fn.getControlValue("vUPLOADEDFILES");a.SetUploadedFiles(a.ParentObject.AV22UploadedFiles)
});this.UPLOADIFY1Container.addC2VFunction(function(a){a.ParentObject.AV22UploadedFiles=a.GetUploadedFiles();gx.fn.setControlValue("vUPLOADEDFILES",a.ParentObject.AV22UploadedFiles)});this.UPLOADIFY1Container.addV2CFunction(function(a){a.ParentObject.AV24QueuedFiles=gx.fn.getControlValue("vQUEUEDFILES");a.SetQueuedFiles(a.ParentObject.AV24QueuedFiles)});this.UPLOADIFY1Container.addC2VFunction(function(a){a.ParentObject.AV24QueuedFiles=a.GetQueuedFiles();gx.fn.setControlValue("vQUEUEDFILES",a.ParentObject.AV24QueuedFiles)
});this.UPLOADIFY1Container.setProperty("FileExtension","Fileextension","*.*","str");this.UPLOADIFY1Container.setProperty("FileDescription","Filedescription","All Files","str");this.UPLOADIFY1Container.setProperty("UploadScript","Uploadscript","","str");this.UPLOADIFY1Container.setProperty("Visible","Visible",true,"bool");this.UPLOADIFY1Container.setC2ShowFunction(function(a){a.show()});this.UPLOADIFY1Container.addEventHandler("OnAllComplete",this.e11la2_client);this.UPLOADIFY1Container.addEventHandler("OnError",this.e17la1_client);
this.UPLOADIFY1Container.addEventHandler("OnCancel",this.e16la1_client);this.setUserControl(this.UPLOADIFY1Container);this.GXValidFnc[2]={fld:"TABLE6",grid:0};this.GXValidFnc[11]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE2",grid:0};this.GXValidFnc[16]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[18]={lvl:0,type:"int",len:8,dec:0,sign:false,pic:"ZZZZZZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vVNCNRO",gxz:"ZV7VncNro",gxold:"OV7VncNro",gxvar:"AV7VncNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7VncNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7VncNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vVNCNRO",gx.O.AV7VncNro,0)},c2v:function(){gx.O.AV7VncNro=this.val()},val:function(){return gx.fn.getIntegerValue("vVNCNRO",".")},nac:function(){return false}};this.GXValidFnc[21]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[23]={fld:"TABLE3",grid:0};this.GXValidFnc[26]={lvl:0,type:"char",len:15,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vVNCCODORIGEM",gxz:"ZV5VncCodOrigem",gxold:"OV5VncCodOrigem",gxvar:"AV5VncCodOrigem",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV5VncCodOrigem=a
},v2z:function(a){gx.O.ZV5VncCodOrigem=a},v2c:function(){gx.fn.setControlValue("vVNCCODORIGEM",gx.O.AV5VncCodOrigem,0)},c2v:function(){gx.O.AV5VncCodOrigem=this.val()},val:function(){return gx.fn.getControlValue("vVNCCODORIGEM")},nac:function(){return false}};this.GXValidFnc[28]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[30]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vVNCDATCADASTRAMENTO",gxz:"ZV8VncDatCadastramento",gxold:"OV8VncDatCadastramento",gxvar:"AV8VncDatCadastramento",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.AV8VncDatCadastramento=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV8VncDatCadastramento=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vVNCDATCADASTRAMENTO",gx.O.AV8VncDatCadastramento,0)},c2v:function(){gx.O.AV8VncDatCadastramento=this.val()},val:function(){return gx.fn.getControlValue("vVNCDATCADASTRAMENTO")},nac:function(){return false}};this.GXValidFnc[33]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[35]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vVNCINDRESERVADO",gxz:"ZV9VncIndReservado",gxold:"OV9VncIndReservado",gxvar:"AV9VncIndReservado",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"radio",v2v:function(a){gx.O.AV9VncIndReservado=a
},v2z:function(a){gx.O.ZV9VncIndReservado=a},v2c:function(){gx.fn.setRadioValue("vVNCINDRESERVADO",gx.O.AV9VncIndReservado)},c2v:function(){gx.O.AV9VncIndReservado=this.val()},val:function(){return gx.fn.getControlValue("vVNCINDRESERVADO")},nac:function(){return false}};this.GXValidFnc[38]={fld:"TEXTBLOCK3",format:0,grid:0};this.AV7VncNro=0;this.ZV7VncNro=0;this.OV7VncNro=0;this.AV5VncCodOrigem="";this.ZV5VncCodOrigem="";this.OV5VncCodOrigem="";this.AV8VncDatCadastramento=gx.date.nullDate();this.ZV8VncDatCadastramento=gx.date.nullDate();
this.OV8VncDatCadastramento=gx.date.nullDate();this.AV9VncIndReservado="";this.ZV9VncIndReservado="";this.OV9VncIndReservado="";this.AV22UploadedFiles=[];this.AV23File={};this.ServerEvents=["e13la2_client","e14la2_client","e11la2_client","e18la2_client"];this.EnterCtrl=["BUTTON5"];this.VarControlMap.AV23File={id:"vFILE",grid:0,type:"UploadifyOutput"};this.SetStandaloneVars()}himh318.prototype=new gx.GxObject;gx.setParentObj(new himh318());