Assegnazione codice anagragico su ordine di produzione in pianificazione della produzione MAGGIO
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240828151959 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
createSetup("w_afabbt_rc", "SETUP", "COD_ANAG_ORD_PROD", null,
|
||||
"Codice fornitore di default per la generazione degli ordini produzione", false, null, false, false,
|
||||
false, false, false, null, false, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240828152916 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!(isCustomerDb(IntegryCustomerDB.Maggio_MaggioSrl) || isCustomerDb(IntegryCustomerDB.Maggio_GiovMaggio)))
|
||||
return;
|
||||
|
||||
updateSetupValue("w_afabbt_rc", "SETUP", "COD_ANAG_ORD_PROD", "F2410",
|
||||
"Codice fornitore di default per la generazione degli ordini produzione", false, null, false, false, false,
|
||||
false, false, null, false, null);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM stb_gest_setup_depo\n" +
|
||||
"WHERE gest_name = 'w_afabbt_rc'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'COD_ANAG_ORD_PROD'"
|
||||
);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM wtb_gest_setup_user\n" +
|
||||
"WHERE gest_name = 'w_afabbt_rc'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'COD_ANAG_ORD_PROD'"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240828153911 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.Morgante_Morgante))
|
||||
return;
|
||||
|
||||
updateSetupValue("w_afabbt_rc", "SETUP", "COD_ANAG_ORD_PROD", "F0000",
|
||||
"Codice fornitore di default per la generazione degli ordini produzione", false, null, false, false, false,
|
||||
false, false, null, false, null);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM stb_gest_setup_depo\n" +
|
||||
"WHERE gest_name = 'w_afabbt_rc'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'COD_ANAG_ORD_PROD'"
|
||||
);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM wtb_gest_setup_user\n" +
|
||||
"WHERE gest_name = 'w_afabbt_rc'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'COD_ANAG_ORD_PROD'"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package it.integry.ems.migration.model;
|
||||
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.IntegryCustomerDB;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240828154039 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
if (isHistoryDB())
|
||||
return;
|
||||
|
||||
if (!isCustomerDb(IntegryCustomerDB.Smetar_Smetar))
|
||||
return;
|
||||
|
||||
updateSetupValue("w_afabbt_rc", "SETUP", "COD_ANAG_ORD_PROD", "F0571",
|
||||
"Codice fornitore di default per la generazione degli ordini produzione", false, null, false, false, false,
|
||||
false, false, null, false, null);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM stb_gest_setup_depo\n" +
|
||||
"WHERE gest_name = 'w_afabbt_rc'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'COD_ANAG_ORD_PROD'"
|
||||
);
|
||||
|
||||
executeStatement("DELETE\n" +
|
||||
"FROM wtb_gest_setup_user\n" +
|
||||
"WHERE gest_name = 'w_afabbt_rc'\n" +
|
||||
" AND section = 'SETUP'\n" +
|
||||
" AND key_section = 'COD_ANAG_ORD_PROD'"
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down() throws Exception {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user