gx.evt.autoSkip=false;function timt083(){this.ServerClass="TImt083";this.PackageName="GeneXus.Programs";this.setObjectType("trn");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A781SgiCampoLi=gx.fn.getControlValue("SGICAMPOLI");this.Gx_mode=gx.fn.getControlValue("vMODE")};this.Valid_Sginrosequ=function(){gx.ajax.validSrvEvt("dyncall","Valid_Sginrosequ",["gx.O.A791SgiNroSequ","gx.O.A782SgiCodLeit",'gx.date.urlDateTime(gx.O.A783SgiDthInse,"DMY")',"gx.O.A789SgiNroDocu","gx.O.A790SgiNroItem","gx.O.A788SgiNroArti","gx.O.A784SgiIndSitu","gx.O.A781SgiCampoLi"],["A785SgiNomLeit","A782SgiCodLeit","A783SgiDthInse","A789SgiNroDocu","A790SgiNroItem","A788SgiNroArti","A784SgiIndSitu","A781SgiCampoLi","Gx_mode","Z791SgiNroSequ","Z785SgiNomLeit","Z782SgiCodLeit","Z783SgiDthInse","Z789SgiNroDocu","Z790SgiNroItem","Z788SgiNroArti","Z784SgiIndSitu","Z781SgiCampoLi","Grid1",["BUTTON1","Enabled"]]);
return true};this.Valid_Sgicodleit=function(){try{var a=gx.util.balloon.getNew("SGICODLEIT");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.Valid_Siatipanot=function(){try{if(gx.fn.currentGridRowImpl(62)===0){return true}var a=gx.util.balloon.getNew("SIATIPANOT",gx.fn.currentGridRowImpl(62));this.AnyError=0;this.sMode119=this.Gx_mode;this.Gx_mode=gx.fn.getGridRowMode(119,62);this.standaloneModal4B119();this.standaloneNotModal4B119();if(gx.fn.gridDuplicateKey(63)){a.setError(gx.text.format(gx.getMessage("GXM_1004"),"Level1"));
this.AnyError=1}}catch(b){}try{this.Gx_mode=this.sMode119;if(a==null){return true}return a.show()}catch(b){}return true};this.standaloneModal4B119=function(){try{if(this.Gx_mode!="INS"){gx.fn.setCtrlProperty("SIATIPANOT","Enabled",0)}else{gx.fn.setCtrlProperty("SIATIPANOT","Enabled",1)}}catch(a){}return true};this.standaloneNotModal4B119=function(){return true};this.e124b2_client=function(){this.executeServerEvent("'VOLTAR'",false)};this.e134b2_client=function(){this.executeServerEvent("'MUDAR SITUACAO'",false)
};this.e144b118_client=function(){this.executeServerEvent("ENTER",true)};this.e154b118_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,14,17,20,22,25,27,30,32,35,37,40,42,45,47,49,51,53,56,58,63,64];this.GXLastCtrlId=64;this.Grid1Container=new gx.grid.grid(this,119,"Level1",62,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"timt083",[793],false,1,false,true,2,false,false,false,"",0,"px","Novo registro",true,false,false,null,null,false,"");
this.Grid1Container.addComboBox(793,63,"SIATIPANOT","Tipo","SiaTipAnot","char",null,1,true,false,0,"px");this.Grid1Container.addSingleLineEdit(792,64,"SIADSCANOT","Anotação","","SiaDscAnot","svchar",0,"px",20480,20480,"left",null,[],792,"SiaDscAnot",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE2",grid:0};this.GXValidFnc[14]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[17]={fld:"TABLE3",grid:0};this.GXValidFnc[20]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[22]={lvl:0,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Valid_Sginrosequ,isvalid:null,rgrid:[this.Grid1Container],fld:"SGINROSEQU",gxz:"Z791SgiNroSequ",gxold:"O791SgiNroSequ",gxvar:"A791SgiNroSequ",ucs:[],op:[58,53,49,45,37,30],ip:[58,53,49,45,37,30,22],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.setControlValue("SGINROSEQU",gx.O.A791SgiNroSequ,0)},c2v:function(){gx.O.A791SgiNroSequ=this.val()},val:function(){return gx.fn.getIntegerValue("SGINROSEQU",".")},nac:function(){return false}};this.GXValidFnc[25]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[27]={fld:"TABLE4",grid:0};this.GXValidFnc[30]={lvl:0,type:"char",len:14,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:this.Valid_Sgicodleit,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.setControlValue("SGICODLEIT",gx.O.A782SgiCodLeit,0)},c2v:function(){gx.O.A782SgiCodLeit=this.val()},val:function(){return gx.fn.getControlValue("SGICODLEIT")},nac:function(){return false}};this.GXValidFnc[32]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"SGINOMLEIT",gxz:"Z785SgiNomLeit",gxold:"O785SgiNomLeit",gxvar:"A785SgiNomLeit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A785SgiNomLeit=a
},v2z:function(a){gx.O.Z785SgiNomLeit=a},v2c:function(){gx.fn.setControlValue("SGINOMLEIT",gx.O.A785SgiNomLeit,0)},c2v:function(){gx.O.A785SgiNomLeit=this.val()},val:function(){return gx.fn.getControlValue("SGINOMLEIT")},nac:function(){return false}};this.GXValidFnc[35]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[37]={lvl:0,type:"dtime",len:10,dec:5,sign:false,ro:1,grid:0,gxgrid:null,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.setControlValue("SGIDTHINSE",gx.O.A783SgiDthInse,0)},c2v:function(){gx.O.A783SgiDthInse=this.val()},val:function(){return gx.fn.getControlValue("SGIDTHINSE")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[42]={fld:"TABLE5",grid:0};this.GXValidFnc[45]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,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.setControlValue("SGINRODOCU",gx.O.A789SgiNroDocu,0)},c2v:function(){gx.O.A789SgiNroDocu=this.val()},val:function(){return gx.fn.getIntegerValue("SGINRODOCU",".")},nac:function(){return false}};this.GXValidFnc[47]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[49]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,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.setControlValue("SGINROITEM",gx.O.A790SgiNroItem,0)},c2v:function(){gx.O.A790SgiNroItem=this.val()},val:function(){return gx.fn.getIntegerValue("SGINROITEM",".")},nac:function(){return false}};this.GXValidFnc[51]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[53]={lvl:0,type:"int",len:4,dec:0,sign:false,pic:"ZZZ9",ro:1,grid:0,gxgrid:null,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.setControlValue("SGINROARTI",gx.O.A788SgiNroArti,0)},c2v:function(){gx.O.A788SgiNroArti=this.val()},val:function(){return gx.fn.getIntegerValue("SGINROARTI",".")},nac:function(){return false}};this.GXValidFnc[56]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[58]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,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.setComboBoxValue("SGIINDSITU",gx.O.A784SgiIndSitu)},c2v:function(){gx.O.A784SgiIndSitu=this.val()},val:function(){return gx.fn.getControlValue("SGIINDSITU")},nac:function(){return false}};this.GXValidFnc[63]={lvl:119,type:"char",len:1,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Grid1Container,fnc:this.Valid_Siatipanot,isvalid:null,fld:"SIATIPANOT",gxz:"Z793SiaTipAnot",gxold:"O793SiaTipAnot",gxvar:"A793SiaTipAnot",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A793SiaTipAnot=a
},v2z:function(a){gx.O.Z793SiaTipAnot=a},v2c:function(){gx.fn.setGridComboBoxValue("SIATIPANOT",gx.fn.currentGridRowImpl(62),gx.O.A793SiaTipAnot)},c2v:function(){gx.O.A793SiaTipAnot=this.val()},val:function(){return gx.fn.getGridControlValue("SIATIPANOT",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.GXValidFnc[64]={lvl:119,type:"svchar",len:20480,dec:0,sign:false,ro:0,grid:62,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SIADSCANOT",gxz:"Z792SiaDscAnot",gxold:"O792SiaDscAnot",gxvar:"A792SiaDscAnot",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A792SiaDscAnot=a
},v2z:function(a){gx.O.Z792SiaDscAnot=a},v2c:function(){gx.fn.setGridControlValue("SIADSCANOT",gx.fn.currentGridRowImpl(62),gx.O.A792SiaDscAnot,0)},c2v:function(){gx.O.A792SiaDscAnot=this.val()},val:function(){return gx.fn.getGridControlValue("SIADSCANOT",gx.fn.currentGridRowImpl(62))},nac:function(){return false}};this.A791SgiNroSequ=0;this.Z791SgiNroSequ=0;this.O791SgiNroSequ=0;this.A782SgiCodLeit="";this.Z782SgiCodLeit="";this.O782SgiCodLeit="";this.A785SgiNomLeit="";this.Z785SgiNomLeit="";this.O785SgiNomLeit="";
this.A783SgiDthInse=gx.date.nullDate();this.Z783SgiDthInse=gx.date.nullDate();this.O783SgiDthInse=gx.date.nullDate();this.A789SgiNroDocu=0;this.Z789SgiNroDocu=0;this.O789SgiNroDocu=0;this.A790SgiNroItem=0;this.Z790SgiNroItem=0;this.O790SgiNroItem=0;this.A788SgiNroArti=0;this.Z788SgiNroArti=0;this.O788SgiNroArti=0;this.A784SgiIndSitu="";this.Z784SgiIndSitu="";this.O784SgiIndSitu="";this.Z793SiaTipAnot="";this.O793SiaTipAnot="";this.Z792SiaDscAnot="";this.O792SiaDscAnot="";this.A793SiaTipAnot="";this.A792SiaDscAnot="";
this.AV7UsuCodCorr="";this.A781SgiCampoLi="";this.ServerEvents=["e124b2_client","e134b2_client","e144b118_client","e154b118_client"];this.EnterCtrl=["BUTTON1"];this.VarControlMap.A781SgiCampoLi={id:"SGICAMPOLI",grid:0,type:"char"};this.VarControlMap.Gx_mode={id:"vMODE",grid:0,type:"char"};this.SetStandaloneVars()}timt083.prototype=new gx.GxObject;gx.setParentObj(new timt083());