gx.evt.autoSkip=false;function gx0210(){this.ServerClass="Gx0210";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.autoRefresh=true;this.SetStandaloneVars=function(){this.AV13pPedNro=gx.fn.getIntegerValue("vPPEDNRO",".")};this.e13ab2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e14ab1_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,60];
this.GXLastCtrlId=60;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",51,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"gx0210",[],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(627,53,"PEDNRO","Número do pedido","","PedNro","int",0,"px",6,6,"right",null,[],627,"PedNro",true,0,false,false);
this.Grid1Container.addSingleLineEdit(622,54,"PEDDESPAGA","Observações","Selecionar","PedDesPaga","char",0,"px",35,35,"left",null,[],622,"PedDesPaga",true,0,false,false);this.Grid1Container.addSingleLineEdit(623,55,"PEDDESTRAN","Transportadora","","PedDesTran","char",0,"px",40,40,"left",null,[],623,"PedDesTran",true,0,false,false);this.Grid1Container.addSingleLineEdit(631,56,"PEDVALTOTA","Valor total","","PedValTota","decimal",0,"px",10,10,"right",null,[],631,"PedValTota",true,2,false,false);this.Grid1Container.addSingleLineEdit(629,57,"PEDVALFRET","Valor do frete","","PedValFret","decimal",0,"px",10,10,"right",null,[],629,"PedValFret",true,2,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:"TEXTBLOCKPEDNRO",format:0,grid:0};this.GXValidFnc[14]={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:"vCPEDNRO",gxz:"ZV6cPedNro",gxold:"OV6cPedNro",gxvar:"AV6cPedNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV6cPedNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV6cPedNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vCPEDNRO",gx.O.AV6cPedNro,0)},c2v:function(){gx.O.AV6cPedNro=this.val()},val:function(){return gx.fn.getIntegerValue("vCPEDNRO",".")},nac:function(){return false}};this.GXValidFnc[17]={fld:"TEXTBLOCKPEDDESPAGAMENTO",format:0,grid:0};this.GXValidFnc[19]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPEDDESPAGAMENTO",gxz:"ZV7cPedDesPagamento",gxold:"OV7cPedDesPagamento",gxvar:"AV7cPedDesPagamento",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7cPedDesPagamento=a
},v2z:function(a){gx.O.ZV7cPedDesPagamento=a},v2c:function(){gx.fn.setControlValue("vCPEDDESPAGAMENTO",gx.O.AV7cPedDesPagamento,0)},c2v:function(){gx.O.AV7cPedDesPagamento=this.val()},val:function(){return gx.fn.getControlValue("vCPEDDESPAGAMENTO")},nac:function(){return false}};this.GXValidFnc[22]={fld:"TEXTBLOCKPEDDESTRANSPORTADORA",format:0,grid:0};this.GXValidFnc[24]={lvl:0,type:"char",len:40,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPEDDESTRANSPORTADORA",gxz:"ZV8cPedDesTransportadora",gxold:"OV8cPedDesTransportadora",gxvar:"AV8cPedDesTransportadora",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV8cPedDesTransportadora=a
},v2z:function(a){gx.O.ZV8cPedDesTransportadora=a},v2c:function(){gx.fn.setControlValue("vCPEDDESTRANSPORTADORA",gx.O.AV8cPedDesTransportadora,0)},c2v:function(){gx.O.AV8cPedDesTransportadora=this.val()},val:function(){return gx.fn.getControlValue("vCPEDDESTRANSPORTADORA")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCKPEDVALTOTAL",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZ,ZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPEDVALTOTAL",gxz:"ZV9cPedValTotal",gxold:"OV9cPedValTotal",gxvar:"AV9cPedValTotal",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV9cPedValTotal=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV9cPedValTotal=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCPEDVALTOTAL",gx.O.AV9cPedValTotal,2,",")},c2v:function(){gx.O.AV9cPedValTotal=this.val()},val:function(){return gx.fn.getDecimalValue("vCPEDVALTOTAL",".",",")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCKPEDVALFRETE",format:0,grid:0};this.GXValidFnc[34]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPEDVALFRETE",gxz:"ZV10cPedValFrete",gxold:"OV10cPedValFrete",gxvar:"AV10cPedValFrete",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV10cPedValFrete=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV10cPedValFrete=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCPEDVALFRETE",gx.O.AV10cPedValFrete,2,",")},c2v:function(){gx.O.AV10cPedValFrete=this.val()},val:function(){return gx.fn.getDecimalValue("vCPEDVALFRETE",".",",")},nac:function(){return false}};this.GXValidFnc[37]={fld:"TEXTBLOCKPEDVALOUTRASDESPESAS",format:0,grid:0};this.GXValidFnc[39]={lvl:0,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vCPEDVALOUTRASDESPESAS",gxz:"ZV11cPedValOutrasDespesas",gxold:"OV11cPedValOutrasDespesas",gxvar:"AV11cPedValOutrasDespesas",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV11cPedValOutrasDespesas=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.ZV11cPedValOutrasDespesas=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setDecimalValue("vCPEDVALOUTRASDESPESAS",gx.O.AV11cPedValOutrasDespesas,2,",")},c2v:function(){gx.O.AV11cPedValOutrasDespesas=this.val()},val:function(){return gx.fn.getDecimalValue("vCPEDVALOUTRASDESPESAS",".",",")},nac:function(){return false}};this.GXValidFnc[42]={fld:"TEXTBLOCKPEDINDIMPRESSO",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:"vCPEDINDIMPRESSO",gxz:"ZV12cPedIndImpresso",gxold:"OV12cPedIndImpresso",gxvar:"AV12cPedIndImpresso",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV12cPedIndImpresso=a
},v2z:function(a){gx.O.ZV12cPedIndImpresso=a},v2c:function(){gx.fn.setControlValue("vCPEDINDIMPRESSO",gx.O.AV12cPedIndImpresso,0)},c2v:function(){gx.O.AV12cPedIndImpresso=this.val()},val:function(){return gx.fn.getControlValue("vCPEDINDIMPRESSO")},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:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"PEDNRO",gxz:"Z627PedNro",gxold:"O627PedNro",gxvar:"A627PedNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A627PedNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z627PedNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("PEDNRO",gx.fn.currentGridRowImpl(51),gx.O.A627PedNro,0)},c2v:function(){gx.O.A627PedNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("PEDNRO",gx.fn.currentGridRowImpl(51),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"char",len:35,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PEDDESPAGA",gxz:"Z622PedDesPaga",gxold:"O622PedDesPaga",gxvar:"A622PedDesPaga",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A622PedDesPaga=a
},v2z:function(a){gx.O.Z622PedDesPaga=a},v2c:function(){gx.fn.setGridControlValue("PEDDESPAGA",gx.fn.currentGridRowImpl(51),gx.O.A622PedDesPaga,0)},c2v:function(){gx.O.A622PedDesPaga=this.val()},val:function(){return gx.fn.getGridControlValue("PEDDESPAGA",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"char",len:40,dec:0,sign:false,ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PEDDESTRAN",gxz:"Z623PedDesTran",gxold:"O623PedDesTran",gxvar:"A623PedDesTran",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A623PedDesTran=a
},v2z:function(a){gx.O.Z623PedDesTran=a},v2c:function(){gx.fn.setGridControlValue("PEDDESTRAN",gx.fn.currentGridRowImpl(51),gx.O.A623PedDesTran,0)},c2v:function(){gx.O.A623PedDesTran=this.val()},val:function(){return gx.fn.getGridControlValue("PEDDESTRAN",gx.fn.currentGridRowImpl(51))},nac:function(){return false}};this.GXValidFnc[56]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZ,ZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PEDVALTOTA",gxz:"Z631PedValTota",gxold:"O631PedValTota",gxvar:"A631PedValTota",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A631PedValTota=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z631PedValTota=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("PEDVALTOTA",gx.fn.currentGridRowImpl(51),gx.O.A631PedValTota,2,",")},c2v:function(){gx.O.A631PedValTota=this.val()},val:function(){return gx.fn.getGridDecimalValue("PEDVALTOTA",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[57]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZZZZ9.99",ro:1,grid:51,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"PEDVALFRET",gxz:"Z629PedValFret",gxold:"O629PedValFret",gxvar:"A629PedValFret",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A629PedValFret=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z629PedValFret=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("PEDVALFRET",gx.fn.currentGridRowImpl(51),gx.O.A629PedValFret,2,",")},c2v:function(){gx.O.A629PedValFret=this.val()},val:function(){return gx.fn.getGridDecimalValue("PEDVALFRET",gx.fn.currentGridRowImpl(51),".",",")},nac:function(){return false}};this.GXValidFnc[60]={fld:"TABLE4",grid:0};this.AV6cPedNro=0;this.ZV6cPedNro=0;this.OV6cPedNro=0;this.AV7cPedDesPagamento="";this.ZV7cPedDesPagamento="";
this.OV7cPedDesPagamento="";this.AV8cPedDesTransportadora="";this.ZV8cPedDesTransportadora="";this.OV8cPedDesTransportadora="";this.AV9cPedValTotal=0;this.ZV9cPedValTotal=0;this.OV9cPedValTotal=0;this.AV10cPedValFrete=0;this.ZV10cPedValFrete=0;this.OV10cPedValFrete=0;this.AV11cPedValOutrasDespesas=0;this.ZV11cPedValOutrasDespesas=0;this.OV11cPedValOutrasDespesas=0;this.AV12cPedIndImpresso="";this.ZV12cPedIndImpresso="";this.OV12cPedIndImpresso="";this.ZV5LinkSelection="";this.OV5LinkSelection="";
this.Z627PedNro=0;this.O627PedNro=0;this.Z622PedDesPaga="";this.O622PedDesPaga="";this.Z623PedDesTran="";this.O623PedDesTran="";this.Z631PedValTota=0;this.O631PedValTota=0;this.Z629PedValFret=0;this.O629PedValFret=0;this.AV13pPedNro=0;this.A630PedValOutr=0;this.A625PedIndImpr="";this.AV5LinkSelection="";this.A627PedNro=0;this.A622PedDesPaga="";this.A623PedDesTran="";this.A631PedValTota=0;this.A629PedValFret=0;this.ServerEvents=["e13ab2_client","e14ab1_client"];this.VarControlMap.AV13pPedNro={id:"vPPEDNRO",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()}gx0210.prototype=new gx.GxObject;gx.setParentObj(new gx0210());