2552 lines
99 KiB
Java
2552 lines
99 KiB
Java
package it.acxent.anag;
|
|
|
|
import com.lowagie.text.Chunk;
|
|
import com.lowagie.text.Document;
|
|
import com.lowagie.text.Element;
|
|
import com.lowagie.text.Font;
|
|
import com.lowagie.text.Image;
|
|
import com.lowagie.text.PageSize;
|
|
import com.lowagie.text.Phrase;
|
|
import com.lowagie.text.Table;
|
|
import com.lowagie.text.pdf.Barcode128;
|
|
import com.lowagie.text.pdf.PdfContentByte;
|
|
import com.lowagie.text.pdf.PdfPCell;
|
|
import com.lowagie.text.pdf.PdfPTable;
|
|
import com.lowagie.text.pdf.PdfWriter;
|
|
import it.acxent.api.amz.AmzSellerApi;
|
|
import it.acxent.api.ebay.EbayAbliaApi;
|
|
import it.acxent.art.Wishlist;
|
|
import it.acxent.bank.consel.ConselReq;
|
|
import it.acxent.bank.infogroup.ShopnetReq;
|
|
import it.acxent.bank.paypal.PayPalReq;
|
|
import it.acxent.bank.poste2019.PosteReq;
|
|
import it.acxent.bank.sella.SellaReq;
|
|
import it.acxent.bank.sellaPCredit.SellaPCreditReq;
|
|
import it.acxent.bank.setefi.SetefiReq;
|
|
import it.acxent.bank.stripe.StripeResp;
|
|
import it.acxent.bank.xpay.XpayReq;
|
|
import it.acxent.brt.api.BrtApi;
|
|
import it.acxent.cart.Cart;
|
|
import it.acxent.cc.GoogleReview;
|
|
import it.acxent.common.Parm;
|
|
import it.acxent.common.PostazioneI;
|
|
import it.acxent.common.StatusMsg;
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.DBAdapter;
|
|
import it.acxent.db.ResParm;
|
|
import it.acxent.db.WcString;
|
|
import it.acxent.fattele._FeXmlAdapter;
|
|
import it.acxent.mail.MailMessage;
|
|
import it.acxent.mail.MailProperties;
|
|
import it.acxent.news.News;
|
|
import it.acxent.newsletter.CodaMessaggi;
|
|
import it.acxent.rd.RemoteDevice;
|
|
import it.acxent.util.FileWr;
|
|
import it.acxent.util.Vectumerator;
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.File;
|
|
import java.io.IOException;
|
|
import java.io.Serializable;
|
|
import java.sql.PreparedStatement;
|
|
import java.sql.SQLException;
|
|
import java.util.Calendar;
|
|
import java.util.Date;
|
|
|
|
public class Users extends it.acxent.common.Users implements Serializable {
|
|
private static final long serialVersionUID = -7378135042656835721L;
|
|
|
|
private RegCassa regCassa;
|
|
|
|
private long id_postazione;
|
|
|
|
protected Postazione postazione;
|
|
|
|
private Clifor clifor;
|
|
|
|
private long id_clifor;
|
|
|
|
private String id_nazione;
|
|
|
|
private Nazione nazione;
|
|
|
|
private String callingJsp;
|
|
|
|
private long flgOperatore;
|
|
|
|
private long flgNews;
|
|
|
|
protected Document document;
|
|
|
|
protected Table pdfcorpo;
|
|
|
|
protected PdfPTable pdfPcorpo;
|
|
|
|
protected PdfWriter writer;
|
|
|
|
private long id_documento;
|
|
|
|
private double tariffaProfessionista;
|
|
|
|
private double percProfessionista;
|
|
|
|
public static final Font PDF_fMedioB = new Font(2, 10.0F, 1);
|
|
|
|
public Users() {}
|
|
|
|
public Users(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public boolean isDeleteLogic() {
|
|
return false;
|
|
}
|
|
|
|
protected boolean isUseSafeUpdate() {
|
|
return true;
|
|
}
|
|
|
|
public Vectumerator<Users> findByClifor(long l_id_clifor, int pageNumber, int pageRows) {
|
|
String s_Sql_Find = "select A.* from USERS AS A";
|
|
String s_Sql_Order = " order by A.cognome, A.nome";
|
|
WcString wc = new WcString();
|
|
wc.addWc("A.id_clifor=" + l_id_clifor);
|
|
try {
|
|
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
|
|
return findRows(stmt, pageNumber, pageRows);
|
|
} catch (SQLException e) {
|
|
handleDebug(e);
|
|
return AB_EMPTY_VECTUMERATOR;
|
|
}
|
|
}
|
|
|
|
public void findFirstByClifor(long l_id_clifor) {
|
|
String s_Sql_Find = "select A.* from USERS AS A";
|
|
String s_Sql_Order = " order by A.cognome, A.nome";
|
|
WcString wc = new WcString();
|
|
wc.addWc("A.id_clifor=" + l_id_clifor);
|
|
try {
|
|
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
|
|
findFirstRecord(stmt);
|
|
} catch (SQLException e) {
|
|
handleDebug(e);
|
|
}
|
|
}
|
|
|
|
public void initApplicationParms(ApplParmFull ap) {
|
|
boolean debug = false;
|
|
if (ap != null) {
|
|
String l_tipoParm = "";
|
|
Parm bean = new Parm(ap);
|
|
DBAdapter.logDebug(debug, "anag.Users initParms: start");
|
|
l_tipoParm = "PARM_SMS";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("SMS_URL");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SMS_URL");
|
|
bean.setDescrizione("SMS_URL");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("http://gateway.skebby.it/api/send/smseasy/advanced/http.php");
|
|
bean.setNota("URL DEL SERVIZIO DI SMS TRAMITE SKEBBY");
|
|
bean.save();
|
|
bean.findByCodice("SMS_USER");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SMS_USER");
|
|
bean.setDescrizione("SMS_USER");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("ENKOUNTER");
|
|
bean.setNota("NOME UTENTE PER INVIO SMS TRAMITE SKEBBY");
|
|
bean.save();
|
|
bean.findByCodice("SMS_PASS");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SMS_PASS");
|
|
bean.setDescrizione("SMS_PASS");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("TOPlan100099");
|
|
bean.setNota("PASSWORD PER INVIO SMS TRAMITE SKEBBY");
|
|
bean.save();
|
|
l_tipoParm = "PARM_FATTURA";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("PERC_CONT_INTEGRATIVO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PERC_CONT_INTEGRATIVO");
|
|
bean.setDescrizione("PERC_CONT_INTEGRATIVO");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(2.0D);
|
|
bean.setNota("PERCENTUALE CONTRIBUTO INTEGRATIVO");
|
|
bean.save();
|
|
bean.findByCodice("PERC_RITENUTA_ACCONTO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PERC_RITENUTA_ACCONTO");
|
|
bean.setDescrizione("PERC_RITENUTA_ACCONTO");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(20.0D);
|
|
bean.setNota("PERCENTUALE RITENUTA ACCONTO");
|
|
bean.save();
|
|
bean.findByCodice("TIPO_FATTURE_VENDITA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("TIPO_FATTURE_VENDITA");
|
|
bean.setDescrizione("TIPO_FATTURE_VENDITA");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("CODICi TIPO DOCUMENTO FATTURA VENDITA SEPARATI DA , ");
|
|
bean.save();
|
|
bean.findByCodice("TIPO_FATTURE_ACQUISTO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("TIPO_FATTURE_ACQUISTO");
|
|
bean.setDescrizione("TIPO_FATTURE_ACQUISTO");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("CODICI TIPO DOCUMENTO FATTURA ACQUISTO SEPARATI DA , ");
|
|
bean.save();
|
|
l_tipoParm = "APPS";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("ESERCIZIO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ESERCIZIO");
|
|
bean.setDescrizione("ESERCIZIO");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D) {
|
|
Calendar cal = Calendar.getInstance();
|
|
bean.setNumero((double)cal.get(1));
|
|
}
|
|
bean.setNota("ESERCIZIO CORRENTE");
|
|
bean.save();
|
|
bean.findByCodice("OTTIMIZZO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("OTTIMIZZO");
|
|
bean.setDescrizione("OTTIMIZZO");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("1: ATTIVA OTTIMIZAZIONE FINDBYCR");
|
|
bean.save();
|
|
l_tipoParm = "VERSIONE";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("FATTURA_ELETTRONICA_ON");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("FATTURA_ELETTRONICA_ON");
|
|
bean.setDescrizione("FATTURA_ELETTRONICA_ON");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Se true, viene abilitata la generazione delle fatture elettroniche");
|
|
bean.save();
|
|
bean.findByCodice("RIGA_DOC_CODICE_ARTICOLO_ESPLICITO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("RIGA_DOC_CODICE_ARTICOLO_ESPLICITO");
|
|
bean.setDescrizione("RIGA_DOC_CODICE_ARTICOLO_ESPLICITO");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Se true, sulla riga documento il codice articolo puo' essere inserito nel caso di righe non nel db");
|
|
bean.save();
|
|
bean.findByCodice("AGENTI_ON");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("AGENTI_ON");
|
|
bean.setDescrizione("AGENTI_ON");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Se true, viene resa visibile l'inserimento agenti nelle anagrafica");
|
|
bean.save();
|
|
bean.findByCodice("ATR_ON");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ATR_ON");
|
|
bean.setDescrizione("ATR_ON");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Se true, viene reso visibile l'inserimento dati time report su cliente");
|
|
bean.save();
|
|
bean.findByCodice("PREZZO_CON_IVA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PREZZO_CON_IVA");
|
|
bean.setDescrizione("PREZZO_CON_IVA");
|
|
bean.setFlgTipo(5L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("1");
|
|
bean.setNota("Gestione prezzo articolo con o senza iva");
|
|
bean.save();
|
|
bean.findByCodice("SERIALI_UNIVOCI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SERIALI_UNIVOCI");
|
|
bean.setDescrizione("SERIALI_UNIVOCI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SERIALI UNIVOCI. IMPEDISCE L'INSERIMENTO DI DUE SERIALI UGUALI ANCHE PER ARTICOLI DIVERSI");
|
|
bean.save();
|
|
bean.findByCodice("VARIANTI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("VARIANTI");
|
|
bean.setDescrizione("VARIANTI");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("1");
|
|
bean.setNumero((double)Integer.valueOf(bean.getTesto()));
|
|
bean.setNota("Gestione varianti articolo: 0=NO, 1=SI");
|
|
bean.save();
|
|
bean.findByCodice("TAGLIE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("TAGLIE");
|
|
bean.setDescrizione("TAGLIE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Gestione taglie articolI");
|
|
bean.save();
|
|
bean.findByCodice("TESSUTI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("TESSUTI");
|
|
bean.setDescrizione("TESSUTI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Gestione articoli tessuti");
|
|
bean.save();
|
|
bean.findByCodice("PROGETTISTA_ARTICOLO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PROGETTISTA_ARTICOLO");
|
|
bean.setDescrizione("PROGETTISTA_ARTICOLO");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Gestione progettisti articoli con perc. di provvigione");
|
|
bean.save();
|
|
bean.findByCodice("IMMOBILI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("IMMOBILI");
|
|
bean.setDescrizione("IMMOBILI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Gestione immobili (es. Gaias)");
|
|
bean.save();
|
|
bean.findByCodice("ASTE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ASTE");
|
|
bean.setDescrizione("ASTE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Gestione aste (es. Gaias)");
|
|
bean.save();
|
|
bean.findByCodice("TAGLIE_LINGUE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("TAGLIE_LINGUE");
|
|
bean.setDescrizione("TAGLIE_LINGUE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("");
|
|
bean.setNota("Gestione Lingue per le Taglie");
|
|
bean.save();
|
|
bean.findByCodice("ANAG_DESC_COMPLETA_CON_TIPO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ANAG_DESC_COMPLETA_CON_TIPO");
|
|
bean.setDescrizione("ANAG_DESC_COMPLETA_CON_TIPO");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Nella descrizione clifor mette o non mette il tipo C o F in descrizione completa");
|
|
bean.save();
|
|
bean.findByCodice("ARTICOLO_CLIENTE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ARTICOLO_CLIENTE");
|
|
bean.setDescrizione("ARTICOLO_CLIENTE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("Ablilita legamne Articolo/Cliente B2B");
|
|
bean.save();
|
|
l_tipoParm = "ARTICOLO";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("ART_SIMBOLI_LAVAGGIO_DEFAULT");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ART_SIMBOLI_LAVAGGIO_DEFAULT");
|
|
bean.setDescrizione("ART_SIMBOLI_LAVAGGIO_DEFAULT");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("SIMBOLI LAVAGGIO DEFAULT<BR>LAVAGGIO,CANDEGGIO,ASCIUGATURA,STIRO,PULITURA A SECCO ");
|
|
bean.save();
|
|
bean.findByCodice("SEO_VERSION");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEO_VERSION");
|
|
bean.setDescrizione("SEO_VERSION");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("0, versione CC standard, 1, versione Tuttofoto");
|
|
bean.save();
|
|
l_tipoParm = "PATH";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("PATH_IMG_TAB_TAG");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PATH_IMG_TAB_TAG");
|
|
bean.setDescrizione("PATH_IMG_TAB_TAG");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_img/_imgTabellaTaglie/");
|
|
bean.setNota("Path immagini taglie relativo a docbase che finisce con /");
|
|
bean.save();
|
|
bean.findByCodice("PATH_IMG_BANNER");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PATH_IMG_BANNER");
|
|
bean.setDescrizione("PATH_IMG_BANNER");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_img/_imgBanner/");
|
|
bean.setNota("Path relativo a docbase che finisce con /");
|
|
bean.save();
|
|
bean.findByCodice("PATH_IMG_ART");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PATH_IMG_ART");
|
|
bean.setDescrizione("PATH_IMG_ART");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_img/_imgArt/");
|
|
bean.setNota("Path x immagini articoli relativo a docbase che finisce con /");
|
|
bean.save();
|
|
bean.findByCodice("PATH_IMG_TIPO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PATH_IMG_TIPO");
|
|
bean.setDescrizione("PATH_IMG_TIPO");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_img/_imgTipo/");
|
|
bean.setNota("Path x immagini tipo articolo relativo a docbase che finisce con /");
|
|
bean.save();
|
|
bean.findByCodice("ART_ATTACH_PATH");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ART_ATTACH_PATH");
|
|
bean.setDescrizione("ART_ATTACH_PATH");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_attach/_art/");
|
|
bean.setNota("Path x attach articoli relativo a docbase che finisce con /");
|
|
bean.save();
|
|
bean.findByCodice("CLIFOR_ATTACH_PATH");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CLIFOR_ATTACH_PATH");
|
|
bean.setDescrizione("CLIFOR_ATTACH_PATH");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_attach/_clifor/");
|
|
bean.setNota("Path x attach clienti fornitori relativo a docbase che finisce con /");
|
|
bean.save();
|
|
bean.findByCodice("DOC_ATTACH_PATH");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_ATTACH_PATH");
|
|
bean.setDescrizione("DOC_ATTACH_PATH");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_attach/_doc/");
|
|
bean.setNota("Path x documenti relativo a docbase che finisce con /");
|
|
bean.save();
|
|
l_tipoParm = "IMPORT";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("ART_IMPORT_FILE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ART_IMPORT_FILE");
|
|
bean.setDescrizione("ART_IMPORT_FILE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("fileImport.csv");
|
|
bean.setNota("File di import in genere csv. Verrà messo su PATH_TMP");
|
|
bean.save();
|
|
l_tipoParm = "MAIL_MSG";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("MSG_ORDINE_SPEDITO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MSG_ORDINE_SPEDITO");
|
|
bean.setDescrizione("MSG_ORDINE_SPEDITO");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Ordine spedito");
|
|
bean.setNota("Messaggio che vogliamo aggiungere alla mail invio ordine nel caso di ordine spedito.");
|
|
bean.save();
|
|
bean.findByCodice(Cart.P_CHECKOUTMSG);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(Cart.P_CHECKOUTMSG);
|
|
bean.setDescrizione(Cart.P_CHECKOUTMSG);
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mailMessage/checkOut.html");
|
|
bean.setNota("Path relativo a docbase");
|
|
bean.save();
|
|
bean.findByCodice(Parm.P_USERMSG);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(Parm.P_USERMSG);
|
|
bean.setDescrizione(Parm.P_USERMSG);
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mailMessage/userMsg.html");
|
|
bean.setNota("Path relativo a docbase");
|
|
bean.save();
|
|
bean.findByCodice(Parm.P_LOSTPWDMSG);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(Parm.P_LOSTPWDMSG);
|
|
bean.setDescrizione(Parm.P_LOSTPWDMSG);
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mailMessage/lostPwd.html");
|
|
bean.setNota("Path relativo a docbase");
|
|
bean.save();
|
|
bean.findByCodice(Parm.P_MLISTMSG);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(Parm.P_MLISTMSG);
|
|
bean.setDescrizione(Parm.P_MLISTMSG);
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mailMessage/ml.txt");
|
|
bean.setNota("Path relativo. Registrazione Mailing List");
|
|
bean.save();
|
|
bean.findByCodice(Parm.P_USERMSG);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(Parm.P_USERMSG);
|
|
bean.setDescrizione(Parm.P_USERMSG);
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mailMessage/userMsg.html");
|
|
bean.setNota("Path relativo. Registrazione Utente");
|
|
bean.save();
|
|
bean.findByCodice(Parm.P_RESOMSG);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(Parm.P_RESOMSG);
|
|
bean.setDescrizione(Parm.P_RESOMSG);
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mailMessage/reso.html");
|
|
bean.setNota("Path relativo. Reso merce");
|
|
bean.save();
|
|
bean.findByCodice("MAIL_ADMIN_SCAD_CI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MAIL_ADMIN_SCAD_CI");
|
|
bean.setDescrizione("MAIL_ADMIN_SCAD_CI");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("MAIL INVIATA DAL SISTEMA CON LA LISTA DEI CLIENTI CHE HANNO DOCUMENTI SCADUTI O IN SCADENZA.");
|
|
bean.save();
|
|
l_tipoParm = "CASSA SCONTRINI";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("DESC_SCONTRINO_FULL");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DESC_SCONTRINO_FULL");
|
|
bean.setDescrizione("DESC_SCONTRINO_FULL");
|
|
bean.setFlgTipo(5L);
|
|
if (bean.getNumero() > 1.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("STAMPA SU SCONTRINO DELLA DESCRIZIONE ARTICOLO COMPLETA");
|
|
bean.save();
|
|
bean.findByCodice("CASSA_STAMPA_DISPLAY");
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CASSA_STAMPA_DISPLAY");
|
|
bean.setDescrizione("CASSA_STAMPA_DISPLAY");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("STRINGA DA STAMPARE SUL DISPLAY DELLA CASSA QUANDO NON E' IN USO. PRIMA RIGA MAX CAR. 20.");
|
|
bean.save();
|
|
bean.findByCodice("CASSA_STAMPA_DISPLAY_TIMEOUT");
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CASSA_STAMPA_DISPLAY_TIMEOUT");
|
|
bean.setDescrizione("CASSA_STAMPA_DISPLAY_TIMEOUT");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(5.0D);
|
|
bean.setNota("TIMEOUT IN SECONDI PER IL DISPLAY DELLA CASSA DOPO LE STAMPE SCONTRINI FISCALI E NON");
|
|
bean.save();
|
|
bean.findByCodice("CASSA_STAMPA_DISPLAY1");
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CASSA_STAMPA_DISPLAY1");
|
|
bean.setDescrizione("CASSA_STAMPA_DISPLAY1");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("STRINGA DA STAMPARE SUL DISPLAY DELLA CASSA QUANDO NON E' IN USO. SECONDA RIGA MAX CAR. 20.");
|
|
bean.save();
|
|
bean.findByCodice("CASSA_STAMPA_PROMO");
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CASSA_STAMPA_PROMO");
|
|
bean.setDescrizione("CASSA_STAMPA_PROMO");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("STRINGA DA STAMPARE IN FONDO ALLO SCONTRINO CON UN TESTO LIBERO.");
|
|
bean.save();
|
|
bean.findByCodice("DESC_SCONTRINO_FULL");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DESC_SCONTRINO_FULL");
|
|
bean.setDescrizione("DESC_SCONTRINO_FULL");
|
|
bean.setFlgTipo(5L);
|
|
if (bean.getNumero() > 1.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("STAMPA SU SCONTRINO DELLA DESCRIZIONE ARTICOLO COMPLETA");
|
|
bean.save();
|
|
l_tipoParm = "IVA";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("CODICE_IVA_STD_VEND");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_STD_VEND");
|
|
bean.setDescrizione("CODICE_IVA_STD_VEND");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA STANDARD VENDITE ITALIA");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_STD_ACQ");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_STD_ACQ");
|
|
bean.setDescrizione("CODICE_IVA_STD_ACQ");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA STANDARD ACQUISTI");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_ESENTE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_ESENTE");
|
|
bean.setDescrizione("CODICE_IVA_ESENTE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA ESENTE PER SPESE E BOLLI");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_REGIME_MARGINE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_REGIME_MARGINE");
|
|
bean.setDescrizione("CODICE_IVA_REGIME_MARGINE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(11.0D);
|
|
bean.setNota("CODICE IVA ESENTE PER REGIME DEL MARGINE");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_REVERSE_CHARGE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_REVERSE_CHARGE");
|
|
bean.setDescrizione("CODICE_IVA_REVERSE_CHARGE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(99.0D);
|
|
bean.setNota("CODICE IVA ESENTE REVERSE CHARGE");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_ART8");
|
|
if ((long)bean.getDBState() == 1L) {
|
|
bean.setCodice("CODICE_IVA_ART8_A");
|
|
bean.setDescrizione("CODICE_IVA_ART8_A");
|
|
bean.save();
|
|
}
|
|
bean.findByCodice("CODICE_IVA_ART8_A");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_ART8_A");
|
|
bean.setDescrizione("CODICE_IVA_ART8_A");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA ESENTE ART. 8 LETTERA A PER ARTICOLI IN VENDITA EXTRA CEE SIA AZIENDA CHE PRIVATO");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_EXTRA_CEE_ESP_ABITUALE_ART8_C");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_EXTRA_CEE_ESP_ABITUALE_ART8_C");
|
|
bean.setDescrizione("CODICE_IVA_EXTRA_CEE_ESP_ABITUALE_ART8_C");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA ESENTE ART. 8 LETTERA C PER VENDITE EXTRA CEE SIA AZIENDA CHE PRIVATO PER ESPORTATORI ABITUALI");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_CEE_AZIENDA_ART41");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_CEE_AZIENDA_ART41");
|
|
bean.setDescrizione("CODICE_IVA_CEE_AZIENDA_ART41");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA ESENTE ART. 41 PER VENDITE CEE AZIENDA (CASO CORRETTO CON IVA_ESTERO_AZIENDA_ESENTE=TRUE)");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_ITA_CEE_AZIENDA_ART58");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_ITA_CEE_AZIENDA_ART58");
|
|
bean.setDescrizione("CODICE_IVA_ITA_CEE_AZIENDA_ART58");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA non imponibile ex art. 58 comma 1, DL 331/1993. PER VENDITE DA ITA A CEE AZIENDA");
|
|
bean.save();
|
|
bean.findByCodice("CODICE_IVA_ART9");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_IVA_ART9");
|
|
bean.setDescrizione("CODICE_IVA_ART9");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("CODICE IVA ESENTE ART. 9 PER SPESE TRASPORTO EXTRA UE (RAVINALE?)");
|
|
bean.save();
|
|
bean.findByCodice("IVA_ESTERO_AZIENDA_ESENTE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("IVA_ESTERO_AZIENDA_ESENTE");
|
|
bean.setDescrizione("IVA_ESTERO_AZIENDA_ESENTE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("TRUE O FALSE: SE FALSE, VIENE COMUNQUE APPLICATA L'IVA ITALIANA PER EXTRACEE ANCHE ALLE AZIENDE, ANCHE SE NON SAREBBE CORRETTO!!!<BR>ALTRIMENTI PER LE AZIENDE VIENE ESPOSTO IL PREZZO SENZA IVA (ART 41 CEE ART 8/A EXTRA CEE - GESTIONE CORRETTA)");
|
|
bean.save();
|
|
bean.findByCodice("IVA_CEE_ONE_STOP_SHOP");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("IVA_CEE_ONE_STOP_SHOP");
|
|
bean.setDescrizione("IVA_CEE_ONE_STOP_SHOP");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("TRUE O FALSE: MI INDICA COME COMPORTARSI NEL CASO DI VENDITE CEE A UTENTI FINALI. IN CASO ONE STOP SHOP= TRUE VANNO DEFINITE I CODICI IVA PER OGNI NAZIONE E ASSOCIATE ALLA NAZIONE, SIA IVA ORDINARIA CHE EVENTUALMENTE IVA REGIME DEL MARGINE<BR>ALTRIMENTI VIENE SEMPRE APPLICATA L'IVA ITALIANA (SOLO PER GLI UTENTI FINALI CASO 10.000 EUR MASSIMO DI VENDITE IN EUROPA L'ANNO A UTENTI FINALI)");
|
|
bean.save();
|
|
l_tipoParm = "DOCUMENTI";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("DOC_ARTICOLI_CON_CODICE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_ARTICOLI_CON_CODICE");
|
|
bean.setDescrizione("DOC_ARTICOLI_CON_CODICE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE IMPOSTATO LA DESCRIZIONE ARTICOLO COMPRENDE ANCHE IL CODICE (RAVINALE) PRIMA DEL NOME");
|
|
bean.save();
|
|
bean.findByCodice("DOC_ARTICOLI_CON_TIPO");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_ARTICOLI_CON_TIPO");
|
|
bean.setDescrizione("DOC_ARTICOLI_CON_TIPO");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE IMPOSTATO LA DESCRIZIONE ARTICOLO COMPRENDE ANCHE IL TIPO (RAVINALE) DOPO IL NOME");
|
|
bean.save();
|
|
bean.findByCodice("ORDINI_WWW_USA_PROG_WWW");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ORDINI_WWW_USA_PROG_WWW");
|
|
bean.setDescrizione("ORDINI_WWW_USA_PROG_WWW");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE IMPOSTATO USO PROGRESSIVO WWW GENERALE. UTILIZZATO ANCHE SU STAMPA DEL RIFERIMENTO INTERNO (TF)");
|
|
bean.save();
|
|
bean.findByCodice("DATA_FATTURA_PRIMA_DISPONIBILE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DATA_FATTURA_PRIMA_DISPONIBILE");
|
|
bean.setDescrizione("DATA_FATTURA_PRIMA_DISPONIBILE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("SE IMPOSTATO AD 1, AL SALVATAGGIO DELLE FATTURE EMESSE VIENE IMPOSTATA LA PRIMA DATA DISPONIBILE, ALTRIMENTI VIENE IMPOSTATA LA DATA DI OGGI.");
|
|
bean.save();
|
|
bean.findByCodice("BLOCCO_FATTURE_EMSTA");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("BLOCCO_FATTURE_EMSTA");
|
|
bean.setDescrizione("BLOCCO_FATTURE_EMSTA");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("IMPOSTA SE LE FATTURE EMESSE (1) O STAMPATE (2) DEVONO ESSERE BLOCCATE (NO SALVATAGGIO ED ELIMINAZIONE) OPPURE NO (0)");
|
|
bean.save();
|
|
bean.findByCodice("DOC_FIRMA_INVIO_FATTURA");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_FIRMA_INVIO_FATTURA");
|
|
bean.setDescrizione("DOC_FIRMA_INVIO_FATTURA");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("In allegato Vi inviamo il ns. documento del quale e' fatto obbligo da parte del destinatario la stampa e la conservazione del cartaceo nel rispetto dei termini di legge (Ris. Min. 30/07/1990, n. 450217, Circ. Min. 23/02/1994 n. 13/e, Ris. Min. 28/05/1997, n. 132/e).");
|
|
bean.setNota("TESTO DA INVIARE PER EMAIL UNITAMENTE ALL'INVIO DI UNA FATTURA");
|
|
bean.save();
|
|
bean.findByCodice("DOC_BANCA_APPOGGIO_DESC");
|
|
bean.delete();
|
|
bean.findByCodice("DOC_BANCA_APPOGGIO_IBAN");
|
|
bean.delete();
|
|
bean.findByCodice("DOC_BCC");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_BCC");
|
|
bean.setDescrizione("DOC_BCC");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("BCC PER L'INVIO DEI DOCUMENTI. IN GENERE amministrazione@xxx.xxx");
|
|
bean.save();
|
|
bean.findByCodice("RIP_NOTA_SCHEDA_RIPARAZIONE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("RIP_NOTA_SCHEDA_RIPARAZIONE");
|
|
bean.setDescrizione("RIP_NOTA_SCHEDA_RIPARAZIONE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Note clientela scheda riparazione");
|
|
bean.setNota("RIP_NOTA_SCHEDA_RIPARAZIONE");
|
|
bean.save();
|
|
bean.findByCodice("RIP_NOTA_ACCETTAZIONE_PREVENTIVO");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("RIP_NOTA_ACCETTAZIONE_PREVENTIVO");
|
|
bean.setDescrizione("RIP_NOTA_ACCETTAZIONE_PREVENTIVO");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Note clientela per accettazione o non accettazione preventivo");
|
|
bean.setNota("RIP_NOTA_ACCETTAZIONE_PREVENTIVO");
|
|
bean.save();
|
|
bean.findByCodice("ID_DOC_ORDINE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ID_DOC_ORDINE");
|
|
bean.setDescrizione("ID_DOC_ORDINE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(8.0D);
|
|
bean.setNota("Id tipo documento Ordine per la generazione automatica ordini");
|
|
bean.save();
|
|
bean.findByCodice("ID_DOC_ORDINE_TAGLIO");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ID_DOC_ORDINE_TAGLIO");
|
|
bean.setDescrizione("ID_DOC_ORDINE_TAGLIO");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(26.0D);
|
|
bean.setNota("Id tipo documento Ordine Taglio per nuovo ordine direttamente da articolo");
|
|
bean.save();
|
|
bean.findByCodice("ID_DOC_ORDINE_WWW");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ID_DOC_ORDINE_WWW");
|
|
bean.setDescrizione("ID_DOC_ORDINE_WWW");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(-1.0D);
|
|
bean.setNota("Id tipo documento Ordine commercio elettronico");
|
|
bean.save();
|
|
bean.findByCodice("ID_DOC_PRENOTAZIONE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ID_DOC_PRENOTAZIONE");
|
|
bean.setDescrizione("ID_DOC_PRENOTAZIONE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(0.0D);
|
|
bean.save();
|
|
bean.findByCodice("ID_DOC_RICEVUTA");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ID_DOC_RICEVUTA");
|
|
bean.setDescrizione("ID_DOC_RICEVUTA");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(9.0D);
|
|
bean.setNota("Id tipo documento Ricevuta per la gestione delle ricevute");
|
|
bean.save();
|
|
bean.findByCodice("ID_DOC_CASSA");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ID_DOC_CASSA");
|
|
bean.setDescrizione("ID_DOC_CASSA");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("Id tipo documento cassa");
|
|
bean.save();
|
|
bean.findByCodice("ID_DOC_RIPARAZIONE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ID_DOC_RIPARAZIONE");
|
|
bean.setDescrizione("ID_DOC_RIPARAZIONE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(16.0D);
|
|
bean.setNota("Id tipo documento riparazione");
|
|
bean.save();
|
|
bean.findByCodice("HEAD_SLIP");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("HEAD_SLIP");
|
|
bean.setDescrizione("HEAD_SLIP");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("");
|
|
bean.setNota("Intestazione stampe slip");
|
|
bean.save();
|
|
bean.findByCodice("MAIL_INVIO_DOC");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MAIL_INVIO_DOC");
|
|
bean.setDescrizione("MAIL_INVIO_DOC");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mail@dominio.com");
|
|
bean.setNota("INDIRIZZO EMAIL DIDEFAULT PER INVIO DOCUMENTI");
|
|
bean.save();
|
|
bean.findByCodice("HEAD_DOC1");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("HEAD_DOC1");
|
|
bean.setDescrizione("HEAD_DOC1");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("HEADER DOCUMENTI 1");
|
|
bean.save();
|
|
bean.findByCodice("HEAD_DOC2");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("HEAD_DOC2");
|
|
bean.setDescrizione("HEAD_DOC2");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("HEADER DOCUMENTI 2");
|
|
bean.save();
|
|
bean.findByCodice("FOOT_DOC1");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("FOOT_DOC1");
|
|
bean.setDescrizione("FOOT_DOC1");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Footer documenti 1");
|
|
bean.setNota("FOOTER DOCUMENTI 1");
|
|
bean.save();
|
|
bean.findByCodice("FOOT_DOC2");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("FOOT_DOC2");
|
|
bean.setDescrizione("FOOT_DOC2");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Footer documenti 2");
|
|
bean.setNota("FOOTER DOCUMENTI 2");
|
|
bean.save();
|
|
bean.findByCodice("DOC_LEADROW");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_LEADROW");
|
|
bean.setDescrizione("DOC_LEADROW");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("NUMERO RIGHE DI TESTA NEI DOCUMENTI. DEFAULT 12 SE NON IMPOSTATO");
|
|
bean.save();
|
|
bean.findByCodice("DOC_FONT_ROW_SIZE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_FONT_ROW_SIZE");
|
|
bean.setDescrizione("DOC_FONT_ROW_SIZE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumeroInt() == 0)
|
|
bean.setNumero(12.0D);
|
|
bean.setNota("PUNTI DIMENSIONE CARATTERI RIGHE DI DEFAULT SE NON IMPOSTATO SU TIPO DOCUMENTO");
|
|
bean.save();
|
|
bean.findByCodice("DOC_FONT_ROW_SIZE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_FONT_ROW_SIZE");
|
|
bean.setDescrizione("DOC_FONT_ROW_SIZE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumeroInt() == 0)
|
|
bean.setNumero(12.0D);
|
|
bean.setNota("PUNTI DIMENSIONE CARATTERI RIGHE");
|
|
bean.save();
|
|
bean.findByCodice("DOC_POSIZIONE_NOTA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DOC_POSIZIONE_NOTA");
|
|
bean.setDescrizione("DOC_POSIZIONE_NOTA");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumeroInt() == 0)
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("POSIZIONE NOTA: 0--> PRIMA DELLE RIGHE, 1--> DOPO LE RIGHE");
|
|
bean.save();
|
|
bean.findByCodice("MSG_AVVISO_PREN_EMAIL");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MSG_AVVISO_PREN_EMAIL");
|
|
bean.setDescrizione("MSG_AVVISO_PREN_EMAIL");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Gentile <%=cliente%>\n la prenotazione <%=ndocumento%> è disponibile presso il ns. negozio\n____firma___");
|
|
bean.setNota("MESSAGGIO VIA EMAIL PER AVVISO PRENOTAZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MSG_AVVISO_PREN_SMS");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MSG_AVVISO_PREN_SMS");
|
|
bean.setDescrizione("MSG_AVVISO_PREN_SMS");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Gentile <%=cliente%>\n la prenotazione <%=ndocumento%> e' disponibile presso il ns. negozio\n____firma___");
|
|
bean.setNota("MESSAGGIO VIA SMS PER AVVISO PRENOTAZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MSG_AVVISO_RIP_EMAIL");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MSG_AVVISO_RIP_EMAIL");
|
|
bean.setDescrizione("MSG_AVVISO_RIP_EMAIL");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Gentile <%=cliente%>\n l'oggetto relativo alla scheda riparazione n. <%=ndocumento%> è disponibile presso il ns. negozio\n____firma___");
|
|
bean.setNota("MESSAGGIO VIA EMAIL PER AVVISO RIPARAZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MSG_AVVISO_RIP_SMS");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MSG_AVVISO_RIP_SMS");
|
|
bean.setDescrizione("MSG_AVVISO_RIP_SMS");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("Gentile <%=cliente%>\n l'oggetto relativo alla scheda riparazione n. <%=ndocumento%> e' disponibile presso il ns. negozio\n____firma___");
|
|
bean.setNota("MESSAGGIO VIA SMS PER AVVISO RIPARAZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MSG_EMAIL_FROM");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MSG_EMAIL_FROM");
|
|
bean.setDescrizione("MSG_EMAIL_FROM");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("XXX@XXX.COM");
|
|
bean.setNota("CASELLA EMAIL FROM MESSAGGIO AVVISO VIA EMAIL");
|
|
bean.save();
|
|
bean.findByCodice("DESTINAZIONE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DESTINAZIONE");
|
|
bean.setDescrizione("DESTINAZIONE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("SE LA DESTINAZIONE E' LA STESSA DEL CLIENTE<BR>1. STAMPA DESTINAZIONE IDEM <br>0. NON STAMPA NIENTE");
|
|
bean.save();
|
|
bean.findByCodice("STAMPA_NOME_DOCUMENTO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("STAMPA_NOME_DOCUMENTO");
|
|
bean.setDescrizione("STAMPA_NOME_DOCUMENTO");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("NOME IDENTIFICATIVO DOCUMENTO PER LE STAMPE PDF. IL NOME E' DEL TIPO<BR>[TIPODOC]-[PROG]-[PROGAGG]-[ANNODOC]-[NOMEDOC].PDF");
|
|
bean.save();
|
|
bean.findByCodice("STAMPA_BORDI_COLONNE_DOCUMENTO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("STAMPA_BORDI_COLONNE_DOCUMENTO");
|
|
bean.setDescrizione("STAMPA_BORDI_COLONNE_DOCUMENTO");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNumero(0.0D);
|
|
bean.setNota("STAMPA AUTOMATICAMENTE I BORDI DEL CORPO SE SETTATO A 1 NEL METODO inserisciDescRigaDocumentoNew DI DOCUMENTO");
|
|
bean.save();
|
|
bean.findByCodice("STAMPA_INDENTAZIONE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("STAMPA_INDENTAZIONE");
|
|
bean.setDescrizione("STAMPA_INDENTAZIONE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNumero(1.0D);
|
|
bean.setNota("STAMPA AUTOMATICAMENTE UN'INDENTAZIONE SULLE RIGHE SUCCESSIVE ALLA PRIMA SE SETTATO A 1 NEL METODO inserisciDescRigaDocumentoNew DI DOCUMENTO");
|
|
bean.save();
|
|
l_tipoParm = "SMS";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("SMS_PDU");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SMS_PDU");
|
|
bean.setDescrizione("SMS_PDU");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("INDICA SE IL MESSAGGIO DEVE ESSERE INVIATO IN FORMATO PDU");
|
|
bean.save();
|
|
bean.findByCodice("SMS_SERVER");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SMS_SERVER");
|
|
bean.setDescrizione("SMS_SERVER");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("localhost");
|
|
bean.setNota("INDIRIZZO IP SMS GATEWAY SERVER. INDIRIZZO IP O NOME HOST");
|
|
bean.save();
|
|
bean.findByCodice("SMS_PORT");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SMS_PORT");
|
|
bean.setDescrizione("SMS_PORT");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumeroInt() == 0)
|
|
bean.setNumero(441.0D);
|
|
bean.setNota("PORTA SMS GATEWAY SERVER. DEFAULT 443");
|
|
bean.save();
|
|
l_tipoParm = "MAILING LIST";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("MAIL_LIST_ON");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MAIL_LIST_ON");
|
|
bean.setDescrizione("MAIL_LIST_ON");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("false: MAILING LIST OFF<BR>true: MAILING LIST ON (NECESSITA DI CONFIGURAZIONI LATO SERVER)");
|
|
bean.save();
|
|
bean.findByCodice("MAIL_LIST_FILE_CR");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MAIL_LIST_FILE_CR");
|
|
bean.setDescrizione("MAIL_LIST_FILE_CR");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("_tmp/list.txt");
|
|
bean.setNota("PATH RELATIVO A DOCBASE DEL FILE list MAILING LIST. UTILIZZATA PER ANAGRAFICA CLIENTI");
|
|
bean.save();
|
|
bean.findByCodice("MAIL_LIST_MAIL_CR");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MAIL_LIST_MAIL_CR");
|
|
bean.setDescrizione("MAIL_LIST_MAIL_CR");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("newsletter@dominio.it");
|
|
bean.setNota("INDIRIZZO MAIL PER INVIO MAILING LIST ANAGRAFICHE.");
|
|
bean.save();
|
|
l_tipoParm = "LABEL";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("LABEL_ANAG_SIZE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ANAG_SIZE");
|
|
bean.setDescrizione("LABEL_ANAG_SIZE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("57,32");
|
|
bean.setNota("DIMENSIONE ETICHETTA STAMPA SU ZEBRA ANAGRAFICHE IN mm. xx,yy");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ANAG_FONT_SIZE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ANAG_FONT_SIZE");
|
|
bean.setDescrizione("LABEL_ANAG_FONT_SIZE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(10.0D);
|
|
bean.setNota("DIMENSIONE FONT ETICHETTA PER ANAGRAFICHE.");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ANAG_A4_COL_ROW");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ANAG_A4_COL_ROW");
|
|
bean.setDescrizione("LABEL_ANAG_A4_COL_ROW");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("4,10");
|
|
bean.setNota("DIMENSIONE ETICHETTA STAMPA SU A4 ANAGRAFICA IN NUMERO COLONNE,RIGHE col,row");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ANAG_A4_MARGINE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ANAG_A4_MARGINE");
|
|
bean.setDescrizione("LABEL_ANAG_A4_MARGINE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("DIMENSIONE MARGINE PER STAMPA ETICHETTE ANAGRAFICHE SU A4 ARTICOLI (DI SOLITO 2)");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ART_SIZE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ART_SIZE");
|
|
bean.setDescrizione("LABEL_ART_SIZE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("57,32");
|
|
bean.setNota("DIMENSIONE ETICHETTA STAMPA SU ZEBRA ARTICOLI IN mm. xx,yy");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ART_FONT_SIZE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ART_FONT_SIZE");
|
|
bean.setDescrizione("LABEL_ART_FONT_SIZE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(6.0D);
|
|
bean.setNota("DIMENSIONE FONT ETICHETTA PER ARTICOLI.");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ART_A4_ZEBRA");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ART_A4_ZEBRA");
|
|
bean.setDescrizione("LABEL_ART_A4_ZEBRA");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("0 O FALSE: STAMPA ETICHETTE IN A4<BR>1 O TRUE: STAMPA ETICHETTE SU ZEBRA (O SIMILI)");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ART_A4_COL_ROW");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ART_A4_COL_ROW");
|
|
bean.setDescrizione("LABEL_ART_A4_COL_ROW");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("4,10");
|
|
bean.setNota("DIMENSIONE ETICHETTA STAMPA SU A4 ARTICOLI IN NUMERO COLONNE,RIGHE col,row");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ART_A4_MARGINE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ART_A4_MARGINE");
|
|
bean.setDescrizione("LABEL_ART_A4_MARGINE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("DIMENSIONE MARGINE PER STAMPA ETICHETTE A4 ARTICOLI (DI SOLITO 2)");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_ART_ACC_FONT_SIZE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_ART_ACC_FONT_SIZE");
|
|
bean.setDescrizione("LABEL_ART_ACC_FONT_SIZE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(5.0D);
|
|
bean.setNota("DIMENSIONE FONT ETICHETTA PER LABEL ACCESSORI ARTICOLI.");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_PK_LIST_SIZE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_PK_LIST_SIZE");
|
|
bean.setDescrizione("LABEL_PK_LIST_SIZE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("159,104");
|
|
bean.setNota("DIMENSIONE ETICHETTA PAKING LIST STAMPA SU ZEBRA ARTICOLI IN mm. xx,yy");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_PK_LIST_FONT_SIZE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_PK_LIST_FONT_SIZE");
|
|
bean.setDescrizione("LABEL_PK_LIST_FONT_SIZE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(6.0D);
|
|
bean.setNota("DIMENSIONE FONT ETICHETTA PER LABEL PACKING LIST ARTICOLI.");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_PK_LIST_A4_ZEBRA");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_PK_LIST_A4_ZEBRA");
|
|
bean.setDescrizione("LABEL_PK_LIST_A4_ZEBRA");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("0 O FALSE: STAMPA ETICHETTE PACKING LIST IN A4<BR>1 O TRUE: STAMPA ETICHETTE SU ZEBRA (O SIMILI)");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_PK_LIST_A4_COL_ROW");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_PK_LIST_A4_COL_ROW");
|
|
bean.setDescrizione("LABEL_PK_LIST_A4_COL_ROW");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("2,2");
|
|
bean.setNota("DIMENSIONE ETICHETTA PAKING LIST STAMPA SU A4 ARTICOLI IN NUMERO COLONNE,RIGHE col,row");
|
|
bean.save();
|
|
bean.findByCodice("LABEL_PK_LIST_A4_MARGINE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("LABEL_PK_LIST_A4_MARGINE");
|
|
bean.setDescrizione("LABEL_PK_LIST_A4_MARGINE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("DIMENSIONE MARGINE PER STAMPA ETICHETTE PACKING LIST SU A4 ARTICOLI (DI SOLITO 2)");
|
|
bean.save();
|
|
l_tipoParm = "ADMIN";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("DBNAME2");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DBNAME2");
|
|
bean.setDescrizione("DBNAME2");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNumero(0.0D);
|
|
bean.setNota("PERCORSO DB NUMERO SUPPLEMENTARE (ES. PER IMPORTAZIONI)");
|
|
bean.save();
|
|
bean.findByCodice("DBDRIVER2");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("DBDRIVER2");
|
|
bean.setDescrizione("DBDRIVER2");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("DRIVER DB NUMERO SUPPLEMENTARE (ES. PER IMPORTAZIONI)");
|
|
bean.save();
|
|
bean.findByCodice("USER2");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("USER2");
|
|
bean.setDescrizione("USER2");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("UTENTE DB NUMERO SUPPLEMENTARE (ES. PER IMPORTAZIONI)");
|
|
bean.save();
|
|
bean.findByCodice("PASSWORD2");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PASSWORD2");
|
|
bean.setDescrizione("PASSWORD2");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("PASSWORD DB NUMERO SUPPLEMENTARE (ES. PER IMPORTAZIONI)");
|
|
bean.save();
|
|
bean.findByCodice("SCONTO_3_PERCENTUALI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SCONTO_3_PERCENTUALI");
|
|
bean.setDescrizione("SCONTO_3_PERCENTUALI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE TRUE UTILIZZIAMO LE 3 PERCENTUALI DI SCONTO");
|
|
bean.save();
|
|
l_tipoParm = "MAGAZZINO";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("USA_MAGAZZINO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("USA_MAGAZZINO");
|
|
bean.setDescrizione("USA MAGAZZINO SU ARTICOLI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setTesto("");
|
|
bean.setNota("FLAG USA MAGAZZINO. SERVE PER PRENDERE LA QUANTITA' TRAMITE I MOVIMENTI SU RIGA DOCUMENTO (0 false, DEFAULT)<BR>SE 1 TRUE LE QUANTITA' LE PRENDO DIRETTAMENTE DAI VALORI IMPOSTATI SU ARTICOLO O ARTICOLO VARIANTE OPPURE DIRETTAMENTE DALLE TABELLA ARTICOLO O ARTICOLO_VARIANTE (ES. ZANIERI). NON C'E' IN QUESTO CASO UNA GESTIONE VERA E PROPRIA DEL MAGAZZINO. UTILIZZATO NEL CASO IN CUI LE QUANTITà VENGANO AGGIORNATE TRAMITE CRONTAB DA UN PROGRAMMA ESTERNO");
|
|
bean.save();
|
|
bean.findByCodice("USA_QUANTITA_INTERE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("USA_QUANTITA_INTERE");
|
|
bean.setDescrizione("USA QUANTITA' INTERE, SUPRATTUTTO IN STAMPA DOCUMENTI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setTesto("");
|
|
bean.setNota("SE VERO, SULLE STAMPE CONSIDERO QUANTITA' INTERE");
|
|
bean.save();
|
|
bean.findByCodice("STORNO_ORDINE_A_FORNITORE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("STORNO_ORDINE_A_FORNITORE");
|
|
bean.setDescrizione("STORNO_ORDINE_A_FORNITORE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setTesto("");
|
|
bean.setNota("CAUSALE I MAGAZZINO DI STORNO PER LA CHIUSURA DI RIGHE ORDINE A FORNITORE PRIMA DELLO SCARICO DI TUTTA LA QUANTITA' ORDINATA.");
|
|
bean.save();
|
|
l_tipoParm = "SEISOFT";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("SEISOFT_CONTO_RM_IVA_ESENTE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_RM_IVA_ESENTE");
|
|
bean.setDescrizione("SEISOFT_CONTO_RM_IVA_ESENTE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("rm36");
|
|
bean.setNota("SEISOFT_CONTO_RM_IVA_ESENTE");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_NOL_AZ");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_NOL_AZ");
|
|
bean.setDescrizione("SEISOFT_CONTO_NOL_AZ");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("2020");
|
|
bean.setNota("SEISOFT_CONTO_NOL_AZ");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_RM_IVA_VEND");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_RM_IVA_VEND");
|
|
bean.setDescrizione("SEISOFT_CONTO_RM_IVA_VEND");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("rm22");
|
|
bean.setNota("SEISOFT_CONTO_RM_IVA_VEND");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_NOL_PRIV");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_NOL_PRIV");
|
|
bean.setDescrizione("SEISOFT_CONTO_NOL_PRIV");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("2021");
|
|
bean.setNota("SEISOFT_CONTO_NOL_PRIV");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_SPESE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_SPESE");
|
|
bean.setDescrizione("SEISOFT_CONTO_SPESE");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("0099");
|
|
bean.setNota("SEISOFT_CONTO_SPESE");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_VEND_AZ");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_VEND_AZ");
|
|
bean.setDescrizione("SEISOFT_CONTO_VEND_AZ");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("0001");
|
|
bean.setNota("SEISOFT_CONTO_VEND_AZ");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_VEND_PRIV");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_VEND_PRIV");
|
|
bean.setDescrizione("SEISOFT_CONTO_VEND_PRIV");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("0002");
|
|
bean.setNota("SEISOFT_CONTO_VEND_PRIV");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_VEND_PRIV_USATO");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_VEND_PRIV_USATO");
|
|
bean.setDescrizione("SEISOFT_CONTO_VEND_PRIV_USATO");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("2030");
|
|
bean.setNota("SEISOFT_CONTO_VEND_PRIV_USATO");
|
|
bean.save();
|
|
bean.findByCodice("SEISOFT_CONTO_VEND_AZ_USATO");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("SEISOFT_CONTO_VEND_AZ_USATO");
|
|
bean.setDescrizione("SEISOFT_CONTO_VEND_AZ_USATO");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("2030");
|
|
bean.setNota("SEISOFT_CONTO_VEND_AZ_USATO");
|
|
bean.save();
|
|
l_tipoParm = "WWW";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("WEB_SEND_ORDER_MAIL_CODE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("WEB_SEND_ORDER_MAIL_CODE");
|
|
bean.setDescrizione("WEB_SEND_ORDER_MAIL_CODE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("MODELLI INVIO ORDINE WWW AD HOC<BR>0 --> STANDARD<BR>1--> RAVINALE<BR>2--> TUTTOFOTO<BR>99--> FRAMEWORK CC");
|
|
bean.save();
|
|
bean.findByCodice("QTA_MINIMA_VISIBILE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("QTA_MINIMA_VISIBILE");
|
|
bean.setDescrizione("QTA_MINIMA_VISIBILE");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("QUANTITA' MINIMA PER LA VISUALIZZAZIONE DELL'ARTICOLO SU WEB");
|
|
bean.save();
|
|
bean.findByCodice("ORDINI_WEB_ORE_ANNULLAMENTO");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("ORDINI_WEB_ORE_ANNULLAMENTO");
|
|
bean.setDescrizione("ORDINI_WEB_ORE_ANNULLAMENTO");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("ORE DOPO LE QUALI L'ORDINE WEB NON FINALIZZATO VIENE CANCELLATO<BR>0--> IGNORA");
|
|
bean.save();
|
|
bean.findByCodice("USE_SEARCH_LAST_2_OCCURRENCE");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("USE_SEARCH_LAST_2_OCCURRENCE");
|
|
bean.setDescrizione("USE_SEARCH_LAST_2_OCCURRENCE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE USE_FULL_TEXT E' DISATTIVATO, EFFETTUA LA RICERCA SMART PER OCCORRENZE, FALSE SOLO LE OCCORRENZE + ALTE, TRUE LE 2 OCCORRENZE + ALTE");
|
|
bean.save();
|
|
l_tipoParm = "RIBA AZIENDA";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("AZIENDA_CODICE_SIA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("AZIENDA_CODICE_SIA");
|
|
bean.setDescrizione("AZIENDA_CODICE_SIA");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("CODICE DELL'AZIENDA ATTRIBUITO DALLA SIA.");
|
|
bean.save();
|
|
bean.findByCodice("AZIENDA_PIVA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("AZIENDA_PIVA");
|
|
bean.setDescrizione("AZIENDA_PIVA");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("PARTITA IVA DELL'AZIENDA.");
|
|
bean.save();
|
|
l_tipoParm = "RIBA";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("PATH_FILE_RIBA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PATH_FILE_RIBA");
|
|
bean.setDescrizione("PATH_FILE_RIBA");
|
|
bean.setFlgTipo(0L);
|
|
bean.setTesto("_tmp/riba/");
|
|
bean.setNota("PATH DI DESTINAZIONE DEI FILE RIBA.");
|
|
bean.save();
|
|
l_tipoParm = "MENU SIDEBAR";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("MNU_DOC_STD");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_DOC_STD");
|
|
bean.setDescrizione("MNU_DOC_STD");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR DOCUMENTI E ANAGRAFICHE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_COAVE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_COAVE");
|
|
bean.setDescrizione("MNU_COAVE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR AUTONOLEGGIO ");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CONTRATTI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CONTRATTI");
|
|
bean.setDescrizione("MNU_CONTRATTI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR CONTRATTI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_WWW");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_WWW");
|
|
bean.setDescrizione("MNU_WWW");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR WWW");
|
|
bean.save();
|
|
bean.findByCodice("MNU_BANNER");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_BANNER");
|
|
bean.setDescrizione("MNU_BANNER");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR BANNER");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CONFIG_ADMIN");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CONFIG_ADMIN");
|
|
bean.setDescrizione("MNU_CONFIG_ADMIN");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR CONFIGURAZIONE ADMIN");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CONFIG_ANAG");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CONFIG_ANAG");
|
|
bean.setDescrizione("MNU_CONFIG_ANAG");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR CONFIGURAZIONE ANAGRAFICHE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CONFIG_ART");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CONFIG_ART");
|
|
bean.setDescrizione("MNU_CONFIG_ART");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR CONFIGURAZINE ARTICOLI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CONFIG_CONTAB");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CONFIG_CONTAB");
|
|
bean.setDescrizione("MNU_CONFIG_CONTAB");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR CONFIGURAZIONE CONTABILITA'");
|
|
bean.save();
|
|
bean.findByCodice("MNU_FILATI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_FILATI");
|
|
bean.setDescrizione("MNU_FILATI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR FILATI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_LAVORAZIONI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_LAVORAZIONI");
|
|
bean.setDescrizione("MNU_LAVORAZIONI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR LAVORAZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_NEWS");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_NEWS");
|
|
bean.setDescrizione("MNU_NEWS");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR NEWS");
|
|
bean.save();
|
|
bean.findByCodice("MNU_NEWSLETTER");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_NEWSLETTER");
|
|
bean.setDescrizione("MNU_NEWSLETTER");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR NEWSLETTER");
|
|
bean.save();
|
|
bean.findByCodice("MNU_TESSUTI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_TESSUTI");
|
|
bean.setDescrizione("MNU_TESSUTI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR TESSUTI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_TESSITURA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_TESSITURA");
|
|
bean.setDescrizione("MNU_TESSITURA");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR TESSITURA");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CONFEZIONE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CONFEZIONE");
|
|
bean.setDescrizione("MNU_CONFEZIONE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR CONFEZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CC");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CC");
|
|
bean.setDescrizione("MNU_CC");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR ECOMMERCE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_FACE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_FACE");
|
|
bean.setDescrizione("MNU_FACE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR FACE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_FR");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_FR");
|
|
bean.setDescrizione("MNU_FR");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU SIDEBAR FACE RECOGNITION");
|
|
bean.save();
|
|
l_tipoParm = "MENU MAIN";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("MNU_M_DOC_STD");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_DOC_STD");
|
|
bean.setDescrizione("MNU_M_DOC_STD");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN STANDARD DOCUMENTI E ANAGRAFICHE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_COAVE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_COAVE");
|
|
bean.setDescrizione("MNU_M_COAVE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN COAVE. NON ATTIVARE MENU DOC STD");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_CASSA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_CASSA");
|
|
bean.setDescrizione("MNU_M_CASSA");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN CASSA");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_EBAY");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_EBAY");
|
|
bean.setDescrizione("MNU_M_EBAY");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN EBAY");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_PRENOTAZIONI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_PRENOTAZIONI");
|
|
bean.setDescrizione("MNU_M_PRENOTAZIONI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN PRENOTAZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_RIPARAZIONI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_RIPARAZIONI");
|
|
bean.setDescrizione("MNU_M_RIPARAZIONI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN RIPARAZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_ORDINI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_ORDINI");
|
|
bean.setDescrizione("MNU_M_ORDINI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN ORDINI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_FILATI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_FILATI");
|
|
bean.setDescrizione("MNU_M_FILATI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN FILATI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_TESSUTI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_TESSUTI");
|
|
bean.setDescrizione("MNU_M_TESSUTI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN TESSUTI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_TESSITURA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_TESSITURA");
|
|
bean.setDescrizione("MNU_M_TESSITURA");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN TESSITURA");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_TESSITURA_PRODUZIONE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_TESSITURA_PRODUZIONE");
|
|
bean.setDescrizione("MNU_M_TESSITURA_PRODUZIONE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN TESSITURA AVANZAMENTO PRODUZIONE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_ARTICOLI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_ARTICOLI");
|
|
bean.setDescrizione("MNU_M_ARTICOLI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN GEST ARTICOLI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_CC");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_CC");
|
|
bean.setDescrizione("MNU_M_CC");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN ECOMMERCE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_CC_GODMODE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_CC_GODMODE");
|
|
bean.setDescrizione("MNU_CC_GODMODE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN ECOMMERCE GODMODE PER ALTRI SITI ECOMMERCE VISIBILE SOLO DA UTENTE 1");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_CONFEZIONE");
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_CONFEZIONE");
|
|
bean.setDescrizione("MNU_M_CONFEZIONE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU CONFEZIONI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_FACE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_FACE");
|
|
bean.setDescrizione("MNU_M_FACE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN FACE");
|
|
bean.save();
|
|
bean.findByCodice("MNU_M_FR");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_M_FR");
|
|
bean.setDescrizione("MNU_M_FR");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU MAIN FACE RECOGNITION");
|
|
bean.save();
|
|
l_tipoParm = "MENU GESTIONE";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("MNU_GEST_ARTICOLI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_GEST_ARTICOLI");
|
|
bean.setDescrizione("MNU_GEST_ARTICOLI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU GEST ARTICOLI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_GEST_CONTATTI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_GEST_CONTATTI");
|
|
bean.setDescrizione("MNU_GEST_CONTATTI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU GEST CONTATTI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_GEST_PAGAMENTI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_GEST_PAGAMENTI");
|
|
bean.setDescrizione("MNU_GEST_PAGAMENTI");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU GEST PAGAMENTI");
|
|
bean.save();
|
|
bean.findByCodice("MNU_GEST_RIBA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_GEST_RIBA");
|
|
bean.setDescrizione("MNU_GEST_RIBA");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU GEST RIBA");
|
|
bean.save();
|
|
bean.findByCodice("MNU_GEST_SCADENZE");
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("MNU_GEST_SCADENZE");
|
|
bean.setDescrizione("MNU_GEST_SCADENZE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("MENU GEST SCADENZE");
|
|
bean.save();
|
|
l_tipoParm = "COSTI DEFAULT";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("PERC_RICARICO_DEFAULT");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("PERC_RICARICO_DEFAULT");
|
|
bean.setDescrizione("PERC_RICARICO_DEFAULT");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("PERCENTUALE DI RICARICO DI DEFAULT PER ARTICOLI");
|
|
bean.save();
|
|
bean.findByCodice("COSTO_SPESE_FISSE_DEFAULT");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("COSTO_SPESE_FISSE_DEFAULT");
|
|
bean.setDescrizione("COSTO_SPESE_FISSE_DEFAULT");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("COSTO DEFAULT PER SPESE FISSE PER CAPO");
|
|
bean.save();
|
|
bean.findByCodice("COSTO_STIRO_DEFAULT");
|
|
bean.setFlgAdmin(0L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("COSTO_STIRO_DEFAULT");
|
|
bean.setDescrizione("COSTO_STIRO_DEFAULT");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("COSTO DEFAULT PER STIRO CONFEZIONI PER CAPO");
|
|
bean.save();
|
|
l_tipoParm = "DEFAULT VARI";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("CODICE_TIPO_TESSUTO_STD");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CODICE_TIPO_TESSUTO_STD");
|
|
bean.setDescrizione("CODICE_TIPO_TESSUTO_STD");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() <= 0.0D)
|
|
bean.setNumero(2.0D);
|
|
bean.setNota("CODICE ID TIPO STANDARD TESSUTO SE NON SPECIFICATO");
|
|
bean.save();
|
|
l_tipoParm = "CC";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("CC_LIMITA_AMM");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_LIMITA_AMM");
|
|
bean.setDescrizione("CC_LIMITA_AMM");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("LIMITA LA PARTE AMMINISTRATIVA PER CC");
|
|
bean.save();
|
|
bean.findByCodice("CC_CHECK_AVAIL");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_CHECK_AVAIL");
|
|
bean.setDescrizione("CC_CHECK_AVAIL");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE VERO, PERMETTE DI ACQUISTARE SOLO SE L'ARTICOLO E' DISPONIBILE ");
|
|
bean.save();
|
|
bean.findByCodice("CC_QTA_LOW");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_QTA_LOW");
|
|
bean.setDescrizione("CC_QTA_LOW");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(5.0D);
|
|
bean.setNota("QUANTITA' > 0 SOTTO LA QUALE VIENE INDICATA SCORTA BASSA. DI SOLITO 5");
|
|
bean.save();
|
|
bean.findByCodice("CC_SOSPENDI_DOPO_N_GG_NO_IMPORT");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_SOSPENDI_DOPO_N_GG_NO_IMPORT");
|
|
bean.setDescrizione("CC_SOSPENDI_DOPO_N_GG_NO_IMPORT");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("NUMERO DI GIORNI CHE L'ARTICOLO NON E' STATO TROVATO DURANTE L'IMPORT DOPO I QUALI VIENE SOSPESO AUTOMATICAMENTE <BR>SE 0 --> NON SOSPENDE MAI");
|
|
bean.save();
|
|
bean.findByCodice("CC_COSTO_SPED_FULL");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_COSTO_SPED_FULL");
|
|
bean.setDescrizione("CC_COSTO_SPED_FULL");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("ATTIVA O DISATTIVA IL COSTO SPEDIZIONE PER ARTICOLO NAZIONE + CALCOLO PERCENTILE SUL CARRELLO");
|
|
bean.save();
|
|
bean.findByCodice("CC_ARROTONDA_PREZZO_A_EURO_SOPRA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_ARROTONDA_PREZZO_A_EURO_SOPRA");
|
|
bean.setDescrizione("CC_ARROTONDA_PREZZO_A_EURO_SOPRA");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("PER L'AGGIORNAMENTO IN BASE AL NUOVO COSTO DI ACQUISTO. SE IL PREZZO FINALE CON IVA E' SUPERIORE A QUESTO VALORE --> AGGIORNO ALL'EURO SUPERIORE ALTRIMENTI AGGIORNO AL DECIMALE DEFINITO DA P_CC_ARROTONDA_DECIMALE_PER_PREZZI_BASSI SUPERIORE.");
|
|
bean.save();
|
|
bean.findByCodice("CC_ARROTONDA_DECIMALE_PER_PREZZI_BASSI");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_ARROTONDA_DECIMALE_PER_PREZZI_BASSI");
|
|
bean.setDescrizione("CC_ARROTONDA_DECIMALE_PER_PREZZI_BASSI");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(0.5D);
|
|
bean.setNota("PER L'AGGIORNAMENTO IN BASE AL NUOVO COSTO DI ACQUISTO. ARROTONDAMENTO DECIMALE PER PREZZI INFERIORE A P_CC_ARROTONDA_PREZZO_A_EURO_SOPRA<BR>DI SOLITO ALMENO 0,5 MA POTREBBE ESSERE QUALSIASI VALORE DA 0,1 A 0,9. SE 1 ARROTONDA ALL'EURO SUPERIORE");
|
|
bean.save();
|
|
bean.findByCodice("CC_RICARICO_MINIMO_OFFERTE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_RICARICO_MINIMO_OFFERTE");
|
|
bean.setDescrizione("CC_RICARICO_MINIMO_OFFERTE");
|
|
bean.setFlgTipo(1L);
|
|
if (bean.getNumero() == 0.0D)
|
|
bean.setNumero(5.0D);
|
|
bean.setNota("SE INSERISCO UNA PERCENTUALE DI SCONTO COME PREZZO OFFERTA, QUESTO NON DEVE ESSERE MAI INFERIORE A QUESTO VALORE!<BR>METTO PER DEFAULT 5%");
|
|
bean.save();
|
|
bean.findByCodice("CC_LINK_WEB_CON_MARCA");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_LINK_WEB_CON_MARCA");
|
|
bean.setDescrizione("CC_LINK_WEB_CON_MARCA");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("inserisce come primo elemento la marca nel link per il web (getCCLinkDettaglio(...)");
|
|
bean.save();
|
|
bean.findByCodice("CC_N_ORDINI_WWW_AL_GIORNO");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("CC_N_ORDINI_WWW_AL_GIORNO");
|
|
bean.setDescrizione("CC_N_ORDINI_WWW_AL_GIORNO");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("NUMERO DI ORDINI WWW AL GIORNO PER CALCOLO NON SEQUENZIALE DEI NUMERI ORDINE WWW. PER SIMULARE + ORDINI AL GIORNO");
|
|
bean.save();
|
|
l_tipoParm = "GOOGLE_REVIEW";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice(GoogleReview.P_GOOGLE_REVIEW_DATE);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(GoogleReview.P_GOOGLE_REVIEW_DATE);
|
|
bean.setDescrizione(GoogleReview.P_GOOGLE_REVIEW_DATE);
|
|
bean.setFlgTipo(2L);
|
|
bean.setNota("DATA ULTIMO ACCESSO A GOOGLE REVIEW");
|
|
bean.save();
|
|
bean.findByCodice(GoogleReview.P_GOOGLE_REVIEW_RATING);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(GoogleReview.P_GOOGLE_REVIEW_RATING);
|
|
bean.setDescrizione(GoogleReview.P_GOOGLE_REVIEW_RATING);
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("RATING ALLA DATA GOOGLE_REVIEW_DATE");
|
|
bean.save();
|
|
bean.findByCodice(GoogleReview.P_GOOGLE_REVIEW_USER_RATING_TOTALS);
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice(GoogleReview.P_GOOGLE_REVIEW_USER_RATING_TOTALS);
|
|
bean.setDescrizione(GoogleReview.P_GOOGLE_REVIEW_USER_RATING_TOTALS);
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("GOOGLE_REVIEW_USER_RATING_TOTALS ALLA DATA GOOGLE_REVIEW_DATE");
|
|
bean.save();
|
|
l_tipoParm = "GOOGLE";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("GOOGLE_FTP_USER");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("GOOGLE_FTP_USER");
|
|
bean.setDescrizione("GOOGLE_FTP_USER");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("mc-ftp-245429498");
|
|
bean.setNota("USER FTP O SFTP PER GOOGLE MERCHANT");
|
|
bean.save();
|
|
bean.findByCodice("GOOGLE_FTP_PASSWORD");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("GOOGLE_FTP_PASSWORD");
|
|
bean.setDescrizione("GOOGLE_FTP_PASSWORD");
|
|
bean.setFlgTipo(0L);
|
|
if (bean.getTesto().isEmpty())
|
|
bean.setTesto("nJfuNd3EnxLJtHzQa");
|
|
bean.setNota("PASSWORD FTP O SFTP PER GOOGLE MERCHANT");
|
|
bean.save();
|
|
bean.findByCodice("GOOGLE_USE_SFTP");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("GOOGLE_USE_SFTP");
|
|
bean.setDescrizione("GOOGLE_USE_SFTP");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE TRUE UTILIZZA PROTOCOLLO SFTP");
|
|
bean.save();
|
|
bean.findByCodice("GOOGLE_PREZZO_PUBBLICO_MINIMO_X_EXPORT");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("GOOGLE_PREZZO_PUBBLICO_MINIMO_X_EXPORT");
|
|
bean.setDescrizione("GOOGLE_PREZZO_PUBBLICO_MINIMO_X_EXPORT");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("PER L'EXPORT SU MERCHANT, EVITIAMO DI ESPORTARE OGGETTI CHE COSTANO MENO DI QUESTO VALORE. SE ZERO OVVIAMENTE VIENE IGNORATO");
|
|
bean.save();
|
|
bean.findByCodice("GOOGLE_QTA_MINIMA_X_EXPORT");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("GOOGLE_QTA_MINIMA_X_EXPORT");
|
|
bean.setDescrizione("GOOGLE_QTA_MINIMA_X_EXPORT");
|
|
bean.setFlgTipo(1L);
|
|
bean.setNota("PER L'EXPORT SU MERCHANT, EVITIAMO DI ESPORTARE OGGETTI CHE NON CI SONO O COMUNQUE SOTTO UNA CERTA QUANTITA...");
|
|
bean.save();
|
|
bean.findByCodice("GOOGLE_SIGNIN_CLIENT_ID");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("GOOGLE_SIGNIN_CLIENT_ID");
|
|
bean.setDescrizione("GOOGLE_SIGNIN_CLIENT_ID");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("SIGNIN CLIENT ID PER ACCESSO TRAMITE GOOGLE. DEVE ESSERE TRUE P_GOOGLE_SIGNIN_ENABLE");
|
|
bean.save();
|
|
bean.findByCodice("GOOGLE_SIGNIN_ENABLE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("GOOGLE_SIGNIN_ENABLE");
|
|
bean.setDescrizione("GOOGLE_SIGNIN_ENABLE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE TRUE è ATTIVATO L'ACCESSO TRAMITE GOOGLE SUL SITO WEN (GOOGLE_SIGNIN_CLIENT_ID DEVE ESSERE VALIDO)");
|
|
bean.save();
|
|
l_tipoParm = "FACEBOOK";
|
|
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
|
|
bean.findByCodice("FACEBOOK_SIGNIN_CLIENT_ID");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("FACEBOOK_SIGNIN_CLIENT_ID");
|
|
bean.setDescrizione("FACEBOOK_SIGNIN_CLIENT_ID");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("SIGNIN CLIENT ID PER ACCESSO TRAMITE FACEBOOK. DEVE ESSERE TRUE FACEBOOK_SIGNIN_ENABLE");
|
|
bean.save();
|
|
bean.findByCodice("FACEBOOK_SIGNIN_SECRET_KEY");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("FACEBOOK_SIGNIN_SECRET_KEY");
|
|
bean.setDescrizione("FACEBOOK_SIGNIN_SECRET_KEY");
|
|
bean.setFlgTipo(0L);
|
|
bean.setNota("SIGNIN SECRET ID PER ACCESSO TRAMITE FACEBOOK. DEVE ESSERE TRUE FACEBOOK_SIGNIN_ENABLE");
|
|
bean.save();
|
|
bean.findByCodice("FACEBOOK_SIGNIN_ENABLE");
|
|
bean.setFlgAdmin(1L);
|
|
bean.setTipoParm(l_tipoParm);
|
|
bean.setCodice("FACEBOOK_SIGNIN_ENABLE");
|
|
bean.setDescrizione("FACEBOOK_SIGNIN_ENABLE");
|
|
bean.setFlgTipo(5L);
|
|
bean.setNota("SE TRUE è ATTIVATO L'ACCESSO TRAMITE FACEBOOK SUL SITO WEB (FACEBOOK_SIGNIN_CLIENT_ID E FACEBOOK_SIGNIN_SECRET_KEY DEVE ESSERE VALIDO)");
|
|
bean.save();
|
|
DBAdapter.logDebug(debug, "anag.Users initParms: stop");
|
|
_FeXmlAdapter.initApplicationParms(ap);
|
|
RemoteDevice.initApplicationParms(ap);
|
|
BrtApi.initApplicationParms(ap);
|
|
CodaMessaggi.initApplicationParms(ap);
|
|
Cart.initCartParms(ap);
|
|
News.initApplicationParms(ap);
|
|
XpayReq.initApplicationParms(ap);
|
|
SetefiReq.initApplicationParms(ap);
|
|
PayPalReq.initApplicationParms(ap);
|
|
PayPalReq.initApplicationParms(ap);
|
|
StripeResp.initApplicationParms(ap);
|
|
SellaReq.initApplicationParms(ap);
|
|
ConselReq.initApplicationParms(ap);
|
|
SellaPCreditReq.initApplicationParms(ap);
|
|
PosteReq.initApplicationParms(ap);
|
|
ShopnetReq.initApplicationParms(ap);
|
|
EbayAbliaApi.initApplicationParms(ap);
|
|
AmzSellerApi.initApplicationParms(ap);
|
|
BrtApi.initApplicationParms(ap);
|
|
StatusMsg.deleteMsgByTag(ap, "INIT");
|
|
}
|
|
}
|
|
|
|
public RegCassa getRegCassa() {
|
|
if (this.regCassa == null) {
|
|
Postazione postazione = new Postazione(getApFull());
|
|
postazione.findByPrimaryKey(getId_postazione());
|
|
setRegCassa(postazione.getRegCassa());
|
|
}
|
|
return (this.regCassa == null) ? new RegCassa(getApFull()) : this.regCassa;
|
|
}
|
|
|
|
public void setPostazione(Postazione postazione) {
|
|
setPostazione(postazione);
|
|
}
|
|
|
|
protected void initFields() {
|
|
super.initFields();
|
|
}
|
|
|
|
public void setRegCassa(RegCassa regCassa) {
|
|
this.regCassa = regCassa;
|
|
}
|
|
|
|
public PostazioneI getPostazione() {
|
|
this.postazione = (Postazione)getSecondaryObject((DBAdapter)this.postazione, Postazione.class, getId_postazione());
|
|
return (PostazioneI)this.postazione;
|
|
}
|
|
|
|
public void setId_postazione(long id_postazione) {
|
|
this.id_postazione = id_postazione;
|
|
setPostazione(null);
|
|
}
|
|
|
|
public long getId_postazione() {
|
|
return this.id_postazione;
|
|
}
|
|
|
|
public Vectumerator findByCR(UsersCR CR, int pageNumber, int pageRows) {
|
|
return findByCR(CR, pageNumber, pageRows);
|
|
}
|
|
|
|
public Clifor getClifor() {
|
|
this.clifor = (Clifor)getSecondaryObject(this.clifor, Clifor.class, getId_clifor());
|
|
return this.clifor;
|
|
}
|
|
|
|
public void setId_clifor(long newId_clifor) {
|
|
this.id_clifor = newId_clifor;
|
|
setClifor(null);
|
|
}
|
|
|
|
public long getId_clifor() {
|
|
return this.id_clifor;
|
|
}
|
|
|
|
public void setClifor(Clifor clifor) {
|
|
this.clifor = clifor;
|
|
}
|
|
|
|
public String getId_nazione() {
|
|
return (this.id_nazione == null) ? "" : this.id_nazione;
|
|
}
|
|
|
|
public Nazione getNazione() {
|
|
this.nazione = (Nazione)getSecondaryObject(this.nazione, Nazione.class, getId_nazione());
|
|
return this.nazione;
|
|
}
|
|
|
|
public void setId_nazione(String id_nazione) {
|
|
this.id_nazione = id_nazione;
|
|
setNazione(null);
|
|
}
|
|
|
|
public void setNazione(Nazione nazione) {
|
|
this.nazione = nazione;
|
|
}
|
|
|
|
public String getCallingJsp() {
|
|
return (this.callingJsp == null) ? "" : this.callingJsp;
|
|
}
|
|
|
|
public void setCallingJsp(String callingJsp) {
|
|
this.callingJsp = callingJsp;
|
|
}
|
|
|
|
public ResParm sendLostPasswordMailMessage(String lostEmail, String lang) {
|
|
ResParm rp = new ResParm(true);
|
|
try {
|
|
String subject = getMailSubject();
|
|
Users bean = new Users(getApFull());
|
|
UsersCR CR = new UsersCR();
|
|
CR.setEMail(lostEmail);
|
|
bean.findUsersByEmail(lostEmail);
|
|
if (bean.getDBState() == 1) {
|
|
MailMessage mf = new MailMessage(getApFull(), getLostPwdMailMessage(lang));
|
|
mf.setQuestionMark(false);
|
|
mf.setString("login", bean.getLogin());
|
|
if (bean.isSocialAccount()) {
|
|
mf.setString("pwd", bean.getSocialIdType() + " social account");
|
|
mf.setString("extra",
|
|
translate("Puoi accedere tramite il tuo account", lang) + " " + translate("Puoi accedere tramite il tuo account", lang) + ".<br>" + bean.getSocialIdType() + " " +
|
|
translate("Se non puoi più accedere al tuo account", lang) + ", " + bean.getSocialIdType());
|
|
} else {
|
|
mf.setString("pwd", bean.getPwd());
|
|
}
|
|
mf.setString("nominativo", bean.getNominativo());
|
|
mf.setString("nome", bean.getNome());
|
|
mf.setString("cognome", bean.getCognome());
|
|
rp = mf.sendMailMessageSystem(bean.getEMail(), subject + " - Richiesta Password ", true);
|
|
if (rp.getStatus())
|
|
rp.setMsg("La tua password e' stata inviata correttamente all'indirizzo " + bean.getEMail());
|
|
} else {
|
|
rp.setStatus(false);
|
|
rp.setMsg("Email non in archivio");
|
|
}
|
|
} catch (Exception e) {
|
|
handleDebug(e);
|
|
rp.setStatus(false);
|
|
rp.setMsg(e.toString() + "\n" + e.toString());
|
|
}
|
|
return rp;
|
|
}
|
|
|
|
public ResParm sendUserDataMailMessage(String lang) {
|
|
ResParm rp = new ResParm(true);
|
|
try {
|
|
if (getDBState() == 1) {
|
|
String userMailMessage = getUserMailMessage(lang);
|
|
MailMessage mf = new MailMessage(getApFull(), userMailMessage);
|
|
mf.setQuestionMark(false);
|
|
if (!getControlCode().isEmpty())
|
|
mf.setString("controlCode", getControlCode() + "&e=" + getControlCode());
|
|
mf.setLong("id_users", getId_users());
|
|
mf.setString("data", getDataFormat().format(new Date()));
|
|
mf.setString("login", getLogin());
|
|
mf.setString("pwd", getPwd());
|
|
mf.setString("nome", getNome());
|
|
mf.setString("cognome", getCognome());
|
|
mf.setString("piva", getClifor().getPIva());
|
|
mf.setString("codfisc", getClifor().getCodFisc());
|
|
mf.setString("indirizzo", getClifor().getIndirizzo());
|
|
mf.setString("numero", getClifor().getNumeroCivico());
|
|
if (getClifor().getCapZona().isEmpty()) {
|
|
mf.setString("cap", getClifor().getCapComune());
|
|
} else {
|
|
mf.setString("cap", getClifor().getCapZona());
|
|
}
|
|
mf.setString("citta", getClifor().getDescrizioneComune());
|
|
mf.setString("provincia", getClifor().getProvinciaComune());
|
|
mf.setString("nazione", getClifor().getNazione().getDescrizione(lang));
|
|
mf.setString("telefono", getClifor().getCellulare() + " " + getClifor().getCellulare());
|
|
mf.setString("fax", getClifor().getFax());
|
|
mf.setString("email", getClifor().getEMail());
|
|
mf.setString("codSDI", getClifor().getCodiceIdentificativoFE());
|
|
mf.setString("pec", getClifor().getPec());
|
|
if (getClifor().getCurrentDD().getId_destinazioneDiversa() > 0L) {
|
|
if (getClifor().getCurrentDD().getPressoDD().isEmpty()) {
|
|
mf.setString("indirizzoSped", getClifor().getCurrentDD().getIndirizzoDD());
|
|
} else {
|
|
mf.setString("indirizzoSped", " c/o " +
|
|
getClifor().getCurrentDD().getPressoDD() + "<br>" + getClifor().getCurrentDD().getIndirizzoDD());
|
|
}
|
|
mf.setString("numeroSped", getClifor().getCurrentDD().getNumeroCivicoDD());
|
|
if (getClifor().getCurrentDD().getCapZonaDD().isEmpty()) {
|
|
mf.setString("capSped", getClifor().getCurrentDD().getCapComuneDD());
|
|
} else {
|
|
mf.setString("capSped", getClifor().getCurrentDD().getCapZonaDD());
|
|
}
|
|
mf.setString("cittaSped", getClifor().getCurrentDD().getDescrizioneComuneDD());
|
|
mf.setString("provinciaSped", getClifor().getCurrentDD().getProvinciaComuneDD());
|
|
mf.setString("nazioneSped", getClifor().getCurrentDD().getNazioneDD().getDescrizione(lang));
|
|
} else {
|
|
mf.setString("indirizzoSped", getClifor().getIndirizzo());
|
|
mf.setString("numeroSped", getClifor().getNumeroCivico());
|
|
if (getClifor().getCapZona().isEmpty()) {
|
|
mf.setString("capSped", getClifor().getCapComune());
|
|
} else {
|
|
mf.setString("capSped", getClifor().getCapZona());
|
|
}
|
|
mf.setString("cittaSped", getClifor().getDescrizioneComune());
|
|
mf.setString("provinciaSped", getClifor().getProvinciaComune());
|
|
mf.setString("nazioneSped", getClifor().getNazione().getDescrizione(lang));
|
|
}
|
|
MailProperties mp = new MailProperties();
|
|
mp.setProperty("TO", getEMail());
|
|
String mailBcc = getMailTo();
|
|
if (!getMailToSfx("USERS").isEmpty())
|
|
mailBcc = mailBcc + "," + mailBcc;
|
|
mp.setProperty("BCC", mailBcc);
|
|
mp.setProperty("SUBJECT", mf.getMailSubject() + " Conferma registrazione account utente ");
|
|
mp.setProperty("MSG", mf.getMessage());
|
|
rp = mf.sendMailMessage(mp, false);
|
|
} else {
|
|
rp.setStatus(false);
|
|
rp.setMsg("Email non in archivio");
|
|
}
|
|
} catch (Exception e) {
|
|
handleDebug(e);
|
|
rp.setStatus(false);
|
|
rp.setMsg(e.getMessage());
|
|
}
|
|
return rp;
|
|
}
|
|
|
|
public long getFlgOperatore() {
|
|
return this.flgOperatore;
|
|
}
|
|
|
|
public void setFlgOperatore(long flgOperatore) {
|
|
this.flgOperatore = flgOperatore;
|
|
}
|
|
|
|
public Vectumerator findUsersByFlgOperatore() {
|
|
String s_Sql_Find = "select A.* from " + getTableBeanName() + " AS A";
|
|
String s_Sql_order = " order by A.cognome, A.nome";
|
|
String wc = " where dataFineVld is null";
|
|
wc = buildWc(wc, "A.id_users <>1");
|
|
wc = buildWc(wc, "A.flgValido='S'");
|
|
wc = buildWc(wc, "A.flgOperatore=1");
|
|
try {
|
|
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc);
|
|
return findRows(stmt);
|
|
} catch (Exception e) {
|
|
handleDebug(e);
|
|
return AB_EMPTY_VECTUMERATOR;
|
|
}
|
|
}
|
|
|
|
public Vectumerator<Users> findUsersWithWishlist() {
|
|
String s_Sql_Find = "select A.* from USERS as A inner join WISHLIST as B on A.id_users=B.id_users where B.flgAbilitaAvviso=1";
|
|
try {
|
|
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find);
|
|
return findRows(stmt);
|
|
} catch (Exception e) {
|
|
handleDebug(e);
|
|
return AB_EMPTY_VECTUMERATOR;
|
|
}
|
|
}
|
|
|
|
public ByteArrayOutputStream creaLabelUtenteA4Pdf() {
|
|
long pHMarg = 2L;
|
|
long l_indent = 4L;
|
|
ByteArrayOutputStream ba = new ByteArrayOutputStream();
|
|
try {
|
|
this.document = new Document(PageSize.A4, 0.0F, 0.0F, 0.0F, 0.0F);
|
|
this.writer = PdfWriter.getInstance(this.document, ba);
|
|
this.document.open();
|
|
long labelNumber = 0L;
|
|
int nCol = 4;
|
|
int nRow = 10;
|
|
float[] widths = { 1.0F, 1.0F, 1.0F, 1.0F };
|
|
this.pdfPcorpo = new PdfPTable(widths);
|
|
this.pdfPcorpo.setWidthPercentage(100.0F);
|
|
findByPrimaryKey(getId_users());
|
|
labelNumber = (long)addLabelUnUtenteA4Pdf("", nRow, 1L, getDescrizione());
|
|
if (labelNumber == 0L) {
|
|
Phrase ph = new Phrase("Attenzione! Non ci sono etichette da stampare!");
|
|
PdfPCell cell = new PdfPCell(ph);
|
|
cell.setFixedHeight((PageSize.A4.getHeight() - (float)pHMarg) / (float)nRow);
|
|
cell.setIndent((float)l_indent);
|
|
cell.setBorder(0);
|
|
cell.setColspan(nCol);
|
|
this.pdfPcorpo.addCell(cell);
|
|
} else {
|
|
long numberBlankCell = (long)nCol - labelNumber % (long)nCol;
|
|
PdfPCell cell = new PdfPCell();
|
|
cell.setFixedHeight((PageSize.A4.getHeight() - (float)pHMarg) / (float)nRow);
|
|
cell.setIndent((float)l_indent);
|
|
cell.setBorder(0);
|
|
if (numberBlankCell != (long)nCol)
|
|
for (int i = 0; (long)i < numberBlankCell; i++)
|
|
this.pdfPcorpo.addCell(cell);
|
|
}
|
|
this.document.add((Element)this.pdfPcorpo);
|
|
this.document.close();
|
|
this.document = null;
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
return ba;
|
|
}
|
|
|
|
public int addLabelUnUtenteA4Pdf(String titolo, int nRow, long numberOflabel, String l_descrizione) {
|
|
long pHMarg = 2L;
|
|
long l_indent = 4L;
|
|
int totNumbOflabel = 0;
|
|
try {
|
|
int altezzaCod = 80;
|
|
int larghezzaCod = 360;
|
|
PdfContentByte cb = this.writer.getDirectContent();
|
|
Barcode128 codeBar = new Barcode128();
|
|
codeBar.setCodeType(9);
|
|
totNumbOflabel++;
|
|
PdfPCell cell = new PdfPCell();
|
|
cell.setBorder(0);
|
|
codeBar.setCode(String.valueOf(getId_users()));
|
|
codeBar.setAltText(l_descrizione);
|
|
Image imgBarcode = codeBar.createImageWithBarcode(cb, null, null);
|
|
imgBarcode.scaleToFit((float)larghezzaCod, (float)altezzaCod);
|
|
cell.addElement(new Chunk(imgBarcode, 10.0F, (float)(-altezzaCod + 10)));
|
|
cell.setVerticalAlignment(4);
|
|
cell.setFixedHeight((PageSize.A4.getHeight() - (float)pHMarg) / (float)nRow);
|
|
cell.setIndent((float)l_indent);
|
|
this.pdfPcorpo.addCell(cell);
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
return totNumbOflabel;
|
|
}
|
|
|
|
public long getFlgNews() {
|
|
return this.flgNews;
|
|
}
|
|
|
|
public void setFlgNews(long flgNews) {
|
|
this.flgNews = flgNews;
|
|
}
|
|
|
|
public Vectumerator findUsersAbilitatiNewsByNews(long l_id_news, int pageNumber, int pageRows) {
|
|
String s_Sql_Find = "select A.* from USERS AS A ";
|
|
String s_Sql_order = " order by A.cognome, A.nome";
|
|
String wc = " where dataFineVld is null";
|
|
wc = buildWc(wc, "A.id_users <> 1");
|
|
wc = buildWc(wc, "A.flgValido='S'");
|
|
wc = buildWc(wc, "A.flgNews=1");
|
|
wc = buildWc(wc, "A.id_users NOT IN (SELECT id_users FROM NEWS_USERS AS B where B.id_news = " + l_id_news + ")");
|
|
try {
|
|
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc);
|
|
return findRows(stmt, pageNumber, pageRows);
|
|
} catch (Exception e) {
|
|
handleDebug(e);
|
|
return AB_EMPTY_VECTUMERATOR;
|
|
}
|
|
}
|
|
|
|
public long getId_documento() {
|
|
return this.id_documento;
|
|
}
|
|
|
|
public void setId_documento(long id_documento) {
|
|
this.id_documento = id_documento;
|
|
}
|
|
|
|
public Vectumerator findUsersByLogin() {
|
|
String s_Sql_Find = "select A.* from " + getTableBeanName() + " AS A";
|
|
String s_Sql_order = " order by A.cognome, A.nome";
|
|
String wc = " where dataFineVld is null";
|
|
wc = buildWc(wc, "A.id_users <>1");
|
|
wc = buildWc(wc, "A.flgValido='S'");
|
|
wc = buildWc(wc, "A.flgOperatore=1");
|
|
try {
|
|
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc);
|
|
return findRows(stmt);
|
|
} catch (Exception e) {
|
|
handleDebug(e);
|
|
return AB_EMPTY_VECTUMERATOR;
|
|
}
|
|
}
|
|
|
|
public void creaFileEmailCvsByCR(UsersCR CR) {
|
|
try {
|
|
Vectumerator<Users> list = new Users(getApFull()).findByCR(CR, 0, 0);
|
|
CR.setFileName(getPathTmp() + "/" + getPathTmp() + "_" + DBAdapter.getTimestamp().getTime() + ".csv");
|
|
String theCvsFile = getDocBase() + getDocBase();
|
|
String SEP = ";";
|
|
new File(theCvsFile).delete();
|
|
FileWr outCvsFile = new FileWr(theCvsFile, false);
|
|
outCvsFile.writeLine(CR.getDescrizioneCR());
|
|
while (list.hasMoreElements()) {
|
|
Users row = (Users)list.nextElement();
|
|
if (!row.getEMail().isEmpty())
|
|
outCvsFile.writeLine(row.getEMail());
|
|
}
|
|
outCvsFile.closeFile();
|
|
} catch (IOException e) {
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
|
|
public boolean isProfileNoReg() {
|
|
if (getId_userProfile() == getIdUserProfileNoReg())
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
public boolean isProfiloWww() {
|
|
if (getId_userProfile() == getIdUserProfileWww())
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
public boolean isOkForCheckout() {
|
|
if (getEMail().isEmpty() || getClifor().getEMail().isEmpty() || !getClifor().isIndirizzoOk() || getClifor().getCodFisc().isEmpty() || (
|
|
getClifor().getCellulare().isEmpty() && getClifor().getTelefono().isEmpty()))
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
public boolean isProfilML() {
|
|
if (getId_userProfile() == getIdUserProfileMailingList())
|
|
return true;
|
|
return false;
|
|
}
|
|
|
|
public ResParm addArticoloToWishlist(Wishlist item, String l_lang) {
|
|
if (getId_users() == 0L)
|
|
return new ResParm(false, translate("Errore! Utente non trovato", l_lang));
|
|
ResParm rp = new ResParm();
|
|
Wishlist wl = new Wishlist(getApFull());
|
|
wl.findByUserItem(getId_users(), item);
|
|
if (wl.getId_wishlist() > 0L) {
|
|
rp.setMsg(translate("L'articolo risulta già nella tua wishlist!", l_lang));
|
|
} else {
|
|
wl.setId_articolo(item.getId_articolo());
|
|
wl.setId_articoloVariante(item.getId_articoloVariante());
|
|
wl.setId_articoloTaglia(item.getId_articoloTaglia());
|
|
wl.setId_users(getId_users());
|
|
wl.setDataWL(getToday());
|
|
wl.setOraWL(getNow());
|
|
wl.setDispoLevelWL(item.getDispoLevel());
|
|
if (item.getId_articoloTaglia() > 0L) {
|
|
wl.setPrezzoWL(item.getArticoloTaglia().getPrice(getId_users()));
|
|
} else if (item.getId_articoloVariante() > 0L) {
|
|
wl.setPrezzoWL(item.getArticoloVariante().getPrice(getId_users()));
|
|
} else {
|
|
wl.setPrezzoWL(item.getArticolo().getPrice(getId_users()));
|
|
}
|
|
wl.setFlgAbilitaAvviso(1L);
|
|
rp = wl.save();
|
|
if (rp.getStatus()) {
|
|
rp.setMsg(translate("L'articolo e' stato inserito nella tua wishlist!", l_lang));
|
|
rp.setStatus(true);
|
|
} else {
|
|
rp.setMsg(translate("Errore! Impossibile inserire o inserito nella tua wishlist!", l_lang));
|
|
rp.setStatus(true);
|
|
}
|
|
}
|
|
return rp;
|
|
}
|
|
|
|
public Vectumerator<Users> findUsersByFlgMailingList() {
|
|
String s_Sql_Find = "select A.* from " + getTableBeanName() + " AS A";
|
|
String s_Sql_order = " order by A.cognome, A.nome";
|
|
String wc = " where dataFineVld is null";
|
|
wc = buildWc(wc, "A.id_users <>1");
|
|
wc = buildWc(wc, "A.flgValido='S'");
|
|
wc = buildWc(wc, "A.flgMl=1");
|
|
try {
|
|
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc);
|
|
return findRows(stmt);
|
|
} catch (Exception e) {
|
|
handleDebug(e);
|
|
return AB_EMPTY_VECTUMERATOR;
|
|
}
|
|
}
|
|
|
|
public boolean hasListinoPersonalizzato() {
|
|
if (getId_clifor() == 0L || getClifor().getId_listino() == 0L)
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
public double getTariffaProfessionista() {
|
|
return this.tariffaProfessionista;
|
|
}
|
|
|
|
public double getPercProfessionista() {
|
|
return this.percProfessionista;
|
|
}
|
|
|
|
public void setTariffaProfessionista(double costoOrario) {
|
|
this.tariffaProfessionista = costoOrario;
|
|
}
|
|
|
|
public void setPercProfessionista(double percServizi) {
|
|
this.percProfessionista = percServizi;
|
|
}
|
|
}
|