Beispiel #1
0
 private bool PreviousCheck( )
 {
     if (!IsResumeMode( ))
     {
         if (GXUtil.DbmsVersion(context, "DEFAULT") < 10)
         {
             SetCheckError(GXResourceManager.GetMessage("GXM_bad_DBMS_version", new   object[]  { "2012" }));
             return(false);
         }
     }
     if (!MustRunCheck( ))
     {
         return(true);
     }
     if (GXUtil.IsSQLSERVER2005(context, "DEFAULT"))
     {
         /* Using cursor P00023 */
         pr_default.execute(1);
         while ((pr_default.getStatus(1) != 101))
         {
             sSchemaVar  = P00023_AsSchemaVar[0];
             nsSchemaVar = P00023_nsSchemaVar[0];
             pr_default.readNext(1);
         }
         pr_default.close(1);
     }
     else
     {
         /* Using cursor P00034 */
         pr_default.execute(2);
         while ((pr_default.getStatus(2) != 101))
         {
             sSchemaVar  = P00034_AsSchemaVar[0];
             nsSchemaVar = P00034_nsSchemaVar[0];
             pr_default.readNext(2);
         }
         pr_default.close(2);
     }
     if (!tableexist("Cliente", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_not_exist", new   object[]  { "Cliente" }));
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 private bool PreviousCheck( )
 {
     if (!IsResumeMode( ))
     {
         if (GXUtil.DbmsVersion(context, "DEFAULT") < 10)
         {
             SetCheckError(GXResourceManager.GetMessage("GXM_bad_DBMS_version", new   object[]  { "2012" }));
             return(false);
         }
     }
     if (!MustRunCheck( ))
     {
         return(true);
     }
     if (GXUtil.IsSQLSERVER2005(context, "DEFAULT"))
     {
         /* Using cursor P00045 */
         pr_default.execute(1);
         while ((pr_default.getStatus(1) != 101))
         {
             sSchemaVar  = P00045_AsSchemaVar[0];
             nsSchemaVar = P00045_nsSchemaVar[0];
             pr_default.readNext(1);
         }
         pr_default.close(1);
     }
     else
     {
         /* Using cursor P00056 */
         pr_default.execute(2);
         while ((pr_default.getStatus(2) != 101))
         {
             sSchemaVar  = P00056_AsSchemaVar[0];
             nsSchemaVar = P00056_nsSchemaVar[0];
             pr_default.readNext(2);
         }
         pr_default.close(2);
     }
     if (ColumnExist("Pedido", sSchemaVar, "PedidoDescontoFrete"))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_column_exist", new   object[]  { "PedidoDescontoFrete", "Pedido" }));
         return(false);
     }
     return(true);
 }
Beispiel #3
0
 private bool PreviousCheck( )
 {
     if (!IsResumeMode( ))
     {
         if (GXUtil.DbmsVersion(context, "DEFAULT") < 9)
         {
             SetCheckError(GXResourceManager.GetMessage("GXM_bad_DBMS_version", new   object[]  { "2005" }));
             return(false);
         }
     }
     if (!MustRunCheck( ))
     {
         return(true);
     }
     if (GXUtil.IsSQLSERVER2005(context, "DEFAULT"))
     {
         /* Using cursor P00012 */
         pr_default.execute(0);
         while ((pr_default.getStatus(0) != 101))
         {
             sSchemaVar  = P00012_AsSchemaVar[0];
             nsSchemaVar = P00012_nsSchemaVar[0];
             pr_default.readNext(0);
         }
         pr_default.close(0);
     }
     else
     {
         /* Using cursor P00023 */
         pr_default.execute(1);
         while ((pr_default.getStatus(1) != 101))
         {
             sSchemaVar  = P00023_AsSchemaVar[0];
             nsSchemaVar = P00023_nsSchemaVar[0];
             pr_default.readNext(1);
         }
         pr_default.close(1);
     }
     if (tableexist("PASAJEROS", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "PASAJEROS" }));
         return(false);
     }
     if (tableexist("TarifasGranelesSecos", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "TarifasGranelesSecos" }));
         return(false);
     }
     if (tableexist("REF_CGRAL_DESP", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "REF_CGRAL_DESP" }));
         return(false);
     }
     if (tableexist("VEH_RORO", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "VEH_RORO" }));
         return(false);
     }
     if (tableexist("PortaContenedoresRango", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "PortaContenedoresRango" }));
         return(false);
     }
     if (tableexist("PortaContenedores", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "PortaContenedores" }));
         return(false);
     }
     if (tableexist("LNG", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "LNG" }));
         return(false);
     }
     if (tableexist("LPG", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "LPG" }));
         return(false);
     }
     if (tableexist("Quimiqueros", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "Quimiqueros" }));
         return(false);
     }
     if (tableexist("TanqueroEsclusasRango", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "TanqueroEsclusasRango" }));
         return(false);
     }
     if (tableexist("TanqueroEsclusas", sSchemaVar))
     {
         SetCheckError(GXResourceManager.GetMessage("GXM_table_exist", new   object[]  { "TanqueroEsclusas" }));
         return(false);
     }
     return(true);
 }