gx.evt.autoSkip=false;function promptsc(){this.ServerClass="PromptSC";this.PackageName="";this.setObjectType("web");this.hasEnterEvent=true;this.SetStandaloneVars=function(){this.A809SlcDesL1Ti=gx.fn.getControlValue("SLCDESL1TI");this.A811SlcDscTitu=gx.fn.getControlValue("SLCDSCTITU");this.AV5SlcNro=gx.fn.getIntegerValue("vSLCNRO",".")};this.Valid_Slcnrodocu=function(){try{if(gx.fn.currentGridRowImpl(45)===0){return true}var a=gx.util.balloon.getNew("SLCNRODOCU",gx.fn.currentGridRowImpl(45));this.AnyError=0
}catch(b){}try{if(a==null){return true}return a.show()}catch(b){}return true};this.e14du2_client=function(){this.executeServerEvent("ENTER",true,arguments[0])};this.e15du1_client=function(){this.executeServerEvent("CANCEL",true)};this.GXValidFnc=[];this.GXCtrlIds=[3,10,13,16,18,21,23,25,27,29,32,34,37,39,41,46,47,48,49,50,51,52,53,54,55,57];this.GXLastCtrlId=57;this.Grid1Container=new gx.grid.grid(this,2,"WbpLvl2",45,"Grid1","Grid1","Grid1Container",this.CmpContext,this.IsMasterPage,"promptsc",[],false,1,true,true,0,false,false,false,"",0,"px","Novo registro",false,false,false,null,null,false,"");
this.Grid1Container.addSingleLineEdit(819,46,"SLCNRO","Nro.","","SlcNro","int",0,"px",6,6,"right",null,[],819,"SlcNro",true,0,false,false);this.Grid1Container.addSingleLineEdit(808,47,"SLCDATSOLI","Solicitação","","SlcDatSoli","date",0,"px",10,10,"right",null,[],808,"SlcDatSoli",true,0,false,false);this.Grid1Container.addSingleLineEdit("Dsctitulo",48,"vDSCTITULO","Título","","DscTitulo","char",0,"px",250,250,"left",null,[],"Dsctitulo","DscTitulo",true,0,false,false);this.Grid1Container.addSingleLineEdit(812,49,"SLCNRODOCU","Documento","","SlcNroDocu","int",0,"px",7,7,"right",null,[],812,"SlcNroDocu",true,0,false,false);
this.Grid1Container.addComboBox(814,50,"SLCINDSITU","Situação","SlcIndSitu","char",null,0,true,false,0,"px");this.Grid1Container.addSingleLineEdit(805,51,"SLCCODUNID","Un.","","SlcCodUnid","int",0,"px",3,3,"right",null,[],805,"SlcCodUnid",true,0,false,false);this.Grid1Container.addSingleLineEdit(806,52,"SLCDATPRER","Previsão","","SlcDatPreR","date",0,"px",10,10,"right",null,[],806,"SlcDatPreR",true,0,false,false);this.Grid1Container.addSingleLineEdit(822,53,"SLCQUANTID","Exemplar","","SlcQuantid","int",0,"px",6,6,"right",null,[],822,"SlcQuantid",true,0,false,false);
this.Grid1Container.addSingleLineEdit(824,54,"SLCVALUNIT","Valor ","","SlcValUnit","decimal",0,"px",10,10,"right",null,[],824,"SlcValUnit",true,2,false,false);this.Grid1Container.addSingleLineEdit(820,55,"SLCNROPEDI","Pedido","","SlcNroPedi","int",0,"px",6,6,"right",null,[],820,"SlcNroPedi",true,0,false,false);this.setGrid(this.Grid1Container);this.GXValidFnc[3]={fld:"TABLE1",grid:0};this.GXValidFnc[10]={fld:"TEXTBLOCK1",format:0,grid:0};this.GXValidFnc[13]={fld:"TABLE2",grid:0};this.GXValidFnc[16]={fld:"TEXTBLOCK2",format:0,grid:0};
this.GXValidFnc[18]={fld:"TABLE3",grid:0};this.GXValidFnc[21]={lvl:0,type:"date",len:10,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vDATINI",gxz:"ZV6DatIni",gxold:"OV6DatIni",gxvar:"AV6DatIni",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.AV6DatIni=gx.fn.toDatetimeValue(a)},v2z:function(a){gx.O.ZV6DatIni=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setControlValue("vDATINI",gx.O.AV6DatIni,0)},c2v:function(){gx.O.AV6DatIni=this.val()
},val:function(){return gx.fn.getControlValue("vDATINI")},nac:function(){return false}};this.GXValidFnc[23]={fld:"TEXTBLOCK4",format:0,grid:0};this.GXValidFnc[25]={lvl:0,type:"char",len:1,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vINDSITUACAO",gxz:"ZV11IndSituacao",gxold:"OV11IndSituacao",gxvar:"AV11IndSituacao",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.AV11IndSituacao=a},v2z:function(a){gx.O.ZV11IndSituacao=a},v2c:function(){gx.fn.setComboBoxValue("vINDSITUACAO",gx.O.AV11IndSituacao)
},c2v:function(){gx.O.AV11IndSituacao=this.val()},val:function(){return gx.fn.getControlValue("vINDSITUACAO")},nac:function(){return false}};this.GXValidFnc[27]={fld:"TEXTBLOCK5",format:0,grid:0};this.GXValidFnc[29]={lvl:0,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,rgrid:[this.Grid1Container],fld:"vUNDCOD",gxz:"ZV17UndCod",gxold:"OV17UndCod",gxvar:"AV17UndCod",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV17UndCod=gx.num.intval(a)
},v2z:function(a){gx.O.ZV17UndCod=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vUNDCOD",gx.O.AV17UndCod,0)},c2v:function(){gx.O.AV17UndCod=this.val()},val:function(){return gx.fn.getIntegerValue("vUNDCOD",".")},nac:function(){return false}};this.GXValidFnc[32]={fld:"TEXTBLOCK3",format:0,grid:0};this.GXValidFnc[34]={fld:"TABLE4",grid:0};this.GXValidFnc[37]={lvl:0,type:"char",len:35,dec:0,sign:false,ro:0,grid:0,gxgrid:null,fnc:null,isvalid:null,fld:"vTITULOSCR",gxz:"ZV7TituloScr",gxold:"OV7TituloScr",gxvar:"AV7TituloScr",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV7TituloScr=a
},v2z:function(a){gx.O.ZV7TituloScr=a},v2c:function(){gx.fn.setControlValue("vTITULOSCR",gx.O.AV7TituloScr,0)},c2v:function(){gx.O.AV7TituloScr=this.val()},val:function(){return gx.fn.getControlValue("vTITULOSCR")},nac:function(){return false}};this.GXValidFnc[39]={fld:"TEXTBLOCK6",format:0,grid:0};this.GXValidFnc[41]={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:"vPEDNRO",gxz:"ZV19PedNro",gxold:"OV19PedNro",gxvar:"AV19PedNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV19PedNro=gx.num.intval(a)
},v2z:function(a){gx.O.ZV19PedNro=gx.num.intval(a)},v2c:function(){gx.fn.setControlValue("vPEDNRO",gx.O.AV19PedNro,0)},c2v:function(){gx.O.AV19PedNro=this.val()},val:function(){return gx.fn.getIntegerValue("vPEDNRO",".")},nac:function(){return false}};this.GXValidFnc[46]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLCNRO",gxz:"Z819SlcNro",gxold:"O819SlcNro",gxvar:"A819SlcNro",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A819SlcNro=gx.num.intval(a)
},v2z:function(a){gx.O.Z819SlcNro=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCNRO",gx.fn.currentGridRowImpl(45),gx.O.A819SlcNro,0)},c2v:function(){gx.O.A819SlcNro=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCNRO",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[47]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLCDATSOLI",gxz:"Z808SlcDatSoli",gxold:"O808SlcDatSoli",gxvar:"A808SlcDatSoli",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.A808SlcDatSoli=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z808SlcDatSoli=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("SLCDATSOLI",gx.fn.currentGridRowImpl(45),gx.O.A808SlcDatSoli,0)},c2v:function(){gx.O.A808SlcDatSoli=this.val()},val:function(){return gx.fn.getGridControlValue("SLCDATSOLI",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[48]={lvl:2,type:"char",len:250,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"vDSCTITULO",gxz:"ZV16DscTitulo",gxold:"OV16DscTitulo",gxvar:"AV16DscTitulo",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.AV16DscTitulo=a
},v2z:function(a){gx.O.ZV16DscTitulo=a},v2c:function(){gx.fn.setGridControlValue("vDSCTITULO",gx.fn.currentGridRowImpl(45),gx.O.AV16DscTitulo,0)},c2v:function(){gx.O.AV16DscTitulo=this.val()},val:function(){return gx.fn.getGridControlValue("vDSCTITULO",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[49]={lvl:2,type:"int",len:7,dec:0,sign:false,pic:"ZZZZZZ9",ro:1,grid:45,gxgrid:this.Grid1Container,fnc:this.Valid_Slcnrodocu,isvalid:null,rgrid:[],fld:"SLCNRODOCU",gxz:"Z812SlcNroDocu",gxold:"O812SlcNroDocu",gxvar:"A812SlcNroDocu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A812SlcNroDocu=gx.num.intval(a)
},v2z:function(a){gx.O.Z812SlcNroDocu=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCNRODOCU",gx.fn.currentGridRowImpl(45),gx.O.A812SlcNroDocu,0)},c2v:function(){gx.O.A812SlcNroDocu=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCNRODOCU",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[50]={lvl:2,type:"char",len:1,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLCINDSITU",gxz:"Z814SlcIndSitu",gxold:"O814SlcIndSitu",gxvar:"A814SlcIndSitu",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"combo",v2v:function(a){gx.O.A814SlcIndSitu=a
},v2z:function(a){gx.O.Z814SlcIndSitu=a},v2c:function(){gx.fn.setGridComboBoxValue("SLCINDSITU",gx.fn.currentGridRowImpl(45),gx.O.A814SlcIndSitu)},c2v:function(){gx.O.A814SlcIndSitu=this.val()},val:function(){return gx.fn.getGridControlValue("SLCINDSITU",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[51]={lvl:2,type:"int",len:3,dec:0,sign:false,pic:"ZZ9",ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLCCODUNID",gxz:"Z805SlcCodUnid",gxold:"O805SlcCodUnid",gxvar:"A805SlcCodUnid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A805SlcCodUnid=gx.num.intval(a)
},v2z:function(a){gx.O.Z805SlcCodUnid=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCCODUNID",gx.fn.currentGridRowImpl(45),gx.O.A805SlcCodUnid,0)},c2v:function(){gx.O.A805SlcCodUnid=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCCODUNID",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[52]={lvl:2,type:"date",len:10,dec:0,sign:false,ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLCDATPRER",gxz:"Z806SlcDatPreR",gxold:"O806SlcDatPreR",gxvar:"A806SlcDatPreR",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.A806SlcDatPreR=gx.fn.toDatetimeValue(a)
},v2z:function(a){gx.O.Z806SlcDatPreR=gx.fn.toDatetimeValue(a)},v2c:function(){gx.fn.setGridControlValue("SLCDATPRER",gx.fn.currentGridRowImpl(45),gx.O.A806SlcDatPreR,0)},c2v:function(){gx.O.A806SlcDatPreR=this.val()},val:function(){return gx.fn.getGridControlValue("SLCDATPRER",gx.fn.currentGridRowImpl(45))},nac:function(){return false}};this.GXValidFnc[53]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLCQUANTID",gxz:"Z822SlcQuantid",gxold:"O822SlcQuantid",gxvar:"A822SlcQuantid",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A822SlcQuantid=gx.num.intval(a)
},v2z:function(a){gx.O.Z822SlcQuantid=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCQUANTID",gx.fn.currentGridRowImpl(45),gx.O.A822SlcQuantid,0)},c2v:function(){gx.O.A822SlcQuantid=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCQUANTID",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[54]={lvl:2,type:"decimal",len:10,dec:2,sign:false,pic:"ZZZ,ZZ9.99",ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,fld:"SLCVALUNIT",gxz:"Z824SlcValUnit",gxold:"O824SlcValUnit",gxvar:"A824SlcValUnit",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A824SlcValUnit=gx.fn.toDecimalValue(a,",",".")
},v2z:function(a){gx.O.Z824SlcValUnit=gx.fn.toDecimalValue(a,".",",")},v2c:function(){gx.fn.setGridDecimalValue("SLCVALUNIT",gx.fn.currentGridRowImpl(45),gx.O.A824SlcValUnit,2,",")},c2v:function(){gx.O.A824SlcValUnit=this.val()},val:function(){return gx.fn.getGridDecimalValue("SLCVALUNIT",gx.fn.currentGridRowImpl(45),".",",")},nac:function(){return false}};this.GXValidFnc[55]={lvl:2,type:"int",len:6,dec:0,sign:false,pic:"ZZZZZ9",ro:1,grid:45,gxgrid:this.Grid1Container,fnc:null,isvalid:null,rgrid:[],fld:"SLCNROPEDI",gxz:"Z820SlcNroPedi",gxold:"O820SlcNroPedi",gxvar:"A820SlcNroPedi",ucs:[],op:[],ip:[],nacdep:[],ctrltype:"edit",v2v:function(a){gx.O.A820SlcNroPedi=gx.num.intval(a)
},v2z:function(a){gx.O.Z820SlcNroPedi=gx.num.intval(a)},v2c:function(){gx.fn.setGridControlValue("SLCNROPEDI",gx.fn.currentGridRowImpl(45),gx.O.A820SlcNroPedi,0)},c2v:function(){gx.O.A820SlcNroPedi=this.val()},val:function(){return gx.fn.getGridIntegerValue("SLCNROPEDI",gx.fn.currentGridRowImpl(45),".")},nac:function(){return false}};this.GXValidFnc[57]={fld:"PROMPT_UNDCOD",grid:0};this.AV6DatIni=gx.date.nullDate();this.ZV6DatIni=gx.date.nullDate();this.OV6DatIni=gx.date.nullDate();this.AV11IndSituacao="";
this.ZV11IndSituacao="";this.OV11IndSituacao="";this.AV17UndCod=0;this.ZV17UndCod=0;this.OV17UndCod=0;this.AV7TituloScr="";this.ZV7TituloScr="";this.OV7TituloScr="";this.AV19PedNro=0;this.ZV19PedNro=0;this.OV19PedNro=0;this.Z819SlcNro=0;this.O819SlcNro=0;this.Z808SlcDatSoli=gx.date.nullDate();this.O808SlcDatSoli=gx.date.nullDate();this.ZV16DscTitulo="";this.OV16DscTitulo="";this.Z812SlcNroDocu=0;this.O812SlcNroDocu=0;this.Z814SlcIndSitu="";this.O814SlcIndSitu="";this.Z805SlcCodUnid=0;this.O805SlcCodUnid=0;
this.Z806SlcDatPreR=gx.date.nullDate();this.O806SlcDatPreR=gx.date.nullDate();this.Z822SlcQuantid=0;this.O822SlcQuantid=0;this.Z824SlcValUnit=0;this.O824SlcValUnit=0;this.Z820SlcNroPedi=0;this.O820SlcNroPedi=0;this.AV5SlcNro=0;this.A809SlcDesL1Ti="";this.A811SlcDscTitu="";this.A819SlcNro=0;this.A808SlcDatSoli=gx.date.nullDate();this.AV16DscTitulo="";this.A812SlcNroDocu=0;this.A814SlcIndSitu="";this.A805SlcCodUnid=0;this.A806SlcDatPreR=gx.date.nullDate();this.A822SlcQuantid=0;this.A824SlcValUnit=0;
this.A820SlcNroPedi=0;this.ServerEvents=["e14du2_client","e15du1_client"];this.setPrompt("PROMPT_UNDCOD",[29]);this.VarControlMap.A809SlcDesL1Ti={id:"SLCDESL1TI",grid:0,type:"char"};this.VarControlMap.A811SlcDscTitu={id:"SLCDSCTITU",grid:0,type:"char"};this.VarControlMap.AV5SlcNro={id:"vSLCNRO",grid:0,type:"int"};this.Grid1Container.addRefreshingVar(this.GXValidFnc[21]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[25]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[29]);this.Grid1Container.addRefreshingVar(this.GXValidFnc[37]);
this.Grid1Container.addRefreshingVar(this.GXValidFnc[41]);this.Grid1Container.addRefreshingVar({rfrVar:"A811SlcDscTitu"});this.Grid1Container.addRefreshingVar({rfrVar:"A809SlcDesL1Ti"});this.SetStandaloneVars()}promptsc.prototype=new gx.GxObject;gx.setParentObj(new promptsc());