gx.evt.autoSkip=false;function hmih059(){this.ServerClass="HMih059";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){};this.Validv_Slcnro=function(){try{var a=gx.util.balloon.getNew("vSLCNRO");this.AnyError=0}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e11812_client=function(){this.executeServerEvent("ENTER",true)};this.e12812_client=function(){this.executeServerEvent("'NOVA COTAçãO'",false)};this.e13812_client=function(){this.executeServerEvent("'DESCONECTAR'",false)
};this.e16812_client=function(){this.executeServerEvent("CANCEL",true,arguments[0])};this.GXValidFnc=[];this.GXCtrlIds=[6,15,29,32,35,37,40,42,45,47,50,52,55,57,60,62,65,67,70,72,75,78,84,85];this.GXLastCtrlId=85;this.Subfile1Container=new gx.grid.grid(this,2,"WbpLvl2",83,"Subfile1","Subfile1","Subfile1Container",this.CmpContext,this.IsMasterPage,"hmih059",[],false,1,false,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");this.Subfile1Container.addSingleLineEdit("Desrotulo",84,"vDESROTULO","Campo","","DesRotulo","char",0,"px",15,15,"left",null,[],"Desrotulo","DesRotulo",true,0,false,false);
this.Subfile1Container.addSingleLineEdit("Vallinha",85,"vVALLINHA","Conteúdo","","ValLinha","char",0,"px",150,150,"left",null,[],"Vallinha","ValLinha",true,0,false,false);this.setGrid(this.Subfile1Container);this.GXValidFnc[6]={fld:"TITALO",format:0,grid:0};this.GXValidFnc[15]={fld:"TABLE1",grid:0};this.GXValidFnc[29]={fld:"TABLE2",grid:0};this.GXValidFnc[32]={fld:"TABLE3",grid:0};this.GXValidFnc[35]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[37]={lvl:0,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:0,gxgrid:null,fnc:this.Validv_Slcnro,isvalid:null,rgrid:[],fld:"vSLCNRO",gxz:"ZV7SlcNro",gxold:"OV7SlcNro",gxvar:"AV7SlcNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7SlcNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV7SlcNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSLCNRO",gx.O.AV7SlcNro,0)},c2v:function(){gx.O.AV7SlcNro=this.val()},val:function(){return gx.fn.getIntegerValue("vSLCNRO",".")},nac:function(){return false}};this.GXValidFnc[40]={fld:"TEXTBLOCK2",format:0,grid:0};this.GXValidFnc[42]={lvl:0,type:"int",len:2,dec:0,sign:false,pic:"Z9",ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vSCTNRO",gxz:"ZV9SctNro",gxold:"OV9SctNro",gxvar:"AV9SctNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9SctNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV9SctNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vSCTNRO",gx.O.AV9SctNro,0)},c2v:function(){gx.O.AV9SctNro=this.val()},val:function(){return gx.fn.getIntegerValue("vSCTNRO",".")},nac:function(){return false}};this.GXValidFnc[45]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[47]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[],fld:"vCDPCOD",gxz:"ZV10CdpCod",gxold:"OV10CdpCod",gxvar:"AV10CdpCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"dyncombo",v2v:function(a){gx.O.AV10CdpCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV10CdpCod=gx.num.intval(a)},v2c:function(){gx.fn.setComboBoxValue("vCDPCOD",gx.O.AV10CdpCod)},c2v:function(){gx.O.AV10CdpCod=this.val()},val:function(){return gx.fn.getIntegerValue("vCDPCOD",".")},nac:function(){return false}};this.GXValidFnc[50]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[52]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCTPREBRUTOUNITARIO",gxz:"ZV16SctPreBrutoUnitario",gxold:"OV16SctPreBrutoUnitario",gxvar:"AV16SctPreBrutoUnitario",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16SctPreBrutoUnitario=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV16SctPreBrutoUnitario=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vSCTPREBRUTOUNITARIO",gx.O.AV16SctPreBrutoUnitario,2,",")},c2v:function(){gx.O.AV16SctPreBrutoUnitario=this.val()},val:function(){return gx.fn.getDecimalValue("vSCTPREBRUTOUNITARIO",".",",")},nac:function(){return false}};this.GXValidFnc[55]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[57]={lvl:0,type:"decimal",len:5,dec:1,sign:false,pic:"ZZ9.9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCTPCTDESCONTO",gxz:"ZV17SctPctDesconto",gxold:"OV17SctPctDesconto",gxvar:"AV17SctPctDesconto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17SctPctDesconto=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV17SctPctDesconto=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vSCTPCTDESCONTO",gx.O.AV17SctPctDesconto,1,",")},c2v:function(){gx.O.AV17SctPctDesconto=this.val()},val:function(){return gx.fn.getDecimalValue("vSCTPCTDESCONTO",".",",")},nac:function(){return false}};this.GXValidFnc[60]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[62]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"Z,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCTVALDESCONTO",gxz:"ZV18SctValDesconto",gxold:"OV18SctValDesconto",gxvar:"AV18SctValDesconto",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV18SctValDesconto=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV18SctValDesconto=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vSCTVALDESCONTO",gx.O.AV18SctValDesconto,2,",")},c2v:function(){gx.O.AV18SctValDesconto=this.val()},val:function(){return gx.fn.getDecimalValue("vSCTVALDESCONTO",".",",")},nac:function(){return false}};this.GXValidFnc[65]={fld:"TEXTBLOCK7",format:0,grid:0};this.GXValidFnc[67]={lvl:0,type:"decimal",len:11,dec:2,sign:false,pic:"ZZ,ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCTPRELIQUIDOUNITARIO",gxz:"ZV19SctPreLiquidoUnitario",gxold:"OV19SctPreLiquidoUnitario",gxvar:"AV19SctPreLiquidoUnitario",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19SctPreLiquidoUnitario=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV19SctPreLiquidoUnitario=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vSCTPRELIQUIDOUNITARIO",gx.O.AV19SctPreLiquidoUnitario,2,",")},c2v:function(){gx.O.AV19SctPreLiquidoUnitario=this.val()},val:function(){return gx.fn.getDecimalValue("vSCTPRELIQUIDOUNITARIO",".",",")},nac:function(){return false}};this.GXValidFnc[70]={fld:"TEXTBLOCK8",format:0,grid:0};this.GXValidFnc[72]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:1,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vSCTDATCOTACAO",gxz:"ZV20SctDatCotacao",gxold:"OV20SctDatCotacao",gxvar:"AV20SctDatCotacao",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.AV20SctDatCotacao=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.ZV20SctDatCotacao=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vSCTDATCOTACAO",gx.O.AV20SctDatCotacao,0)},c2v:function(){gx.O.AV20SctDatCotacao=this.val()},val:function(){return gx.fn.getControlValue("vSCTDATCOTACAO")},nac:function(){return false}};this.GXValidFnc[75]={fld:"TEXTBLOCK10",format:0,grid:0};this.GXValidFnc[78]={fld:"TEXTBLOCK9",format:0,grid:0};this.GXValidFnc[84]={lvl:2,type:"char",len:15,dec:0,sign:false,ro:1,grid:83,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vDESROTULO",gxz:"ZV21DesRotulo",gxold:"OV21DesRotulo",gxvar:"AV21DesRotulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV21DesRotulo=a
},v2z:function(a){gx.O.ZV21DesRotulo=a},v2c:function(){gx.fn.setGridControlValue("vDESROTULO",gx.fn.currentGridRowImpl(83),gx.O.AV21DesRotulo,0)},c2v:function(){gx.O.AV21DesRotulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDESROTULO",gx.fn.currentGridRowImpl(83))},nac:function(){return false}};this.GXValidFnc[85]={lvl:2,type:"char",len:150,dec:0,sign:false,ro:1,grid:83,gxgrid:this.Subfile1Container,fnc:null,isvalid:null,fld:"vVALLINHA",gxz:"ZV22ValLinha",gxold:"OV22ValLinha",gxvar:"AV22ValLinha",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV22ValLinha=a
},v2z:function(a){gx.O.ZV22ValLinha=a},v2c:function(){gx.fn.setGridControlValue("vVALLINHA",gx.fn.currentGridRowImpl(83),gx.O.AV22ValLinha,0)},c2v:function(){gx.O.AV22ValLinha=this.val()},val:function(){return gx.fn.getGridControlValue("vVALLINHA",gx.fn.currentGridRowImpl(83))},nac:function(){return false}};this.AV7SlcNro=0;this.ZV7SlcNro=0;this.OV7SlcNro=0;this.AV9SctNro=0;this.ZV9SctNro=0;this.OV9SctNro=0;this.AV10CdpCod=0;this.ZV10CdpCod=0;this.OV10CdpCod=0;this.AV16SctPreBrutoUnitario=0;this.ZV16SctPreBrutoUnitario=0;
this.OV16SctPreBrutoUnitario=0;this.AV17SctPctDesconto=0;this.ZV17SctPctDesconto=0;this.OV17SctPctDesconto=0;this.AV18SctValDesconto=0;this.ZV18SctValDesconto=0;this.OV18SctValDesconto=0;this.AV19SctPreLiquidoUnitario=0;this.ZV19SctPreLiquidoUnitario=0;this.OV19SctPreLiquidoUnitario=0;this.AV20SctDatCotacao=gx.date.nullDate();this.ZV20SctDatCotacao=gx.date.nullDate();this.OV20SctDatCotacao=gx.date.nullDate();this.ZV21DesRotulo="";this.OV21DesRotulo="";this.ZV22ValLinha="";this.OV22ValLinha="";this.AV21DesRotulo="";
this.AV22ValLinha="";this.A819SlcNro=0;this.A808SlcDatSoli=gx.date.nullDate();this.A812SlcNroDocu=0;this.A821SlcQtdVolu=0;this.A822SlcQuantid=0;this.A811SlcDscTitu="";this.A815SlcIndTemC="";this.A814SlcIndSitu="";this.A770SctCodForn=0;this.A771SctDatCota=gx.date.nullDate();this.A774SctNro=0;this.A775SctPctDesc=0;this.A778SctValDesc=0;this.A776SctPreBrut=0;this.A777SctPreLiqu=0;this.A433ForCod=0;this.A442ForNomAbre="";this.A444ForNomComp="";this.A122CfgCod="";this.A127CfgValCont="";this.ServerEvents=["e11812_client","e12812_client","e13812_client","e16812_client"];
this.EnterCtrl=["BUTTON1"];this.VarControlMap.A776SctPreBrut={id:"SCTPREBRUT",grid:0,type:"decimal"};this.VarControlMap.A778SctValDesc={id:"SCTVALDESC",grid:0,type:"decimal"};this.VarControlMap.A775SctPctDesc={id:"SCTPCTDESC",grid:0,type:"decimal"};this.VarControlMap.A777SctPreLiqu={id:"SCTPRELIQU",grid:0,type:"decimal"};this.VarControlMap.A822SlcQuantid={id:"SLCQUANTID",grid:0,type:"int"};this.VarControlMap.A821SlcQtdVolu={id:"SLCQTDVOLU",grid:0,type:"int"};this.VarControlMap.A811SlcDscTitu={id:"SLCDSCTITU",grid:0,type:"char"};
this.VarControlMap.A812SlcNroDocu={id:"SLCNRODOCU",grid:0,type:"int"};this.VarControlMap.A808SlcDatSoli={id:"SLCDATSOLI",grid:0,type:"date"};this.VarControlMap.AV11LoginOk={id:"vLOGINOK",grid:0,type:"char"};this.Subfile1Container.addRefreshingVar({rfrVar:"A822SlcQuantid"});this.Subfile1Container.addRefreshingVar({rfrVar:"A821SlcQtdVolu"});this.Subfile1Container.addRefreshingVar({rfrVar:"A811SlcDscTitu"});this.Subfile1Container.addRefreshingVar({rfrVar:"A812SlcNroDocu"});this.Subfile1Container.addRefreshingVar({rfrVar:"A808SlcDatSoli"});
this.Subfile1Container.addRefreshingVar(this.GXValidFnc[42]);this.Subfile1Container.addRefreshingVar({rfrVar:"AV11LoginOk"});this.SetStandaloneVars()}hmih059.prototype=new gx.GxObject;gx.setParentObj(new hmih059());