DDT
System.String
@@ -187,6 +191,26 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
0cm
+
+ textbox23
+ 7.9cm
+ 1.4cm
+
+ 39
+ true
+ 23.4cm
+ 0.5cm
+ Data arrivo
+
10.6cm
1.8cm
@@ -221,7 +245,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
37
true
- 13.3cm
+ 14.9cm
0.5cm
del
@@ -634,7 +658,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
Peso
10.9cm
- 5.6cm
+ 4.1cm
12
- 19.2cm
+ 20.7cm
1.8cm
=First(Fields!Peso.Value)
CodProdotto
10.9cm
- 18.8cm
+ 19.7cm
10
- 13.3cm
+ 14.9cm
2cm
=Fields!DDT_del.Value
Cliente
- 2.4cm
+ 5.2cm
24.6cm
9
0.2cm
- 5.1cm
+ 2.3cm
=Fields!Cliente.Value
@@ -751,6 +774,24 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
0.1cm
6
+
+
+ 0.2cm
+ 24.6cm
+
+ 0.1cm
+ 2.6cm
+ =Fields!CodCliente.Value
+
+
2.3cm
24.9cm
1
- 19.2cm
+ 20.7cm
2cm
=First(Fields!DataArrivo.Value)
0.1cm
-
- textbox23
- 0.15cm
- 1.4cm
-
- 3
- true
- 19.1cm
- 0.5cm
- Data arrivo
-
2.75cm
1.5cm
@@ -950,14 +971,24 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 2
+ 3
true
23.2cm
0.45cm
Peso
+
+ 2.7cm
+
+ 2
+ 14.7cm
+ 0cm
+
- 0.15cm
0cm
1
- 19cm
- 4.7cm
+ 20.5cm
- 0.15cm
0cm
- 13.1cm
- 2.6cm
+ 14.7cm
+ 2.7cm
7.8cm
@@ -987,7 +1016,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
Solid
- 5.04524cm
+ 5cm
18cm
diff --git a/project/XPS/Style.css b/project/XPS/Style.css
index 8c8f62a..224f07b 100644
--- a/project/XPS/Style.css
+++ b/project/XPS/Style.css
@@ -127,22 +127,7 @@
min-height: 530px; /*border-top: #0D0083 1px solid;*/ /*background-repeat: repeat-y; background-position: 0% 0%; background-attachment: scroll; background-image: url(images/menuSx5.png);*/ /*background: #DEE8F5;*/
background: #DEE8F5;
}
-.ov_header
-{
- background-color: Blue;
-}
-.ov_footer
-{
- background-color: Blue;
-}
-.ov_item
-{
- background-color: gray;
-}
-.ov_itemAlt
-{
- background-color: white;
-}
+
.navBar
{
@@ -487,30 +472,6 @@ A:hover
-.eta2
-{
- width: 33%;
- text-align: center;
- background-color: #ffcccc;
- font-size: 10pt;
- font-weight: bold;
-}
-.termAnt
-{
- width: 33%;
- text-align: center;
- background-color: #ccffcc;
- font-size: 10pt;
- font-weight: bold;
-}
-.termPost
-{
- width: 33%;
- text-align: center;
- background-color: #ccccff;
- font-size: 10pt;
- font-weight: bold;
-}
.watermarked
{
color: #696969;
@@ -519,14 +480,6 @@ A:hover
-
-
-
-
-
-
-
-
.divSx
{
float: left;
@@ -658,42 +611,7 @@ A:hover
background-repeat: no-repeat;
}
-/*.bodyMainWhite
-{
- vertical-align: top;
- border-left: #0D0083 1px solid;
- height: 100%;
- width: 100%;
- background-position: center;
- background-attachment: scroll;
- background-repeat: no-repeat;
-}
-.bodyMainWhite a:hover
-{
- color: white;
-}
-
-.bodyMainNoLogo
-{
- vertical-align: top;
- border-left: maroon 1px solid;
- height: 100%;
- width: 100%;
-}
-
-.bodyMainLogoPiccolo
-{
- background-image: url(images/sfondoMedio.png);
- background-position: 97% 210px;
- vertical-align: top;
- border-left: maroon 1px solid;
- height: 100%;
- width: 100%;
- background-attachment: scroll;
- background-repeat: no-repeat;
-}
-*/
.logoUpSx
{
width: 200;
@@ -723,40 +641,7 @@ A:hover
background-color: #cbcbFF;
text-align: right;
}
-.tab_1
-{
- vertical-align: top;
-}
-.sxTab_1
-{
- background-color: #C8D0D4;
- text-align: left;
-}
-.sxTab_1_new
-{
- background-color: #9999cc;
- text-align: left;
-}
-.dxTab_1
-{
- width: 70%;
- background-color: #C8D0D4;
-}
-.sxTab_2
-{
- background-color: #11AA66;
- text-align: left;
-}
-.dxTab_2
-{
- width: 70%;
- background-color: Transparent;
-}
-.tab_2Body
-{
- vertical-align: middle;
- border: solid thin #11AA66;
-}
+
.chPwdTitle
{
padding: 2px;
@@ -961,112 +846,9 @@ A:hover
font-weight: bold;
color: Red;
}
-.clsBody
-{
- border-right: #C6D7DA thin solid;
- border-top: #C6D7DA thin solid;
- border-left: #C6D7DA thin solid;
- border-bottom: #C6D7DA thin solid;
-}
-.clsCurrentWeek
-{
- color: #ffffff;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
- border-top: #C6D7DA thin solid;
- border-bottom: #C6D7DA thin solid;
- background-color: #8CC6FF;
- font-weight: bolder;
- font-weight: bold;
-}
-.clsCurrentWeek2
-{
- color: #000000;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
- border-top: #C6D7DA thin solid;
- border-bottom: #C6D7DA thin solid;
- font-weight: bolder;
- font-weight: bold;
-}
-.clsDayName
-{
- color: #0C0B5F;
- background-color: #bbbaf5;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
-}
-.clsCurrentDay
-{
- color: #ffffff;
- background-color: #398CE7;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
- font-weight: bolder;
- font-weight: bold;
-}
-.clsWorkDay
-{
- color: #000000;
- background-color: #dbeaf5;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
-}
-.clsWorkDay:hover
-{
- color: #009400;
- background-color: #dbeaf5;
- font-size: 12px;
- text-decoration: underline;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
-}
-.clsWorkDayOtherMonth
-{
- color: #000000;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
-}
-.clsWeekEnd
-{
- color: #FF0000;
- background-color: #dbeaf5;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
-}
-.clsWeekEnd:hover
-{
- color: #009400;
- background-color: #dbeaf5;
- font-size: 12px;
- text-decoration: underline;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
-}
-.clsWeekEndOtherMonth
-{
- color: #FF0000;
- font-size: 12px;
- text-decoration: none;
- font-family: Tahoma, Arial, Helvetica, sans-serif;
- white-space: nowrap;
-}
+
.searchHead
{
background-color: #bbaabb;
@@ -1089,98 +871,6 @@ A:hover
font-weight: bold;
font-size: 14pt;
}
-
-.tableDett1
-{
- background: #98ff98;
-}
-.valDett1
-{
- font-size: 8pt;
- color: Black;
- font-weight: normal;
-}
-.tab_2lbl
-{
- vertical-align: baseline;
- border-collapse: collapse;
- border-width: thin;
- border-style: none;
- font-size: 7pt;
-}
-.dettSel
-{
- border-right: green 1px solid;
- padding-right: 8px;
- border-top: green 1px solid;
- padding-left: 8px;
- font-weight: bold;
- font-size: 9pt;
- background: #33ee44;
- padding-bottom: 2px;
- vertical-align: bottom;
- border-left: green 1px solid;
- color: white;
- padding-top: 2px;
- border-bottom: green 1px solid;
- font-family: verdana, arial;
- text-align: justify;
-}
-.dettDesel
-{
- border-right: green 1px solid;
- padding-right: 8px;
- border-top: green 1px solid;
- padding-left: 8px;
- font-weight: bold;
- font-size: 9pt;
- background: white;
- padding-bottom: 2px;
- vertical-align: bottom;
- border-left: green 1px solid;
- color: Black;
- padding-top: 2px;
- border-bottom: green 1px solid;
- font-family: verdana, arial;
- text-align: justify;
-}
-.dettHide
-{
- border-right: orange 1px solid;
- padding-right: 8px;
- border-top: orange 1px solid;
- padding-left: 8px;
- font-weight: bold;
- font-size: 9pt;
- background: #ff3344;
- padding-bottom: 2px;
- vertical-align: bottom;
- border-left: orange 1px solid;
- color: white;
- padding-top: 2px;
- border-bottom: orange 1px solid;
- font-family: verdana, arial;
- text-align: justify;
-}
-.tableDett3
-{
- background: #98ff98;
- font-size: 9pt;
-}
-.dett3Head
-{
- background: blue;
- color: Yellow;
- font-weight: bold;
- font-size: 9pt;
-}
-.dett3Col1
-{
- color: Black;
- font-weight: bold;
- font-size: 9pt;
-}
-
.linkHead
{
color: White;
@@ -1208,41 +898,7 @@ A:hover
{
border-color: #777777;
}
-.txtMiniTabella
-{
- text-align: right;
- font-weight: normal;
- padding-left: 2pt;
- font-size: 8pt;
- padding-bottom: 2pt;
- padding-top: 2pt;
-}
-.txtMiniTabellaLeft
-{
- text-align: left;
- font-weight: normal;
- padding-left: 2pt;
- font-size: 8pt;
- padding-bottom: 2pt;
- padding-top: 2pt;
-}
-.txtMiniTabellaDato
-{
- text-align: left;
- font-weight: bold;
- padding-left: 2pt;
- font-size: 8pt;
- padding-bottom: 2pt;
- padding-top: 2pt;
-}
-.relazione
-{
- margin-top: 1px;
- padding-top: 1px;
- font-weight: normal;
- font-size: 11pt;
- text-align: justify;
-}
+
.smallTable
{
width: 300px;
@@ -1270,40 +926,6 @@ A:hover
border-bottom: #9999ff 1px solid;
}
-.panelPaddingTitle
-{
- padding-top: 5px;
- padding-left: 10px;
- text-align: center;
- vertical-align: middle; /* qui aggiunta */
- margin-right: 80px;
-}
-
-.panelPadding
-{
- padding-top: 5px;
- padding-left: 5px;
- padding-bottom: 5px; /* qui aggiunta */
- margin-right: 80px;
-}
-
-.panelPaddingTitleDiv
-{
- padding-top: 5px;
- padding-left: 10px;
- text-align: center;
- vertical-align: middle;
- margin-right: 80px;
-}
-
-.panelPaddingDiv
-{
- padding-top: 5px;
- padding-left: 10px;
- padding-bottom: 5px;
- margin-right: 80px;
-}
-
/* sostituiti tutti i #5555bb del bordino tabellaalta e contornoriq con silver */
@@ -1341,145 +963,7 @@ A:hover
/* @end */
-/* @group Brembo Specific */
-.idxContratto
-{
- text-align: center;
- font-size: 10pt;
- font-weight: bold;
-}
-.idxStatoContratto
-{
- text-align: right;
- font-size: 10pt;
- font-weight: bold;
- font-style: italic;
- color: Blue;
-}
-
-/* fasi uomo / macchina*/
-.stileFaseMacchina
-{
- color: #ea101e;
-}
-.stileFaseExt
-{
- color: Black;
-}
-.stileFaseUomo
-{
- color: #1e10ea;
-}
-
-.treeCdC
-{
- width: 250px;
- text-align: right;
- font-size: 8pt;
- width: 180px;
- vertical-align: top;
- height: 100%;
- background: white;
-}
-
-.RDA
-{
- font-size: 7pt;
-}
-.Ord
-{
- font-size: 7pt;
- background: #d0ffe3;
-}
-.Fatt
-{
- font-size: 7pt;
-}
-
-.job2do
-{
- width: 50%;
- font-weight: normal;
- border-bottom-style: solid;
- border-bottom-width: thin;
- font-size: 8pt;
- color: blue;
- font-family: verdana, arial;
- text-align: left;
-}
-.jobDone
-{
- width: 50%;
- font-weight: normal;
- border-bottom-style: solid;
- border-bottom-width: thin;
- font-size: 8pt;
- color: green;
- font-family: verdana, arial;
- text-align: right;
-}
-
-.bodyAvanzamento
-{
- font-family: Verdana, Arial;
- background-image: url(images/gradiente.png);
-}
-
-.paramIn
-{
- font-family: Verdana;
- margin-top: 1px;
- padding-top: 1px;
- font-weight: normal;
- font-size: 7pt;
- text-align: justify;
- padding: 2px 2px p2x 2px;
- border-right: red 2px solid;
- border-top: red 2px solid;
- border-left: red 2px solid;
- border-bottom: red 2px solid;
- margin: 1px;
- background-color: #ffcccc;
-}
-.allegatiOut
-{
- font-family: Verdana;
- border-top: maroon 1px solid;
- margin-top: 1px;
- padding-top: 1px;
- font-weight: normal;
- font-size: 8pt;
- text-align: justify;
-}
-.testoAllegatoIN
-{
- font-family: Verdana;
- padding: 5px 5px p5x 5px;
- border-right: green 2px solid;
- border-top: green 2px solid;
- border-left: green 2px solid;
- border-bottom: green 2px solid;
- margin: 1px;
- background-color: #ccffdd;
- font-weight: normal;
- font-size: 7pt;
- text-align: left;
-}
-.testoAllegatoOUT
-{
- font-family: Verdana;
- padding: 5px 5px p5x 5px;
- border-right: blue 2px solid;
- border-top: blue 2px solid;
- border-left: blue 2px solid;
- border-bottom: blue 2px solid;
- margin: 1px;
- background-color: #ccddff;
- font-weight: normal;
- font-size: 7pt;
- text-align: left;
-}
/* zona colorazione filtri */
.filtro_1
{
@@ -1503,25 +987,6 @@ A:hover
}
-.intestJob
-{
- padding: 5px 5px 5px 5px;
-}
-/* zona DIV con ID */
-#prenotazionehead
-{
- text-align: center;
-}
-
-
-#prenotazione
-{
- padding-left: 3px;
- vertical-align: top;
-}
-
-
-
/* @end */
/* @group Stili Asp */
@@ -1895,62 +1360,7 @@ A:hover
text-align: right;
}
-/*CollapsiblePanel*/
-.collapsePanel
-{
- background-color: white;
- overflow: hidden;
-}
-.collapsePanelHeader
-{
- width: 100%;
- height: 30px;
- background-image: url(images/bg-menu-main.png);
- background-repeat: repeat-x;
- color: #FFF;
- font-weight: bold;
-}
-.collapsePanelHead
-{
- padding: 5px;
- cursor: pointer;
- vertical-align: middle;
-}
-.collapsePanelImg
-{
- float: right;
- vertical-align: middle;
-}
-.collapsePanelText
-{
- float: left;
- vertical-align: middle;
- font-size: 9pt;
-}
-.collapsePanelTextDetails
-{
- float: left;
- margin-left: 20px;
- vertical-align: middle;
- font-size: 7pt;
-}
-.ctrSelRow2DetailStyle
-{
- font-weight: bold;
- color: #333333;
- background-color: #D1DDF1;
-}
-
-.pnlDettaglio
-{
- margin: 4px 4px 4px 4px;
-}
-
-.dettaglioRiga
-{
- vertical-align: top;
-}
.pnlMaster
{
height: 300px;
@@ -1998,251 +1408,8 @@ A:hover
{
background-color: #8899ee;
}
-.pnlPar_1
-{
- background-color: #ea101e;
-}
-.pnlPar_1_En
-{
- font-size: 7pt;
- font-weight: normal;
- color: Silver;
-}
-.pnlPar_1_Lang
-{
- font-size: 8pt;
- font-weight: bold;
- color: Silver;
-}
-.pnlPar_1_Error
-{
- font-size: 7pt;
- font-weight: bold;
- color: #aadd00;
-}
-.pnlPar_1_Descr
-{
- background-color: #ea101e;
- font-size: 9pt;
- font-weight: normal;
- color: Yellow;
-}
-.pnlPar_2
-{
- background-color: #dcdcdc;
-}
-.pnlPar_2_En
-{
- font-size: 7pt;
- font-weight: normal;
- color: black;
-}
-.pnlPar_2_Lang
-{
- font-size: 8pt;
- font-weight: bold;
- color: black;
-}
-.pnlPar_2_Error
-{
- font-size: 7pt;
- font-weight: bold;
- color: red;
-}
-.pnlPar_2_Descr
-{
- font-size: 9pt;
- font-weight: normal;
-}
-.pnlPar_3
-{
- background-color: #4444cc;
-}
-.pnlPar_3_En
-{
- font-size: 8pt;
- font-weight: bold;
- color: yellow;
-}
-.pnlPar_3_Lang
-{
- font-size: 8pt;
- font-weight: bold;
- color: Silver;
-}
-.pnlPar_3_Error
-{
- font-size: 7pt;
- font-weight: bold;
- color: Yellow;
-}
-.pnlPar_3_Descr
-{
- background-color: #4444cc;
- font-size: 9pt;
- font-weight: normal;
- color: Yellow;
-}
-.pnlPar_3_warn
-{
- background-color: #4444cc;
- font-size: 8pt;
- font-weight: normal;
- font-style: italic;
- color: Yellow;
-}
-.dlTestata
-{
- background-color: White;
- border-width: 0px;
- border-style: solid;
- border-color: #000099;
-}
-.dlTestataSel
-{
- font-size: 8pt;
- color: #339966;
- background-color: #111111;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dlTestataItem
-{
- text-align: right;
- font-size: 7pt;
- color: #330099;
- background-color: Transparent;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dlTestataItemObblig
-{
- text-align: right;
- font-size: 7pt;
- color: Black;
- background-color: #b3ccff;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dlTestataAltItem
-{
- text-align: right;
- font-size: 7pt;
- color: #330099;
- background-color: #f5f5f5;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dlTestataEdit
-{
- font-size: 8pt;
- color: #339966;
- background-color: #66FFCC;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
- vertical-align: text-top;
-}
-.dlTestataHead
-{
- color: #CCFFFF;
- background: #000099;
- font-weight: bold;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dlTestataHead2
-{
- color: #CCFFFF;
- background: #997799;
- font-weight: bold;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dlTestataFoot
-{
- text-align: right;
- color: #3333dd;
- background: #D4C8D0;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dlTestata_Lang
-{
- font-size: 7pt;
- font-weight: bold;
- color: #3366bb;
-}
-.dlTestata_En
-{
- font-size: 7pt;
- font-weight: normal;
- color: #339933;
-}
-.lblTabPrincLang
-{
- font-weight: bold;
- font-size: 13pt;
- color: #00008B;
- margin-left: 8px;
- margin-right: 4px;
-}
-.lblTabPrincEn
-{
- font-weight: normal;
- font-size: 7pt;
- color: #00008B;
- margin-left: 4px;
- margin-right: 8px;
-}
-.lblTabPrincLang2
-{
- font-weight: bold;
- font-size: 10pt;
- color: White;
- margin-left: 8px;
- margin-right: 4px;
-}
-.lblTabPrincEn2
-{
- font-weight: normal;
- font-size: 7pt;
- color: White;
- margin-left: 4px;
- margin-right: 8px;
-}
-.lblTab_1Lang
-{
- font-size: 10pt;
- font-weight: bold;
- color: #00008B;
- margin-left: 8px;
- margin-right: 4px;
-}
-.lblTab_1En
-{
- font-size: 7pt;
- font-weight: normal;
- color: #00008B;
- margin-left: 4px;
- margin-right: 8px;
-}
-.tab_1Body
-{
- vertical-align: middle;
- border: solid thin #ff9900;
-}
+
.lblLang
{
font-size: 10pt;
@@ -2255,177 +1422,8 @@ A:hover
color: Black;
}
-.dgSx
-{
- background-color: White;
- border-width: 0px;
- border-style: solid;
- border-color: #990000;
-}
-.dgSxSel
-{
- text-align: right;
- font-size: 8pt;
- font-weight: bold;
- color: #663399;
- background-color: #FFCC66;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgSxItem
-{
- text-align: right;
- font-size: 7pt;
- color: #330099;
- background-color: Transparent;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgSxAltItem
-{
- text-align: right;
- font-size: 7pt;
- color: #330099;
- background-color: #f5f5f5;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgSxEdit
-{
- font-size: 8pt;
- color: #663399;
- background-color: #FFCC66;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
- vertical-align: text-top;
-}
-.dgSxHead
-{
- color: #FFFFCC;
- background: #990000;
- font-weight: bold;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgSxHead2
-{
- color: #FFFFCC;
- background: #999977;
- font-weight: bold;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgSxFoot
-{
- text-align: right;
- color: Black;
- background: #bbccbb;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
- font-weight: bold;
- border-bottom-style: solid;
- border-color: Black;
-}
-.dgSxPaging
-{
- text-align: left;
- color: Black;
- background: white;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.lblTab_2Lang
-{
- font-size: 10pt;
- font-weight: bold;
- color: White;
- margin-left: 8px;
- margin-right: 4px;
-}
-.lblTab_2En
-{
- font-size: 7pt;
- font-weight: normal;
- color: White;
- margin-left: 4px;
- margin-right: 8px;
-}
-.dgDx
-{
- background-color: White;
- border-width: 1px;
- border-style: solid;
- border-color: #003399;
-}
-.dgDxSel
-{
- font-size: 8pt;
- font-weight: bold;
- color: #CCFF99;
- background-color: #009999;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgDxItem
-{
- font-size: 7pt;
- color: #003399;
- background-color: Transparent;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgDxAltItem
-{
- font-size: 7pt;
- color: #330099;
- background-color: #f5f5f5;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgDxEdit
-{
- font-size: 8pt;
- font-weight: bold;
- color: #CCFF99;
- background-color: #009999;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgDxHead
-{
- color: #CCCCFF;
- background: #003399;
- font-weight: bold;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgDxFoot
-{
- color: #003399;
- background-color: #99CCCC;
- font-size: 10pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
+
+
.lblMess
{
color: Red;
@@ -2472,87 +1470,7 @@ A:hover
color: black;
}
-.dgAllegati
-{
- background-color: White;
- border-width: 0px;
- border-style: solid;
- border-color: #009900;
-}
-.dgAllegatiSel
-{
- text-align: right;
- font-size: 8pt;
- font-weight: bold;
- color: #669933;
- background-color: #CCFF66;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgAllegatiItem
-{
- text-align: right;
- font-size: 7pt;
- color: #339900;
- background-color: Transparent;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgAllegatiAltItem
-{
- text-align: right;
- font-size: 7pt;
- color: #339900;
- background-color: #f5f5f5;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgAllegatiEdit
-{
- font-size: 8pt;
- color: #669933;
- background-color: #cCFF66;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
- vertical-align: text-top;
-}
-.dgAllegatiHead
-{
- color: #FFFFCC;
- background: #009900;
- font-weight: bold;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgAllegatiFoot
-{
- text-align: right;
- color: Black;
- background: #ccbbbb;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
- font-weight: bold;
- border-bottom-style: solid;
- border-color: Black;
-}
-.dgAllegatiPaging
-{
- text-align: left;
- color: Black;
- background: white;
- font-size: 8pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
+
.btnTab
{
border-right: #ea101e 1px solid;
@@ -2572,87 +1490,6 @@ A:hover
text-align: justify;
}
-.dgFiles
-{
- background-color: White;
- border-width: 0px;
- border-style: solid;
- border-color: #009900;
-}
-.dgFilesSel
-{
- text-align: right;
- font-size: 9pt;
- font-weight: bold;
- color: #669933;
- background-color: #CCFF66;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgFilesItem
-{
- text-align: right;
- font-size: 8pt;
- color: #339900;
- background-color: Transparent;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgFilesAltItem
-{
- text-align: right;
- font-size: 8pt;
- color: #339900;
- background-color: #f5f5f5;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgFilesEdit
-{
- font-size: 9pt;
- color: #669933;
- background-color: #cCFF66;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
- vertical-align: text-top;
-}
-.dgFilesHead
-{
- color: #CCFFFF;
- background: #990000;
- font-weight: bold;
- font-size: 9pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
-.dgFilesFoot
-{
- text-align: right;
- color: Black;
- background: #ccbbbb;
- font-size: 9pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
- font-weight: bold;
- border-bottom-style: solid;
- border-color: Black;
-}
-.dgFilesPaging
-{
- text-align: left;
- color: Black;
- background: white;
- font-size: 9pt;
- padding-left: 1px;
- padding-right: 1px;
- padding-top: 1px;
-}
.lblFiltrLang
{
@@ -2681,7 +1518,6 @@ A:hover
.bodyPortable
{
- /*background-color: #FFFFFF; */
margin-top: 0px;
margin-left: 0px;
margin-bottom: 0px;
@@ -2762,12 +1598,6 @@ A:hover
font-size:smaller;
}
-/* grvGiornalieroComm
-{
- font-size: xx-small;
- color: Yellow;
-}
-*/
/* stile custom per questa webapp */
.barcodeBoxIE
diff --git a/project/XPS/Web.config b/project/XPS/Web.config
index 56d8b13..d868f34 100644
--- a/project/XPS/Web.config
+++ b/project/XPS/Web.config
@@ -153,7 +153,7 @@
-
+
diff --git a/project/XPS/WebUserControls/mod_elencoComm.ascx b/project/XPS/WebUserControls/mod_elencoComm.ascx
index 918fdbb..afdb72d 100644
--- a/project/XPS/WebUserControls/mod_elencoComm.ascx
+++ b/project/XPS/WebUserControls/mod_elencoComm.ascx
@@ -31,7 +31,7 @@
|
|
-
+ |
|
@@ -71,6 +71,10 @@
TargetControlID="txtDataDDT" Format="dd/MM/yyyy">
|
+
+
+
+ |
@@ -84,7 +88,7 @@
-
+
@@ -285,7 +289,8 @@
+ UpdateMethod="updateMag">
+
diff --git a/project/XPS/WebUserControls/mod_elencoComm.ascx.cs b/project/XPS/WebUserControls/mod_elencoComm.ascx.cs
index 49bfa5d..72174a8 100644
--- a/project/XPS/WebUserControls/mod_elencoComm.ascx.cs
+++ b/project/XPS/WebUserControls/mod_elencoComm.ascx.cs
@@ -254,6 +254,7 @@ namespace XPS.WebUserControls
lblCli.Text = traduci("lblCli");
lblNumDDT.Text = traduci("lblNumDDT");
lblDataDDT.Text = traduci("lblDataDDT");
+ lblEmailNotifica.Text = traduci("lblEmailNotifica");
lblDescr.Text = traduci("lblDescr");
lblCicloEqua.Text = traduci("lblCicloEqua");
lblDataPrev.Text = traduci("updateAllObjChild");
@@ -311,7 +312,7 @@ namespace XPS.WebUserControls
catch
{ }
// creazione di un nuovo set...
- XPS_data.XPS.obj.taComm.sp_creaSetObj(string.Format("{0:yyMMdd}{1:00}", DateTime.Now, nextIdx), "EQUA", mf_cliNew.valore, txtDDT.Text, Convert.ToDateTime(txtDataDDT.Text), ddlCiclo.SelectedValue, user_std.UtSn.utente, txtDescr.Text);
+ XPS_data.XPS.obj.taComm.sp_creaSetObj(string.Format("{0:yyMMdd}{1:00}", DateTime.Now, nextIdx), "EQUA", mf_cliNew.valore, txtDDT.Text, Convert.ToDateTime(txtDataDDT.Text), ddlCiclo.SelectedValue, user_std.UtSn.utente, txtDescr.Text, chkReqEmail.Checked);
// nascondo tutto...
txtDDT.Text = "";
txtDataDDT.Text = "";
diff --git a/project/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs b/project/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
index f75c053..ac6ad5c 100644
--- a/project/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
+++ b/project/XPS/WebUserControls/mod_elencoComm.ascx.designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:2.0.50727.4963
+// Runtime Version:2.0.50727.4971
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -220,6 +220,24 @@ namespace XPS.WebUserControls {
///
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
+ ///
+ /// lblEmailNotifica control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Label lblEmailNotifica;
+
+ ///
+ /// chkReqEmail control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.CheckBox chkReqEmail;
+
///
/// btnNewComm control.
///
diff --git a/project/XPS/XPS.csproj b/project/XPS/XPS.csproj
index 227289a..f27bc45 100644
--- a/project/XPS/XPS.csproj
+++ b/project/XPS/XPS.csproj
@@ -731,9 +731,6 @@
-
- Always
-
Always
diff --git a/project/XPS/bin/MDB_Data/si_dt30.mdb b/project/XPS/bin/MDB_Data/si_dt30.mdb
index 01f3756..6eb933a 100644
Binary files a/project/XPS/bin/MDB_Data/si_dt30.mdb and b/project/XPS/bin/MDB_Data/si_dt30.mdb differ
diff --git a/project/XPS/bin/Reports/ReportSchedaIdentificazione.rdlc b/project/XPS/bin/Reports/ReportSchedaIdentificazione.rdlc
index 9346242..55949e7 100644
--- a/project/XPS/bin/Reports/ReportSchedaIdentificazione.rdlc
+++ b/project/XPS/bin/Reports/ReportSchedaIdentificazione.rdlc
@@ -91,6 +91,10 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
Cliente
System.String
+
+ CodCliente
+ System.String
+
DDT
System.String
@@ -187,9 +191,10 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
0cm
-
- 6.4cm
- 0.6cm
+
+ textbox23
+ 7.9cm
+ 1.4cm
39
true
- 13.4cm
+ 23.4cm
+ 0.5cm
+ Data arrivo
+
+
+ 10.6cm
+ 1.8cm
+
+ 38
+ true
+ 0.2cm
+ 0.45cm
+ Codice prodotto
+
+
+ 7.9cm
+ 0.6cm
+
+ 37
+ true
+ 14.9cm
0.5cm
del
@@ -218,7 +261,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 38
+ 36
true
0.2cm
0.5cm
@@ -234,7 +277,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
White
- 37
+ 35
19.6cm
2.1cm
logoequa
@@ -252,7 +295,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 36
+ 34
14.7cm
1.4cm
="*"&(First(Fields!IdxObj.Value))&"*"
@@ -268,7 +311,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 35
+ 33
11.4cm
0.7cm
=Fields!IdxObj.Value
@@ -284,7 +327,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 34
+ 32
7.15001cm
0.63492cm
Fosfatazione Zinco
@@ -301,7 +344,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 33
+ 31
6.4cm
0.63492cm
=(Fields!FosfZinco.Value)
@@ -317,7 +360,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 32
+ 30
1.3cm
0.63492cm
Fosfatazione + TEFLON
@@ -334,7 +377,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 31
+ 29
0.5cm
0.63492cm
=(Fields!FosfTeflon.Value)
@@ -352,7 +395,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 30
+ 28
12cm
0.63492cm
=(Fields!PeekVicote.Value)
@@ -370,7 +413,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 29
+ 27
12cm
0.63492cm
=(Fields!Zinchlorex.Value)
@@ -388,7 +431,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 28
+ 26
12cm
0.63492cm
=(Fields!PzRoto.Value)
@@ -406,7 +449,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 27
+ 25
6.4cm
0.63492cm
=(Fields!Teflon.Value)
@@ -424,7 +467,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 26
+ 24
9.65001cm
0.63492cm
=(Fields!F2.Value)
@@ -442,7 +485,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 25
+ 23
6.4cm
0.63492cm
=(Fields!F1.Value)
@@ -458,7 +501,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 24
+ 22
12.75cm
0.63492cm
PEEK VICOTE
@@ -474,7 +517,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 23
+ 21
12.75cm
0.63492cm
Zinchlorex
@@ -490,7 +533,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 22
+ 20
12.75cm
0.63492cm
Pz Roto
@@ -506,7 +549,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 21
+ 19
7.15001cm
0.63492cm
TEFLON
@@ -522,7 +565,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 20
+ 18
10.40001cm
0.63492cm
F2
@@ -538,7 +581,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 19
+ 17
7.15001cm
0.63492cm
F1
@@ -556,7 +599,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 18
+ 16
0.5cm
0.63492cm
=(Fields!Brunitura.Value)
@@ -572,7 +615,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 17
+ 15
1.3cm
0.63492cm
Brunitura
@@ -589,7 +632,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 16
+ 14
1.3cm
0.63492cm
Fosfatazione Manganese
@@ -607,57 +650,19 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 15
+ 13
0.5cm
0.63492cm
=(Fields!FosfManganese.Value)
Peso
- 10.2cm
- 7.4cm
-
- 14
- 17.4cm
- 2.4cm
- =First(Fields!Peso.Value)
-
-
- CodProdotto
- 10.2cm
- 16.9cm
-
- 13
- 0.2cm
- 2.4cm
- =Fields!CodProdotto.Value
-
-
- 6.9cm
- 5.5cm
+ 10.9cm
+ 4.1cm
12
- 19.3cm
- 2.6cm
- =First(Fields!DataArrivo.Value)
+ 20.7cm
+ 1.8cm
+ =First(Fields!Peso.Value)
-
- 6.9cm
- 5.7cm
+
+ CodProdotto
+ 10.9cm
+ 19.7cm
+ 11
+ 0.2cm
+ 1.8cm
+ =Fields!CodProdotto.Value
+
+
+ 8.3cm
+ 5.5cm
+
- 11
- 13.4cm
- 2.6cm
+ 10
+ 14.9cm
+ 2cm
=Fields!DDT_del.Value
Cliente
- 2.7cm
+ 5.2cm
24.6cm
- 10
+ 9
0.2cm
- 3.3cm
+ 2.3cm
=Fields!Cliente.Value
@@ -721,35 +745,53 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 9
+ 8
0.2cm
2.2cm
="*"&(First(Fields!IdxObj.Value))&"*"
- 0.1cm
- 5.1cm
+ 16.4cm
+ 6.7cm
- 8
+ 7
true
- 14.4cm
+ 0.1cm
0.6cm
- Scheda di identificazione - rev. 01
+ Scheda di identificazione EQUA - mod. 100 rev. 01
0.1cm
- 7
+ 6
+
+
+ 0.2cm
+ 24.6cm
+
+ 0.1cm
+ 2.6cm
+ =Fields!CodCliente.Value
+
+
2.3cm
24.9cm
- 3.8cm
+ 5.4cm
- 6.4cm
+ 7.9cm
1.2cm
- 6
+ 5
true
0.2cm
0.5cm
Nr. D.D.T.
-
- 9.8cm
- 1.8cm
-
- 5
- true
- 0.2cm
- 0.45cm
- Codice prodotto
-
-
- 0.1cm
- 4
-
-
- 2.5cm
-
- true
- 17.3cm
- 0.5cm
- Peso Kg
-
-
- 9.75cm
- 24.9cm
-
- 3.05794cm
-
13.1cm
6.25cm
@@ -838,7 +830,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
2pt
2pt
- 3
+ 4
true
0.2cm
0.7cm
@@ -846,7 +838,7 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
0.1cm
- 2
+ 3
0.9cm
@@ -925,11 +917,11 @@ BAnzRaFQ+IEaZhQKBQBApdH2rsuH6lRZWQmFhYWgUChU/q1vVO8ctbCwAAMDAzA2NgZLS0swMjICY2Nj
3.25cm
- 6.9cm
- 13cm
+ 8.3cm
+ 14.4cm
- 1
+ 2
0.2cm
- 2.6cm
+ 2cm
=First(Fields!DDT.Value)
+
+ 8.3cm
+ 4.1cm
+
+ 1
+ 20.7cm
+ 2cm
+ =First(Fields!DataArrivo.Value)
+
0.1cm
-
- textbox23
- 0.1cm
- 1.4cm
+
+ 2.75cm
+ 1.5cm
+ 3
true
- 23.3cm
- 0.5cm
- Data arrivo
+ 23.2cm
+ 0.45cm
+ Peso
+
+ 2.7cm
+
+ 2
+ 14.7cm
+ 0cm
+
+
+ 0cm
+
+ 1
+ 20.5cm
+
+
+ 0cm
+
+ 14.7cm
+ 2.7cm
+
- 6.35cm
+ 7.8cm
24.9cm
- 3.25cm
+ 5cm
18cm
diff --git a/project/XPS/bin/SteamWare.dll b/project/XPS/bin/SteamWare.dll
index 2c42b53..4be88ce 100644
Binary files a/project/XPS/bin/SteamWare.dll and b/project/XPS/bin/SteamWare.dll differ
diff --git a/project/XPS/bin/XPS.dll b/project/XPS/bin/XPS.dll
index 43093e3..5ec724f 100644
Binary files a/project/XPS/bin/XPS.dll and b/project/XPS/bin/XPS.dll differ
diff --git a/project/XPS/bin/XPS_data.dll b/project/XPS/bin/XPS_data.dll
index 8d2077b..0473c3d 100644
Binary files a/project/XPS/bin/XPS_data.dll and b/project/XPS/bin/XPS_data.dll differ
diff --git a/project/XPS/equaAppSettings.config b/project/XPS/equaAppSettings.config
index 3f38438..6dcd9bf 100644
--- a/project/XPS/equaAppSettings.config
+++ b/project/XPS/equaAppSettings.config
@@ -19,7 +19,7 @@
-
+
diff --git a/project/XPS/obj/Debug/RdlCompile.cache b/project/XPS/obj/Debug/RdlCompile.cache
index 7bfd30a..cbd95ec 100644
Binary files a/project/XPS/obj/Debug/RdlCompile.cache and b/project/XPS/obj/Debug/RdlCompile.cache differ
diff --git a/project/XPS/obj/Debug/XPS.csproj.FileListAbsolute.txt b/project/XPS/obj/Debug/XPS.csproj.FileListAbsolute.txt
index 67bb0dc..e1a06dc 100644
--- a/project/XPS/obj/Debug/XPS.csproj.FileListAbsolute.txt
+++ b/project/XPS/obj/Debug/XPS.csproj.FileListAbsolute.txt
@@ -36,4 +36,3 @@ c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS\obj\
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS\obj\Debug\RdlCompile.compiled
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS\obj\Debug\XPS.dll
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS\obj\Debug\XPS.pdb
-C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\XPS\XPS\bin\Reports\ReportSchedaIdentificazione.old.rdlc
diff --git a/project/XPS/obj/Debug/XPS.dll b/project/XPS/obj/Debug/XPS.dll
index 43093e3..74c25c2 100644
Binary files a/project/XPS/obj/Debug/XPS.dll and b/project/XPS/obj/Debug/XPS.dll differ
diff --git a/project/XPS/obj/Release/RdlCompile.cache b/project/XPS/obj/Release/RdlCompile.cache
index 475be61..cbd95ec 100644
Binary files a/project/XPS/obj/Release/RdlCompile.cache and b/project/XPS/obj/Release/RdlCompile.cache differ
diff --git a/project/XPS/obj/Release/XPS.dll b/project/XPS/obj/Release/XPS.dll
index 064faa6..5ec724f 100644
Binary files a/project/XPS/obj/Release/XPS.dll and b/project/XPS/obj/Release/XPS.dll differ
diff --git a/project/XPS/tmp/ReportSchedaIdentificazione_1.emf b/project/XPS/tmp/ReportSchedaIdentificazione_1.emf
index d9efda4..d67336a 100644
Binary files a/project/XPS/tmp/ReportSchedaIdentificazione_1.emf and b/project/XPS/tmp/ReportSchedaIdentificazione_1.emf differ
diff --git a/project/XPST/Web.config b/project/XPST/Web.config
index d657c67..03fd570 100644
--- a/project/XPST/Web.config
+++ b/project/XPST/Web.config
@@ -153,7 +153,7 @@
-
+
@@ -162,11 +162,11 @@
-
+
-
-
-
+
+
+
@@ -190,7 +190,7 @@
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=Equa_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer"
providerName="System.Data.SqlClient" />
diff --git a/project/XPST/WebUserControls/mod_btnComandi.ascx b/project/XPST/WebUserControls/mod_btnComandi.ascx
index 70bd4dc..20980bc 100644
--- a/project/XPST/WebUserControls/mod_btnComandi.ascx
+++ b/project/XPST/WebUserControls/mod_btnComandi.ascx
@@ -12,7 +12,7 @@
diff --git a/project/XPST/WebUserControls/mod_btnComandi.ascx.cs b/project/XPST/WebUserControls/mod_btnComandi.ascx.cs
index f3e3fdb..38ded5c 100644
--- a/project/XPST/WebUserControls/mod_btnComandi.ascx.cs
+++ b/project/XPST/WebUserControls/mod_btnComandi.ascx.cs
@@ -30,8 +30,71 @@ namespace XPST.WebUserControls
btn1.Text = comandiAmmessi["04"];
btn2.Text = comandiAmmessi["05"];
btn3.Text = comandiAmmessi["06"];
+ btn4.Text = comandiAmmessi["07"];
btn5.Text = comandiAmmessi["ok"];
btn6.Text = comandiAmmessi["ko"];
+ updateBtn();
+ }
+ ///
+ /// Aggiorna stato buttons
+ ///
+ public void updateBtn()
+ {
+ // determino visibilità btn4: SOLO se ho un UDC valido ed è in stato 05...
+ int currState = 0;
+ bool emailReq = false;
+ string emailSent = "";
+ string emailDest = "";
+ string CodCliente = "";
+ DS_applicazione.IstObjRow rigaIstObj;
+ // calcolo lo stato dell'oggetto...
+ try
+ {
+ rigaIstObj = XPS_data.XPS.obj.taObj.getByIdxObj(comando.valore)[0];
+ currState = Convert.ToInt32(rigaIstObj.CodStato);
+ emailReq = rigaIstObj.emailReq;
+ CodCliente = rigaIstObj.CodCliente;
+ emailDest = XPS_data.XPS.obj.taAnCli.getByKey(CodCliente)[0].email;
+ }
+ catch
+ { }
+ try
+ {
+ rigaIstObj = XPS_data.XPS.obj.taObj.getByIdxObj(comando.valore)[0];
+ emailSent = rigaIstObj.emailSent.ToString("dd/MM/yy HH:mm");
+ }
+ catch
+ { }
+
+ if (currState >= 5)
+ {
+ // controllo se c'è email del cliente...
+ if (emailDest != "")
+ {
+ btn4.Visible = true;
+ btn4.Enabled = true;
+ }
+ else
+ {
+ btn4.Visible = true;
+ btn4.Enabled = false;
+ }
+ // controllo se va indicato email richiesta!
+ if (emailReq)
+ {
+
+ btn4.Text = string.Format("{0}{1}{2}", comandiAmmessi["07"], Environment.NewLine, user_std.UtSn.Traduci("emailReq"));
+ }
+ // controllo se mai spedita email...
+ if (emailSent != "")
+ {
+ btn4.Text += string.Format("{0}{1}: {2}", Environment.NewLine, user_std.UtSn.Traduci("emailSent"), emailSent);
+ }
+ }
+ else
+ {
+ btn4.Visible = false;
+ }
}
///
/// carico da tab i comandi ammessi per il barcode...
@@ -95,7 +158,67 @@ namespace XPST.WebUserControls
}
protected void btn4_Click(object sender, EventArgs e)
{
-
+ // mi limito a mandare email e non segnalo altro... carico dati!
+ // determino visibilità btn4: SOLO se ho un UDC valido ed è in stato 05...
+ int currState = 0;
+ bool emailReq = false;
+ string emailSent = "";
+ string emailDest = "";
+ string CodCliente = "";
+ string ddt = "";
+ string dataRif = "";
+ string descr = "";
+ string peso = "";
+ DS_applicazione.IstObjRow rigaIstObj = null;
+ // calcolo lo stato dell'oggetto...
+ try
+ {
+ rigaIstObj = XPS_data.XPS.obj.taObj.getByIdxObj(comando.valore)[0];
+ currState = Convert.ToInt32(rigaIstObj.CodStato);
+ emailReq = rigaIstObj.emailReq;
+ CodCliente = rigaIstObj.CodCliente;
+ emailDest = XPS_data.XPS.obj.taAnCli.getByKey(CodCliente)[0].email;
+ }
+ catch
+ { }
+ try
+ {
+ rigaIstObj = XPS_data.XPS.obj.taObj.getByIdxObj(comando.valore)[0];
+ emailSent = rigaIstObj.emailSent.ToString("dd/MM/yy HH:mm");
+ }
+ catch
+ { }
+ try
+ {
+ ddt = rigaIstObj.Nome;
+ dataRif = rigaIstObj.DataRif.ToString("dd/MM/yy HH:mm");
+ descr = rigaIstObj.Note;
+ peso = rigaIstObj.Peso.ToString();
+ }
+ catch
+ {
+ ddt = "n.d.";
+ dataRif = "n.d.";
+ descr = "n.d.";
+ peso = "n.d.";
+ }
+ if (currState >= 5 && emailDest != "")
+ {
+ // invio email
+ string subject = user_std.UtSn.Traduci("emailSubject");
+ string corpo = string.Format(user_std.UtSn.Traduci("emailBody"), ddt, dataRif, descr, peso); //'Attenzione, la merce relativa al DDT {0} del {1}, ({2}, peso {3} kg) è pronta per il ritiro presso EQUA s.p.a di Pedrengo'
+ bool fatto = gestEmail.ge.mandaEmail(memLayer.ML.confReadString("_adminEmail"), emailDest, subject, corpo);
+ if (fatto)
+ {
+ // aggiorno stato obj
+ XPS.obj.taObj.updateEmailSent(comando.valore);
+ }
+ }
+ updateBtn();
+#if false
+ memLayer.ML.setSessionVal("btnCmdPress", "07", false);
+ segnalaClick();
+#endif
}
protected void btn5_Click(object sender, EventArgs e)
{
@@ -107,5 +230,25 @@ namespace XPST.WebUserControls
memLayer.ML.setSessionVal("btnCmdPress", "ko", false);
segnalaClick();
}
+
+ ///
+ /// oggetto comando locale alla classe
+ ///
+ protected inputComando comando
+ {
+ get
+ {
+ inputComando answ;
+ if (memLayer.ML.isInSessionObject("barcodeCmd"))
+ {
+ answ = (inputComando)memLayer.ML.objSessionObj("barcodeCmd");
+ }
+ else
+ {
+ answ = new inputComando();
+ }
+ return answ;
+ }
+ }
}
}
\ No newline at end of file
diff --git a/project/XPST/WebUserControls/mod_btnComandi.ascx.designer.cs b/project/XPST/WebUserControls/mod_btnComandi.ascx.designer.cs
index 7ceb5fb..bfa2e04 100644
--- a/project/XPST/WebUserControls/mod_btnComandi.ascx.designer.cs
+++ b/project/XPST/WebUserControls/mod_btnComandi.ascx.designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:2.0.50727.4963
+// Runtime Version:2.0.50727.4971
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
diff --git a/project/XPST/barcode.aspx.cs b/project/XPST/barcode.aspx.cs
index 0194f11..d2627ea 100644
--- a/project/XPST/barcode.aspx.cs
+++ b/project/XPST/barcode.aspx.cs
@@ -16,7 +16,11 @@ public partial class barcode : Flesk.Accelerator.Page //System.Web.UI.Page
mod_barcode1.eh_comandoRegistrato += new EventHandler(mod_barcode1_eh_comandoRegistrato);
mod_btnComandi1.eh_clickComando += new EventHandler(mod_btnComandi1_eh_clickComando);
}
-
+ ///
+ /// inviato un comando dai link buttons
+ ///
+ ///
+ ///
void mod_btnComandi1_eh_clickComando(object sender, EventArgs e)
{
// chiamo metodo caricamento comandi in modulo barcode...
@@ -108,6 +112,7 @@ public partial class barcode : Flesk.Accelerator.Page //System.Web.UI.Page
default:
break;
}
+ mod_btnComandi1.updateBtn();
}
///
/// eseguo il comando
diff --git a/project/XPST/bin/MDB_Data/si_dt30.mdb b/project/XPST/bin/MDB_Data/si_dt30.mdb
index 01f3756..6eb933a 100644
Binary files a/project/XPST/bin/MDB_Data/si_dt30.mdb and b/project/XPST/bin/MDB_Data/si_dt30.mdb differ
diff --git a/project/XPST/bin/SteamWare.dll b/project/XPST/bin/SteamWare.dll
index 2c42b53..4be88ce 100644
Binary files a/project/XPST/bin/SteamWare.dll and b/project/XPST/bin/SteamWare.dll differ
diff --git a/project/XPST/bin/XPST.dll b/project/XPST/bin/XPST.dll
index e5f370d..2ba7d05 100644
Binary files a/project/XPST/bin/XPST.dll and b/project/XPST/bin/XPST.dll differ
diff --git a/project/XPST/bin/XPS_data.dll b/project/XPST/bin/XPS_data.dll
index 8d2077b..0473c3d 100644
Binary files a/project/XPST/bin/XPS_data.dll and b/project/XPST/bin/XPS_data.dll differ
diff --git a/project/XPST/equaAppSettings.config b/project/XPST/equaAppSettings.config
index fc21b11..3dd2c81 100644
--- a/project/XPST/equaAppSettings.config
+++ b/project/XPST/equaAppSettings.config
@@ -19,7 +19,7 @@
-
+
diff --git a/project/XPST/obj/Debug/ResolveAssemblyReference.cache b/project/XPST/obj/Debug/ResolveAssemblyReference.cache
index daf1acc..beceb72 100644
Binary files a/project/XPST/obj/Debug/ResolveAssemblyReference.cache and b/project/XPST/obj/Debug/ResolveAssemblyReference.cache differ
diff --git a/project/XPST/obj/Debug/XPST.dll b/project/XPST/obj/Debug/XPST.dll
index e5f370d..9d2cadb 100644
Binary files a/project/XPST/obj/Debug/XPST.dll and b/project/XPST/obj/Debug/XPST.dll differ
diff --git a/project/XPST/obj/Release/ResolveAssemblyReference.cache b/project/XPST/obj/Release/ResolveAssemblyReference.cache
index e46ba20..5c9d11b 100644
Binary files a/project/XPST/obj/Release/ResolveAssemblyReference.cache and b/project/XPST/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/project/XPST/obj/Release/XPST.dll b/project/XPST/obj/Release/XPST.dll
index 08beb8b..2ba7d05 100644
Binary files a/project/XPST/obj/Release/XPST.dll and b/project/XPST/obj/Release/XPST.dll differ
diff --git a/project/XPST_installer/Release/XPST_installer.msi b/project/XPST_installer/Release/XPST_installer.msi
index 450d5c9..023857f 100644
Binary files a/project/XPST_installer/Release/XPST_installer.msi and b/project/XPST_installer/Release/XPST_installer.msi differ
diff --git a/project/XPST_installer/XPST_installer.vdproj b/project/XPST_installer/XPST_installer.vdproj
index 8478018..731cc96 100644
--- a/project/XPST_installer/XPST_installer.vdproj
+++ b/project/XPST_installer/XPST_installer.vdproj
@@ -243,14 +243,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:XPST"
- "ProductCode" = "8:{8CB36A61-7539-4409-95F4-1733CB89B6E7}"
- "PackageCode" = "8:{04AE4ED5-5E1C-4ACF-9FED-12B138636A1A}"
+ "ProductCode" = "8:{63B94276-2AE1-46DC-B3B3-8AB307B5DB31}"
+ "PackageCode" = "8:{0AC981BF-7A77-4552-B5F6-7ED8AD1DF32A}"
"UpgradeCode" = "8:{1F4D37F4-ED5E-41B7-9D58-560A137B61D4}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
- "ProductVersion" = "8:1.2.131"
+ "ProductVersion" = "8:1.2.150"
"Manufacturer" = "8:SteamWare s.r.l."
"ARPHELPTELEPHONE" = "8:035-460560"
"ARPHELPLINK" = "8:www.steamware.net"
diff --git a/project/XPS_data/DS_applicazione.Designer.cs b/project/XPS_data/DS_applicazione.Designer.cs
index a544d10..2c13831 100644
--- a/project/XPS_data/DS_applicazione.Designer.cs
+++ b/project/XPS_data/DS_applicazione.Designer.cs
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:2.0.50727.4963
+// Runtime Version:2.0.50727.4971
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -710,6 +710,18 @@ namespace XPS_data {
private global::System.Data.DataColumn columnRagioneSociale;
+ private global::System.Data.DataColumn columnpiva;
+
+ private global::System.Data.DataColumn columnemail;
+
+ private global::System.Data.DataColumn columnindirizzo;
+
+ private global::System.Data.DataColumn columncap;
+
+ private global::System.Data.DataColumn columnlocalita;
+
+ private global::System.Data.DataColumn columnprovincia;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public AnagClientiDataTable() {
this.TableName = "AnagClienti";
@@ -754,6 +766,48 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn pivaColumn {
+ get {
+ return this.columnpiva;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn emailColumn {
+ get {
+ return this.columnemail;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn indirizzoColumn {
+ get {
+ return this.columnindirizzo;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn capColumn {
+ get {
+ return this.columncap;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn localitaColumn {
+ get {
+ return this.columnlocalita;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn provinciaColumn {
+ get {
+ return this.columnprovincia;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
@@ -783,11 +837,17 @@ namespace XPS_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public AnagClientiRow AddAnagClientiRow(string CodCliente, string RagioneSociale) {
+ public AnagClientiRow AddAnagClientiRow(string CodCliente, string RagioneSociale, string piva, string email, string indirizzo, string cap, string localita, string provincia) {
AnagClientiRow rowAnagClientiRow = ((AnagClientiRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
CodCliente,
- RagioneSociale};
+ RagioneSociale,
+ piva,
+ email,
+ indirizzo,
+ cap,
+ localita,
+ provincia};
rowAnagClientiRow.ItemArray = columnValuesArray;
this.Rows.Add(rowAnagClientiRow);
return rowAnagClientiRow;
@@ -815,6 +875,12 @@ namespace XPS_data {
internal void InitVars() {
this.columnCodCliente = base.Columns["CodCliente"];
this.columnRagioneSociale = base.Columns["RagioneSociale"];
+ this.columnpiva = base.Columns["piva"];
+ this.columnemail = base.Columns["email"];
+ this.columnindirizzo = base.Columns["indirizzo"];
+ this.columncap = base.Columns["cap"];
+ this.columnlocalita = base.Columns["localita"];
+ this.columnprovincia = base.Columns["provincia"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -823,12 +889,30 @@ namespace XPS_data {
base.Columns.Add(this.columnCodCliente);
this.columnRagioneSociale = new global::System.Data.DataColumn("RagioneSociale", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnRagioneSociale);
+ this.columnpiva = new global::System.Data.DataColumn("piva", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnpiva);
+ this.columnemail = new global::System.Data.DataColumn("email", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnemail);
+ this.columnindirizzo = new global::System.Data.DataColumn("indirizzo", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnindirizzo);
+ this.columncap = new global::System.Data.DataColumn("cap", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columncap);
+ this.columnlocalita = new global::System.Data.DataColumn("localita", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnlocalita);
+ this.columnprovincia = new global::System.Data.DataColumn("provincia", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnprovincia);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnCodCliente}, true));
this.columnCodCliente.AllowDBNull = false;
this.columnCodCliente.Unique = true;
this.columnCodCliente.MaxLength = 50;
this.columnRagioneSociale.MaxLength = 50;
+ this.columnpiva.MaxLength = 20;
+ this.columnemail.MaxLength = 500;
+ this.columnindirizzo.MaxLength = 50;
+ this.columncap.MaxLength = 5;
+ this.columnlocalita.MaxLength = 50;
+ this.columnprovincia.MaxLength = 5;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2034,6 +2118,10 @@ namespace XPS_data {
private global::System.Data.DataColumn columnPeso;
+ private global::System.Data.DataColumn columnemailReq;
+
+ private global::System.Data.DataColumn columnemailSent;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public IstObjDataTable() {
this.TableName = "IstObj";
@@ -2211,6 +2299,20 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn emailReqColumn {
+ get {
+ return this.columnemailReq;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn emailSentColumn {
+ get {
+ return this.columnemailSent;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
@@ -2261,7 +2363,9 @@ namespace XPS_data {
string UserMod,
System.DateTime DataMod,
int Qta,
- double Peso) {
+ double Peso,
+ bool emailReq,
+ System.DateTime emailSent) {
IstObjRow rowIstObjRow = ((IstObjRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
IdxObj,
@@ -2284,7 +2388,9 @@ namespace XPS_data {
UserMod,
DataMod,
Qta,
- Peso};
+ Peso,
+ emailReq,
+ emailSent};
if ((parentAnagClientiRowByFK_IstObj_AnagClienti != null)) {
columnValuesArray[1] = parentAnagClientiRowByFK_IstObj_AnagClienti[0];
}
@@ -2334,6 +2440,8 @@ namespace XPS_data {
this.columnDataMod = base.Columns["DataMod"];
this.columnQta = base.Columns["Qta"];
this.columnPeso = base.Columns["Peso"];
+ this.columnemailReq = base.Columns["emailReq"];
+ this.columnemailSent = base.Columns["emailSent"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -2380,6 +2488,10 @@ namespace XPS_data {
base.Columns.Add(this.columnQta);
this.columnPeso = new global::System.Data.DataColumn("Peso", typeof(double), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnPeso);
+ this.columnemailReq = new global::System.Data.DataColumn("emailReq", typeof(bool), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnemailReq);
+ this.columnemailSent = new global::System.Data.DataColumn("emailSent", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnemailSent);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxObj}, true));
this.columnIdxObj.AllowDBNull = false;
@@ -4872,6 +4984,8 @@ namespace XPS_data {
private global::System.Data.DataColumn columnCodCli;
+ private global::System.Data.DataColumn columnCodCliente;
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sp_schedaIdentDataTable() {
this.TableName = "sp_schedaIdent";
@@ -5049,6 +5163,13 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public global::System.Data.DataColumn CodClienteColumn {
+ get {
+ return this.columnCodCliente;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
@@ -5099,7 +5220,8 @@ namespace XPS_data {
string PzRoto,
string Zinchlorex,
string PeekVicote,
- string CodCli) {
+ string CodCli,
+ string CodCliente) {
sp_schedaIdentRow rowsp_schedaIdentRow = ((sp_schedaIdentRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
IdxObj,
@@ -5122,7 +5244,8 @@ namespace XPS_data {
PzRoto,
Zinchlorex,
PeekVicote,
- CodCli};
+ CodCli,
+ CodCliente};
rowsp_schedaIdentRow.ItemArray = columnValuesArray;
this.Rows.Add(rowsp_schedaIdentRow);
return rowsp_schedaIdentRow;
@@ -5169,6 +5292,7 @@ namespace XPS_data {
this.columnZinchlorex = base.Columns["Zinchlorex"];
this.columnPeekVicote = base.Columns["PeekVicote"];
this.columnCodCli = base.Columns["CodCli"];
+ this.columnCodCliente = base.Columns["CodCliente"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5215,6 +5339,8 @@ namespace XPS_data {
base.Columns.Add(this.columnPeekVicote);
this.columnCodCli = new global::System.Data.DataColumn("CodCli", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodCli);
+ this.columnCodCliente = new global::System.Data.DataColumn("CodCliente", typeof(string), null, global::System.Data.MappingType.Element);
+ base.Columns.Add(this.columnCodCliente);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnIdxObj}, true));
this.columnIdxObj.AllowDBNull = false;
@@ -5252,6 +5378,8 @@ namespace XPS_data {
this.columnPeekVicote.MaxLength = 1;
this.columnCodCli.ReadOnly = true;
this.columnCodCli.MaxLength = 50;
+ this.columnCodCliente.ReadOnly = true;
+ this.columnCodCliente.MaxLength = 50;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -5655,6 +5783,96 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string piva {
+ get {
+ try {
+ return ((string)(this[this.tableAnagClienti.pivaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'piva\' in table \'AnagClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagClienti.pivaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string email {
+ get {
+ try {
+ return ((string)(this[this.tableAnagClienti.emailColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'email\' in table \'AnagClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagClienti.emailColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string indirizzo {
+ get {
+ try {
+ return ((string)(this[this.tableAnagClienti.indirizzoColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'indirizzo\' in table \'AnagClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagClienti.indirizzoColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string cap {
+ get {
+ try {
+ return ((string)(this[this.tableAnagClienti.capColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'cap\' in table \'AnagClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagClienti.capColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string localita {
+ get {
+ try {
+ return ((string)(this[this.tableAnagClienti.localitaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'localita\' in table \'AnagClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagClienti.localitaColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string provincia {
+ get {
+ try {
+ return ((string)(this[this.tableAnagClienti.provinciaColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'provincia\' in table \'AnagClienti\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableAnagClienti.provinciaColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsRagioneSocialeNull() {
return this.IsNull(this.tableAnagClienti.RagioneSocialeColumn);
@@ -5665,6 +5883,66 @@ namespace XPS_data {
this[this.tableAnagClienti.RagioneSocialeColumn] = global::System.Convert.DBNull;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IspivaNull() {
+ return this.IsNull(this.tableAnagClienti.pivaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetpivaNull() {
+ this[this.tableAnagClienti.pivaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsemailNull() {
+ return this.IsNull(this.tableAnagClienti.emailColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetemailNull() {
+ this[this.tableAnagClienti.emailColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsindirizzoNull() {
+ return this.IsNull(this.tableAnagClienti.indirizzoColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetindirizzoNull() {
+ this[this.tableAnagClienti.indirizzoColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IscapNull() {
+ return this.IsNull(this.tableAnagClienti.capColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetcapNull() {
+ this[this.tableAnagClienti.capColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IslocalitaNull() {
+ return this.IsNull(this.tableAnagClienti.localitaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetlocalitaNull() {
+ this[this.tableAnagClienti.localitaColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsprovinciaNull() {
+ return this.IsNull(this.tableAnagClienti.provinciaColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetprovinciaNull() {
+ this[this.tableAnagClienti.provinciaColumn] = global::System.Convert.DBNull;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public IstObjRow[] GetIstObjRows() {
if ((this.Table.ChildRelations["FK_IstObj_AnagClienti"] == null)) {
@@ -6640,6 +6918,36 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool emailReq {
+ get {
+ try {
+ return ((bool)(this[this.tableIstObj.emailReqColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'emailReq\' in table \'IstObj\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableIstObj.emailReqColumn] = value;
+ }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public System.DateTime emailSent {
+ get {
+ try {
+ return ((global::System.DateTime)(this[this.tableIstObj.emailSentColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'emailSent\' in table \'IstObj\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tableIstObj.emailSentColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public AnagClientiRow AnagClientiRow {
get {
@@ -6850,6 +7158,26 @@ namespace XPS_data {
this[this.tableIstObj.PesoColumn] = global::System.Convert.DBNull;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsemailReqNull() {
+ return this.IsNull(this.tableIstObj.emailReqColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetemailReqNull() {
+ this[this.tableIstObj.emailReqColumn] = global::System.Convert.DBNull;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsemailSentNull() {
+ return this.IsNull(this.tableIstObj.emailSentColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetemailSentNull() {
+ this[this.tableIstObj.emailSentColumn] = global::System.Convert.DBNull;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public Tratt2ObjRow[] GetTratt2ObjRows() {
if ((this.Table.ChildRelations["FK_Tratt2Obj_IstObj"] == null)) {
@@ -8550,6 +8878,21 @@ namespace XPS_data {
}
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public string CodCliente {
+ get {
+ try {
+ return ((string)(this[this.tablesp_schedaIdent.CodClienteColumn]));
+ }
+ catch (global::System.InvalidCastException e) {
+ throw new global::System.Data.StrongTypingException("The value for column \'CodCliente\' in table \'sp_schedaIdent\' is DBNull.", e);
+ }
+ }
+ set {
+ this[this.tablesp_schedaIdent.CodClienteColumn] = value;
+ }
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsClienteNull() {
return this.IsNull(this.tablesp_schedaIdent.ClienteColumn);
@@ -8749,6 +9092,16 @@ namespace XPS_data {
public void SetCodCliNull() {
this[this.tablesp_schedaIdent.CodCliColumn] = global::System.Convert.DBNull;
}
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public bool IsCodClienteNull() {
+ return this.IsNull(this.tablesp_schedaIdent.CodClienteColumn);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ public void SetCodClienteNull() {
+ this[this.tablesp_schedaIdent.CodClienteColumn] = global::System.Convert.DBNull;
+ }
}
///
@@ -9356,34 +9709,73 @@ namespace XPS_data.DS_applicazioneTableAdapters {
tableMapping.DataSetTable = "AnagClienti";
tableMapping.ColumnMappings.Add("CodCliente", "CodCliente");
tableMapping.ColumnMappings.Add("RagioneSociale", "RagioneSociale");
+ tableMapping.ColumnMappings.Add("piva", "piva");
+ tableMapping.ColumnMappings.Add("email", "email");
+ tableMapping.ColumnMappings.Add("indirizzo", "indirizzo");
+ tableMapping.ColumnMappings.Add("cap", "cap");
+ tableMapping.ColumnMappings.Add("localita", "localita");
+ tableMapping.ColumnMappings.Add("provincia", "provincia");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
- this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND " +
- "((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] " +
- "= @Original_RagioneSociale)))";
+ this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale)) AND ((@IsNull_piva = 1 AND [piva] IS NULL) OR ([piva] = @Original_piva)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_indirizzo = 1 AND [indirizzo] IS NULL) OR ([indirizzo] = @Original_indirizzo)) AND ((@IsNull_cap = 1 AND [cap] IS NULL) OR ([cap] = @Original_cap)) AND ((@IsNull_localita = 1 AND [localita] IS NULL) OR ([localita] = @Original_localita)) AND ((@IsNull_provincia = 1 AND [provincia] IS NULL) OR ([provincia] = @Original_provincia)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RagioneSociale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagioneSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_piva", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "piva", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_piva", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "piva", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_indirizzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indirizzo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indirizzo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cap", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cap", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cap", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_localita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "localita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "localita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_provincia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provincia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provincia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagioneSociale]) VALUES (@CodClie" +
- "nte, @RagioneSociale);\r\nSELECT CodCliente, RagioneSociale FROM AnagClienti WHERE" +
- " (CodCliente = @CodCliente)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagioneSociale], [piva], [email], [indirizzo], [cap], [localita], [provincia]) VALUES (@CodCliente, @RagioneSociale, @piva, @email, @indirizzo, @cap, @localita, @provincia);
+SELECT CodCliente, RagioneSociale, piva, email, indirizzo, cap, localita, provincia FROM AnagClienti WHERE (CodCliente = @CodCliente)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagioneSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@piva", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "piva", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indirizzo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cap", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "localita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provincia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
- this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagioneSociale] = @RagioneSociale WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale)));
-SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodCliente)";
+ this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagioneSociale] = @RagioneSociale, [piva] = @piva, [email] = @email, [indirizzo] = @indirizzo, [cap] = @cap, [localita] = @localita, [provincia] = @provincia WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale)) AND ((@IsNull_piva = 1 AND [piva] IS NULL) OR ([piva] = @Original_piva)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_indirizzo = 1 AND [indirizzo] IS NULL) OR ([indirizzo] = @Original_indirizzo)) AND ((@IsNull_cap = 1 AND [cap] IS NULL) OR ([cap] = @Original_cap)) AND ((@IsNull_localita = 1 AND [localita] IS NULL) OR ([localita] = @Original_localita)) AND ((@IsNull_provincia = 1 AND [provincia] IS NULL) OR ([provincia] = @Original_provincia)));
+SELECT CodCliente, RagioneSociale, piva, email, indirizzo, cap, localita, provincia FROM AnagClienti WHERE (CodCliente = @CodCliente)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagioneSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@piva", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "piva", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indirizzo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cap", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "localita", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provincia", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RagioneSociale", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RagioneSociale", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RagioneSociale", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_piva", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "piva", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_piva", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "piva", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_indirizzo", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indirizzo", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_indirizzo", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "indirizzo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_cap", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cap", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_cap", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "cap", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_localita", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "localita", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_localita", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "localita", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_provincia", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provincia", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_provincia", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "provincia", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9394,11 +9786,30 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT CodCliente, RagioneSociale FROM dbo.AnagClienti";
+ this._commandCollection[0].CommandText = "SELECT * FROM dbo.AnagClienti";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+ this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[1].Connection = this.Connection;
+ this._commandCollection[1].CommandText = "dbo.stp_AnagCliGetByKey";
+ this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[2].Connection = this.Connection;
+ this._commandCollection[2].CommandText = "dbo.stp_AnagCliUpdate";
+ this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RagioneSociale", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@piva", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@email", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@indirizzo", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@cap", global::System.Data.SqlDbType.NVarChar, 5, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@localita", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@provincia", global::System.Data.SqlDbType.NVarChar, 5, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -9423,6 +9834,22 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
return dataTable;
}
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
+ public virtual DS_applicazione.AnagClientiDataTable getByKey(string CodCliente) {
+ this.Adapter.SelectCommand = this.CommandCollection[1];
+ if ((CodCliente == null)) {
+ this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodCliente));
+ }
+ DS_applicazione.AnagClientiDataTable dataTable = new DS_applicazione.AnagClientiDataTable();
+ this.Adapter.Fill(dataTable);
+ return dataTable;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int Update(DS_applicazione.AnagClientiDataTable dataTable) {
@@ -9451,7 +9878,7 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
- public virtual int Delete(string Original_CodCliente, string Original_RagioneSociale) {
+ public virtual int Delete(string Original_CodCliente, string Original_RagioneSociale, string Original_piva, string Original_email, string Original_indirizzo, string Original_cap, string Original_localita, string Original_provincia) {
if ((Original_CodCliente == null)) {
throw new global::System.ArgumentNullException("Original_CodCliente");
}
@@ -9466,6 +9893,54 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_RagioneSociale));
}
+ if ((Original_piva == null)) {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[3].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_piva));
+ }
+ if ((Original_email == null)) {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_email));
+ }
+ if ((Original_indirizzo == null)) {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_indirizzo));
+ }
+ if ((Original_cap == null)) {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[10].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[10].Value = ((string)(Original_cap));
+ }
+ if ((Original_localita == null)) {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_localita));
+ }
+ if ((Original_provincia == null)) {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[14].Value = ((string)(Original_provincia));
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -9485,7 +9960,7 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
- public virtual int Insert(string CodCliente, string RagioneSociale) {
+ public virtual int Insert(string CodCliente, string RagioneSociale, string piva, string email, string indirizzo, string cap, string localita, string provincia) {
if ((CodCliente == null)) {
throw new global::System.ArgumentNullException("CodCliente");
}
@@ -9498,6 +9973,42 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
else {
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(RagioneSociale));
}
+ if ((piva == null)) {
+ this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[2].Value = ((string)(piva));
+ }
+ if ((email == null)) {
+ this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[3].Value = ((string)(email));
+ }
+ if ((indirizzo == null)) {
+ this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[4].Value = ((string)(indirizzo));
+ }
+ if ((cap == null)) {
+ this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[5].Value = ((string)(cap));
+ }
+ if ((localita == null)) {
+ this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[6].Value = ((string)(localita));
+ }
+ if ((provincia == null)) {
+ this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[7].Value = ((string)(provincia));
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -9517,7 +10028,23 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string CodCliente, string RagioneSociale, string Original_CodCliente, string Original_RagioneSociale) {
+ public virtual int Update(
+ string CodCliente,
+ string RagioneSociale,
+ string piva,
+ string email,
+ string indirizzo,
+ string cap,
+ string localita,
+ string provincia,
+ string Original_CodCliente,
+ string Original_RagioneSociale,
+ string Original_piva,
+ string Original_email,
+ string Original_indirizzo,
+ string Original_cap,
+ string Original_localita,
+ string Original_provincia) {
if ((CodCliente == null)) {
throw new global::System.ArgumentNullException("CodCliente");
}
@@ -9530,19 +10057,103 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
else {
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(RagioneSociale));
}
+ if ((piva == null)) {
+ this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(piva));
+ }
+ if ((email == null)) {
+ this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(email));
+ }
+ if ((indirizzo == null)) {
+ this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(indirizzo));
+ }
+ if ((cap == null)) {
+ this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(cap));
+ }
+ if ((localita == null)) {
+ this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(localita));
+ }
+ if ((provincia == null)) {
+ this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(provincia));
+ }
if ((Original_CodCliente == null)) {
throw new global::System.ArgumentNullException("Original_CodCliente");
}
else {
- this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CodCliente));
+ this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CodCliente));
}
if ((Original_RagioneSociale == null)) {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[10].Value = global::System.DBNull.Value;
}
else {
- this.Adapter.UpdateCommand.Parameters[3].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_RagioneSociale));
+ this.Adapter.UpdateCommand.Parameters[9].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_RagioneSociale));
+ }
+ if ((Original_piva == null)) {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[12].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[11].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_piva));
+ }
+ if ((Original_email == null)) {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_email));
+ }
+ if ((Original_indirizzo == null)) {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_indirizzo));
+ }
+ if ((Original_cap == null)) {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_cap));
+ }
+ if ((Original_localita == null)) {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[19].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[20].Value = ((string)(Original_localita));
+ }
+ if ((Original_provincia == null)) {
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((string)(Original_provincia));
}
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
@@ -9563,8 +10174,77 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
- public virtual int Update(string RagioneSociale, string Original_CodCliente, string Original_RagioneSociale) {
- return this.Update(Original_CodCliente, RagioneSociale, Original_CodCliente, Original_RagioneSociale);
+ public virtual int Update(string RagioneSociale, string piva, string email, string indirizzo, string cap, string localita, string provincia, string Original_CodCliente, string Original_RagioneSociale, string Original_piva, string Original_email, string Original_indirizzo, string Original_cap, string Original_localita, string Original_provincia) {
+ return this.Update(Original_CodCliente, RagioneSociale, piva, email, indirizzo, cap, localita, provincia, Original_CodCliente, Original_RagioneSociale, Original_piva, Original_email, Original_indirizzo, Original_cap, Original_localita, Original_provincia);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateQuery(string Original_CodCliente, string RagioneSociale, string piva, string email, string indirizzo, string cap, string localita, string provincia) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[2];
+ if ((Original_CodCliente == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(Original_CodCliente));
+ }
+ if ((RagioneSociale == null)) {
+ command.Parameters[2].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[2].Value = ((string)(RagioneSociale));
+ }
+ if ((piva == null)) {
+ command.Parameters[3].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[3].Value = ((string)(piva));
+ }
+ if ((email == null)) {
+ command.Parameters[4].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[4].Value = ((string)(email));
+ }
+ if ((indirizzo == null)) {
+ command.Parameters[5].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[5].Value = ((string)(indirizzo));
+ }
+ if ((cap == null)) {
+ command.Parameters[6].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[6].Value = ((string)(cap));
+ }
+ if ((localita == null)) {
+ command.Parameters[7].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[7].Value = ((string)(localita));
+ }
+ if ((provincia == null)) {
+ command.Parameters[8].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[8].Value = ((string)(provincia));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
}
}
@@ -10431,6 +11111,7 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Nome", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@note", global::System.Data.SqlDbType.VarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[3].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailReq", global::System.Data.SqlDbType.Bit, 1, global::System.Data.ParameterDirection.Input, 1, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[4].Connection = this.Connection;
this._commandCollection[4].CommandText = "dbo.sp_delObj";
@@ -10507,7 +11188,7 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int sp_creaSetObj(string IdxObj, string CodSet, string CodCliente, string NumDDT, global::System.Nullable dataDDT, string Nome, string UserName, string note) {
+ public virtual int sp_creaSetObj(string IdxObj, string CodSet, string CodCliente, string NumDDT, global::System.Nullable dataDDT, string Nome, string UserName, string note, global::System.Nullable emailReq) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[3];
if ((IdxObj == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
@@ -10557,6 +11238,12 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
else {
command.Parameters[8].Value = ((string)(note));
}
+ if ((emailReq.HasValue == true)) {
+ command.Parameters[9].Value = ((bool)(emailReq.Value));
+ }
+ else {
+ command.Parameters[9].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -10801,6 +11488,8 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
tableMapping.ColumnMappings.Add("DataMod", "DataMod");
tableMapping.ColumnMappings.Add("Qta", "Qta");
tableMapping.ColumnMappings.Add("Peso", "Peso");
+ tableMapping.ColumnMappings.Add("emailReq", "emailReq");
+ tableMapping.ColumnMappings.Add("emailSent", "emailSent");
this._adapter.TableMappings.Add(tableMapping);
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.DeleteCommand.Connection = this.Connection;
@@ -10825,7 +11514,10 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
" AND ((@IsNull_UserMod = 1 AND [UserMod] IS NULL) OR ([UserMod] = @Original_User" +
"Mod)) AND ((@IsNull_DataMod = 1 AND [DataMod] IS NULL) OR ([DataMod] = @Original" +
"_DataMod)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) " +
- "AND ((@IsNull_Peso = 1 AND [Peso] IS NULL) OR ([Peso] = @Original_Peso)))";
+ "AND ((@IsNull_Peso = 1 AND [Peso] IS NULL) OR ([Peso] = @Original_Peso)) AND ((@" +
+ "IsNull_emailReq = 1 AND [emailReq] IS NULL) OR ([emailReq] = @Original_emailReq)" +
+ ") AND ((@IsNull_emailSent = 1 AND [emailSent] IS NULL) OR ([emailSent] = @Origin" +
+ "al_emailSent)))";
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxObj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxObj", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
@@ -10868,10 +11560,14 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Peso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_emailReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailReq", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_emailReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailReq", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_emailSent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailSent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_emailSent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailSent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.InsertCommand.Connection = this.Connection;
- this._adapter.InsertCommand.CommandText = @"INSERT INTO [IstObj] ([IdxObj], [CodCliente], [CodStato], [Posizione], [Livello], [Rev], [CodObj], [Nome], [DataRif], [IdxObjMamma], [Note], [ExtKey], [DueDate], [LeadTime], [LeadTimeUM], [UserCreaz], [DataCreaz], [UserMod], [DataMod], [Qta], [Peso]) VALUES (@IdxObj, @CodCliente, @CodStato, @Posizione, @Livello, @Rev, @CodObj, @Nome, @DataRif, @IdxObjMamma, @Note, @ExtKey, @DueDate, @LeadTime, @LeadTimeUM, @UserCreaz, @DataCreaz, @UserMod, @DataMod, @Qta, @Peso);
-SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso FROM IstObj WHERE (IdxObj = @IdxObj)";
+ this._adapter.InsertCommand.CommandText = @"INSERT INTO [IstObj] ([IdxObj], [CodCliente], [CodStato], [Posizione], [Livello], [Rev], [CodObj], [Nome], [DataRif], [IdxObjMamma], [Note], [ExtKey], [DueDate], [LeadTime], [LeadTimeUM], [UserCreaz], [DataCreaz], [UserMod], [DataMod], [Qta], [Peso], [emailReq], [emailSent]) VALUES (@IdxObj, @CodCliente, @CodStato, @Posizione, @Livello, @Rev, @CodObj, @Nome, @DataRif, @IdxObjMamma, @Note, @ExtKey, @DueDate, @LeadTime, @LeadTimeUM, @UserCreaz, @DataCreaz, @UserMod, @DataMod, @Qta, @Peso, @emailReq, @emailSent);
+SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso, emailReq, emailSent FROM IstObj WHERE (IdxObj = @IdxObj)";
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxObj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxObj", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -10894,6 +11590,8 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailReq", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailSent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailSent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
this._adapter.UpdateCommand.Connection = this.Connection;
this._adapter.UpdateCommand.CommandText = "UPDATE [IstObj] SET [IdxObj] = @IdxObj, [CodCliente] = @CodCliente, [CodStato] = " +
@@ -10901,32 +11599,35 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
"] = @CodObj, [Nome] = @Nome, [DataRif] = @DataRif, [IdxObjMamma] = @IdxObjMamma," +
" [Note] = @Note, [ExtKey] = @ExtKey, [DueDate] = @DueDate, [LeadTime] = @LeadTim" +
"e, [LeadTimeUM] = @LeadTimeUM, [UserCreaz] = @UserCreaz, [DataCreaz] = @DataCrea" +
- "z, [UserMod] = @UserMod, [DataMod] = @DataMod, [Qta] = @Qta, [Peso] = @Peso WHER" +
- "E (([IdxObj] = @Original_IdxObj) AND ((@IsNull_CodCliente = 1 AND [CodCliente] I" +
- "S NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_CodStato = 1 AND" +
- " [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_Posizio" +
- "ne = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@I" +
- "sNull_Livello = 1 AND [Livello] IS NULL) OR ([Livello] = @Original_Livello)) AND" +
- " ((@IsNull_Rev = 1 AND [Rev] IS NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_" +
- "CodObj = 1 AND [CodObj] IS NULL) OR ([CodObj] = @Original_CodObj)) AND ((@IsNull" +
- "_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_DataRi" +
- "f = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)) AND ((@IsNull_I" +
- "dxObjMamma = 1 AND [IdxObjMamma] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMa" +
- "mma)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) A" +
- "ND ((@IsNull_ExtKey = 1 AND [ExtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) " +
- "AND ((@IsNull_DueDate = 1 AND [DueDate] IS NULL) OR ([DueDate] = @Original_DueDa" +
- "te)) AND ((@IsNull_LeadTime = 1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Origin" +
- "al_LeadTime)) AND ((@IsNull_LeadTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTi" +
- "meUM] = @Original_LeadTimeUM)) AND ((@IsNull_UserCreaz = 1 AND [UserCreaz] IS NU" +
- "LL) OR ([UserCreaz] = @Original_UserCreaz)) AND ((@IsNull_DataCreaz = 1 AND [Dat" +
- "aCreaz] IS NULL) OR ([DataCreaz] = @Original_DataCreaz)) AND ((@IsNull_UserMod =" +
- " 1 AND [UserMod] IS NULL) OR ([UserMod] = @Original_UserMod)) AND ((@IsNull_Data" +
- "Mod = 1 AND [DataMod] IS NULL) OR ([DataMod] = @Original_DataMod)) AND ((@IsNull" +
- "_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_Peso = 1 A" +
- "ND [Peso] IS NULL) OR ([Peso] = @Original_Peso)));\r\nSELECT IdxObj, CodCliente, C" +
- "odStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtK" +
- "ey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, " +
- "Peso FROM IstObj WHERE (IdxObj = @IdxObj)";
+ "z, [UserMod] = @UserMod, [DataMod] = @DataMod, [Qta] = @Qta, [Peso] = @Peso, [em" +
+ "ailReq] = @emailReq, [emailSent] = @emailSent WHERE (([IdxObj] = @Original_IdxOb" +
+ "j) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Or" +
+ "iginal_CodCliente)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodS" +
+ "tato] = @Original_CodStato)) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL" +
+ ") OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_Livello = 1 AND [Livello" +
+ "] IS NULL) OR ([Livello] = @Original_Livello)) AND ((@IsNull_Rev = 1 AND [Rev] I" +
+ "S NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_CodObj = 1 AND [CodObj] IS NUL" +
+ "L) OR ([CodObj] = @Original_CodObj)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) " +
+ "OR ([Nome] = @Original_Nome)) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) O" +
+ "R ([DataRif] = @Original_DataRif)) AND ((@IsNull_IdxObjMamma = 1 AND [IdxObjMamm" +
+ "a] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMamma)) AND ((@IsNull_Note = 1 A" +
+ "ND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_ExtKey = 1 AND [E" +
+ "xtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) AND ((@IsNull_DueDate = 1 AND " +
+ "[DueDate] IS NULL) OR ([DueDate] = @Original_DueDate)) AND ((@IsNull_LeadTime = " +
+ "1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Original_LeadTime)) AND ((@IsNull_Le" +
+ "adTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTimeUM] = @Original_LeadTimeUM))" +
+ " AND ((@IsNull_UserCreaz = 1 AND [UserCreaz] IS NULL) OR ([UserCreaz] = @Origina" +
+ "l_UserCreaz)) AND ((@IsNull_DataCreaz = 1 AND [DataCreaz] IS NULL) OR ([DataCrea" +
+ "z] = @Original_DataCreaz)) AND ((@IsNull_UserMod = 1 AND [UserMod] IS NULL) OR (" +
+ "[UserMod] = @Original_UserMod)) AND ((@IsNull_DataMod = 1 AND [DataMod] IS NULL)" +
+ " OR ([DataMod] = @Original_DataMod)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR" +
+ " ([Qta] = @Original_Qta)) AND ((@IsNull_Peso = 1 AND [Peso] IS NULL) OR ([Peso] " +
+ "= @Original_Peso)) AND ((@IsNull_emailReq = 1 AND [emailReq] IS NULL) OR ([email" +
+ "Req] = @Original_emailReq)) AND ((@IsNull_emailSent = 1 AND [emailSent] IS NULL)" +
+ " OR ([emailSent] = @Original_emailSent)));\r\nSELECT IdxObj, CodCliente, CodStato," +
+ " Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueD" +
+ "ate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso, em" +
+ "ailReq, emailSent FROM IstObj WHERE (IdxObj = @IdxObj)";
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxObj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxObj", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -10949,6 +11650,8 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DataMod", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailReq", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@emailSent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailSent", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxObj", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "IdxObj", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_CodCliente", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CodCliente", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CodCliente", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
@@ -10990,6 +11693,10 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Qta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Qta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Peso", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Peso", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Peso", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_emailReq", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailReq", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_emailReq", global::System.Data.SqlDbType.Bit, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailReq", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_emailSent", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailSent", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
+ this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_emailSent", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "emailSent", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -11000,13 +11707,12 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitCommandCollection() {
- this._commandCollection = new global::System.Data.SqlClient.SqlCommand[7];
+ this._commandCollection = new global::System.Data.SqlClient.SqlCommand[8];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
- this._commandCollection[0].CommandText = "SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome" +
- ", DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, " +
- "\r\n DataCreaz, UserMod, DataMod, Qta, Peso\r\nFROM " +
- " IstObj";
+ this._commandCollection[0].CommandText = @"SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz,
+ DataCreaz, UserMod, DataMod, Qta, Peso, emailReq, emailSent
+FROM IstObj";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
@@ -11037,22 +11743,28 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxObjCommon", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[5].Connection = this.Connection;
- this._commandCollection[5].CommandText = "dbo.stp_IstObj_updateStato";
+ this._commandCollection[5].CommandText = "dbo.stp_IstObj_updateEmailSent";
this._commandCollection[5].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStato", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[5].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxObj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[6].Connection = this.Connection;
- this._commandCollection[6].CommandText = "dbo.stp_IstObj_updateStatoTree";
+ this._commandCollection[6].CommandText = "dbo.stp_IstObj_updateStato";
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStato", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
- this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxObjCommon", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxObj", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7] = new global::System.Data.SqlClient.SqlCommand();
+ this._commandCollection[7].Connection = this.Connection;
+ this._commandCollection[7].CommandText = "dbo.stp_IstObj_updateStatoTree";
+ this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodStato", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserMod", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DataMod", global::System.Data.SqlDbType.DateTime, 8, global::System.Data.ParameterDirection.Input, 23, 3, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+ this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IdxObjCommon", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -11142,7 +11854,9 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
string Original_UserMod,
global::System.Nullable Original_DataMod,
global::System.Nullable Original_Qta,
- global::System.Nullable Original_Peso) {
+ global::System.Nullable Original_Peso,
+ global::System.Nullable Original_emailReq,
+ global::System.Nullable Original_emailSent) {
if ((Original_IdxObj == null)) {
throw new global::System.ArgumentNullException("Original_IdxObj");
}
@@ -11309,6 +12023,22 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
this.Adapter.DeleteCommand.Parameters[39].Value = ((object)(1));
this.Adapter.DeleteCommand.Parameters[40].Value = global::System.DBNull.Value;
}
+ if ((Original_emailReq.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[42].Value = ((bool)(Original_emailReq.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[41].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[42].Value = global::System.DBNull.Value;
+ }
+ if ((Original_emailSent.HasValue == true)) {
+ this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(0));
+ this.Adapter.DeleteCommand.Parameters[44].Value = ((System.DateTime)(Original_emailSent.Value));
+ }
+ else {
+ this.Adapter.DeleteCommand.Parameters[43].Value = ((object)(1));
+ this.Adapter.DeleteCommand.Parameters[44].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -11349,7 +12079,9 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
string UserMod,
global::System.Nullable DataMod,
global::System.Nullable Qta,
- global::System.Nullable Peso) {
+ global::System.Nullable Peso,
+ global::System.Nullable emailReq,
+ global::System.Nullable emailSent) {
if ((IdxObj == null)) {
throw new global::System.ArgumentNullException("IdxObj");
}
@@ -11476,6 +12208,18 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
else {
this.Adapter.InsertCommand.Parameters[20].Value = global::System.DBNull.Value;
}
+ if ((emailReq.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[21].Value = ((bool)(emailReq.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ if ((emailSent.HasValue == true)) {
+ this.Adapter.InsertCommand.Parameters[22].Value = ((System.DateTime)(emailSent.Value));
+ }
+ else {
+ this.Adapter.InsertCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -11517,6 +12261,8 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
global::System.Nullable DataMod,
global::System.Nullable Qta,
global::System.Nullable Peso,
+ global::System.Nullable emailReq,
+ global::System.Nullable emailSent,
string Original_IdxObj,
string Original_CodCliente,
string Original_CodStato,
@@ -11537,7 +12283,9 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
string Original_UserMod,
global::System.Nullable Original_DataMod,
global::System.Nullable Original_Qta,
- global::System.Nullable Original_Peso) {
+ global::System.Nullable Original_Peso,
+ global::System.Nullable Original_emailReq,
+ global::System.Nullable Original_emailSent) {
if ((IdxObj == null)) {
throw new global::System.ArgumentNullException("IdxObj");
}
@@ -11664,172 +12412,200 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
else {
this.Adapter.UpdateCommand.Parameters[20].Value = global::System.DBNull.Value;
}
+ if ((emailReq.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[21].Value = ((bool)(emailReq.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
+ }
+ if ((emailSent.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[22].Value = ((System.DateTime)(emailSent.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[22].Value = global::System.DBNull.Value;
+ }
if ((Original_IdxObj == null)) {
throw new global::System.ArgumentNullException("Original_IdxObj");
}
else {
- this.Adapter.UpdateCommand.Parameters[21].Value = ((string)(Original_IdxObj));
+ this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_IdxObj));
}
if ((Original_CodCliente == null)) {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(1));
- this.Adapter.UpdateCommand.Parameters[23].Value = global::System.DBNull.Value;
- }
- else {
- this.Adapter.UpdateCommand.Parameters[22].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[23].Value = ((string)(Original_CodCliente));
- }
- if ((Original_CodStato == null)) {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[25].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[24].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_CodStato));
+ this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_CodCliente));
}
- if ((Original_Posizione == null)) {
+ if ((Original_CodStato == null)) {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[27].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[26].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_Posizione));
+ this.Adapter.UpdateCommand.Parameters[27].Value = ((string)(Original_CodStato));
}
- if ((Original_Livello.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[29].Value = ((int)(Original_Livello.Value));
- }
- else {
+ if ((Original_Posizione == null)) {
this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[29].Value = global::System.DBNull.Value;
}
- if ((Original_Rev.HasValue == true)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[28].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[29].Value = ((string)(Original_Posizione));
+ }
+ if ((Original_Livello.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_Rev.Value));
+ this.Adapter.UpdateCommand.Parameters[31].Value = ((int)(Original_Livello.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[30].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[31].Value = global::System.DBNull.Value;
}
- if ((Original_CodObj == null)) {
+ if ((Original_Rev.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[33].Value = ((int)(Original_Rev.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[33].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[32].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[33].Value = ((string)(Original_CodObj));
- }
- if ((Original_Nome == null)) {
+ if ((Original_CodObj == null)) {
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[35].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[34].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_Nome));
+ this.Adapter.UpdateCommand.Parameters[35].Value = ((string)(Original_CodObj));
}
- if ((Original_DataRif.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[37].Value = ((System.DateTime)(Original_DataRif.Value));
- }
- else {
+ if ((Original_Nome == null)) {
this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[37].Value = global::System.DBNull.Value;
}
- if ((Original_IdxObjMamma == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[36].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[37].Value = ((string)(Original_Nome));
+ }
+ if ((Original_DataRif.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[39].Value = ((System.DateTime)(Original_DataRif.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[39].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[38].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[39].Value = ((string)(Original_IdxObjMamma));
- }
- if ((Original_Note == null)) {
+ if ((Original_IdxObjMamma == null)) {
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[41].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[40].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_Note));
+ this.Adapter.UpdateCommand.Parameters[41].Value = ((string)(Original_IdxObjMamma));
}
- if ((Original_ExtKey == null)) {
+ if ((Original_Note == null)) {
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[43].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[42].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_ExtKey));
+ this.Adapter.UpdateCommand.Parameters[43].Value = ((string)(Original_Note));
}
- if ((Original_DueDate.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[45].Value = ((System.DateTime)(Original_DueDate.Value));
- }
- else {
+ if ((Original_ExtKey == null)) {
this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[45].Value = global::System.DBNull.Value;
}
- if ((Original_LeadTime.HasValue == true)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[44].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[45].Value = ((string)(Original_ExtKey));
+ }
+ if ((Original_DueDate.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[47].Value = ((double)(Original_LeadTime.Value));
+ this.Adapter.UpdateCommand.Parameters[47].Value = ((System.DateTime)(Original_DueDate.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[46].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[47].Value = global::System.DBNull.Value;
}
- if ((Original_LeadTimeUM == null)) {
+ if ((Original_LeadTime.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[49].Value = ((double)(Original_LeadTime.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[49].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[48].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[49].Value = ((string)(Original_LeadTimeUM));
- }
- if ((Original_UserCreaz == null)) {
+ if ((Original_LeadTimeUM == null)) {
this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[51].Value = global::System.DBNull.Value;
}
else {
this.Adapter.UpdateCommand.Parameters[50].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_UserCreaz));
+ this.Adapter.UpdateCommand.Parameters[51].Value = ((string)(Original_LeadTimeUM));
}
- if ((Original_DataCreaz.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[53].Value = ((System.DateTime)(Original_DataCreaz.Value));
- }
- else {
+ if ((Original_UserCreaz == null)) {
this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[53].Value = global::System.DBNull.Value;
}
- if ((Original_UserMod == null)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[52].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[53].Value = ((string)(Original_UserCreaz));
+ }
+ if ((Original_DataCreaz.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[55].Value = ((System.DateTime)(Original_DataCreaz.Value));
+ }
+ else {
this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[55].Value = global::System.DBNull.Value;
}
- else {
- this.Adapter.UpdateCommand.Parameters[54].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[55].Value = ((string)(Original_UserMod));
- }
- if ((Original_DataMod.HasValue == true)) {
- this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[57].Value = ((System.DateTime)(Original_DataMod.Value));
- }
- else {
+ if ((Original_UserMod == null)) {
this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[57].Value = global::System.DBNull.Value;
}
- if ((Original_Qta.HasValue == true)) {
+ else {
+ this.Adapter.UpdateCommand.Parameters[56].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[57].Value = ((string)(Original_UserMod));
+ }
+ if ((Original_DataMod.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[59].Value = ((int)(Original_Qta.Value));
+ this.Adapter.UpdateCommand.Parameters[59].Value = ((System.DateTime)(Original_DataMod.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[58].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[59].Value = global::System.DBNull.Value;
}
- if ((Original_Peso.HasValue == true)) {
+ if ((Original_Qta.HasValue == true)) {
this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(0));
- this.Adapter.UpdateCommand.Parameters[61].Value = ((double)(Original_Peso.Value));
+ this.Adapter.UpdateCommand.Parameters[61].Value = ((int)(Original_Qta.Value));
}
else {
this.Adapter.UpdateCommand.Parameters[60].Value = ((object)(1));
this.Adapter.UpdateCommand.Parameters[61].Value = global::System.DBNull.Value;
}
+ if ((Original_Peso.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[63].Value = ((double)(Original_Peso.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[62].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[63].Value = global::System.DBNull.Value;
+ }
+ if ((Original_emailReq.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[65].Value = ((bool)(Original_emailReq.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[64].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[65].Value = global::System.DBNull.Value;
+ }
+ if ((Original_emailSent.HasValue == true)) {
+ this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(0));
+ this.Adapter.UpdateCommand.Parameters[67].Value = ((System.DateTime)(Original_emailSent.Value));
+ }
+ else {
+ this.Adapter.UpdateCommand.Parameters[66].Value = ((object)(1));
+ this.Adapter.UpdateCommand.Parameters[67].Value = global::System.DBNull.Value;
+ }
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
@@ -11870,6 +12646,8 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
global::System.Nullable DataMod,
global::System.Nullable Qta,
global::System.Nullable Peso,
+ global::System.Nullable emailReq,
+ global::System.Nullable emailSent,
string Original_IdxObj,
string Original_CodCliente,
string Original_CodStato,
@@ -11890,8 +12668,10 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
string Original_UserMod,
global::System.Nullable Original_DataMod,
global::System.Nullable Original_Qta,
- global::System.Nullable Original_Peso) {
- return this.Update(Original_IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso, Original_IdxObj, Original_CodCliente, Original_CodStato, Original_Posizione, Original_Livello, Original_Rev, Original_CodObj, Original_Nome, Original_DataRif, Original_IdxObjMamma, Original_Note, Original_ExtKey, Original_DueDate, Original_LeadTime, Original_LeadTimeUM, Original_UserCreaz, Original_DataCreaz, Original_UserMod, Original_DataMod, Original_Qta, Original_Peso);
+ global::System.Nullable Original_Peso,
+ global::System.Nullable Original_emailReq,
+ global::System.Nullable Original_emailSent) {
+ return this.Update(Original_IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso, emailReq, emailSent, Original_IdxObj, Original_CodCliente, Original_CodStato, Original_Posizione, Original_Livello, Original_Rev, Original_CodObj, Original_Nome, Original_DataRif, Original_IdxObjMamma, Original_Note, Original_ExtKey, Original_DueDate, Original_LeadTime, Original_LeadTimeUM, Original_UserCreaz, Original_DataCreaz, Original_UserMod, Original_DataMod, Original_Qta, Original_Peso, Original_emailReq, Original_emailSent);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -12007,8 +12787,35 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
- public virtual int updateStato(string CodStato, string UserMod, global::System.Nullable DataMod, string IdxObj) {
+ public virtual int updateEmailSent(string IdxObj) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[5];
+ if ((IdxObj == null)) {
+ command.Parameters[1].Value = global::System.DBNull.Value;
+ }
+ else {
+ command.Parameters[1].Value = ((string)(IdxObj));
+ }
+ global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
+ if (((command.Connection.State & global::System.Data.ConnectionState.Open)
+ != global::System.Data.ConnectionState.Open)) {
+ command.Connection.Open();
+ }
+ int returnValue;
+ try {
+ returnValue = command.ExecuteNonQuery();
+ }
+ finally {
+ if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
+ command.Connection.Close();
+ }
+ }
+ return returnValue;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+ public virtual int updateStato(string CodStato, string UserMod, global::System.Nullable DataMod, string IdxObj) {
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
if ((CodStato == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -12053,7 +12860,7 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int updateStatoTree(string CodStato, string UserMod, global::System.Nullable DataMod, string IdxObjCommon) {
- global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[6];
+ global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[7];
if ((CodStato == null)) {
command.Parameters[1].Value = global::System.DBNull.Value;
}
@@ -14492,6 +15299,7 @@ SELECT CodMappa, CodObj, CodStato, CodEvento, NextCodStato, CmdPlugin, text2show
tableMapping.ColumnMappings.Add("Zinchlorex", "Zinchlorex");
tableMapping.ColumnMappings.Add("PeekVicote", "PeekVicote");
tableMapping.ColumnMappings.Add("CodCli", "CodCli");
+ tableMapping.ColumnMappings.Add("CodCliente", "CodCliente");
this._adapter.TableMappings.Add(tableMapping);
}
diff --git a/project/XPS_data/DS_applicazione.xsd b/project/XPS_data/DS_applicazione.xsd
index 1431c47..8cb0031 100644
--- a/project/XPS_data/DS_applicazione.xsd
+++ b/project/XPS_data/DS_applicazione.xsd
@@ -12,40 +12,76 @@
- DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale)))
+ DELETE FROM [dbo].[AnagClienti] WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale)) AND ((@IsNull_piva = 1 AND [piva] IS NULL) OR ([piva] = @Original_piva)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_indirizzo = 1 AND [indirizzo] IS NULL) OR ([indirizzo] = @Original_indirizzo)) AND ((@IsNull_cap = 1 AND [cap] IS NULL) OR ([cap] = @Original_cap)) AND ((@IsNull_localita = 1 AND [localita] IS NULL) OR ([localita] = @Original_localita)) AND ((@IsNull_provincia = 1 AND [provincia] IS NULL) OR ([provincia] = @Original_provincia)))
+
+
+
+
+
+
+
+
+
+
+
+
- INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagioneSociale]) VALUES (@CodCliente, @RagioneSociale);
-SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodCliente)
+ INSERT INTO [dbo].[AnagClienti] ([CodCliente], [RagioneSociale], [piva], [email], [indirizzo], [cap], [localita], [provincia]) VALUES (@CodCliente, @RagioneSociale, @piva, @email, @indirizzo, @cap, @localita, @provincia);
+SELECT CodCliente, RagioneSociale, piva, email, indirizzo, cap, localita, provincia FROM AnagClienti WHERE (CodCliente = @CodCliente)
+
+
+
+
+
+
-
- SELECT CodCliente, RagioneSociale FROM dbo.AnagClienti
+
+ SELECT * FROM dbo.AnagClienti
- UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagioneSociale] = @RagioneSociale WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale)));
-SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodCliente)
+ UPDATE [dbo].[AnagClienti] SET [CodCliente] = @CodCliente, [RagioneSociale] = @RagioneSociale, [piva] = @piva, [email] = @email, [indirizzo] = @indirizzo, [cap] = @cap, [localita] = @localita, [provincia] = @provincia WHERE (([CodCliente] = @Original_CodCliente) AND ((@IsNull_RagioneSociale = 1 AND [RagioneSociale] IS NULL) OR ([RagioneSociale] = @Original_RagioneSociale)) AND ((@IsNull_piva = 1 AND [piva] IS NULL) OR ([piva] = @Original_piva)) AND ((@IsNull_email = 1 AND [email] IS NULL) OR ([email] = @Original_email)) AND ((@IsNull_indirizzo = 1 AND [indirizzo] IS NULL) OR ([indirizzo] = @Original_indirizzo)) AND ((@IsNull_cap = 1 AND [cap] IS NULL) OR ([cap] = @Original_cap)) AND ((@IsNull_localita = 1 AND [localita] IS NULL) OR ([localita] = @Original_localita)) AND ((@IsNull_provincia = 1 AND [provincia] IS NULL) OR ([provincia] = @Original_provincia)));
+SELECT CodCliente, RagioneSociale, piva, email, indirizzo, cap, localita, provincia FROM AnagClienti WHERE (CodCliente = @CodCliente)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -54,8 +90,44 @@ SELECT CodCliente, RagioneSociale FROM AnagClienti WHERE (CodCliente = @CodClien
+
+
+
+
+
+
-
+
+
+
+
+ dbo.stp_AnagCliGetByKey
+
+
+
+
+
+
+
+
+
+
+ dbo.stp_AnagCliUpdate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -232,6 +304,7 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
+
@@ -271,7 +344,7 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
- DELETE FROM [IstObj] WHERE (([IdxObj] = @Original_IdxObj) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_Livello = 1 AND [Livello] IS NULL) OR ([Livello] = @Original_Livello)) AND ((@IsNull_Rev = 1 AND [Rev] IS NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_CodObj = 1 AND [CodObj] IS NULL) OR ([CodObj] = @Original_CodObj)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)) AND ((@IsNull_IdxObjMamma = 1 AND [IdxObjMamma] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMamma)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_ExtKey = 1 AND [ExtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) AND ((@IsNull_DueDate = 1 AND [DueDate] IS NULL) OR ([DueDate] = @Original_DueDate)) AND ((@IsNull_LeadTime = 1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Original_LeadTime)) AND ((@IsNull_LeadTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTimeUM] = @Original_LeadTimeUM)) AND ((@IsNull_UserCreaz = 1 AND [UserCreaz] IS NULL) OR ([UserCreaz] = @Original_UserCreaz)) AND ((@IsNull_DataCreaz = 1 AND [DataCreaz] IS NULL) OR ([DataCreaz] = @Original_DataCreaz)) AND ((@IsNull_UserMod = 1 AND [UserMod] IS NULL) OR ([UserMod] = @Original_UserMod)) AND ((@IsNull_DataMod = 1 AND [DataMod] IS NULL) OR ([DataMod] = @Original_DataMod)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_Peso = 1 AND [Peso] IS NULL) OR ([Peso] = @Original_Peso)))
+ DELETE FROM [IstObj] WHERE (([IdxObj] = @Original_IdxObj) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_Livello = 1 AND [Livello] IS NULL) OR ([Livello] = @Original_Livello)) AND ((@IsNull_Rev = 1 AND [Rev] IS NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_CodObj = 1 AND [CodObj] IS NULL) OR ([CodObj] = @Original_CodObj)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)) AND ((@IsNull_IdxObjMamma = 1 AND [IdxObjMamma] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMamma)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_ExtKey = 1 AND [ExtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) AND ((@IsNull_DueDate = 1 AND [DueDate] IS NULL) OR ([DueDate] = @Original_DueDate)) AND ((@IsNull_LeadTime = 1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Original_LeadTime)) AND ((@IsNull_LeadTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTimeUM] = @Original_LeadTimeUM)) AND ((@IsNull_UserCreaz = 1 AND [UserCreaz] IS NULL) OR ([UserCreaz] = @Original_UserCreaz)) AND ((@IsNull_DataCreaz = 1 AND [DataCreaz] IS NULL) OR ([DataCreaz] = @Original_DataCreaz)) AND ((@IsNull_UserMod = 1 AND [UserMod] IS NULL) OR ([UserMod] = @Original_UserMod)) AND ((@IsNull_DataMod = 1 AND [DataMod] IS NULL) OR ([DataMod] = @Original_DataMod)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_Peso = 1 AND [Peso] IS NULL) OR ([Peso] = @Original_Peso)) AND ((@IsNull_emailReq = 1 AND [emailReq] IS NULL) OR ([emailReq] = @Original_emailReq)) AND ((@IsNull_emailSent = 1 AND [emailSent] IS NULL) OR ([emailSent] = @Original_emailSent)))
@@ -314,13 +387,17 @@ SELECT IdxObj, CodTrattamento, Note FROM Tratt2Obj WHERE (CodTrattamento = @CodT
+
+
+
+
- INSERT INTO [IstObj] ([IdxObj], [CodCliente], [CodStato], [Posizione], [Livello], [Rev], [CodObj], [Nome], [DataRif], [IdxObjMamma], [Note], [ExtKey], [DueDate], [LeadTime], [LeadTimeUM], [UserCreaz], [DataCreaz], [UserMod], [DataMod], [Qta], [Peso]) VALUES (@IdxObj, @CodCliente, @CodStato, @Posizione, @Livello, @Rev, @CodObj, @Nome, @DataRif, @IdxObjMamma, @Note, @ExtKey, @DueDate, @LeadTime, @LeadTimeUM, @UserCreaz, @DataCreaz, @UserMod, @DataMod, @Qta, @Peso);
-SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso FROM IstObj WHERE (IdxObj = @IdxObj)
+ INSERT INTO [IstObj] ([IdxObj], [CodCliente], [CodStato], [Posizione], [Livello], [Rev], [CodObj], [Nome], [DataRif], [IdxObjMamma], [Note], [ExtKey], [DueDate], [LeadTime], [LeadTimeUM], [UserCreaz], [DataCreaz], [UserMod], [DataMod], [Qta], [Peso], [emailReq], [emailSent]) VALUES (@IdxObj, @CodCliente, @CodStato, @Posizione, @Livello, @Rev, @CodObj, @Nome, @DataRif, @IdxObjMamma, @Note, @ExtKey, @DueDate, @LeadTime, @LeadTimeUM, @UserCreaz, @DataCreaz, @UserMod, @DataMod, @Qta, @Peso, @emailReq, @emailSent);
+SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso, emailReq, emailSent FROM IstObj WHERE (IdxObj = @IdxObj)
@@ -343,21 +420,23 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
+
+
-
+
SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz,
- DataCreaz, UserMod, DataMod, Qta, Peso
+ DataCreaz, UserMod, DataMod, Qta, Peso, emailReq, emailSent
FROM IstObj
- UPDATE [IstObj] SET [IdxObj] = @IdxObj, [CodCliente] = @CodCliente, [CodStato] = @CodStato, [Posizione] = @Posizione, [Livello] = @Livello, [Rev] = @Rev, [CodObj] = @CodObj, [Nome] = @Nome, [DataRif] = @DataRif, [IdxObjMamma] = @IdxObjMamma, [Note] = @Note, [ExtKey] = @ExtKey, [DueDate] = @DueDate, [LeadTime] = @LeadTime, [LeadTimeUM] = @LeadTimeUM, [UserCreaz] = @UserCreaz, [DataCreaz] = @DataCreaz, [UserMod] = @UserMod, [DataMod] = @DataMod, [Qta] = @Qta, [Peso] = @Peso WHERE (([IdxObj] = @Original_IdxObj) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_Livello = 1 AND [Livello] IS NULL) OR ([Livello] = @Original_Livello)) AND ((@IsNull_Rev = 1 AND [Rev] IS NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_CodObj = 1 AND [CodObj] IS NULL) OR ([CodObj] = @Original_CodObj)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)) AND ((@IsNull_IdxObjMamma = 1 AND [IdxObjMamma] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMamma)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_ExtKey = 1 AND [ExtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) AND ((@IsNull_DueDate = 1 AND [DueDate] IS NULL) OR ([DueDate] = @Original_DueDate)) AND ((@IsNull_LeadTime = 1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Original_LeadTime)) AND ((@IsNull_LeadTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTimeUM] = @Original_LeadTimeUM)) AND ((@IsNull_UserCreaz = 1 AND [UserCreaz] IS NULL) OR ([UserCreaz] = @Original_UserCreaz)) AND ((@IsNull_DataCreaz = 1 AND [DataCreaz] IS NULL) OR ([DataCreaz] = @Original_DataCreaz)) AND ((@IsNull_UserMod = 1 AND [UserMod] IS NULL) OR ([UserMod] = @Original_UserMod)) AND ((@IsNull_DataMod = 1 AND [DataMod] IS NULL) OR ([DataMod] = @Original_DataMod)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_Peso = 1 AND [Peso] IS NULL) OR ([Peso] = @Original_Peso)));
-SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso FROM IstObj WHERE (IdxObj = @IdxObj)
+ UPDATE [IstObj] SET [IdxObj] = @IdxObj, [CodCliente] = @CodCliente, [CodStato] = @CodStato, [Posizione] = @Posizione, [Livello] = @Livello, [Rev] = @Rev, [CodObj] = @CodObj, [Nome] = @Nome, [DataRif] = @DataRif, [IdxObjMamma] = @IdxObjMamma, [Note] = @Note, [ExtKey] = @ExtKey, [DueDate] = @DueDate, [LeadTime] = @LeadTime, [LeadTimeUM] = @LeadTimeUM, [UserCreaz] = @UserCreaz, [DataCreaz] = @DataCreaz, [UserMod] = @UserMod, [DataMod] = @DataMod, [Qta] = @Qta, [Peso] = @Peso, [emailReq] = @emailReq, [emailSent] = @emailSent WHERE (([IdxObj] = @Original_IdxObj) AND ((@IsNull_CodCliente = 1 AND [CodCliente] IS NULL) OR ([CodCliente] = @Original_CodCliente)) AND ((@IsNull_CodStato = 1 AND [CodStato] IS NULL) OR ([CodStato] = @Original_CodStato)) AND ((@IsNull_Posizione = 1 AND [Posizione] IS NULL) OR ([Posizione] = @Original_Posizione)) AND ((@IsNull_Livello = 1 AND [Livello] IS NULL) OR ([Livello] = @Original_Livello)) AND ((@IsNull_Rev = 1 AND [Rev] IS NULL) OR ([Rev] = @Original_Rev)) AND ((@IsNull_CodObj = 1 AND [CodObj] IS NULL) OR ([CodObj] = @Original_CodObj)) AND ((@IsNull_Nome = 1 AND [Nome] IS NULL) OR ([Nome] = @Original_Nome)) AND ((@IsNull_DataRif = 1 AND [DataRif] IS NULL) OR ([DataRif] = @Original_DataRif)) AND ((@IsNull_IdxObjMamma = 1 AND [IdxObjMamma] IS NULL) OR ([IdxObjMamma] = @Original_IdxObjMamma)) AND ((@IsNull_Note = 1 AND [Note] IS NULL) OR ([Note] = @Original_Note)) AND ((@IsNull_ExtKey = 1 AND [ExtKey] IS NULL) OR ([ExtKey] = @Original_ExtKey)) AND ((@IsNull_DueDate = 1 AND [DueDate] IS NULL) OR ([DueDate] = @Original_DueDate)) AND ((@IsNull_LeadTime = 1 AND [LeadTime] IS NULL) OR ([LeadTime] = @Original_LeadTime)) AND ((@IsNull_LeadTimeUM = 1 AND [LeadTimeUM] IS NULL) OR ([LeadTimeUM] = @Original_LeadTimeUM)) AND ((@IsNull_UserCreaz = 1 AND [UserCreaz] IS NULL) OR ([UserCreaz] = @Original_UserCreaz)) AND ((@IsNull_DataCreaz = 1 AND [DataCreaz] IS NULL) OR ([DataCreaz] = @Original_DataCreaz)) AND ((@IsNull_UserMod = 1 AND [UserMod] IS NULL) OR ([UserMod] = @Original_UserMod)) AND ((@IsNull_DataMod = 1 AND [DataMod] IS NULL) OR ([DataMod] = @Original_DataMod)) AND ((@IsNull_Qta = 1 AND [Qta] IS NULL) OR ([Qta] = @Original_Qta)) AND ((@IsNull_Peso = 1 AND [Peso] IS NULL) OR ([Peso] = @Original_Peso)) AND ((@IsNull_emailReq = 1 AND [emailReq] IS NULL) OR ([emailReq] = @Original_emailReq)) AND ((@IsNull_emailSent = 1 AND [emailSent] IS NULL) OR ([emailSent] = @Original_emailSent)));
+SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, DataRif, IdxObjMamma, Note, ExtKey, DueDate, LeadTime, LeadTimeUM, UserCreaz, DataCreaz, UserMod, DataMod, Qta, Peso, emailReq, emailSent FROM IstObj WHERE (IdxObj = @IdxObj)
@@ -380,6 +459,8 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
+
+
@@ -421,6 +502,10 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
+
+
+
+
@@ -448,6 +533,8 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
+
+
@@ -497,6 +584,17 @@ SELECT IdxObj, CodCliente, CodStato, Posizione, Livello, Rev, CodObj, Nome, Data
+
+
+
+ dbo.stp_IstObj_updateEmailSent
+
+
+
+
+
+
+
@@ -1024,6 +1122,7 @@ WHERE (IdxObj = @IdxObj)
+
@@ -1070,34 +1169,76 @@ WHERE (IdxObj = @IdxObj)
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
@@ -1110,21 +1251,21 @@ WHERE (IdxObj = @IdxObj)
-
+
-
+
-
+
@@ -1137,98 +1278,98 @@ WHERE (IdxObj = @IdxObj)
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
@@ -1239,385 +1380,6 @@ WHERE (IdxObj = @IdxObj)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1634,6 +1396,29 @@ WHERE (IdxObj = @IdxObj)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1642,6 +1427,13 @@ WHERE (IdxObj = @IdxObj)
+
+
+
+
+
+
+
@@ -1656,8 +1448,359 @@ WHERE (IdxObj = @IdxObj)
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1670,130 +1813,137 @@ WHERE (IdxObj = @IdxObj)
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
@@ -1806,14 +1956,14 @@ WHERE (IdxObj = @IdxObj)
-
+
-
+
diff --git a/project/XPS_data/DS_applicazione.xss b/project/XPS_data/DS_applicazione.xss
index bd05609..e78fbf8 100644
--- a/project/XPS_data/DS_applicazione.xss
+++ b/project/XPS_data/DS_applicazione.xss
@@ -4,26 +4,26 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
1023
@@ -39,10 +39,10 @@
-
+
- 796
+ 769
265
@@ -51,27 +51,27 @@
-
+
- 441
- 34
+ 432
+ 89
496
- 34
+ 89
-
+
- 185
- 246
+ 181
+ 355
- 267
- 246
+ 282
+ 355
diff --git a/project/XPS_data/MDB_Data/si_dt30.mdb b/project/XPS_data/MDB_Data/si_dt30.mdb
index 01f3756..6eb933a 100644
Binary files a/project/XPS_data/MDB_Data/si_dt30.mdb and b/project/XPS_data/MDB_Data/si_dt30.mdb differ
diff --git a/project/XPS_data/SqlScript/V 1.2/Vocabolario_150.sql b/project/XPS_data/SqlScript/V 1.2/Vocabolario_150.sql
new file mode 100644
index 0000000..914fe4e
--- /dev/null
+++ b/project/XPS_data/SqlScript/V 1.2/Vocabolario_150.sql
@@ -0,0 +1,60 @@
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/*************************************
+* STORED PROCEDURE stp_insNewLemma
+*
+* elimina record anagrafica classe prodotto
+*
+* mod : 14/05/2012
+* aut : S.E. Locatelli
+**************************************/
+create PROCEDURE stp_insNewLemma
+(
+ @lemma NVARCHAR(50),
+ @traduzione NVARCHAR(500)
+)
+AS
+
+-- elimino se c'era già...
+DELETE
+FROM Vocabolario
+WHERE lemma = @lemma
+
+-- inserisco x tutte le lingue attive...
+INSERT INTO Vocabolario
+SELECT lingua, @lemma, @traduzione
+FROM Lingue
+
+SELECT *
+FROM Vocabolario
+WHERE lemma = @lemma
+
+RETURN
+go
+
+commit;
+go
+
+
+
+exec stp_insNewLemma 'lblEmailNotifica', 'Notifica e-mail quando pronto'
+exec stp_insNewLemma 'sendMail', 'invia e-mail'
+exec stp_insNewLemma 'emailReq', 'segnalazione richiesta!'
+exec stp_insNewLemma 'emailSent', 'inviata'exec stp_insNewLemma 'emailSubject', 'Merce pronta per il ritiro'
+exec stp_insNewLemma 'emailBody', 'Attenzione, la merce relativa al DDT {0} del {1}, ({2}, peso {3} kg) è pronta per il ritiro presso EQUA s.p.a di Pedrengo'
+
+
+
+
+
+
+-- registro versione...
+INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(150, GETDATE())
+GO
diff --git a/project/XPS_data/SqlScript/V 1.2/sqlUpdate_150.sql b/project/XPS_data/SqlScript/V 1.2/sqlUpdate_150.sql
new file mode 100644
index 0000000..9da917c
--- /dev/null
+++ b/project/XPS_data/SqlScript/V 1.2/sqlUpdate_150.sql
@@ -0,0 +1,523 @@
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/*************************************
+* STORED PROCEDURE sp_schedaIdent
+* restituisce i dati x stampare 1 scheda di identificazione
+*
+* modif.: S.E.L.
+* il: 2012.02.13
+**************************************/
+alter PROCEDURE sp_schedaIdent
+(
+ @IdxObj VARCHAR(50)
+)
+AS
+
+SELECT Cod AS IdxObj, CodCliente, Cliente, DDT, DataDDT AS DDT_del, DataArrivo, descrizione AS CodProdotto, DataPrevista AS ConsegnaPrevista, Peso,
+ CASE CodCli WHEN 'Fosf' THEN 'X' ELSE ' ' END AS FosfManganese, CASE CodCli WHEN 'Brun' THEN 'X' ELSE ' ' END AS Brunitura,
+ CASE CodCli WHEN 'Fosf_Tefl' THEN 'X' ELSE ' ' END AS FosfTeflon, CASE CodCli WHEN 'Sabb' THEN 'X' ELSE ' ' END AS Sabbiatura, ' ' AS F1, ' ' AS F2,
+ ' ' AS FosfZinco, ' ' AS Teflon, ' ' AS FosfPreVern, ' ' AS PzRoto, ' ' AS Zinchlorex, ' ' AS PeekVicote, CodCli
+FROM v_ULP
+WHERE (Cod = @IdxObj)
+
+RETURN
+go
+
+commit;
+go
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/*---------------------------------------------------------
+* TRIGGER controllo aggiornamento extKey
+*
+* - in caso di cambio extKey (ciclo lavorazione), SE è Obj master,
+* aggiorna a cascata i child
+---------------------------------------------------------*/
+
+create TRIGGER trg_extKeyUpd
+ON IstObj
+FOR UPDATE
+
+AS
+IF UPDATE (ExtKey)
+
+DECLARE @isMasterObj BIT
+SET @isMasterObj = ( SELECT CASE WHEN SUBSTRING(IdxObj, LEN(idxobj),1) = 'D' THEN 1 ELSE 0 END FROM inserted )
+
+-- verifico se sia un obj master (=finisce x "D")
+IF(@isMasterObj = 1)
+BEGIN
+ DECLARE @IdxObj NVARCHAR(50)
+ DECLARE @ExtKey NVARCHAR(50)
+
+ SELECT @IdxObj = IdxObj, @ExtKey = ExtKey FROM inserted
+
+ -- aggiorno child!
+ UPDATE IstObj
+ SET ExtKey = @ExtKey
+ WHERE IdxObj LIKE REPLACE(@IdxObj,'D','')+'%' AND IdxObj <> @IdxObj
+
+END
+go
+
+commit;
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/*---------------------------------------------------------
+* TRIGGER controllo aggiornamento extKey
+*
+* - in caso di cambio extKey (ciclo lavorazione), SE è Obj master,
+* aggiorna a cascata i child
+---------------------------------------------------------*/
+
+alter TRIGGER trg_extKeyUpd
+ON IstObj
+FOR UPDATE
+
+AS
+IF UPDATE (ExtKey)
+
+DECLARE @isMasterObj BIT
+SET @isMasterObj = ( SELECT CASE WHEN SUBSTRING(IdxObj, LEN(idxobj),1) = 'D' THEN 1 ELSE 0 END FROM inserted )
+
+-- verifico se sia un obj master (=finisce x "D")
+IF(@isMasterObj = 1)
+BEGIN
+ DECLARE @IdxObj NVARCHAR(50)
+ DECLARE @ExtKey NVARCHAR(50)
+ DECLARE @dataMod DATETIME
+
+ -- calcolo valori
+ SET @dataMod = GETDATE()
+ SELECT @IdxObj = IdxObj, @ExtKey = ExtKey FROM inserted
+
+ -- aggiorno child!
+ UPDATE IstObj
+ SET ExtKey = @ExtKey,
+ dataMod = @dataMod
+ WHERE IdxObj LIKE REPLACE(@IdxObj,'D','')+'%' AND IdxObj <> @IdxObj
+
+END
+go
+
+commit;
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+alter table IstObj add
+ emailReq bit constraint DF_IstObj_emailReq default ((0)),
+ emailSent datetime;
+go
+
+
+RETURN
+go
+
+commit;
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/*---------------------------------------------------------
+* TRIGGER controllo aggiornamento extKey
+*
+* - in caso di cambio extKey (ciclo lavorazione), SE è Obj master,
+* aggiorna a cascata i child
+---------------------------------------------------------*/
+alter TRIGGER trg_extKeyUpd
+ON IstObj
+FOR UPDATE
+
+AS
+IF UPDATE (ExtKey)
+
+UPDATE child
+SET ExtKey = mother.ExtKey,
+ dataMod = mother.dataMod
+FROM inserted AS mother INNER JOIN IstObj as child ON mother.IdxObj = child.IdxObjMamma
+WHERE mother.IdxObjMamma IS NULL
+go
+
+commit;
+go
+
+
+--- update emailReq a zero x esistenti...
+update IstObj
+set emailReq = 0
+where emailReq is null
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/*************************************
+* STORED PROCEDURE sp_creaSetObj
+* crea un set iniziale di valori da tracciare x la commessa
+*
+* modif.: S.E.L.
+* il: 2008.10.17
+**************************************/
+alter PROCEDURE sp_creaSetObj
+(
+ @IdxObj VARCHAR(50),
+ @CodSet VARCHAR(50),
+ @CodCliente VARCHAR(50),
+ @NumDDT VARCHAR(50),
+ @dataDDT as DATETIME,
+ @Nome VARCHAR(50),
+ @UserName VARCHAR(50),
+ @note VARCHAR(50),
+ @emailReq BIT
+)
+AS
+
+DECLARE @livello VARCHAR(50)
+DECLARE @IdxObjMamma VARCHAR(50)
+DECLARE @numRow INT
+DECLARE @adesso DATETIME
+DECLARE @depth INT
+
+BEGIN tran
+
+/* creazione oggetti in qta minima */
+
+ SET @adesso = GETDATE()
+ SET @depth = 1
+ -- parto da obj top #.
+ SET @livello = '#.'
+ INSERT INTO IstObj(IdxObj, Livello,ExtKey , DataRif, Rev,CodObj, Posizione,Nome ,UserCreaz,DataCreaz,UserMod,DataMod,CodStato,Note,CodCliente,emailReq)
+ SELECT @IdxObj + Object2Set.CodObj AS idx, @depth, @Nome, @dataDDT, 0, Object2Set.CodObj, 1, @NumDDT AS nome,
+ @UserName AS userCreaz, @adesso AS Expr6, @UserName AS userMod, @adesso AS Expr8, V_statoStartFam.CodStato,@note,@CodCliente, @emailReq
+ FROM AnagFamStati INNER JOIN
+ AnagObj ON AnagFamStati.FamStato = AnagObj.FamStato INNER JOIN
+ Object2Set ON AnagObj.CodObj = Object2Set.CodObj INNER JOIN
+ V_statoStartFam ON AnagFamStati.FamStato = V_statoStartFam.FamStato
+ WHERE (Object2Set.Posizione = @livello)
+ -- salvo idx mamma...
+ SET @IdxObjMamma = (SELECT IdxObj FROM IstObj WHERE DataCreaz=@adesso AND Livello=@depth)
+ -- ora creo gli obj dei livelli successivi... aggiungo "#." al livello e conto se ce ne solo con ciclo while...
+ SET @livello = @livello + '#.'
+ SET @numRow = (SELECT count(IdxSet)
+ FROM Object2Set
+ WHERE (Posizione = @livello))
+ WHILE(@numRow > 0)
+ BEGIN
+ SET @depth = @depth +1
+ -- inserisco valori child
+ INSERT INTO IstObj(IdxObj, Livello, ExtKey, DataRif, Rev,CodObj, Posizione, Nome,UserCreaz,DataCreaz,UserMod,DataMod,CodStato,Note,CodCliente, IdxObjMamma, emailReq)
+ SELECT @IdxObj + Object2Set.CodObj +'01' AS idx, @depth, @Nome, @dataDDT, 0, Object2Set.CodObj, 1, @NumDDT ,
+ @UserName AS Expr5, @adesso, @UserName AS Expr7, @adesso AS Expr8, v_statoStartFam.CodStato,@note,@CodCliente, @IdxObjMamma, @emailReq
+ FROM AnagFamStati INNER JOIN
+ AnagObj ON AnagFamStati.FamStato = AnagObj.FamStato INNER JOIN
+ Object2Set ON AnagObj.CodObj = Object2Set.CodObj INNER JOIN
+ v_statoStartFam ON AnagFamStati.FamStato = v_statoStartFam.FamStato
+ WHERE (Object2Set.Posizione = @livello)
+ -- salvo idx mamma...
+ SET @IdxObjMamma = (SELECT IdxObj FROM IstObj WHERE DataCreaz=@adesso AND Livello=@depth)
+ -- aggiorno conteggio...
+ SET @livello = @livello + '#.'
+ SET @numRow = (SELECT count(IdxSet)
+ FROM Object2Set
+ WHERE (Posizione = @livello))
+ END
+
+/* creazione fasi std per ogni oggetto creato */
+
+
+COMMIT tran
+
+RETURN
+go
+
+commit;
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+alter table AnagClienti add
+ email nvarchar(500) constraint DF_AnagClienti_email default ('');
+go
+
+update AnagClienti set email=('');
+go
+
+commit;
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+alter table IstObj drop
+ constraint FK_IstObj_AnagClienti ;
+go
+
+alter table AnagClienti drop
+ constraint DF_AnagClienti_email ;
+go
+
+exec sp_rename 'PK_AnagClienti', 'tmp__PK_AnagClienti', 'OBJECT';
+go
+
+exec sp_rename 'AnagClienti', 'tmp__AnagClienti_0', 'OBJECT';
+go
+
+create table AnagClienti(
+ CodCliente nvarchar(50) not null constraint PK_AnagClienti primary key,
+ RagioneSociale nvarchar(50),
+ piva nvarchar(20),
+ email nvarchar(500) constraint DF_AnagClienti_email default (''),
+ indirizzo nvarchar(50),
+ cap nvarchar(5),
+ localita nvarchar(50),
+ provincia nvarchar(5)
+);
+go
+
+insert into AnagClienti(CodCliente,RagioneSociale,email) select CodCliente,RagioneSociale,email from tmp__AnagClienti_0;
+go
+
+drop table tmp__AnagClienti_0;
+go
+
+alter table IstObj add
+ constraint FK_IstObj_AnagClienti foreign key(CodCliente) references AnagClienti(CodCliente);
+go
+
+commit;
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/***************************************
+* STORED stp_AnagCliUpdate
+*
+* aggiorna dati anagrafica clienti
+*
+* Steamware, S.E.L.
+* mod: 2012.07.12
+*
+****************************************/
+create PROCEDURE stp_AnagCliUpdate
+(
+ @Original_CodCliente NVARCHAR(50),
+ @RagioneSociale NVARCHAR(50),
+ @piva NVARCHAR(20),
+ @email NVARCHAR(500),
+ @indirizzo NVARCHAR(50),
+ @cap NVARCHAR(5),
+ @localita NVARCHAR(50),
+ @provincia NVARCHAR(5)
+)
+AS
+
+UPDATE dbo.AnagClienti
+SET RagioneSociale = @RagioneSociale,
+ piva = @piva,
+ email = @email,
+ indirizzo = @indirizzo,
+ cap = @cap,
+ localita = @localita,
+ provincia = @provincia
+WHERE (CodCliente = @Original_CodCliente)
+
+RETURN
+go
+
+commit;
+go
+
+set xact_abort on
+go
+
+begin transaction
+go
+
+INSERT INTO dbo.Eventi
+ VALUES (N'07', N'BC', N'Invio email', N'act')
+go
+
+commit transaction
+go
+
+
+set xact_abort on
+go
+
+begin transaction
+go
+
+INSERT INTO dbo.TraEv2Stati
+ VALUES (N'E_BC', N'BC', N'05', N'07', N'*', N'07', N'sendMail', N'Invia Email')
+go
+
+commit transaction
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/***************************************
+* STORED stp_AnagCliGetByKey
+*
+* ottiene record anagrafica clienti da chiave
+*
+* Steamware, S.E.L.
+* mod: 2012.07.12
+*
+****************************************/
+create PROCEDURE stp_AnagCliGetByKey
+(
+ @CodCliente NVARCHAR(50)
+)
+AS
+
+SELECT *
+FROM AnagClienti
+WHERE CodCliente = @CodCliente
+
+RETURN
+go
+
+commit;
+go
+
+
+set xact_abort on;
+go
+
+begin transaction;
+go
+
+set ANSI_NULLS on;
+go
+
+/***************************************
+* STORED stp_IstObj_updateEmailSent
+*
+* aggiorna email sent con data/ora correnti
+*
+* Steamware, S.E.L.
+* mod: 2011.10.27
+*
+****************************************/
+create PROCEDURE stp_IstObj_updateEmailSent
+(
+ @IdxObj NVARCHAR(50)
+)
+AS
+
+UPDATE IstObj
+SET emailsent = GETDATE()
+WHERE IdxObj = @IdxObj
+
+RETURN
+go
+
+commit;
+go
+
+
+
+
+
+-- update email a Vuota!
+update AnagClienti set email=''
+where email is null
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+-- registro versione...
+INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(150, GETDATE())
+GO
diff --git a/project/XPS_data/XPS.cs b/project/XPS_data/XPS.cs
index 86a126f..6fed3a4 100644
--- a/project/XPS_data/XPS.cs
+++ b/project/XPS_data/XPS.cs
@@ -32,6 +32,7 @@ namespace XPS_data
taDdt = new DS_applicazioneTableAdapters.sp_ddtTableAdapter();
taRec4day = new XPS_data.DS_applicazioneTableAdapters.sp_rec4DayTableAdapter();
taComm = new XPS_data.DS_applicazioneTableAdapters.v_commesseTableAdapter();
+ taAnCli = new XPS_data.DS_applicazioneTableAdapters.AnagClientiTableAdapter();
}
///
/// effettua setup dei connection strings da web.config delal singola applicazione
@@ -46,6 +47,7 @@ namespace XPS_data
taDdt.Connection.ConnectionString = connString;
taRec4day.Connection.ConnectionString = connString;
taComm.Connection.ConnectionString = connString;
+ taAnCli.Connection.ConnectionString = connString;
}
///
/// singleton classe
@@ -64,6 +66,7 @@ namespace XPS_data
public DS_applicazioneTableAdapters.sp_ddtTableAdapter taDdt;
public DS_applicazioneTableAdapters.sp_rec4DayTableAdapter taRec4day;
public DS_applicazioneTableAdapters.v_commesseTableAdapter taComm;
+ public DS_applicazioneTableAdapters.AnagClientiTableAdapter taAnCli;
#endregion
diff --git a/project/XPS_data/XPS_data.csproj b/project/XPS_data/XPS_data.csproj
index ee6b183..14015ab 100644
--- a/project/XPS_data/XPS_data.csproj
+++ b/project/XPS_data/XPS_data.csproj
@@ -152,6 +152,8 @@
Always
+
+
diff --git a/project/XPS_data/bin/Debug/MDB_Data/si_dt30.mdb b/project/XPS_data/bin/Debug/MDB_Data/si_dt30.mdb
index 01f3756..6eb933a 100644
Binary files a/project/XPS_data/bin/Debug/MDB_Data/si_dt30.mdb and b/project/XPS_data/bin/Debug/MDB_Data/si_dt30.mdb differ
diff --git a/project/XPS_data/bin/Debug/XPS_data.dll b/project/XPS_data/bin/Debug/XPS_data.dll
index 8d2077b..401bc5d 100644
Binary files a/project/XPS_data/bin/Debug/XPS_data.dll and b/project/XPS_data/bin/Debug/XPS_data.dll differ
diff --git a/project/XPS_data/bin/Release/MDB_Data/si_dt30.mdb b/project/XPS_data/bin/Release/MDB_Data/si_dt30.mdb
index 01f3756..6eb933a 100644
Binary files a/project/XPS_data/bin/Release/MDB_Data/si_dt30.mdb and b/project/XPS_data/bin/Release/MDB_Data/si_dt30.mdb differ
diff --git a/project/XPS_data/bin/Release/SteamWare.dll b/project/XPS_data/bin/Release/SteamWare.dll
index 5dac904..4be88ce 100644
Binary files a/project/XPS_data/bin/Release/SteamWare.dll and b/project/XPS_data/bin/Release/SteamWare.dll differ
diff --git a/project/XPS_data/bin/Release/XPS_data.dll b/project/XPS_data/bin/Release/XPS_data.dll
index d889380..0473c3d 100644
Binary files a/project/XPS_data/bin/Release/XPS_data.dll and b/project/XPS_data/bin/Release/XPS_data.dll differ
diff --git a/project/XPS_data/extSync.cs b/project/XPS_data/extSync.cs
index 6a978a9..6e9ef6f 100644
--- a/project/XPS_data/extSync.cs
+++ b/project/XPS_data/extSync.cs
@@ -44,7 +44,7 @@ namespace XPS_data
DS_applicazione.AnagClientiRow rigaDest;
string ragioneSociale;
// verifico uno ad uno i clienti...
- string ragSoc, indirizzo, localita, cap, prov;
+ string ragSoc, indirizzo, localita, cap, prov, piva, email;
int errori;
int nonImportati = 0;
string ragSocNotImp = "...sync completato!
";
@@ -97,6 +97,24 @@ namespace XPS_data
prov = "prov. nd";
errori++;
}
+ try
+ {
+ piva = riga.clcdpiva;
+ }
+ catch
+ {
+ piva = "";
+ errori++;
+ }
+ try
+ {
+ email = riga.clemail;
+ }
+ catch
+ {
+ email = "";
+ errori++;
+ }
// compongo stringa descrittiva
//ragioneSociale = string.Format("{0}, {1} {2} {3} {4}", ragSoc, indirizzo, cap, localita, prov);
ragioneSociale = string.Format("{0}", ragSoc);
@@ -114,12 +132,12 @@ namespace XPS_data
if (rigaDest != null)
{
// se c'è faccio update...
- taAnagCli.Update(ragioneSociale,rigaDest.CodCliente,rigaDest.RagioneSociale);
+ taAnagCli.updateQuery(rigaDest.CodCliente, ragioneSociale, piva, email, indirizzo, cap, localita, prov);
}
else
{
// se manca aggiungo...
- taAnagCli.Insert(riga.clcodcn, ragioneSociale);
+ taAnagCli.Insert(riga.clcodcn, ragioneSociale, piva, email, indirizzo, cap, localita, prov);
}
}
catch
diff --git a/project/XPS_data/obj/Debug/Refactor/XPS_data.dll b/project/XPS_data/obj/Debug/Refactor/XPS_data.dll
index f3c1551..246d390 100644
Binary files a/project/XPS_data/obj/Debug/Refactor/XPS_data.dll and b/project/XPS_data/obj/Debug/Refactor/XPS_data.dll differ
diff --git a/project/XPS_data/obj/Debug/TempPE/DS_applicazione.Designer.cs.dll b/project/XPS_data/obj/Debug/TempPE/DS_applicazione.Designer.cs.dll
index f6a74e0..4f6d709 100644
Binary files a/project/XPS_data/obj/Debug/TempPE/DS_applicazione.Designer.cs.dll and b/project/XPS_data/obj/Debug/TempPE/DS_applicazione.Designer.cs.dll differ
diff --git a/project/XPS_data/obj/Debug/XPS_data.dll b/project/XPS_data/obj/Debug/XPS_data.dll
index 8d2077b..401bc5d 100644
Binary files a/project/XPS_data/obj/Debug/XPS_data.dll and b/project/XPS_data/obj/Debug/XPS_data.dll differ
diff --git a/project/XPS_data/obj/Release/ResolveAssemblyReference.cache b/project/XPS_data/obj/Release/ResolveAssemblyReference.cache
index 0652012..d1d24ae 100644
Binary files a/project/XPS_data/obj/Release/ResolveAssemblyReference.cache and b/project/XPS_data/obj/Release/ResolveAssemblyReference.cache differ
diff --git a/project/XPS_data/obj/Release/TempPE/DS_applicazione.Designer.cs.dll b/project/XPS_data/obj/Release/TempPE/DS_applicazione.Designer.cs.dll
index ded2374..6fd7361 100644
Binary files a/project/XPS_data/obj/Release/TempPE/DS_applicazione.Designer.cs.dll and b/project/XPS_data/obj/Release/TempPE/DS_applicazione.Designer.cs.dll differ
diff --git a/project/XPS_data/obj/Release/XPS_data.dll b/project/XPS_data/obj/Release/XPS_data.dll
index d889380..0473c3d 100644
Binary files a/project/XPS_data/obj/Release/XPS_data.dll and b/project/XPS_data/obj/Release/XPS_data.dll differ
diff --git a/project/XPS_installer/Release/XPS_installer.msi b/project/XPS_installer/Release/XPS_installer.msi
index 1f35b57..bdccb90 100644
Binary files a/project/XPS_installer/Release/XPS_installer.msi and b/project/XPS_installer/Release/XPS_installer.msi differ
diff --git a/project/XPS_installer/XPS_installer.vdproj b/project/XPS_installer/XPS_installer.vdproj
index a9fe3aa..e544432 100644
--- a/project/XPS_installer/XPS_installer.vdproj
+++ b/project/XPS_installer/XPS_installer.vdproj
@@ -349,14 +349,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:XPS"
- "ProductCode" = "8:{2133B309-CC96-4B75-B8AB-15BA062CE115}"
- "PackageCode" = "8:{D056D293-0C9F-4C66-95A4-3969F641124F}"
+ "ProductCode" = "8:{9CFFC0D7-8A98-46D1-837D-6787CBA19BA0}"
+ "PackageCode" = "8:{2091D29D-AACF-43CB-A74B-074F226728ED}"
"UpgradeCode" = "8:{71B65361-FEA5-44CA-9B9A-45597433DB20}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
- "ProductVersion" = "8:1.2.140"
+ "ProductVersion" = "8:1.2.150"
"Manufacturer" = "8:SteamWare s.r.l."
"ARPHELPTELEPHONE" = "8:035-460560"
"ARPHELPLINK" = "8:www.steamware.net"
@@ -801,7 +801,7 @@
{
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_499D7FD27D584797A636FBFFDD864B37"
{
- "SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Debug\\SetDirectoryPermission.exe"
+ "SourcePath" = "8:..\\..\\SetDirectoryPermission\\obj\\Release\\SetDirectoryPermission.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_BC5E70D6EEEE487C984AA2BFCBBC67A8"
|