/*
               File: agenda
        Description: Agendamento de Consultas
             Author: GeneXus C# Generator version 9_0_4-851
       Generated on: 4/25/2011 14:17:55.41
       Program type: Main program
          Main DBMS: sqlserver
*/
{gxsetDateFormat( "DMY" );
gxsetTimeFormat( 24 );
gxsetFirstYearCentury( 40 );
this.gxDecPoint =  "," ;
this.gxThSep =  "." ;}
 bGXAutoskip = false;
this._SetStandaloneVars=function()
{
   Gx_date = GXgetDateValue("_TODAY")
   A320ConAtv = GXgetIntegerValue("CONATV")
   A168ConCod = GXgetIntegerValue("CONCOD")
   A248ConNrz = GXgetControlValue("CONNRZ")
   A326ConAge = GXgetIntegerValue("CONAGEWEB")
   A349PlcAge = GXgetIntegerValue("PLCAGEWEB")
   A341PlcAtv = GXgetIntegerValue("PLCATV")
   A334PlcCod = GXgetIntegerValue("PLCCOD")
   A335PlcDsc = GXgetControlValue("PLCDSC")
   AV6AgdDna = GXgetDateValue("_AGDDNA")
   A472AgdDta = GXgetDateValue("AGDDTA")
   A484AgdDna = GXgetDateValue("AGDDNA")
   A482AgdNom = GXgetControlValue("AGDNOM")
   A491AgdSta = GXgetIntegerValue("AGDSTA")
   A488AgdBsa = GXgetControlValue("AGDBSA")
   A471ExaCod = GXgetControlValue("EXACOD")
   A42HosCod = GXgetIntegerValue("HOSCOD")
   A539EAgdDn = GXgetDateValue("EAGDDNA")
   A537EAgdNo = GXgetControlValue("EAGDNOM")
   A546EAgdSt = GXgetIntegerValue("EAGDSTA")
}
this._Validv_Samnom=function()
{
   try {
      gxballoon = getGXBallon("_SAMNOM");
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._Validv_Concod=function()
{
   try {
      gxballoon = getGXBallon("_CONCOD");
      AnyError = 0;

   }
   catch(e){}
   try {
      if (gxballoon == null) return true; return gxballoon.show();
   }
   catch(e){}
   return true ;
}
this._agenda=function()
{
}
this._init=function()
{
}
_GXValidFnc = new Array();
this._GXLastCtrlId =24;
_GXValidFnc[6]={lvl:0,grid:0,fnc:null,fld:"_SAMNOM",gxvar:"AV5SamNom",op:[],ip:[],nacdep:[],v2v:function(Value){AV5SamNom=Value},v2c:function(){GXsetControlValue("_SAMNOM",AV5SamNom,0)},c2v:function(){AV5SamNom=GXgetControlValue("_SAMNOM")}};
_GXValidFnc[7]={lvl:0,grid:0,fnc:null,fld:"_AGDDNAC",gxvar:"AV46AgdDna",op:[],ip:[],nacdep:[],v2v:function(Value){AV46AgdDna=Value},v2c:function(){GXsetControlValue("_AGDDNAC",AV46AgdDna,0)},c2v:function(){AV46AgdDna=GXgetControlValue("_AGDDNAC")}};
_GXValidFnc[9]={lvl:0,grid:0,fnc:null,fld:"_AGDPREREC",gxvar:"AV9AgdPreR",op:[],ip:[],nacdep:[],v2v:function(Value){AV9AgdPreR=Value},v2c:function(){GXsetControlValue("_AGDPREREC",AV9AgdPreR,0)},c2v:function(){AV9AgdPreR=GXgetControlValue("_AGDPREREC")}};
_GXValidFnc[11]={lvl:0,grid:0,fnc:null,fld:"_AGDTELREC",gxvar:"AV10AgdTel",op:[],ip:[],nacdep:[],v2v:function(Value){AV10AgdTel=Value},v2c:function(){GXsetControlValue("_AGDTELREC",AV10AgdTel,0)},c2v:function(){AV10AgdTel=GXgetControlValue("_AGDTELREC")}};
_GXValidFnc[12]={lvl:0,grid:0,fnc:null,fld:"_AGDPRETEL",gxvar:"AV7AgdPreT",op:[],ip:[],nacdep:[],v2v:function(Value){AV7AgdPreT=Value},v2c:function(){GXsetControlValue("_AGDPRETEL",AV7AgdPreT,0)},c2v:function(){AV7AgdPreT=GXgetControlValue("_AGDPRETEL")}};
_GXValidFnc[14]={lvl:0,grid:0,fnc:null,fld:"_AGDTEL",gxvar:"AV8AgdTel",op:[],ip:[],nacdep:[],v2v:function(Value){AV8AgdTel=Value},v2c:function(){GXsetControlValue("_AGDTEL",AV8AgdTel,0)},c2v:function(){AV8AgdTel=GXgetControlValue("_AGDTEL")}};
_GXValidFnc[16]={lvl:0,grid:0,fnc:null,fld:"_AGDEMAIL",gxvar:"AV11AgdEma",op:[],ip:[],nacdep:[],v2v:function(Value){AV11AgdEma=Value},v2c:function(){GXsetControlValue("_AGDEMAIL",AV11AgdEma,0)},c2v:function(){AV11AgdEma=GXgetControlValue("_AGDEMAIL")}};
_GXValidFnc[17]={lvl:0,grid:0,fnc:null,fld:"_AGDSEX",gxvar:"AV12AgdSex",op:[],ip:[],nacdep:[],v2v:function(Value){AV12AgdSex=Value},v2c:function(){GXsetControlValue("_AGDSEX",AV12AgdSex,2)},c2v:function(){AV12AgdSex=GXgetControlValue("_AGDSEX")}};
_GXValidFnc[19]={lvl:0,grid:0,fnc:null,fld:"_CONCOD",gxvar:"AV13ConCod",op:[],ip:[],nacdep:[],v2v:function(Value){AV13ConCod=gxint(Value)},v2c:function(){GXsetComboBoxValue("_CONCOD",AV13ConCod)},c2v:function(){AV13ConCod=GXgetIntegerValue("_CONCOD")}};
_GXValidFnc[21]={lvl:0,grid:0,fnc:null,fld:"_PLCCOD",gxvar:"AV15PlcCod",op:[],ip:[],nacdep:[],v2v:function(Value){AV15PlcCod=gxint(Value)},v2c:function(){GXsetComboBoxValue("_PLCCOD",AV15PlcCod)},c2v:function(){AV15PlcCod=GXgetIntegerValue("_PLCCOD")}};
_GXValidFnc[23]={lvl:0,grid:0,fnc:null,fld:"_PARTICULAR",gxvar:"AV17Partic",op:[],ip:[],nacdep:[],v2v:function(Value){AV17Partic=gxint(Value)},v2c:function(){GXsetComboBoxValue("_PARTICULAR",AV17Partic)},c2v:function(){AV17Partic=GXgetIntegerValue("_PARTICULAR")}};
_GXValidFnc[24]={lvl:0,grid:0,fnc:null,fld:"_TIPO",gxvar:"AV18Tipo",op:[],ip:[],nacdep:[],v2v:function(Value){AV18Tipo=gxint(Value)},v2c:function(){GXsetControlValue("_TIPO",AV18Tipo,2)},c2v:function(){AV18Tipo=GXgetIntegerValue("_TIPO")}};
this.AV5SamNom=0;
this.AV46AgdDna=0;
this.AV9AgdPreR=0;
this.AV10AgdTel=0;
this.AV7AgdPreT=0;
this.AV8AgdTel=0;
this.AV11AgdEma=0;
this.AV12AgdSex=0;
this.AV13ConCod=0;
this.AV15PlcCod=0;
this.AV17Partic=0;
this.AV18Tipo=0;
_SetStandaloneVars( ) ;

