First Commit - Source Code from Reply
This commit is contained in:
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_BIT_VAL_INLAV.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_BIT_VAL_INLAV.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_BIT_VAL_RIT.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_BIT_VAL_RIT.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_CCRM_VAL_INLAV.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_CCRM_VAL_INLAV.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_CCRM_VAL_RIT.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_CCRM_VAL_RIT.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_BUSPOST.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_BUSPOST.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_BUSPRE.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_BUSPRE.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_CONSPRE.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_CONSPRE.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_MSS_NE.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_MAR_DBC_CES_MSS_NE.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_SC_CESS.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_SC_CESS.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_SC_PIC.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_SC_PIC.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_SC_VAL.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/MNP_SC_VAL.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/report_scartiSid.sh
|
||||
$THIS_PATH/report_scartiBitRec.sh
|
||||
$THIS_PATH/report_scartiAttivMss.sh
|
||||
$THIS_PATH/report_InLavorazione.sh
|
||||
# $THIS_PATH/report_validazNoPreseincar.sh
|
||||
$THIS_PATH/report_attivazioneMssnoEspletate.sh
|
||||
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/Report_validNonPervaCIRCE.sh
|
||||
$THIS_PATH/Report_ScartiCCRM.sh
|
||||
$THIS_PATH/Report_CessazNonPervaCirce.sh
|
||||
$THIS_PATH/Report_MSS_DBC_CESSAZ.sh
|
||||
$THIS_PATH/report_CessazNonAllineate.sh
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/report_Cessnotificheporting.sh
|
||||
$THIS_PATH/report_Cessazione_new.sh
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/NumeroLineePortate.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/NumeroLineePortate.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/NumeroRichiesteRicevute.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/NumeroRichiesteRicevute.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/Report_MSS_DBC_CESSAZ.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/Report_MSS_DBC_CESSAZ.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=0
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/Report_ScartiCCRM.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/Report_ScartiCCRM.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=0
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE
|
||||
15
dbcmnpsrc/FE/mnpapp/script/report/Report_Segnalazione_AOM.sh
Normal file
15
dbcmnpsrc/FE/mnpapp/script/report/Report_Segnalazione_AOM.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/mancate_preseincarico.sh
|
||||
$THIS_PATH/mancata_validazione.sh
|
||||
$THIS_PATH/mancato_espletamentoterzeparti.sh
|
||||
$THIS_PATH/mancato_espletamento.sh
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/TIM_TerzaParte.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/TIM_TerzaParte.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/TIM_to_AGCOM_REC_richiesteportate.sh
|
||||
$THIS_PATH/TIM_to_AGCOM_DON_richiesteportate.sh
|
||||
$THIS_PATH/TIM_TerzaParte.sh
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/mancata_validazione.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/mancata_validazione.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=0
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/mancate_preseincarico.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/mancate_preseincarico.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=0
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/mancati_ack_validazione.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/mancati_ack_validazione.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=5
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/mancato_espletamento.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/mancato_espletamento.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=0
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=0
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_AGCOM.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_AGCOM.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_Cessazione_new.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_Cessazione_new.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
14
dbcmnpsrc/FE/mnpapp/script/report/report_ColloquioAOM.sh
Normal file
14
dbcmnpsrc/FE/mnpapp/script/report/report_ColloquioAOM.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/report_PreseinCarico.sh
|
||||
$THIS_PATH/report_Validazione.sh
|
||||
$THIS_PATH/report_Espletamenti.sh
|
||||
$THIS_PATH/report_NotificheTerzeParti.sh
|
||||
15
dbcmnpsrc/FE/mnpapp/script/report/report_Espletamenti.sh
Normal file
15
dbcmnpsrc/FE/mnpapp/script/report/report_Espletamenti.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/report_Espletamenti_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_Espletamenti_TIMG.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_Espletamenti_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_Espletamenti_TIMG.sh $1 $2 $3 $4
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/report_InLavorazione.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/report_InLavorazione.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=2
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/report_NotificheTerzeParti_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_NotificheTerzeParti_TIMG.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_notificheterzeparti_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_notificheterzeparti_TIMG.sh $1 $2 $3 $4
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
15
dbcmnpsrc/FE/mnpapp/script/report/report_PreseinCarico.sh
Normal file
15
dbcmnpsrc/FE/mnpapp/script/report/report_PreseinCarico.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/report_PreseinCarico_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_PreseinCarico_TIMG.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_preseincarico_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_preseincarico_TIMG.sh $1 $2 $3 $4
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_ValidInRitardo.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_ValidInRitardo.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
15
dbcmnpsrc/FE/mnpapp/script/report/report_Validazione.sh
Normal file
15
dbcmnpsrc/FE/mnpapp/script/report/report_Validazione.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
# start report
|
||||
$THIS_PATH/report_Validazione_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_Validazione_TIMG.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_validazioni_TIMT.sh $1 $2 $3 $4
|
||||
$THIS_PATH/report_sintesi_validazioni_TIMG.sh $1 $2 $3 $4
|
||||
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/report_Validazione_TIMG.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/report_Validazione_TIMG.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/report_Validazione_TIMT.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/report_Validazione_TIMT.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_fc_donor.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_fc_donor.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_fc_recipient.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_fc_recipient.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_per_Sla.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_per_Sla.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_scartiAttivMss.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_scartiAttivMss.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_scartiBitRec.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_scartiBitRec.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
18
dbcmnpsrc/FE/mnpapp/script/report/report_scartiSid.sh
Normal file
18
dbcmnpsrc/FE/mnpapp/script/report/report_scartiSid.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=3
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/report_sla_donor_3Parti.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/report_sla_donor_3Parti.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=4
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/report_sla_donor_hoc.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/report_sla_donor_hoc.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=4
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2
|
||||
17
dbcmnpsrc/FE/mnpapp/script/report/report_sla_recipient.sh
Normal file
17
dbcmnpsrc/FE/mnpapp/script/report/report_sla_recipient.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=4
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=4
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2
|
||||
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/ksh
|
||||
#set -x
|
||||
###########################################################
|
||||
# Progetto: MNP - REPORT
|
||||
###########################################################
|
||||
|
||||
#path
|
||||
THIS_PATH=`dirname $0`
|
||||
|
||||
#shell name = report name
|
||||
THIS=`basename $0 .sh`
|
||||
|
||||
#parameter type
|
||||
PARAM_TYPE=1
|
||||
|
||||
# start report
|
||||
$THIS_PATH/startReport.sh $THIS $PARAM_TYPE $1 $2 $3 $4 $5
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
|
||||
CURSOR cur_res is
|
||||
select id_richiesta || ';' || msisdn || ';' || descr_stato ||';'
|
||||
from mnp_gestione_richiesta, mnp_stato st
|
||||
where data_validazione_max <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
AND tipo_cliente='BU'
|
||||
AND stato in (6)
|
||||
AND stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
dir_out:='&2';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'BIT_DBC_VALIDAZIONEGIORNALIERE_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice richiesta;Msisdn;Stato Richiesta;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,59 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
|
||||
CURSOR cur_res is
|
||||
select id_richiesta || ';' || msisdn || ';' || descr_stato || ';' || data_validazione_max || ';'
|
||||
from mnp_gestione_richiesta, mnp_stato st
|
||||
where data_validazione_max <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and data_validazione_max >= decode(df,'nullo',data_validazione_max,to_date(df,'dd-MON-yy'))
|
||||
AND tipo_cliente='BU'
|
||||
AND stato in (6)
|
||||
AND stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'BIT_DBC_VALIDAZIONERITARDO_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice richiesta;Msisdn;Stato Richiesta;Data validazione Max;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,77 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_res is
|
||||
select id_richiesta || ';' || msisdn || ';' || descr_stato || ';'
|
||||
from mnp_gestione_richiesta, mnp_stato st
|
||||
where data_validazione_max <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
AND tipo_cliente='CO'
|
||||
AND stato in (6)
|
||||
AND stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
dir_out:='&2';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
file1 := UTL_FILE.fopen (dir_out, 'CCRM_DBC_VALIDAZIONEGIORNALIERE_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice richiesta;Msisdn;Stato Richiesta;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
|
||||
set echo off
|
||||
|
||||
set head off
|
||||
set pagesize 0
|
||||
set feedback off
|
||||
set linesize 300
|
||||
set termout off
|
||||
|
||||
|
||||
select ' Codice Richiesta; MSISDN richiesta ; Stato Richiesta '
|
||||
from DUAL;
|
||||
|
||||
select id_richiesta || ';' || msisdn || ';' || descr_stato
|
||||
from mnp_gestione_richiesta, mnp_stato st
|
||||
where trunc(data_validazione_max) = trunc(Sysdate)
|
||||
AND tipo_cliente='CO'
|
||||
AND stato in (6)
|
||||
AND stato = st.id_stato
|
||||
|
||||
set termout on
|
||||
|
||||
exit
|
||||
@@ -0,0 +1,62 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_res is
|
||||
select id_richiesta || ';' || msisdn || ';' || descr_stato || ';' || data_validazione_max || ';'
|
||||
from mnp_gestione_richiesta, mnp_stato st
|
||||
where data_validazione_max <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and data_validazione_max >= decode(df,'nullo',data_validazione_max,to_date(df,'dd-MON-yy'))
|
||||
-- trunc(data_validazione_max) < trunc(Sysdate)
|
||||
AND tipo_cliente='CO'
|
||||
AND stato in (6)
|
||||
AND st.id_stato = stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
|
||||
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'CCRM_DBC_VALIDAZIONERITARDO_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice richiesta;Msisdn;Stato Richiesta;Data validazione Max;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,59 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_res is
|
||||
select r.id_richiesta || ';' || r.msisdn || ';' || r.codice_operatore_recipient || ';' || st.descr_stato || ';' || s1.data_i_o || ';' || s2.data_i_o || ';' || r.data_cut_over_calc || ';' || r.nome_ot ||';'
|
||||
from mnp_gestione_richiesta r, mnp_storico_richiesta s1, mnp_storico_richiesta s2, mnp_stato st
|
||||
where data_cut_over_calc <= decode(di,'nullo',trunc(sysdate+1),to_date(di,'dd-MON-yy'))
|
||||
AND stato in (7,9,14)
|
||||
AND tipo_cliente = 'BU'
|
||||
AND codice_pre_post_pagato = 'POP'
|
||||
AND r.id_richiesta = s1.id_richiesta
|
||||
AND s1.stato_da=1 AND s1.stato_a=3
|
||||
AND r.id_richiesta = s2.id_richiesta
|
||||
AND s2.stato_da=6 AND s2.stato_a=7
|
||||
AND r.stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
dir_out:='&2';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
file1 := UTL_FILE.fopen (dir_out, 'DBC_CESSAZIONE_BUSINESS_POST_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice Richiesta; MSISDN richiesta ; Codice Operatore Recipient ; Stato Richiesta ; Data Presa in Carico ; Data Validazione effettiva ; Data Cut-Over Calcolata ; OT di appartenenza;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,60 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_res is
|
||||
select r.id_richiesta || ';' || r.msisdn || ';' || r.codice_operatore_recipient || ';' || st.descr_stato || ';' || s1.data_i_o || ';' || s2.data_i_o || ';' || r.data_cut_over_calc || ';' || r.nome_ot ||';'
|
||||
from mnp_gestione_richiesta r, mnp_storico_richiesta s1, mnp_storico_richiesta s2, mnp_stato st
|
||||
where data_cut_over_calc <= decode(di,'nullo',trunc(sysdate+1),to_date(di,'dd-MON-yy'))
|
||||
AND stato in (7,9,14)
|
||||
AND tipo_cliente = 'BU'
|
||||
AND codice_pre_post_pagato = 'PRP'
|
||||
AND r.id_richiesta = s1.id_richiesta
|
||||
AND s1.stato_da=1 AND s1.stato_a=3
|
||||
AND r.id_richiesta = s2.id_richiesta
|
||||
AND s2.stato_da=6 AND s2.stato_a=7
|
||||
AND r.stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
dir_out:='&2';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'DBC_CESSAZIONE_BUSINESS_PRE_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice Richiesta; MSISDN richiesta ; Codice Operatore Recipient ; Stato Richiesta ; Data Presa in Carico ; Data Validazione effettiva ; Data Cut-Over Calcolata ; OT di appartenenza;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,60 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_res is
|
||||
select r.id_richiesta || ';' || r.msisdn || ';' || r.codice_operatore_recipient || ';' || st.descr_stato || ';' || s1.data_i_o || ';' || s2.data_i_o || ';' || r.data_cut_over_calc ||';'
|
||||
from mnp_gestione_richiesta r, mnp_storico_richiesta s1, mnp_storico_richiesta s2, mnp_stato st
|
||||
where data_cut_over_calc <= decode(di,'nullo',trunc(sysdate+1),to_date(di,'dd-MON-yy'))
|
||||
AND stato in (7,9,14)
|
||||
AND tipo_cliente = 'CO'
|
||||
AND codice_pre_post_pagato = 'POP'
|
||||
AND r.id_richiesta = s1.id_richiesta
|
||||
AND s1.stato_da=1 AND s1.stato_a=3
|
||||
AND r.id_richiesta = s2.id_richiesta
|
||||
AND s2.stato_da=6 AND s2.stato_a=7
|
||||
AND r.stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
dir_out:='&2';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'DBC_CESSAZIONE_CONSUMER_POST_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice Richiesta; MSISDN richiesta ; Codice Operatore Recipient ; Stato Richiesta ; Data Presa in Carico ; Data Validazione effettiva ; Data Cut-Over Calcolata;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,61 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_res is
|
||||
select r.id_richiesta || ';' || r.msisdn || ';' || r.codice_operatore_recipient || ';' || st.descr_stato || ';' || s1.data_lavorazione || ';' || s2.data_lavorazione || ';' || r.data_cut_over_calc ||';'
|
||||
from mnp_gestione_richiesta r, mnp_storico_richiesta s1, mnp_storico_richiesta s2, mnp_stato st
|
||||
where data_cut_over_calc <= decode(di,'nullo',trunc(sysdate+1),to_date(di,'dd-MON-yy'))
|
||||
AND stato in (7,9,14)
|
||||
AND tipo_cliente = 'CO'
|
||||
AND codice_pre_post_pagato = 'PRP'
|
||||
AND r.id_richiesta = s1.id_richiesta
|
||||
AND s1.stato_da=1 AND s1.stato_a=3
|
||||
AND r.id_richiesta = s2.id_richiesta
|
||||
AND s2.stato_da=6 AND s2.stato_a=7
|
||||
AND r.stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
dir_out:='&2';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'DBC_CESSAZIONE_CONSUMER_PRE_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice Richiesta; MSISDN richiesta ; Codice Operatore Recipient ; Stato Richiesta ; Data Presa in Carico ; Data Validazione effettiva ; Data Cut-Over Calcolata;');
|
||||
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,56 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs varchar2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_res is
|
||||
select id_richiesta || ';' || msisdn || ';' || descr_stato || ';' || data_cut_over_calc ||';'
|
||||
from mnp_gestione_richiesta, mnp_stato st
|
||||
where data_cut_over_calc <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and data_cut_over_calc >= decode(df,'nullo',data_cut_over_calc,to_date(df,'dd-MON-yy'))
|
||||
AND stato in (14)
|
||||
AND stato = st.id_stato;
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'MSS_DBC_CESSAZIONEINRITARDO_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
UTL_FILE.put_line (file1,'Codice richiesta;Msisdn;Stato Richiesta;Data Cut-Over Calcolata;');
|
||||
OPEN cur_res;
|
||||
LOOP
|
||||
FETCH cur_res INTO rs;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
115
dbcmnpsrc/FE/mnpapp/script/report/sql/MNP_SC_CESS.sql
Normal file
115
dbcmnpsrc/FE/mnpapp/script/report/sql/MNP_SC_CESS.sql
Normal file
@@ -0,0 +1,115 @@
|
||||
set serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs varchar2(255);
|
||||
nomefile VARCHAR2(255);
|
||||
operatrec VARCHAR2(255);
|
||||
errmsg VARCHAR2(255);
|
||||
idrichiesta VARCHAR2(255);
|
||||
msisdn_ VARCHAR2(255);
|
||||
conta integer(5);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_rec_ack_ko is
|
||||
select xo.nome_file , gr.codice_operatore_recipient , xai.err_msg , xro.id_richiesta ,gr.msisdn
|
||||
from mnp_xml_out xo,
|
||||
mnp_gestione_richiesta gr,
|
||||
mnp_xml_richiesta_out xro,
|
||||
mnp_xml_ack_in xai,
|
||||
mnp_xml_in xi
|
||||
where xo.nome_file = xai.nome_file_riferito
|
||||
and xo.nome_file = xro.nome_file
|
||||
and xro.id_richiesta = gr.id_richiesta
|
||||
and xo.tipo_file = 6
|
||||
and xai.risultato = 'ERROR'
|
||||
and xi.nome_file = xai.nome_file
|
||||
and xi.tipo_file = 8
|
||||
--and trunc(xi.data_eff) <= trunc(sysdate);
|
||||
and trunc(xi.data_eff) <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and trunc(xi.data_eff) >= decode(df,'nullo',trunc(xi.data_eff),to_date(df,'dd-MON-yy'));
|
||||
|
||||
CURSOR cur_rec_noack is
|
||||
select xo.nome_file ,gr.codice_operatore_recipient , null ,xro.id_richiesta , gr.msisdn
|
||||
from mnp_xml_out xo,
|
||||
mnp_gestione_richiesta gr,
|
||||
mnp_xml_richiesta_out xro
|
||||
where xo.da_inviare = 2
|
||||
and xo.tipo_file = 6
|
||||
and xo.nome_file = xro.nome_file
|
||||
and xro.id_richiesta = gr.id_richiesta;
|
||||
|
||||
|
||||
BEGIN
|
||||
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
--DBMS_OUTPUT.PUT_LINE('i parametri sono di input ....' || di || '...df...' || df );
|
||||
|
||||
file1:=UTL_FILE.fopen(dir_out,'DONOR_TIM_ACKKOESPLETAMENTO_' || to_char(sysdate,'yyyyMMdd')||'.csv','w');
|
||||
UTL_FILE.put_line(file1,'Nome file Espletamento; Codice operatore; Messaggio Errore; Codice richiesta; MSISDN;');
|
||||
|
||||
conta:=0;
|
||||
OPEN cur_rec_ack_ko;
|
||||
LOOP
|
||||
FETCH cur_rec_ack_ko INTO nomefile,operatrec,errmsg,idrichiesta,msisdn_;
|
||||
EXIT when cur_rec_ack_ko%NOTFOUND;
|
||||
|
||||
select count(nome_file_riferito) into conta
|
||||
from mnp_xml_ack_in
|
||||
where nome_file_riferito = nomefile
|
||||
and risultato != 'ERROR';
|
||||
|
||||
if (conta = 0)then
|
||||
UTL_FILE.put_line(file1,nomefile || ';' || operatrec || ';' || errmsg || ';' || idrichiesta ||';' || msisdn_ || ';');
|
||||
else
|
||||
conta := 0;
|
||||
end if;
|
||||
|
||||
|
||||
END LOOP;
|
||||
CLOSE cur_rec_ack_ko;
|
||||
|
||||
nomefile :='';
|
||||
operatrec :='';
|
||||
errmsg :='';
|
||||
idrichiesta :='';
|
||||
msisdn_ :='';
|
||||
|
||||
|
||||
open cur_rec_noack;
|
||||
LOOP
|
||||
FETCH cur_rec_noack INTO nomefile,operatrec,errmsg,idrichiesta,msisdn_;
|
||||
EXIT WHEN cur_rec_noack%NOTFOUND;
|
||||
|
||||
UTL_FILE.put_line(file1,nomefile || ';' || operatrec || ';' || errmsg || ';' || idrichiesta ||';' || msisdn_ || ';');
|
||||
END LOOP;
|
||||
CLOSE cur_rec_noack;
|
||||
UTL_FILE.fflush(file1);
|
||||
UTL_FILE.fclose(file1);
|
||||
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
122
dbcmnpsrc/FE/mnpapp/script/report/sql/MNP_SC_PIC.sql
Normal file
122
dbcmnpsrc/FE/mnpapp/script/report/sql/MNP_SC_PIC.sql
Normal file
@@ -0,0 +1,122 @@
|
||||
set serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs VARCHAR2(255);
|
||||
nomefile VARCHAR2(255);
|
||||
operatrec VARCHAR2(255);
|
||||
errmsg VARCHAR2(255);
|
||||
pippo varchar2(255):='&1';
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
idrichiesta VARCHAR2(255);
|
||||
msisdn_ VARCHAR2(255);
|
||||
conta integer(5);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
|
||||
|
||||
|
||||
CURSOR cur_rec_ack_ko is
|
||||
select distinct xo.nome_file , gr.codice_operatore_recipient , xai.err_msg , xro.id_richiesta , gr.msisdn
|
||||
from mnp_xml_out xo,
|
||||
mnp_xml_in xi,
|
||||
mnp_gestione_richiesta gr,
|
||||
mnp_xml_richiesta_out xro,
|
||||
mnp_xml_ack_in xai
|
||||
where xo.nome_file = xai.nome_file_riferito
|
||||
and xo.nome_file = xro.nome_file
|
||||
and xro.id_richiesta = gr.id_richiesta
|
||||
and xo.tipo_file = 5
|
||||
and xai.risultato = 'ERROR'
|
||||
and xi.nome_file = xai.nome_file
|
||||
and xi.tipo_file = 8
|
||||
-- and trunc(xi.data_eff) <= trunc(sysdate);
|
||||
and trunc(xi.data_eff) <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and trunc(xi.data_eff) >= decode(df,'nullo',trunc(xi.data_eff),to_date(df,'dd-MON-yy'));
|
||||
|
||||
|
||||
|
||||
CURSOR cur_rec_noack is
|
||||
select distinct xo.nome_file , gr.codice_operatore_recipient , null , xro.id_richiesta , gr.msisdn
|
||||
from mnp_xml_out xo,
|
||||
mnp_gestione_richiesta gr,
|
||||
mnp_xml_richiesta_out xro
|
||||
where xo.da_inviare = 2
|
||||
and xo.tipo_file = 5
|
||||
and xo.nome_file = xro.nome_file
|
||||
and xro.id_richiesta = gr.id_richiesta;
|
||||
BEGIN
|
||||
|
||||
|
||||
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
--DBMS_OUTPUT.PUT_LINE('i parametri sono di input ....' || di || '...df...' || df );
|
||||
|
||||
|
||||
file1 := UTL_FILE.fopen(dir_out,'DONOR_TIM_ACKKOPRESAINCARICO_' || to_char(sysdate,'yyyyMMdd')||'.csv','w');
|
||||
UTL_FILE.put_line(file1,'Nome file; Codice operatore Recipient; Messaggio di errore; Codice delle richieste; MSISDN;');
|
||||
conta:=0;
|
||||
OPEN cur_rec_ack_ko;
|
||||
LOOP
|
||||
FETCH cur_rec_ack_ko INTO nomefile,operatrec,errmsg,idrichiesta,msisdn_;
|
||||
EXIT when cur_rec_ack_ko%NOTFOUND;
|
||||
|
||||
select count(nome_file_riferito) into conta
|
||||
from mnp_xml_ack_in
|
||||
where nome_file_riferito = nomefile
|
||||
and risultato != 'ERROR';
|
||||
|
||||
if (conta = 0)then
|
||||
UTL_FILE.put_line(file1,nomefile || ';' || operatrec || ';' || errmsg || ';' || idrichiesta ||';' || msisdn_ || ';');
|
||||
else
|
||||
conta := 0;
|
||||
end if;
|
||||
|
||||
|
||||
END LOOP;
|
||||
CLOSE cur_rec_ack_ko;
|
||||
|
||||
nomefile :='';
|
||||
operatrec :='';
|
||||
errmsg :='';
|
||||
idrichiesta :='';
|
||||
msisdn_ :='';
|
||||
|
||||
|
||||
open cur_rec_noack;
|
||||
LOOP
|
||||
FETCH cur_rec_noack INTO nomefile,operatrec,errmsg,idrichiesta,msisdn_;
|
||||
EXIT WHEN cur_rec_noack%NOTFOUND;
|
||||
|
||||
UTL_FILE.put_line(file1,nomefile || ';' || operatrec || ';' || errmsg || ';' || idrichiesta ||';' || msisdn_ || ';');
|
||||
END LOOP;
|
||||
CLOSE cur_rec_noack;
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
112
dbcmnpsrc/FE/mnpapp/script/report/sql/MNP_SC_VAL.sql
Normal file
112
dbcmnpsrc/FE/mnpapp/script/report/sql/MNP_SC_VAL.sql
Normal file
@@ -0,0 +1,112 @@
|
||||
set serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs VARCHAR2(255);
|
||||
nomefile VARCHAR2(255);
|
||||
operatrec VARCHAR2(255);
|
||||
errmsg VARCHAR2(255);
|
||||
idrichiesta VARCHAR2(255);
|
||||
msisdn_ VARCHAR2(255);
|
||||
conta integer(5);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
|
||||
CURSOR cur_rec_ack_ko is
|
||||
select distinct xo.nome_file , gr.codice_operatore_recipient , xai.err_msg ,xro.id_richiesta , gr.msisdn
|
||||
from mnp_xml_out xo,
|
||||
mnp_gestione_richiesta gr,
|
||||
mnp_xml_richiesta_out xro,
|
||||
mnp_xml_ack_in xai,
|
||||
mnp_xml_in xi
|
||||
where xo.nome_file = xai.nome_file_riferito
|
||||
and xo.nome_file = xro.nome_file
|
||||
and xro.id_richiesta = gr.id_richiesta
|
||||
and xo.tipo_file = 2
|
||||
and xai.risultato = 'ERROR'
|
||||
and xi.nome_file = xai.nome_file
|
||||
and xi.tipo_file = 8
|
||||
and trunc(xi.data_eff) <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and trunc(xi.data_eff) >= decode(df,'nullo',trunc(xi.data_eff),to_date(df,'dd-MON-yy'));
|
||||
|
||||
CURSOR cur_rec_noack is
|
||||
select distinct xo.nome_file , gr.codice_operatore_recipient , null , xro.id_richiesta , gr.msisdn
|
||||
from mnp_xml_out xo,
|
||||
mnp_gestione_richiesta gr,
|
||||
mnp_xml_richiesta_out xro
|
||||
where xo.da_inviare= 2
|
||||
and xo.tipo_file = 2
|
||||
and xo.nome_file = xro.nome_file
|
||||
and xro.id_richiesta = gr.id_richiesta;
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
file1:=UTL_FILE.fopen(dir_out,'DONOR_TIM_ACKKOVALIDAZIONE_' || to_char(sysdate,'yyyyMMdd') ||'.csv','w');
|
||||
UTL_FILE.put_line(file1,'Nome file Validazione; Codice Operatore; Messaggio di errore; Codice Richiesta; MSISDN;');
|
||||
|
||||
conta:=0;
|
||||
OPEN cur_rec_ack_ko;
|
||||
LOOP
|
||||
FETCH cur_rec_ack_ko INTO nomefile,operatrec,errmsg,idrichiesta,msisdn_;
|
||||
EXIT when cur_rec_ack_ko%NOTFOUND;
|
||||
|
||||
select count(nome_file_riferito) into conta
|
||||
from mnp_xml_ack_in
|
||||
where nome_file_riferito = nomefile
|
||||
and risultato != 'ERROR';
|
||||
|
||||
if (conta = 0)then
|
||||
UTL_FILE.put_line(file1,nomefile || ';' || operatrec || ';' || errmsg || ';' || idrichiesta ||';' || msisdn_ || ';');
|
||||
else
|
||||
conta := 0;
|
||||
end if;
|
||||
|
||||
|
||||
END LOOP;
|
||||
CLOSE cur_rec_ack_ko;
|
||||
|
||||
nomefile :='';
|
||||
operatrec :='';
|
||||
errmsg :='';
|
||||
idrichiesta :='';
|
||||
msisdn_ :='';
|
||||
|
||||
|
||||
open cur_rec_noack;
|
||||
LOOP
|
||||
FETCH cur_rec_noack INTO nomefile,operatrec,errmsg,idrichiesta,msisdn_;
|
||||
EXIT WHEN cur_rec_noack%NOTFOUND;
|
||||
|
||||
UTL_FILE.put_line(file1,nomefile || ';' || operatrec || ';' || errmsg || ';' || idrichiesta ||';' || msisdn_ || ';');
|
||||
END LOOP;
|
||||
CLOSE cur_rec_noack;
|
||||
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
|
||||
exception
|
||||
WHEN others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,222 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs1 VARCHAR2 (255);
|
||||
rs2 VARCHAR2 (255);
|
||||
operatore VARCHAR2 (15);
|
||||
operatore_res VARCHAR2 (15);
|
||||
operatore_ VARCHAR2 (15);
|
||||
dir_out VARCHAR2 (255);
|
||||
num NUMBER (15, 0);
|
||||
totale NUMBER (15, 0);
|
||||
cod_ope VARCHAR2 (15);
|
||||
cod VARCHAR2 (4);
|
||||
file1 UTL_FILE.file_type;
|
||||
data_inizio DATE;
|
||||
data_fine DATE;
|
||||
DATA DATE;
|
||||
di DATE;
|
||||
p VARCHAR2 (15) := '&1';
|
||||
cod_olo NUMBER (5);
|
||||
|
||||
--cursore degli operatori
|
||||
CURSOR cur_operatori
|
||||
IS
|
||||
SELECT desc_olo, cod_olo
|
||||
FROM mnp_olo_report
|
||||
WHERE flag_attivo = 1 AND desc_olo NOT IN ('TIMT', 'TIMG')
|
||||
ORDER BY desc_olo;
|
||||
|
||||
--Numero di attivazioni non effettuate da un operatore in qualita di terza parte
|
||||
CURSOR cur_res (
|
||||
data_inizio DATE,
|
||||
data_fine DATE,
|
||||
cod_olo NUMBER,
|
||||
operatore VARCHAR2
|
||||
)
|
||||
IS
|
||||
SELECT olo.desc_olo, NVL (SUM (x.num), 0)
|
||||
FROM mnp_olo_report olo,
|
||||
(SELECT COUNT (r.id_richiesta) num,
|
||||
codice_operatore_donating cod
|
||||
FROM mnp_gestione_richiesta_rec r
|
||||
WHERE r.data_cut_over_calc >= TRUNC (data_inizio)
|
||||
AND r.data_cut_over_calc <= TRUNC (data_fine)
|
||||
AND r.espletamentoterzeparti LIKE '%' || cod_olo || '%'
|
||||
AND r.codice_operatore_donating != operatore
|
||||
AND r.codice_operatore_donating = 'TIMT'
|
||||
AND r.stato IN (8, 10, 11)
|
||||
GROUP BY codice_operatore_donating
|
||||
UNION ALL
|
||||
SELECT COUNT (r.id_richiesta) num,
|
||||
codice_operatore_donating cod
|
||||
FROM mnp_gestione_richiesta_rec r
|
||||
WHERE r.data_cut_over_aom >= TRUNC (data_inizio)
|
||||
AND r.data_cut_over_aom <= TRUNC (data_fine)
|
||||
AND r.espletamentoterzeparti LIKE '%' || cod_olo || '%'
|
||||
AND r.codice_operatore_donating != operatore
|
||||
AND r.codice_operatore_donating != 'TIMT'
|
||||
AND r.stato IN (8, 10, 11)
|
||||
GROUP BY codice_operatore_donating
|
||||
UNION ALL
|
||||
SELECT COUNT (r.id_richiesta) num,
|
||||
codice_operatore_donating cod
|
||||
FROM mnp_gestione_richiesta_rec r
|
||||
WHERE r.data_cut_over_calc >= TRUNC (data_inizio)
|
||||
AND r.data_cut_over_calc <= TRUNC (data_fine)
|
||||
AND r.codice_operatore_donating != operatore
|
||||
AND r.codice_operatore_donating = 'TIMT'
|
||||
AND r.stato IN (8, 10, 11, 12)
|
||||
AND EXISTS (
|
||||
SELECT xri.id_richiesta
|
||||
FROM mnp_xml_in xi, mnp_xml_richiesta_in xri
|
||||
WHERE xi.tipo_file = 6
|
||||
AND xi.mittente = operatore
|
||||
AND xi.nome_file = xri.nome_file
|
||||
AND xri.id_richiesta = r.id_richiesta
|
||||
AND xri.richiestaxml LIKE
|
||||
'%<STATO_RICHIESTA_NOTIFICA>4%'
|
||||
AND TRUNC (xi.data_eff) > r.data_cut_over_calc
|
||||
MINUS
|
||||
SELECT xri.id_richiesta
|
||||
FROM mnp_xml_in xi, mnp_xml_richiesta_in xri
|
||||
WHERE xi.tipo_file = 6
|
||||
AND xi.mittente = operatore
|
||||
AND xi.nome_file = xri.nome_file
|
||||
AND xri.id_richiesta = r.id_richiesta
|
||||
AND xri.richiestaxml LIKE
|
||||
'%<STATO_RICHIESTA_NOTIFICA>4%'
|
||||
AND TRUNC (xi.data_eff) <= r.data_cut_over_calc)
|
||||
GROUP BY codice_operatore_donating
|
||||
UNION ALL
|
||||
SELECT COUNT (r.id_richiesta) num,
|
||||
codice_operatore_donating cod
|
||||
FROM mnp_gestione_richiesta_rec r
|
||||
WHERE r.data_cut_over_aom >= TRUNC (data_inizio)
|
||||
AND r.data_cut_over_aom <= TRUNC (data_fine)
|
||||
AND r.codice_operatore_donating != operatore
|
||||
AND r.codice_operatore_donating != 'TIMT'
|
||||
AND r.stato IN (8, 10, 11, 12)
|
||||
AND EXISTS (
|
||||
SELECT xri.id_richiesta
|
||||
FROM mnp_xml_in xi, mnp_xml_richiesta_in xri
|
||||
WHERE xi.tipo_file = 6
|
||||
AND xi.mittente = operatore
|
||||
AND xi.nome_file = xri.nome_file
|
||||
AND xri.id_richiesta = r.id_richiesta
|
||||
AND xri.richiestaxml LIKE
|
||||
'%<STATO_RICHIESTA_NOTIFICA>4%'
|
||||
AND TRUNC (xi.data_eff) > r.data_cut_over_aom
|
||||
MINUS
|
||||
SELECT xri.id_richiesta
|
||||
FROM mnp_xml_in xi, mnp_xml_richiesta_in xri
|
||||
WHERE xi.tipo_file = 6
|
||||
AND xi.mittente = operatore
|
||||
AND xi.nome_file = xri.nome_file
|
||||
AND xri.id_richiesta = r.id_richiesta
|
||||
AND xri.richiestaxml LIKE
|
||||
'%<STATO_RICHIESTA_NOTIFICA>4%'
|
||||
AND TRUNC (xi.data_eff) <= r.data_cut_over_aom)
|
||||
GROUP BY codice_operatore_donating) x
|
||||
WHERE olo.flag_attivo = 1 AND olo.desc_olo = x.cod(+)
|
||||
GROUP BY olo.desc_olo
|
||||
ORDER BY desc_olo;
|
||||
--INIZIO
|
||||
BEGIN
|
||||
IF (p <> 'nullo')
|
||||
THEN
|
||||
data_inizio := TO_DATE ('&1', 'dd/mm/yyyy');
|
||||
data_fine := TO_DATE ('&2', 'dd/mm/yyyy');
|
||||
dir_out := '&3';
|
||||
ELSE
|
||||
IF (TO_CHAR (SYSDATE, 'DD') <= '15')
|
||||
THEN
|
||||
DATA := ADD_MONTHS ((TRUNC (SYSDATE)), -1);
|
||||
data_inizio :=
|
||||
TO_DATE ('16/' || TO_CHAR (TRUNC (DATA), 'mm/yyyy'),
|
||||
'dd/mm/yyyy');
|
||||
data_fine := LAST_DAY (TRUNC (DATA));
|
||||
ELSE
|
||||
data_inizio :=
|
||||
TO_DATE ('01/' || TO_CHAR (TRUNC (SYSDATE), 'mm/yyyy'),
|
||||
'dd/mm/yyyy'
|
||||
);
|
||||
data_fine :=
|
||||
TO_DATE ('15/' || TO_CHAR (TRUNC (SYSDATE), 'mm/yyyy'),
|
||||
'dd/mm/yyyy'
|
||||
);
|
||||
END IF;
|
||||
|
||||
SELECT donor_out
|
||||
INTO dir_out
|
||||
FROM mnp_olo_report
|
||||
WHERE desc_olo = 'MONIT';
|
||||
END IF;
|
||||
|
||||
BEGIN
|
||||
OPEN cur_operatori;
|
||||
|
||||
LOOP
|
||||
FETCH cur_operatori
|
||||
INTO operatore, cod_olo;
|
||||
|
||||
EXIT WHEN cur_operatori%NOTFOUND;
|
||||
totale := 0;
|
||||
file1 :=
|
||||
UTL_FILE.fopen (dir_out,
|
||||
'TIMG_to_'
|
||||
|| UPPER (operatore)
|
||||
|| '_AttivazioneNonEffet_'
|
||||
|| TO_CHAR (SYSDATE, 'yyyyMMdd')
|
||||
|| '.csv',
|
||||
'w'
|
||||
);
|
||||
UTL_FILE.put_line
|
||||
(file1,
|
||||
'Numero di attivazioni non effettuate da '
|
||||
|| UPPER (operatore)
|
||||
|| ' in qualità di operatore terza parte il giorno di cut_over previsto'
|
||||
);
|
||||
UTL_FILE.put_line (file1, ' ');
|
||||
UTL_FILE.put_line (file1,
|
||||
'Periodo dal '
|
||||
|| TRUNC (data_inizio)
|
||||
|| ' al '
|
||||
|| TRUNC (data_fine)
|
||||
);
|
||||
UTL_FILE.put_line (file1, ' ');
|
||||
UTL_FILE.put_line (file1,
|
||||
'Operatore OLO terza Parte: ' || UPPER (operatore)
|
||||
);
|
||||
UTL_FILE.put_line (file1, ' ');
|
||||
UTL_FILE.put_line (file1, ';TIMG ');
|
||||
|
||||
OPEN cur_res (data_inizio, data_fine, cod_olo, operatore);
|
||||
|
||||
LOOP
|
||||
FETCH cur_res
|
||||
INTO operatore_, num;
|
||||
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
UTL_FILE.put_line (file1, operatore_ || ';' || num);
|
||||
totale := totale + num;
|
||||
END LOOP;
|
||||
|
||||
CLOSE cur_res;
|
||||
|
||||
UTL_FILE.put_line (file1, 'Totale' || ';' || totale);
|
||||
END LOOP;
|
||||
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
|
||||
CLOSE cur_operatori;
|
||||
EXCEPTION
|
||||
WHEN OTHERS
|
||||
THEN
|
||||
DBMS_OUTPUT.put_line (SQLERRM);
|
||||
END;
|
||||
END;
|
||||
/
|
||||
|
||||
EXIT;
|
||||
411
dbcmnpsrc/FE/mnpapp/script/report/sql/NumeroLineePortate.sql
Normal file
411
dbcmnpsrc/FE/mnpapp/script/report/sql/NumeroLineePortate.sql
Normal file
@@ -0,0 +1,411 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs1 varchar2(255);
|
||||
rs2 varchar2(255);
|
||||
operatore varchar2(15);
|
||||
ope_don varchar2(15);
|
||||
dir_out varchar2(255);
|
||||
num NUMBER(15,0):=0;
|
||||
totale NUMBER(15,0):=0;
|
||||
file1 UTL_FILE.file_type;
|
||||
data_inizio date;
|
||||
data_fine date;
|
||||
data date;
|
||||
di date;
|
||||
p varchar2(15):='&1';
|
||||
cod varchar2(15);
|
||||
cod1 varchar2(15);
|
||||
desc_olo varchar2(15);
|
||||
tot NUMBER(15,0):=0;
|
||||
count_tot NUMBER(15,0):=0;
|
||||
num1 number(15,0):=0;
|
||||
num2 number(15,0):=0;
|
||||
num3 number(15,0):=0;
|
||||
num4 number(15,0):=0;
|
||||
num5 number(15,0):=0;
|
||||
num6 number(15,0):=0;
|
||||
num7 number(15,0):=0;
|
||||
num8 number(15,0):=0;
|
||||
num9 number(15,0):=0;
|
||||
num10 number(15,0):=0;
|
||||
num11 number(15,0):=0;
|
||||
num12 number(15,0):=0;
|
||||
num13 number(15,0):=0;
|
||||
num14 number(15,0):=0;
|
||||
num15 number(15,0):=0;
|
||||
num16 number(15,0):=0;
|
||||
num17 number(15,0):=0;
|
||||
num18 number(15,0):=0;
|
||||
num19 number(15,0):=0;
|
||||
num20 number(15,0):=0;
|
||||
num21 number(15,0):=0;
|
||||
num22 number(15,0):=0;
|
||||
num23 number(15,0):=0;
|
||||
num24 number(15,0):=0;
|
||||
num25 number(15,0):=0;
|
||||
num26 number(15,0):=0;
|
||||
num27 number(15,0):=0;
|
||||
num28 number(15,0):=0;
|
||||
num29 number(15,0):=0;
|
||||
num30 number(15,0):=0;
|
||||
totale1 NUMBER(15,0):=0;
|
||||
totale2 NUMBER(15,0):=0;
|
||||
totale3 NUMBER(15,0):=0;
|
||||
totale4 NUMBER(15,0):=0;
|
||||
totale5 NUMBER(15,0):=0;
|
||||
totale6 NUMBER(15,0):=0;
|
||||
totale7 NUMBER(15,0):=0;
|
||||
totale8 NUMBER(15,0):=0;
|
||||
totale9 NUMBER(15,0):=0;
|
||||
totale10 NUMBER(15,0):=0;
|
||||
totale11 NUMBER(15,0):=0;
|
||||
totale12 NUMBER(15,0):=0;
|
||||
totale13 NUMBER(15,0):=0;
|
||||
totale14 NUMBER(15,0):=0;
|
||||
totale15 NUMBER(15,0):=0;
|
||||
totale16 NUMBER(15,0):=0;
|
||||
totale17 NUMBER(15,0):=0;
|
||||
totale18 NUMBER(15,0):=0;
|
||||
totale19 NUMBER(15,0):=0;
|
||||
totale20 NUMBER(15,0):=0;
|
||||
totale21 NUMBER(15,0):=0;
|
||||
totale22 NUMBER(15,0):=0;
|
||||
totale23 NUMBER(15,0):=0;
|
||||
totale24 NUMBER(15,0):=0;
|
||||
totale25 NUMBER(15,0):=0;
|
||||
totale26 NUMBER(15,0):=0;
|
||||
totale27 NUMBER(15,0):=0;
|
||||
totale28 NUMBER(15,0):=0;
|
||||
totale29 NUMBER(15,0):=0;
|
||||
totale30 NUMBER(15,0):=0;
|
||||
|
||||
|
||||
-- Cursore degli operatori per la riga dei donating
|
||||
CURSOR cur_operatori is
|
||||
SELECT desc_olo
|
||||
FROM mnp_olo_report
|
||||
where flag_attivo = 1
|
||||
--and desc_olo <> 'TIMG'
|
||||
order by desc_olo;
|
||||
|
||||
--Numero di linee portate tra operatori non TIM
|
||||
CURSOR cur_res(data_inizio date, data_fine date, operatore_ varchar2) is
|
||||
select nvl(sum(a.num),0),a.cod,a.cod1,b.desc_olo
|
||||
from mnp_olo_report b,
|
||||
(
|
||||
select count(*)num,codice_operatore_recipient cod,codice_operatore_donating cod1
|
||||
from mnp_gestione_richiesta_porting grp,
|
||||
(SELECT desc_olo
|
||||
FROM mnp_olo_report
|
||||
where flag_attivo = 1) a
|
||||
where grp.stato in (4,6)
|
||||
and data_cut_over >= trunc(data_inizio)
|
||||
and data_cut_over <= trunc(data_fine)
|
||||
and grp.codice_operatore_donating = a.desc_olo
|
||||
and grp.codice_operatore_recipient = operatore_
|
||||
group by codice_operatore_recipient , codice_operatore_donating)a
|
||||
where a.cod1(+) = b.desc_olo
|
||||
and b.flag_attivo = 1
|
||||
group by a.cod,a.cod1,b.desc_olo
|
||||
order by b.desc_olo;
|
||||
------------------------------------------------
|
||||
|
||||
-- fine dichiarazione dei cursori
|
||||
-- inizio procedura
|
||||
|
||||
BEGIN
|
||||
|
||||
if (p <> 'nullo')then
|
||||
data_inizio := to_date('&1','dd/mm/yyyy');
|
||||
data_fine := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
|
||||
else
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
|
||||
if (to_char(sysdate, 'DD')<= '15') then
|
||||
|
||||
data := add_months((trunc(sysdate)), -1);
|
||||
data_inizio := to_date('16/'|| to_char(trunc(data), 'mm/yyyy'),'dd/mm/yyyy');
|
||||
data_fine := last_day(trunc(data));
|
||||
else
|
||||
data_inizio := to_date('01/'|| to_char(trunc(sysdate), 'mm/yyyy'), 'dd/mm/yyyy');
|
||||
data_fine := to_date('15/'|| to_char(trunc(sysdate), 'mm/yyyy'), 'dd/mm/yyyy');
|
||||
end if;
|
||||
end if;
|
||||
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'TIM_to_AOM_NumeroLineePortate_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
|
||||
BEGIN
|
||||
|
||||
--DBMS_OUTPUT.PUT_LINE('la data è....'|| data_inizio ||'...'|| data_fine);
|
||||
--data_inizio := to_date('01/05/2003', 'dd/mm/yyyy');
|
||||
--data_fine := to_date('31/05/2003', 'dd/mm/yyyy');
|
||||
UTL_FILE.put_line (file1,'Numero di linee portate tra operatori non TIM');
|
||||
UTL_FILE.put_line (file1,' ');
|
||||
UTL_FILE.put_line (file1,'Periodo dal '|| trunc(data_inizio) || ' al '|| trunc(data_fine));
|
||||
UTL_FILE.put_line (file1,' ');
|
||||
UTL_FILE.put_line (file1,'Operatore Terza Parte TIM');
|
||||
UTL_FILE.put_line (file1,' ');
|
||||
|
||||
|
||||
rs1:='';
|
||||
rs2:='';
|
||||
tot := 0;
|
||||
totale:= 0;
|
||||
OPEN cur_operatori;
|
||||
LOOP
|
||||
FETCH cur_operatori INTO ope_don;
|
||||
EXIT WHEN cur_operatori%NOTFOUND;
|
||||
|
||||
rs1:= rs1 ||';'|| ope_don ;
|
||||
|
||||
END LOOP;
|
||||
CLOSE cur_operatori;
|
||||
rs1:=rs1 ||';'||'TOTALE';
|
||||
UTL_FILE.put_line (file1,rs1);
|
||||
UTL_FILE.fflush (file1);
|
||||
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
|
||||
begin
|
||||
|
||||
rs1:='';
|
||||
rs2:='';
|
||||
totale:=0;
|
||||
tot:= 0;
|
||||
|
||||
OPEN cur_operatori;
|
||||
LOOP
|
||||
FETCH cur_operatori INTO ope_don;
|
||||
EXIT WHEN cur_operatori%NOTFOUND;
|
||||
|
||||
OPEN cur_res(data_inizio, data_fine,ope_don);
|
||||
LOOP
|
||||
FETCH cur_res INTO num,cod,cod1,desc_olo;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
|
||||
count_tot := count_tot + 1;
|
||||
rs2 := '' || rs2 || num ||';';
|
||||
--DBMS_OUTPUT.PUT_LINE('sono qui......');
|
||||
|
||||
if (count_tot = 1) then
|
||||
num1:= num + num1;
|
||||
tot := num1 + tot;
|
||||
totale1:= totale1 + num1;
|
||||
|
||||
end if;
|
||||
if (count_tot = 2) then
|
||||
num2:= num + num2;
|
||||
tot := num2 + tot;
|
||||
totale2:= totale2 + num2;
|
||||
end if;
|
||||
if (count_tot = 3) then
|
||||
num3:= num + num3;
|
||||
tot := num3 + tot;
|
||||
totale3:= totale3 + num3;
|
||||
end if;
|
||||
if (count_tot = 4) then
|
||||
num4:= num + num4;
|
||||
tot := num4 + tot;
|
||||
totale4:= totale4 + num4;
|
||||
end if;
|
||||
if (count_tot = 5) then
|
||||
num5:= num + num5;
|
||||
tot := num5 + tot;
|
||||
totale5:= totale5 + num5;
|
||||
end if;
|
||||
if (count_tot = 6) then
|
||||
num6:= num + num6;
|
||||
tot := num6 + tot;
|
||||
totale6:= totale6 + num6;
|
||||
end if;
|
||||
if (count_tot = 7) then
|
||||
num7:= num + num7;
|
||||
tot := num7 + tot;
|
||||
totale7:= totale7 + num7;
|
||||
end if;
|
||||
if (count_tot = 8) then
|
||||
num8:= num + num8;
|
||||
tot := num8 + tot;
|
||||
totale8:= totale8 + num8;
|
||||
end if;
|
||||
if (count_tot = 9) then
|
||||
num9:= num + num9;
|
||||
tot := num9 + tot;
|
||||
totale9:= totale9 + num9;
|
||||
end if;
|
||||
if (count_tot = 10) then
|
||||
num10:= num + num10;
|
||||
tot := num10 + tot;
|
||||
totale10:= totale10 + num10;
|
||||
end if;
|
||||
if (count_tot = 11) then
|
||||
num11:= num + num11;
|
||||
tot := num11 + tot;
|
||||
totale11:= totale11 + num11;
|
||||
end if;
|
||||
if (count_tot = 12) then
|
||||
num12:= num + num12;
|
||||
tot := num12 + tot;
|
||||
totale12:= totale12 + num12;
|
||||
end if;
|
||||
if (count_tot = 13) then
|
||||
num13:= num + num13;
|
||||
tot := num13 + tot;
|
||||
totale13:= totale13 + num13;
|
||||
end if;
|
||||
if (count_tot = 14) then
|
||||
num14:= num + num14;
|
||||
tot := num14 + tot;
|
||||
totale14:= totale14 + num14;
|
||||
end if;
|
||||
if (count_tot = 15) then
|
||||
num15:= num + num15;
|
||||
tot := num15 + tot;
|
||||
totale15:= totale15 + num15;
|
||||
end if;
|
||||
if (count_tot = 16) then
|
||||
num16:= num + num16;
|
||||
tot := num16 + tot;
|
||||
totale16:= totale16 + num16;
|
||||
end if;
|
||||
if (count_tot = 17) then
|
||||
num17:= num + num17;
|
||||
tot := num17 + tot;
|
||||
totale17:= totale17 + num17;
|
||||
end if;
|
||||
if (count_tot = 18) then
|
||||
num18:= num + num18;
|
||||
tot := num18 + tot;
|
||||
totale18:= totale18 + num18;
|
||||
end if;
|
||||
if (count_tot = 19) then
|
||||
num19:= num + num19;
|
||||
tot := num19 + tot;
|
||||
totale19:= totale19 + num19;
|
||||
end if;
|
||||
if (count_tot = 20) then
|
||||
num20:= num + num20;
|
||||
tot := num20 + tot;
|
||||
totale20:= totale20 + num20;
|
||||
end if;
|
||||
if (count_tot = 21) then
|
||||
num21:= num + num21;
|
||||
tot := num21 + tot;
|
||||
totale21:= totale21 + num21;
|
||||
end if;
|
||||
if (count_tot = 22) then
|
||||
num22:= num + num22;
|
||||
tot := num22 + tot;
|
||||
totale22:= totale22 + num22;
|
||||
end if;
|
||||
if (count_tot = 23) then
|
||||
num23:= num + num23;
|
||||
tot := num23 + tot;
|
||||
totale23:= totale23 + num23;
|
||||
end if;
|
||||
if (count_tot = 24) then
|
||||
num24:= num + num24;
|
||||
tot := num24 + tot;
|
||||
totale24:= totale24 + num24;
|
||||
end if;
|
||||
if (count_tot = 25) then
|
||||
num25:= num + num25;
|
||||
tot := num25 + tot;
|
||||
totale25:= totale25 + num25;
|
||||
end if;
|
||||
if (count_tot = 26) then
|
||||
num26:= num + num26;
|
||||
tot := num26 + tot;
|
||||
totale26:= totale26 + num26;
|
||||
end if;
|
||||
if (count_tot = 27) then
|
||||
num27:= num + num10;
|
||||
tot := num27 + tot;
|
||||
totale27:= totale27 + num27;
|
||||
end if;
|
||||
if (count_tot = 28) then
|
||||
num28:= num + num28;
|
||||
tot := num28 + tot;
|
||||
totale28:= totale28 + num28;
|
||||
end if;
|
||||
if (count_tot = 29) then
|
||||
num29:= num + num29;
|
||||
tot := num29 + tot;
|
||||
totale29:= totale29 + num29;
|
||||
end if;
|
||||
if (count_tot = 30) then
|
||||
num30:= num + num30;
|
||||
tot := num30 + tot;
|
||||
totale30:= totale30 + num30;
|
||||
end if;
|
||||
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
|
||||
|
||||
UTL_FILE.put_line (file1,ope_don ||';'|| rs2 || tot ||';');
|
||||
UTL_FILE.fflush (file1);
|
||||
rs2 := '';
|
||||
tot := 0;
|
||||
num1 := 0;
|
||||
num2 := 0;
|
||||
num3 := 0;
|
||||
num4 := 0;
|
||||
num5 := 0;
|
||||
num6 := 0;
|
||||
num7 := 0;
|
||||
num8 := 0;
|
||||
num9 := 0;
|
||||
num10 := 0;
|
||||
num11 := 0;
|
||||
num12 := 0;
|
||||
num13 := 0;
|
||||
num14 := 0;
|
||||
num15 := 0;
|
||||
num16 := 0;
|
||||
num17 := 0;
|
||||
num18 := 0;
|
||||
num19 := 0;
|
||||
num20 := 0;
|
||||
num21 := 0;
|
||||
num22 := 0;
|
||||
num23 := 0;
|
||||
num24 := 0;
|
||||
num25 := 0;
|
||||
num26 := 0;
|
||||
num27 := 0;
|
||||
num28 := 0;
|
||||
num29 := 0;
|
||||
num30 := 0;
|
||||
|
||||
end loop;
|
||||
totale:= totale1+totale2+totale3+totale4+totale5+totale6+totale7+totale8+totale9+totale10+totale11+totale12+totale13+totale14+totale15+totale16+totale17+totale18+totale19+totale20+totale21+totale22+totale23+totale24+totale25+totale26+totale27+totale28+totale29+totale30;
|
||||
totale1 := totale1+totale6+totale11+totale16+totale21;
|
||||
totale2 := totale2+totale7+totale12+totale17+totale22;
|
||||
totale3 := totale3+totale8+totale13+totale18+totale23;
|
||||
totale4 := totale4+totale9+totale14+totale19+totale24;
|
||||
totale5 := totale5+totale10+totale15+totale20+totale25;
|
||||
UTL_FILE.put_line (file1,'TOTALE;'|| totale1 || ';'|| totale2 || ';'|| totale3 || ';'|| totale4 || ';'|| totale5 || ';'|| totale ||';');
|
||||
CLOSE cur_operatori;
|
||||
|
||||
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
|
||||
|
||||
end;
|
||||
/
|
||||
exit;
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
SET serveroutput on
|
||||
|
||||
DECLARE
|
||||
|
||||
rs1 varchar2(255);
|
||||
rs2 varchar2(255);
|
||||
operatore varchar2(15);
|
||||
dir_out varchar2(255);
|
||||
num NUMBER(15,0);
|
||||
totale NUMBER(15,0);
|
||||
cod_dig varchar2(1);
|
||||
cod varchar2(4);
|
||||
file1 UTL_FILE.file_type;
|
||||
data_inizio date;
|
||||
data_fine date;
|
||||
data date;
|
||||
di date;
|
||||
di date;
|
||||
p varchar2(15):='&1';
|
||||
|
||||
--Numero di richieste ricevute dalla rete di distribuzione nel periodo di riferimento
|
||||
CURSOR cur_res(data_inizio date, data_fine date) is
|
||||
select olo.desc_olo,nvl(X.num,0)
|
||||
from mnp_olo_report olo, (
|
||||
select count(distinct msisdn) num , codice_operatore_donating cod
|
||||
from mnp_gestione_richiesta_rec
|
||||
where codice_operatore_recipient = 'TIMG'
|
||||
and dataricezionerichiesta >= trunc(data_inizio)
|
||||
and dataricezionerichiesta <= trunc(data_fine)
|
||||
group by codice_operatore_donating
|
||||
|
||||
) X
|
||||
where olo.flag_attivo = 1
|
||||
and olo.desc_olo <> 'TIMG'
|
||||
and olo.desc_olo = x.cod(+)
|
||||
order by olo.desc_olo;
|
||||
--------------------------------------------
|
||||
--INIZIO
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
dir_out:='&3';
|
||||
|
||||
else
|
||||
select recipient_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
end if;
|
||||
|
||||
file1 := UTL_FILE.fopen (dir_out, 'TIM_to_AOM_NumeroRichiesteRicevute_'||to_char(sysdate,'yyyyMMdd')||'.csv', 'w');
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
data_inizio := to_date('&1','dd/mm/yyyy');
|
||||
data_fine := to_date('&2','dd/mm/yyyy');
|
||||
else
|
||||
if (to_char(sysdate, 'DD')<= '15') then
|
||||
data := add_months((trunc(sysdate)), -1);
|
||||
data_inizio := to_date('16/'|| to_char(trunc(data), 'mm/yyyy'),'dd/mm/yyyy');
|
||||
data_fine := last_day(trunc(data));
|
||||
else
|
||||
data_inizio := to_date('01/'|| to_char(trunc(sysdate), 'mm/yyyy'), 'dd/mm/yyyy');
|
||||
data_fine := to_date('15/'|| to_char(trunc(sysdate), 'mm/yyyy'), 'dd/mm/yyyy');
|
||||
end if;
|
||||
|
||||
end if;
|
||||
|
||||
UTL_FILE.put_line (file1,'Numero di richieste ricevute dalla rete di distribuzione nel periodo di riferimento');
|
||||
UTL_FILE.put_line (file1,' ');
|
||||
UTL_FILE.put_line (file1,'Periodo dal '|| trunc(data_inizio) || ' al '|| trunc(data_fine));
|
||||
UTL_FILE.put_line (file1,' ');
|
||||
UTL_FILE.put_line (file1,'Operatore Recipient TIMG');
|
||||
UTL_FILE.put_line (file1,' ');
|
||||
|
||||
rs1:='';
|
||||
rs2:='';
|
||||
totale:=0;
|
||||
OPEN cur_res(data_inizio, data_fine);
|
||||
LOOP
|
||||
FETCH cur_res INTO operatore,num;
|
||||
EXIT WHEN cur_res%NOTFOUND;
|
||||
|
||||
rs1 := rs1 || operatore ||';';
|
||||
rs2 := rs2 || num ||';';
|
||||
totale := totale + num;
|
||||
END LOOP;
|
||||
CLOSE cur_res;
|
||||
|
||||
rs1:=rs1 ||'TOTALE'||';';
|
||||
rs2:=rs2 || totale ||';';
|
||||
UTL_FILE.put_line (file1,rs1);
|
||||
UTL_FILE.put_line (file1,rs2);
|
||||
UTL_FILE.fflush (file1);
|
||||
UTL_FILE.fclose (file1);
|
||||
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
|
||||
end;
|
||||
/
|
||||
exit;
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
/* Formatted on 200
|
||||
2/10/01 14:31 (Formatter Plus v4.5.2) */
|
||||
|
||||
set serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs varchar2(255);
|
||||
ao_nome_file varchar2(255);
|
||||
mittente varchar2(255);
|
||||
ir_nome_file varchar2(255);
|
||||
errmsg varchar2(255);
|
||||
conta integer(5);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out varchar2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
|
||||
CURSOR cur_rec is
|
||||
select distinct AO.nome_file , i.mittente , IR.nome_file , AO.errmsg
|
||||
from mnp_xml_ack_out AO, mnp_xml_in I, mnp_xml_richiesta_in IR, mnp_gestione_richiesta_rec R, mnp_xml_out xo
|
||||
where AO.risultato ='ERROR'
|
||||
and AO.nome_file_riferito = I.nome_file
|
||||
and I.tipo_file = 6
|
||||
and I.nome_file = IR.nome_file
|
||||
and I.mittente != R.codice_operatore_donating
|
||||
and IR.id_richiesta = R.id_richiesta
|
||||
and xo.nome_file = AO.nome_file
|
||||
and xo.tipo_file = 8
|
||||
and trunc(xo.data_eff) <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and trunc(xo.data_eff) >= decode(df,'nullo',trunc(xo.data_eff),to_date(df,'dd-MON-yy'));
|
||||
|
||||
BEGIN
|
||||
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select aom_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
|
||||
end if;
|
||||
|
||||
file1:=UTL_FILE.fopen(dir_out,'TIM_to_AOM_AckKOESPLETAMENTIAOM_' || to_char(sysdate,'yyyyMMdd') || '.csv','w');
|
||||
UTL_FILE.put_line(file1,' Nome file ACK KO; Codice operatore AOM ; Nome file Espletamento Terzi; Messaggio errore ACK KO;');
|
||||
|
||||
conta := 0;
|
||||
|
||||
OPEN cur_rec;
|
||||
LOOP
|
||||
FETCH cur_rec INTO ao_nome_file,mittente,ir_nome_file,errmsg;
|
||||
EXIT WHEN cur_rec%NOTFOUND;
|
||||
|
||||
select count(nome_file_riferito)into conta
|
||||
from mnp_xml_ack_out
|
||||
where nome_file_riferito = ir_nome_file
|
||||
and risultato != 'ERROR';
|
||||
|
||||
if (conta = 0) then
|
||||
UTL_FILE.put_line(file1,ao_nome_file ||';'|| mittente ||';'|| ir_nome_file ||';'|| errmsg);
|
||||
else
|
||||
conta:=0;
|
||||
end if;
|
||||
|
||||
|
||||
END LOOP;
|
||||
CLOSE cur_rec;
|
||||
UTL_FILE.fflush(file1);
|
||||
UTL_FILE.fclose(file1);
|
||||
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,86 @@
|
||||
/* Formatted on 200
|
||||
2/10/01 14:31 (Formatter Plus v4.5.2) */
|
||||
|
||||
set serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs varchar2(255);
|
||||
ao_nome_file varchar2(255);
|
||||
operatore_donating varchar2(255);
|
||||
ir_nome_file varchar2(255);
|
||||
errmsg varchar2(255);
|
||||
conta integer(5);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out varchar2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
|
||||
CURSOR cur_rec is
|
||||
select distinct AO.nome_file , R.codice_operatore_donating , IR.nome_file , AO.errmsg
|
||||
from mnp_xml_ack_out AO, mnp_xml_in I, mnp_xml_richiesta_in IR, mnp_gestione_richiesta_rec R, mnp_xml_out xo
|
||||
where AO.risultato = 'ERROR'
|
||||
and AO.nome_file_riferito = I.nome_file
|
||||
and I.tipo_file = 6
|
||||
and I.nome_file = IR.nome_file
|
||||
and I.mittente = R.codice_operatore_donating
|
||||
and IR.id_richiesta = R.id_richiesta
|
||||
and xo.nome_file = AO.nome_file
|
||||
and xo.tipo_file = 8
|
||||
and trunc(xo.data_eff) <= decode(di,'nullo',trunc(sysdate),to_date(di,'dd-MON-yy'))
|
||||
and trunc(xo.data_eff) >= decode(df,'nullo',trunc(xo.data_eff),to_date(df,'dd-MON-yy'));
|
||||
|
||||
BEGIN
|
||||
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select recipient_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
end if;
|
||||
|
||||
|
||||
file1:=UTL_FILE.fopen(dir_out,'TIM_to_AOM_AckKOESPLETAMENTIDONATING_' || to_char(sysdate,'yyyyMMdd') || '.csv','w');
|
||||
UTL_FILE.put_line(file1,' Nome file ACK KO; Codice operatore Donating ; Nome file Espletamento Donating; Messaggio errore ACK KO;');
|
||||
|
||||
conta := 0;
|
||||
|
||||
OPEN cur_rec;
|
||||
LOOP
|
||||
FETCH cur_rec INTO ao_nome_file,operatore_donating,ir_nome_file,errmsg;
|
||||
EXIT WHEN cur_rec%NOTFOUND;
|
||||
|
||||
select count(nome_file_riferito) into conta
|
||||
from mnp_xml_ack_out
|
||||
where nome_file_riferito = ir_nome_file
|
||||
and risultato != 'ERROR';
|
||||
|
||||
if (conta = 0)then
|
||||
|
||||
UTL_FILE.put_line(file1,ao_nome_file ||';'|| operatore_donating ||';'|| ir_nome_file ||';'|| errmsg);
|
||||
else
|
||||
conta := 0;
|
||||
end if;
|
||||
END LOOP;
|
||||
CLOSE cur_rec;
|
||||
UTL_FILE.fflush(file1);
|
||||
UTL_FILE.fclose(file1);
|
||||
|
||||
exception
|
||||
when others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,81 @@
|
||||
set serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs VARCHAR2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
di varchar2(20);
|
||||
df varchar2(20);
|
||||
ut varchar2(20);
|
||||
p varchar2(255):='&1';
|
||||
|
||||
CURSOR cur_rec is
|
||||
/*select gr.id_richiesta || ';' || msisdn || ';' || st.descr_stato ||';'
|
||||
from mnp_gestione_richiesta gr, mnp_stato st, mnp_circe_out co, mnp_mss_cessazione_in ci
|
||||
where gr.stato in (14,15,16,17)
|
||||
AND gr.stato = st.id_stato
|
||||
and gr.id_richiesta=co.id_richiesta
|
||||
and co.da_inviare = 1;*/
|
||||
|
||||
select gr.id_richiesta ||';'|| gr.msisdn ||';'|| st.descr_stato ||';'
|
||||
from mnp_gestione_richiesta gr, mnp_stato st
|
||||
where gr.id_richiesta in
|
||||
(
|
||||
select id_richiesta from mnp_gestione_richiesta where stato in(15,16,17)
|
||||
minus
|
||||
select id_richiesta from mnp_circe_out where stato = '05'
|
||||
)
|
||||
and gr.stato = st.id_stato
|
||||
and trunc(gr.data_validazione_eff) >=decode(di,'nullo',trunc(gr.data_validazione_eff),to_date(di,'dd-MON-yy'))
|
||||
and trunc(gr.data_validazione_eff) <=decode(df,'nullo',trunc(gr.data_validazione_eff),to_date(df,'dd-MON-yy'))
|
||||
union
|
||||
select a.id_richiesta ||';'|| a.msisdn ||';'|| st.descr_stato ||';'
|
||||
from mnp_gestione_richiesta a, mnp_circe_out b, mnp_stato st
|
||||
where a.stato in(15,16,17)and a.id_richiesta = b.id_richiesta
|
||||
and b.stato = '05'
|
||||
and b.da_inviare = 1
|
||||
and a.stato = st.id_stato
|
||||
and trunc(a.data_validazione_eff) >=decode(di,'nullo',trunc(a.data_validazione_eff),to_date(di,'dd-MON-yy'))
|
||||
and trunc(a.data_validazione_eff) <=decode(df,'nullo',trunc(a.data_validazione_eff),to_date(df,'dd-MON-yy'));
|
||||
|
||||
BEGIN
|
||||
if (p <> 'nullo')then
|
||||
|
||||
di := to_date('&1','dd/mm/yyyy');
|
||||
df := to_date('&2','dd/mm/yyyy');
|
||||
dir_out:='&3';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 1 è ....' || dir_out );
|
||||
|
||||
|
||||
else
|
||||
di := '&1';
|
||||
df := '&2';
|
||||
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
--DBMS_OUTPUT.PUT_LINE('dir_out 2 è ....' || dir_out );
|
||||
end if;
|
||||
|
||||
|
||||
file1 := UTL_FILE.fopen(dir_out,'DBC_CESSAZIONINONPERVENUTEACIRCE_' || to_char(sysdate,'yyyyMMdd')||'.csv','w');
|
||||
UTL_FILE.put_line(file1,' Codice Richiesta; MSISDN richiesta; Stato Richiesta;');
|
||||
|
||||
OPEN cur_rec;
|
||||
LOOP
|
||||
FETCH cur_rec INTO rs;
|
||||
EXIT WHEN cur_rec%NOTFOUND;
|
||||
|
||||
UTL_FILE.put_line(file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_rec;
|
||||
|
||||
UTL_FILE.fflush(file1);
|
||||
UTL_FILE.fclose(file1);
|
||||
|
||||
exception
|
||||
WHEN others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
@@ -0,0 +1,43 @@
|
||||
set serveroutput on
|
||||
|
||||
DECLARE
|
||||
rs VARCHAR2(255);
|
||||
file1 UTL_FILE.file_type;
|
||||
dir_out VARCHAR2(255);
|
||||
|
||||
CURSOR cur_rec is
|
||||
select gr.id_richiesta || ';' || gr.msisdn || ';' || st.descr_stato
|
||||
from mnp_gestione_richiesta gr, mnp_stato st, mnp_scarti_in si
|
||||
where si.sistema_prov = 'NPG-GMNP'
|
||||
--and gr.id_richiesta = si.id_richiesta
|
||||
and gr.msisdn= si.msisdn
|
||||
and si.codice_causale_rifiuto not like 'esito%'
|
||||
and si.codice_causale_rifiuto is not null
|
||||
and st.id_stato = gr.stato;
|
||||
|
||||
BEGIN
|
||||
select donor_out into dir_out
|
||||
from mnp_olo_report
|
||||
where desc_olo = 'MONIT';
|
||||
|
||||
file1 := UTL_FILE.fopen(dir_out,'MSS_DBC_CESSAZIONI_' || to_char(sysdate,'yyyyMMdd')||'.csv','w');
|
||||
UTL_FILE.put_line(file1,'Codice Richiesta; MSISDN richiesta ; Stato Richiesta; ');
|
||||
|
||||
OPEN cur_rec;
|
||||
LOOP
|
||||
FETCH cur_rec INTO rs;
|
||||
EXIT WHEN cur_rec%NOTFOUND;
|
||||
|
||||
UTL_FILE.put_line(file1,rs);
|
||||
END LOOP;
|
||||
CLOSE cur_rec;
|
||||
|
||||
UTL_FILE.fflush(file1);
|
||||
UTL_FILE.fclose(file1);
|
||||
|
||||
exception
|
||||
WHEN others then
|
||||
DBMS_OUTPUT.PUT_LINE(sqlerrm);
|
||||
END;
|
||||
/
|
||||
exit;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user