Merge branch 'develop'
This commit is contained in:
Binary file not shown.
@@ -66,10 +66,18 @@ namespace DataUploader
|
||||
{
|
||||
try
|
||||
{
|
||||
logger.Info("Chiamata [{0}]", i);
|
||||
if (ConfigurationManager.AppSettings["logFull"] == "true")
|
||||
{
|
||||
logger.Info("Chiamata [{0}]", i);
|
||||
}
|
||||
|
||||
// versione SYNC
|
||||
content = client.DownloadString(urlsUpdate[i]);
|
||||
logger.Info("Risposta [{0}] - {1}", content, urlsUpdate[i]);
|
||||
|
||||
if (ConfigurationManager.AppSettings["logFull"] == "true")
|
||||
{
|
||||
logger.Info("Risposta [{0}] - {1}", content, urlsUpdate[i]);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
@@ -10,7 +10,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<File Include="bin/DataUploader.dll">
|
||||
<publishTime>09/17/2015 16:56:34</publishTime>
|
||||
<publishTime>10/01/2015 19:37:03</publishTime>
|
||||
</File>
|
||||
<File Include="bin/NLog.config">
|
||||
<publishTime>09/03/2015 11:38:11</publishTime>
|
||||
@@ -22,7 +22,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<publishTime>09/03/2015 11:38:15</publishTime>
|
||||
</File>
|
||||
<File Include="Default.aspx">
|
||||
<publishTime>09/17/2015 16:35:39</publishTime>
|
||||
<publishTime>09/18/2015 10:37:41</publishTime>
|
||||
</File>
|
||||
<File Include="DemoPage.aspx">
|
||||
<publishTime>09/03/2015 11:38:11</publishTime>
|
||||
@@ -43,13 +43,13 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<publishTime>09/03/2015 11:38:11</publishTime>
|
||||
</File>
|
||||
<File Include="PrecompiledApp.config">
|
||||
<publishTime>09/17/2015 16:59:40</publishTime>
|
||||
<publishTime>10/01/2015 19:37:04</publishTime>
|
||||
</File>
|
||||
<File Include="SyncDoc.aspx">
|
||||
<publishTime>09/17/2015 16:31:09</publishTime>
|
||||
<publishTime>09/18/2015 10:37:41</publishTime>
|
||||
</File>
|
||||
<File Include="Web.config">
|
||||
<publishTime>09/17/2015 16:57:21</publishTime>
|
||||
<publishTime>10/01/2015 19:37:03</publishTime>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -2,10 +2,12 @@
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!--parametri base-->
|
||||
<add key="maxDocsToUpload" value="2" />
|
||||
<!--<add key="maxDocsToUpload" value="50" />-->
|
||||
<add key="maxDocsToUpload" value="5" />
|
||||
<add key="remoteDocUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Document" />
|
||||
<add key="remoteCliUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Client" />
|
||||
<add key="debugMode" value="false" />
|
||||
<add key="logFull" value="false" />
|
||||
<!--connessione su un MDB di cui esiste un DSN-->
|
||||
<!--<add key="connString" value="Dsn=DB_Sigla32;Initial Catalog=TESDOCUM;" />-->
|
||||
|
||||
|
||||
Binary file not shown.
@@ -2,10 +2,12 @@
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!--parametri base-->
|
||||
<add key="maxDocsToUpload" value="2" />
|
||||
<!--<add key="maxDocsToUpload" value="50" />-->
|
||||
<add key="maxDocsToUpload" value="5" />
|
||||
<add key="remoteDocUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Document" />
|
||||
<add key="remoteCliUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Client" />
|
||||
<add key="debugMode" value="false" />
|
||||
<add key="logFull" value="false" />
|
||||
<!--connessione su un MDB di cui esiste un DSN-->
|
||||
<!--<add key="connString" value="Dsn=DB_Sigla32;Initial Catalog=TESDOCUM;" />-->
|
||||
|
||||
|
||||
Binary file not shown.
@@ -2,10 +2,11 @@
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<!--parametri base-->
|
||||
<add key="maxDocsToUpload" value="2" />
|
||||
<add key="maxDocsToUpload" value="50" />
|
||||
<add key="remoteDocUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Document" />
|
||||
<add key="remoteCliUrl" value="http://webscr.steamware.net/Rigamonti/Upload/Client" />
|
||||
<add key="debugMode" value="false" />
|
||||
<add key="logFull" value="false" />
|
||||
<!--connessione su un MDB di cui esiste un DSN-->
|
||||
<!--<add key="connString" value="Dsn=DB_Sigla32;Initial Catalog=TESDOCUM;" />-->
|
||||
|
||||
|
||||
Binary file not shown.
+3
-3
@@ -5,7 +5,7 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.6.057.170")]
|
||||
[assembly: AssemblyFileVersion("1.6.057.170")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2015-2015")]
|
||||
[assembly: AssemblyVersion("2.0.093.307")]
|
||||
[assembly: AssemblyFileVersion("2.0.093.307")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2015-2016")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("1.6.057.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("1.6.057.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyVersion("2.0.093.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyFileVersion("2.0.093.<#= this.RevisionNumber #>")]
|
||||
[assembly: AssemblyCopyright("Steamware © 2015-<#= DateTime.Now.Year #>")]
|
||||
[assembly: AssemblyCompany("Steamware")]
|
||||
<#+
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,25 +5,25 @@
|
||||
background-color: #FFF;
|
||||
}
|
||||
.editRow {
|
||||
background-color: #2461bf;
|
||||
background-color: #2461BF;
|
||||
}
|
||||
.selectedRow {
|
||||
background-color: #d1ddf1;
|
||||
background-color: #D1DDF1;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
color: #333;
|
||||
}
|
||||
.headerRow {
|
||||
background-color: #507cd1;
|
||||
background-color: #507CD1;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
}
|
||||
.footerRow {
|
||||
background-color: #507cd1;
|
||||
background-color: #507CD1;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
}
|
||||
.pagerRow {
|
||||
background-color: #2461bf;
|
||||
background-color: #2461BF;
|
||||
color: white;
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
@@ -73,6 +73,9 @@
|
||||
}
|
||||
}
|
||||
@media all and (max-width: 767px) {
|
||||
div.ui-mini {
|
||||
font-size: 9px;
|
||||
}
|
||||
#textWrapper {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
@@ -95,4 +98,4 @@
|
||||
#headData {
|
||||
margin-top: 18px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -101,6 +101,11 @@
|
||||
}
|
||||
|
||||
@media all and (max-width: 767px) {
|
||||
|
||||
div.ui-mini {
|
||||
font-size: 9px;
|
||||
}
|
||||
|
||||
#textWrapper {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerRow{background-color:#507cd1;font-weight:600;color:#fff}.footerRow{background-color:#507cd1;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}@media all and (min-width:768px){#textWrapper{font-size:1em}#headData{margin-top:0}}@media all and (min-width:1024px){#textWrapper{font-size:1.1em}#headData{margin-top:0}}@media all and (min-width:1440px){#textWrapper{font-size:1.2em}#headData{margin-top:0}}@media all and (min-width:1600px){#textWrapper{font-size:1.3em}#headData{margin-top:0}}@media all and (max-width:767px){#textWrapper{font-size:.8em}#headData{margin-top:6px}}@media all and (max-width:480px){#textWrapper{font-size:.6em}#headData{margin-top:14px}}@media all and (max-width:320px){#textWrapper{font-size:.5em}#headData{margin-top:18px}}
|
||||
.baseRow{background-color:#eff3fb}.altRow{background-color:#fff}.editRow{background-color:#2461bf}.selectedRow{background-color:#d1ddf1;font-weight:600;color:#333}.headerRow{background-color:#507cd1;font-weight:600;color:#fff}.footerRow{background-color:#507cd1;font-weight:600;color:#fff}.pagerRow{background-color:#2461bf;color:#fff;text-align:center;margin:auto}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}@media all and (min-width:768px){#textWrapper{font-size:1em}#headData{margin-top:0}}@media all and (min-width:1024px){#textWrapper{font-size:1.1em}#headData{margin-top:0}}@media all and (min-width:1440px){#textWrapper{font-size:1.2em}#headData{margin-top:0}}@media all and (min-width:1600px){#textWrapper{font-size:1.3em}#headData{margin-top:0}}@media all and (max-width:767px){div.ui-mini{font-size:9px}#textWrapper{font-size:.8em}#headData{margin-top:6px}}@media all and (max-width:480px){#textWrapper{font-size:.6em}#headData{margin-top:14px}}@media all and (max-width:320px){#textWrapper{font-size:.5em}#headData{margin-top:18px}}
|
||||
+28
-11
@@ -1,32 +1,44 @@
|
||||
.greenBox {
|
||||
background-color: #c3ffc3;
|
||||
border: 1px solid #00a400;
|
||||
color: #333333;
|
||||
color: #333;
|
||||
}
|
||||
.yellowBox {
|
||||
background-color: #ffffb6;
|
||||
border: 1px solid #b1b100;
|
||||
color: #333333;
|
||||
color: #333;
|
||||
}
|
||||
.orangeBox {
|
||||
background-color: #ffa05b;
|
||||
border: 1px solid #be5100;
|
||||
color: #333333;
|
||||
color: #333;
|
||||
}
|
||||
.redBox {
|
||||
background-color: #ff9c9c;
|
||||
border: 1px solid #cb0000;
|
||||
color: #333333;
|
||||
color: #333;
|
||||
}
|
||||
.grayBox {
|
||||
background-color: #d6d6d6;
|
||||
border: 1px solid #707070;
|
||||
color: #333333;
|
||||
color: #333;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
}
|
||||
.Rosso {
|
||||
color: #FF0000;
|
||||
}
|
||||
.Verde {
|
||||
color: #00FF00;
|
||||
}
|
||||
.Giallo {
|
||||
color: #fffF00;
|
||||
}
|
||||
.Arancio {
|
||||
color: #ff6a00;
|
||||
}
|
||||
.tStrong {
|
||||
font-weight: bold;
|
||||
font-size: 1.3em;
|
||||
@@ -54,8 +66,8 @@
|
||||
.calendar_white_alldayheader_inner {
|
||||
color: #666;
|
||||
background: #eee;
|
||||
background: -moz-linear-gradient(top, #eeeeee 0%, #dddddd);
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#dddddd));
|
||||
background: -moz-linear-gradient(top, #eee 0%, #ddd);
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
|
||||
filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee", endColorStr="#dddddd");
|
||||
}
|
||||
.calendar_white_cornerright_inner {
|
||||
@@ -136,8 +148,8 @@
|
||||
.calendar_white_event_inner {
|
||||
color: #666;
|
||||
background: #fff;
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));
|
||||
background: -moz-linear-gradient(top, #ffffff 0%, #eee);
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eee));
|
||||
filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");
|
||||
border: 1px solid #999;
|
||||
-moz-border-radius: 5px;
|
||||
@@ -174,7 +186,9 @@
|
||||
left: 2px;
|
||||
right: 0px;
|
||||
padding: 2px;
|
||||
font-size: 9px;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
}
|
||||
.calendar_white_shadow_inner {
|
||||
background-color: #666666;
|
||||
@@ -185,6 +199,9 @@
|
||||
-webkit-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.noShadows {
|
||||
text-shadow: none;
|
||||
}
|
||||
/* divisione schermo */
|
||||
.div_1_3 {
|
||||
width: 33%;
|
||||
@@ -212,4 +229,4 @@
|
||||
}
|
||||
.div_4_5 {
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,22 @@
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.Rosso{
|
||||
color: @rosso;
|
||||
}
|
||||
|
||||
.Verde{
|
||||
color: @verde;
|
||||
}
|
||||
|
||||
.Giallo{
|
||||
color: @giallo;
|
||||
}
|
||||
|
||||
.Arancio{
|
||||
color: @arancio;
|
||||
}
|
||||
|
||||
.tStrong {
|
||||
font-weight: bold;
|
||||
font-size: 1.3em;
|
||||
@@ -280,7 +296,9 @@
|
||||
|
||||
padding: 2px;
|
||||
|
||||
font-size: 9px;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.calendar_white_shadow_inner
|
||||
@@ -294,6 +312,9 @@
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.noShadows {
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
/* divisione schermo */
|
||||
.div_1_3{
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
.greenBox{background-color:#c3ffc3;border:1px solid #00a400;color:#333}.yellowBox{background-color:#ffffb6;border:1px solid #b1b100;color:#333}.orangeBox{background-color:#ffa05b;border:1px solid #be5100;color:#333}.redBox{background-color:#ff9c9c;border:1px solid #cb0000;color:#333}.grayBox{background-color:#d6d6d6;border:1px solid #707070;color:#333}.text-center{text-align:center;margin:auto}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}.flLeft{float:left}.calendar_white_main{border:1px solid #999}.calendar_white_scroll_up{background:url(calendar_white/up.png)}.calendar_white_scroll_down{background:url(calendar_white/down.png)}.calendar_white_rowheader_inner,.calendar_white_cornerright_inner,.calendar_white_corner_inner,.calendar_white_colheader_inner,.calendar_white_alldayheader_inner{color:#666;background:#eee;background:-moz-linear-gradient(top,#eee 0%,#ddd);background:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#ddd));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee",endColorStr="#dddddd")}.calendar_white_cornerright_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-bottom:1px solid #999}.calendar_white_rowheader_inner{font-size:16pt;text-align:right;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_corner_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_rowheader_minutes{font-size:10px;vertical-align:super;padding-left:2px;padding-right:2px}.calendar_white_colheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_cell_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background-color:#fff}.calendar_white_alldayheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_message{opacity:.9;filter:alpha(opacity=90);padding:10px;color:#fff;background:#ffa216;background:-moz-linear-gradient(top,#ffa216 0%,#ff8400);background:-webkit-gradient(linear,left top,left bottom,from(#ffa216),to(#ff8400));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffa216",endColorStr="#ff8400")}.calendar_white_alldayevent_inner,.calendar_white_event_inner{color:#666;background:#fff;background:-moz-linear-gradient(top,#fff 0%,#eee);background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#eee));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff",endColorStr="#eeeeee");border:1px solid #999;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8)}.calendar_white_selected .calendar_white_event_inner{background:#ddd}.calendar_white_alldayevent_inner{position:absolute;top:2px;bottom:2px;left:2px;right:1px;padding:2px;margin-right:1px;font-size:12px}.calendar_white_event_withheader .calendar_white_event_inner{padding-top:15px}.calendar_white_event{cursor:default}.calendar_white_event_inner{position:absolute;overflow:hidden;top:0;bottom:2px;left:2px;right:0;padding:2px;font-size:9px}.calendar_white_shadow_inner{background-color:#666;opacity:.5;filter:alpha(opacity=70);height:100%;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.div_1_3{width:33%}.div_2_3{width:66%}.div_1_2{width:50%}.div_1_4{width:25%}.div_3_4{width:75%}.div_1_5{width:20%}.div_2_5{width:40%}.div_3_5{width:60%}.div_4_5{width:80%}
|
||||
.greenBox{background-color:#c3ffc3;border:1px solid #00a400;color:#333}.yellowBox{background-color:#ffffb6;border:1px solid #b1b100;color:#333}.orangeBox{background-color:#ffa05b;border:1px solid #be5100;color:#333}.redBox{background-color:#ff9c9c;border:1px solid #cb0000;color:#333}.grayBox{background-color:#d6d6d6;border:1px solid #707070;color:#333}.text-center{text-align:center;margin:auto}.Rosso{color:#f00}.Verde{color:#0f0}.Giallo{color:#ff0}.Arancio{color:#ff6a00}.tStrong{font-weight:bold;font-size:1.3em}.flRight{float:right}.flLeft{float:left}.calendar_white_main{border:1px solid #999}.calendar_white_scroll_up{background:url(calendar_white/up.png)}.calendar_white_scroll_down{background:url(calendar_white/down.png)}.calendar_white_rowheader_inner,.calendar_white_cornerright_inner,.calendar_white_corner_inner,.calendar_white_colheader_inner,.calendar_white_alldayheader_inner{color:#666;background:#eee;background:-moz-linear-gradient(top,#eee 0%,#ddd);background:-webkit-gradient(linear,left top,left bottom,from(#eee),to(#ddd));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee",endColorStr="#dddddd")}.calendar_white_cornerright_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-bottom:1px solid #999}.calendar_white_rowheader_inner{font-size:16pt;text-align:right;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_corner_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_rowheader_minutes{font-size:10px;vertical-align:super;padding-left:2px;padding-right:2px}.calendar_white_colheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_cell_inner{position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #ddd;border-bottom:1px solid #ddd;background-color:#fff}.calendar_white_alldayheader_inner{text-align:center;position:absolute;top:0;left:0;bottom:0;right:0;border-right:1px solid #999;border-bottom:1px solid #999}.calendar_white_message{opacity:.9;filter:alpha(opacity=90);padding:10px;color:#fff;background:#ffa216;background:-moz-linear-gradient(top,#ffa216 0%,#ff8400);background:-webkit-gradient(linear,left top,left bottom,from(#ffa216),to(#ff8400));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffa216",endColorStr="#ff8400")}.calendar_white_alldayevent_inner,.calendar_white_event_inner{color:#666;background:#fff;background:-moz-linear-gradient(top,#fff 0%,#eee);background:-webkit-gradient(linear,left top,left bottom,from(#fff),to(#eee));filter:progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff",endColorStr="#eeeeee");border:1px solid #999;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px;-moz-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8);box-shadow:0 2px 3px rgba(0,0,0,.3),inset 0 0 2px rgba(255,255,255,.8)}.calendar_white_selected .calendar_white_event_inner{background:#ddd}.calendar_white_alldayevent_inner{position:absolute;top:2px;bottom:2px;left:2px;right:1px;padding:2px;margin-right:1px;font-size:12px}.calendar_white_event_withheader .calendar_white_event_inner{padding-top:15px}.calendar_white_event{cursor:default}.calendar_white_event_inner{position:absolute;overflow:hidden;top:0;bottom:2px;left:2px;right:0;padding:2px;font-size:10px;font-weight:bold;color:#000}.calendar_white_shadow_inner{background-color:#666;opacity:.5;filter:alpha(opacity=70);height:100%;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.noShadows{text-shadow:none}.div_1_3{width:33%}.div_2_3{width:66%}.div_1_2{width:50%}.div_1_4{width:25%}.div_3_4{width:75%}.div_1_5{width:20%}.div_2_5{width:40%}.div_3_5{width:60%}.div_4_5{width:80%}
|
||||
@@ -0,0 +1,9 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="IntSquadre.aspx.cs" Inherits="WebSCR.IntSquadre" %>
|
||||
|
||||
<%@ Register Src="~/WebUserControls/mod_Interventi.ascx" TagPrefix="uc1" TagName="mod_Interventi" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_Interventi runat="server" ID="mod_Interventi" showSelSquadre="false" redirBaseUrl="Squadra" />
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,27 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace WebSCR
|
||||
{
|
||||
public partial class IntSquadre : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// imposto a filtro suadre la squadra selezionata...
|
||||
|
||||
string squadra = memLayer.ML.getCookieVal("CodSquadra");
|
||||
if (squadra != "")
|
||||
{
|
||||
memLayer.ML.setSessionVal("elencoSquadre", squadra);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Generated
+24
@@ -0,0 +1,24 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebSCR {
|
||||
|
||||
|
||||
public partial class IntSquadre {
|
||||
|
||||
/// <summary>
|
||||
/// mod_Interventi control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_Interventi mod_Interventi;
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
||||
<uc1:mod_Interventi ID="mod_Interventi1" runat="server" />
|
||||
<uc1:mod_Interventi ID="mod_Interventi1" runat="server" showSelSquadre="true" redirBaseUrl="Pianificazione" />
|
||||
<div data-role="listview" data-inset="true">
|
||||
<div class="ui-field-contain">
|
||||
<uc1:mod_impegno runat="server" ID="mod_impegno" />
|
||||
|
||||
+2
-2
@@ -26,8 +26,8 @@
|
||||
</asp:PlaceHolder>
|
||||
|
||||
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/themes/base/css" />
|
||||
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/themes/base/css" />
|
||||
<webopt:BundleReference ID="BundleReference2" runat="server" Path="~/Content/css" />
|
||||
|
||||
<asp:ContentPlaceHolder ID="head" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
@@ -11,7 +12,6 @@ namespace WebSCR
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,42 +17,43 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<SkipExtraFilesOnServer>False</SkipExtraFilesOnServer>
|
||||
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
|
||||
<EnableMSDeployBackup>True</EnableMSDeployBackup>
|
||||
<UserName>steamwarewin\administrator</UserName>
|
||||
<UserName>steamw\administrator</UserName>
|
||||
<_SavePWD>True</_SavePWD>
|
||||
<PublishDatabaseSettings>
|
||||
<Objects xmlns="">
|
||||
<ObjectGroup Name="SteamWare.Properties.Settings.DS_AuthConnectionString" Order="1" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\SteamWare.Properties.Settings.DS_AuthConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
<ObjectGroup Name="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString" Order="2" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\WebSCR_data.Properties.Settings.WebSCR_filesConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
<ObjectGroup Name="WebSCR_data.Properties.Settings.WebSCRConnectionString" Order="3" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\WebSCR_data.Properties.Settings.WebSCRConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
@@ -60,5 +61,7 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)SteamWare.Properties.Settings.DS_AuthConnectionString-Web.config Connection String" />
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)WebSCR_data.Properties.Settings.WebSCRConnectionString-Web.config Connection String" />
|
||||
<MSDeployParameterValue Include="$(DeployParameterPrefix)WebSCR_data.Properties.Settings.WebSCR_filesConnectionString-Web.config Connection String" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -6,6 +6,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAWrMOGKZ5+kG5PChtPELSKAAAAAACAAAAAAADZgAAwAAAABAAAADQqGyYdt8WVYiVevOHwQtrAAAAAASAAACgAAAAEAAAADa0EE6ZGibAVouh3p25mB4YAAAAM64tMTOGJ0cuNUUqtsZ6MStSH4RpeVk5FAAAALyd/yM2g5QR/onffXHWuHMCs+5/</EncryptedPassword>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA7gr2JUxpGk+kgETgdPCX3gAAAAACAAAAAAADZgAAwAAAABAAAAAcaNv8rWW21TzVz3OKj8mnAAAAAASAAACgAAAAEAAAAHItJ+1D4HCNvqgCJspNTsEYAAAAUyPc3cR2ToKbCtgrZjIBLAg3zdpVrG0bFAAAANcahGf6d97F5Y5s2y/xPrj2qcEa</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -24,35 +24,36 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<ObjectGroup Name="SteamWare.Properties.Settings.DS_AuthConnectionString" Order="1" Enabled="True">
|
||||
<Destination Path="Data Source=localhost\SQLExpress2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\SteamWare.Properties.Settings.DS_AuthConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
<ObjectGroup Name="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString" Order="2" Enabled="False">
|
||||
<Destination Path="Data Source=localhost\SQLExpress2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\WebSCR_data.Properties.Settings.WebSCR_filesConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
<ObjectGroup Name="WebSCR_data.Properties.Settings.WebSCRConnectionString" Order="3" Enabled="False">
|
||||
<Destination Path="" />
|
||||
<Object Type="DbDacFx">
|
||||
<PreSource Path="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<PreSource Path="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" includeData="False" />
|
||||
<Source Path="$(IntermediateOutputPath)AutoScripts\WebSCR_data.Properties.Settings.WebSCRConnectionString_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
|
||||
</Object>
|
||||
<UpdateFrom Type="Web.Config">
|
||||
<Source MatchValue="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
<Source MatchValue="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
|
||||
</UpdateFrom>
|
||||
</ObjectGroup>
|
||||
</Objects>
|
||||
</PublishDatabaseSettings>
|
||||
<ADUsesOwinOrOpenIdConnect>False</ADUsesOwinOrOpenIdConnect>
|
||||
<PrecompileBeforePublish>True</PrecompileBeforePublish>
|
||||
<EnableUpdateable>True</EnableUpdateable>
|
||||
<DebugSymbols>False</DebugSymbols>
|
||||
|
||||
@@ -6,6 +6,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<TimeStampOfAssociatedLegacyPublishXmlFile />
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAARBxIIZk0hEq8Sf3uyTVbWAAAAAACAAAAAAADZgAAwAAAABAAAAABdIMYkwqSMSUrl9iJVdhxAAAAAASAAACgAAAAEAAAAMlRnm13Y7soZCGStDQNOF0YAAAAZJIXG8ZMVFKXkUiCvEms1YzSHLuccMsUFAAAAByGO3TqE0VIoySM3KtFyKVzH41y</EncryptedPassword>
|
||||
<EncryptedPassword>AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAA7gr2JUxpGk+kgETgdPCX3gAAAAACAAAAAAADZgAAwAAAABAAAAADMX/d3WjG//Hg0D9NUkXPAAAAAASAAACgAAAAEAAAAOW2zAdbLYWuvFYyySKk3kUYAAAAPf5o5d7xBvep0BKjp2XUa6Rx6JIwRdeQFAAAAOp8voSFxoe6628Wc/LXtgVAVd7o</EncryptedPassword>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
+5
-2
@@ -5,7 +5,9 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_elencoTipoInt.ascx" TagPrefix="uc1" TagName="mod_elencoTipoInt" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_elencoZone.ascx" TagPrefix="uc1" TagName="mod_elencoZone" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_listValues.ascx" TagPrefix="uc1" TagName="mod_listValues" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_AssSquadra.ascx" TagPrefix="uc1" TagName="mod_AssSquadra" %>
|
||||
<%--<%@ Register Src="~/WebUserControls/mod_AssSquadra.ascx" TagPrefix="uc1" TagName="mod_AssSquadra" %>--%>
|
||||
<%@ Register Src="~/WebUserControls/mod_schemaSettASSD.ascx" TagPrefix="uc1" TagName="mod_schemaSettASSD" %>
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -27,7 +29,8 @@
|
||||
<uc1:mod_elencoZone runat="server" ID="mod_elencoZone" />
|
||||
<uc1:mod_elencoDisp runat="server" ID="mod_elencoDisp" />
|
||||
<uc1:mod_elencoSquadre runat="server" ID="mod_elencoSquadre" />
|
||||
<uc1:mod_AssSquadra runat="server" ID="mod_AssSquadra" />
|
||||
<%--<uc1:mod_AssSquadra runat="server" ID="mod_AssSquadra" />--%>
|
||||
<uc1:mod_schemaSettASSD runat="server" ID="mod_schemaSettASSD" />
|
||||
<uc1:mod_listValues runat="server" id="mod_listValues" />
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -17,12 +17,12 @@ namespace WebSCR
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// sistemazione visualizzaizone dettagli (moduli) secondo richiesta
|
||||
/// sistemazione visualizzazione dettagli (moduli) secondo richiesta
|
||||
/// </summary>
|
||||
/// <param name="dettaglio"></param>
|
||||
private void showDetail(string dettaglio)
|
||||
{
|
||||
mod_AssSquadra.Visible = false;
|
||||
mod_schemaSettASSD.Visible = false;
|
||||
mod_elencoDisp.Visible = false;
|
||||
mod_elencoSquadre.Visible = false;
|
||||
mod_elencoTipoInt.Visible = false;
|
||||
@@ -36,7 +36,7 @@ namespace WebSCR
|
||||
mod_elencoDisp.selezionaAttive();
|
||||
break;
|
||||
case "compSquadre":
|
||||
mod_AssSquadra.Visible = true;
|
||||
mod_schemaSettASSD.Visible = true;
|
||||
break;
|
||||
case "squadre":
|
||||
mod_elencoSquadre.Visible = true;
|
||||
|
||||
Generated
+2
-2
@@ -58,13 +58,13 @@ namespace WebSCR {
|
||||
protected global::WebSCR.WebUserControls.mod_elencoSquadre mod_elencoSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// mod_AssSquadra control.
|
||||
/// mod_schemaSettASSD control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_AssSquadra mod_AssSquadra;
|
||||
protected global::WebSCR.WebUserControls.mod_schemaSettASSD mod_schemaSettASSD;
|
||||
|
||||
/// <summary>
|
||||
/// mod_listValues control.
|
||||
|
||||
+3
-3
@@ -3,7 +3,7 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_consegne.ascx" TagPrefix="uc1" TagName="mod_consegne" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_dettInt.ascx" TagPrefix="uc1" TagName="mod_dettInt" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_ImpegnoSmall.ascx" TagPrefix="uc1" TagName="mod_ImpegnoSmall" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_gestIntSquadra.ascx" TagPrefix="uc1" TagName="mod_gestIntSquadra" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_gestIntSquadre.ascx" TagPrefix="uc1" TagName="mod_gestIntSquadre" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_selData.ascx" TagPrefix="uc1" TagName="mod_selData" %>
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
<div class="ui-mini" style="margin: 2px; padding: 2px;">
|
||||
<uc1:mod_selData runat="server" id="mod_selData" />
|
||||
<uc1:mod_consegne runat="server" ID="mod_consegne" />
|
||||
<uc1:mod_gestIntSquadra runat="server" ID="mod_gestIntSquadra" />
|
||||
<uc1:mod_gestIntSquadre runat="server" ID="mod_gestIntSquadre" />
|
||||
<uc1:mod_ImpegnoSmall runat="server" ID="mod_ImpegnoSmall" />
|
||||
<div id="divFile" runat="server" style="text-align: center; margin: 2px auto; padding: 2px; border: 1px solid #333333;" class="ui-shadow ui-corner-all">
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" />
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" enableMod="true" />
|
||||
</div>
|
||||
<uc1:mod_dettInt runat="server" ID="mod_dettInt" disableEdit="true" />
|
||||
</div>
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace WebSCR
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
fixVisibility();
|
||||
mod_gestIntSquadra.eh_update += mod_gestIntSquadra_eh_update;
|
||||
mod_gestIntSquadre.eh_update += mod_gestIntSquadre_eh_update;
|
||||
mod_selData.eh_update += Mod_selData_eh_update;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace WebSCR
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void mod_gestIntSquadra_eh_update(object sender, EventArgs e)
|
||||
void mod_gestIntSquadre_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
mod_dettInt.doUpdate();
|
||||
mod_ImpegnoSmall.doUpdate();
|
||||
@@ -51,12 +51,12 @@ namespace WebSCR
|
||||
mod_dettInt.Visible = false;
|
||||
mod_ImpegnoSmall.Visible = false;
|
||||
divFile.Visible = false;
|
||||
mod_gestIntSquadra.Visible = false;
|
||||
mod_gestIntSquadre.Visible = false;
|
||||
if (qsVal("Data") != "")
|
||||
{
|
||||
if (qsVal("IdxImpegno") != "")
|
||||
{
|
||||
mod_gestIntSquadra.Visible = true;
|
||||
mod_gestIntSquadre.Visible = true;
|
||||
mod_ImpegnoSmall.Visible = true;
|
||||
mod_dettInt.Visible = true;
|
||||
divFile.Visible = true;
|
||||
|
||||
Generated
+2
-2
@@ -31,13 +31,13 @@ namespace WebSCR {
|
||||
protected global::WebSCR.WebUserControls.mod_consegne mod_consegne;
|
||||
|
||||
/// <summary>
|
||||
/// mod_gestIntSquadra control.
|
||||
/// mod_gestIntSquadre control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_gestIntSquadra mod_gestIntSquadra;
|
||||
protected global::WebSCR.WebUserControls.mod_gestIntSquadre mod_gestIntSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// mod_ImpegnoSmall control.
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
------------------------------------------------------------------------------------------
|
||||
-- UPGRADE V 2.0
|
||||
------------------------------------------------------------------------------------------
|
||||
|
||||
-- IN PRIMIS backup db + sito
|
||||
-- ESEGUIRE ALLINEAMENTO con procedura automatica dacpac
|
||||
|
||||
-- aggiornare contenuto delle date/ora comunicate (inizio/fine)
|
||||
update impegni
|
||||
set DataOraComFrom = DATEADD(minute, -30, DataOra)
|
||||
|
||||
update impegni
|
||||
set DataOraComTo = DATEADD(minute, 30, DataOra)
|
||||
@@ -29,6 +29,9 @@ namespace WebSCR.Upload
|
||||
string answ = "ND";
|
||||
/*
|
||||
* http://webscr.steamware.net/Rigamonti/Upload/Client?CodCliente=C0000&RagSoc=Cognome+Nome&CodFis=ABCDEFGH123456&Tel=035+0000000&Cell333+000000&EnableSMS=1&Email=email.address@dominio.it&Indir=via+dai+piedi&Cap=24999&Localita=Dalmine&Prov=BG&Note=note+se+presenti
|
||||
|
||||
|
||||
http://webscr.steamware.net/Rigamonti/Upload/Client?CodCliente=C63094&RagSoc=CARNE+GIANLUCA&CodFis=&Tel=&Cell=3333438166&EnableSMS=1&Email=&Indir=VIA+CIURLINA+3&Cap=24050&Localita=GHISALBA&Prov=BG&Note=
|
||||
*/
|
||||
// legge i get x processare dati input
|
||||
string CodCliente = "";
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
</connectionStrings>
|
||||
-->
|
||||
<appSettings>
|
||||
<add key="minCookieSquadra" value="720" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="baseUrl" value="http://webscr.steamware.net/Rigamonti" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<add key="localUplURL" value="http://rigasrv02:81/" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
<!--<add key="adminEmail" value="paolo.malighetti@unibg.it" xdt:Transform="SetAttributes" xdt:Locator="Match(key)"/>
|
||||
|
||||
+14
-11
@@ -13,7 +13,9 @@
|
||||
<add key="intUpdatePagina_ms" value="240000" />
|
||||
<add key="zonaDef" value="Z00" />
|
||||
<add key="numGgDef" value="20" />
|
||||
<add key="minCookieSquadra" value="3" />
|
||||
<add key="minCookieSquadra" value="5" />
|
||||
<add key="svuotaMatrOp" value="true" />
|
||||
<add key="svuotaMatrOpMove" value="true" />
|
||||
<!--nome sw e versioni-->
|
||||
<add key="CodModulo" value="WebSCR" />
|
||||
<add key="AutoAuth" value="true" />
|
||||
@@ -40,23 +42,23 @@
|
||||
<add key="day2show" value="5" />
|
||||
<add key="minDays" value="1" />
|
||||
<add key="maxDays" value="10" />
|
||||
<!--gestione aggiunta task-->
|
||||
<add key ="minTempoInterv" value="10" />
|
||||
<!--file allegati documenti-->
|
||||
<add key="fileUploadFolder" value="~/DocUploader"/>
|
||||
<add key="fileUploadFolder" value="~/DocUploader" />
|
||||
<!--gestione squadre-->
|
||||
<add key="NumGg" value="5" />
|
||||
<!--gestione sw uploader locale-->
|
||||
<add key="localUplURL" value="http://IIS02/" />
|
||||
<!--stringhe connessione-->
|
||||
<add key="WebSCRConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="WebSCRFilesConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="WebSCRConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="WebSCRFilesConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<!--
|
||||
<add name="SteamWare.Properties.Settings.WebSCRConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />-->
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCRConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCRConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<!--
|
||||
For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
@@ -67,6 +69,7 @@
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<globalization culture="it-it" />
|
||||
<compilation debug="true" targetFramework="4.5">
|
||||
<assemblies>
|
||||
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
@@ -91,7 +94,7 @@
|
||||
<error statusCode="403" redirect="NoAccess.htm" />
|
||||
<error statusCode="404" redirect="FileNotFound.htm" />
|
||||
</customErrors>-->
|
||||
<customErrors mode="Off"/>
|
||||
<customErrors mode="Off" />
|
||||
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Optimization" />
|
||||
|
||||
+48
-7
@@ -46,8 +46,8 @@
|
||||
<HintPath>..\packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="DayPilot, Version=5.0.302.0, Culture=neutral, PublicKeyToken=ce5d34538e20ef65, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\DayPilot.5.0.302\lib\DayPilot.dll</HintPath>
|
||||
<Reference Include="DayPilot, Version=5.0.303.0, Culture=neutral, PublicKeyToken=ce5d34538e20ef65, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\DayPilot.5.0.303\lib\DayPilot.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Elmah, Version=1.2.14706.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
@@ -357,6 +357,7 @@
|
||||
<Content Include="favicon.ico" />
|
||||
<Content Include="images\LogoSteamware.png" />
|
||||
<Content Include="Interventi.aspx" />
|
||||
<Content Include="IntSquadre.aspx" />
|
||||
<Content Include="Menu.aspx" />
|
||||
<Content Include="OrdiniPerData.aspx" />
|
||||
<Content Include="Pianificazione.aspx" />
|
||||
@@ -395,6 +396,7 @@
|
||||
<Content Include="WebUserControls\mod_compSquadra.ascx" />
|
||||
<Content Include="WebUserControls\mod_consegne.ascx" />
|
||||
<Content Include="WebUserControls\mod_cronologico.ascx" />
|
||||
<Content Include="WebUserControls\mod_dettASSD.ascx" />
|
||||
<Content Include="WebUserControls\mod_dettInt.ascx" />
|
||||
<Content Include="WebUserControls\mod_dispPeriodo.ascx" />
|
||||
<Content Include="WebUserControls\mod_DocIntCli.ascx" />
|
||||
@@ -412,15 +414,18 @@
|
||||
<Content Include="WebUserControls\mod_filtroPeriodo.ascx" />
|
||||
<Content Include="WebUserControls\mod_filtroZona.ascx" />
|
||||
<Content Include="WebUserControls\mod_footer.ascx" />
|
||||
<Content Include="WebUserControls\mod_gestIntSquadra.ascx" />
|
||||
<Content Include="WebUserControls\mod_gestIntSquadre.ascx" />
|
||||
<Content Include="WebUserControls\mod_giornata.ascx" />
|
||||
<Content Include="WebUserControls\mod_giornataASSD.ascx" />
|
||||
<Content Include="WebUserControls\mod_header.ascx" />
|
||||
<Content Include="WebUserControls\mod_impegno.ascx" />
|
||||
<Content Include="WebUserControls\mod_ImpegnoSmall.ascx" />
|
||||
<Content Include="WebUserControls\mod_Interventi.ascx" />
|
||||
<Content Include="WebUserControls\mod_listValues.ascx" />
|
||||
<Content Include="WebUserControls\mod_pianificazione.ascx" />
|
||||
<Content Include="WebUserControls\mod_schemaSettASSD.ascx" />
|
||||
<Content Include="WebUserControls\mod_selData.ascx" />
|
||||
<Content Include="WebUserControls\mod_selDataOra.ascx" />
|
||||
<Content Include="WebUserControls\mod_selSquadre.ascx" />
|
||||
<Content Include="WebUserControls\mod_squadre.ascx" />
|
||||
<None Include="Properties\PublishProfiles\IIS02.pubxml" />
|
||||
@@ -432,6 +437,7 @@
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Scripts\jquery-2.1.4.min.map" />
|
||||
<Content Include="UpdateSql\update_v_2.0.sql" />
|
||||
<None Include="Web.WinLab.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
<SubType>Designer</SubType>
|
||||
@@ -478,6 +484,13 @@
|
||||
<Compile Include="Interventi.aspx.designer.cs">
|
||||
<DependentUpon>Interventi.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="IntSquadre.aspx.cs">
|
||||
<DependentUpon>IntSquadre.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="IntSquadre.aspx.designer.cs">
|
||||
<DependentUpon>IntSquadre.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Menu.aspx.cs">
|
||||
<DependentUpon>Menu.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -608,6 +621,13 @@
|
||||
<Compile Include="WebUserControls\mod_cronologico.ascx.designer.cs">
|
||||
<DependentUpon>mod_cronologico.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettASSD.ascx.cs">
|
||||
<DependentUpon>mod_dettASSD.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettASSD.ascx.designer.cs">
|
||||
<DependentUpon>mod_dettASSD.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_dettInt.ascx.cs">
|
||||
<DependentUpon>mod_dettInt.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -727,12 +747,12 @@
|
||||
<Compile Include="WebUserControls\mod_footer.ascx.designer.cs">
|
||||
<DependentUpon>mod_footer.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestIntSquadra.ascx.cs">
|
||||
<DependentUpon>mod_gestIntSquadra.ascx</DependentUpon>
|
||||
<Compile Include="WebUserControls\mod_gestIntSquadre.ascx.cs">
|
||||
<DependentUpon>mod_gestIntSquadre.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_gestIntSquadra.ascx.designer.cs">
|
||||
<DependentUpon>mod_gestIntSquadra.ascx</DependentUpon>
|
||||
<Compile Include="WebUserControls\mod_gestIntSquadre.ascx.designer.cs">
|
||||
<DependentUpon>mod_gestIntSquadre.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_giornata.ascx.cs">
|
||||
<DependentUpon>mod_giornata.ascx</DependentUpon>
|
||||
@@ -741,6 +761,13 @@
|
||||
<Compile Include="WebUserControls\mod_giornata.ascx.designer.cs">
|
||||
<DependentUpon>mod_giornata.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_giornataASSD.ascx.cs">
|
||||
<DependentUpon>mod_giornataASSD.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_giornataASSD.ascx.designer.cs">
|
||||
<DependentUpon>mod_giornataASSD.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_header.ascx.cs">
|
||||
<DependentUpon>mod_header.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -783,6 +810,13 @@
|
||||
<Compile Include="WebUserControls\mod_pianificazione.ascx.designer.cs">
|
||||
<DependentUpon>mod_pianificazione.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_schemaSettASSD.ascx.cs">
|
||||
<DependentUpon>mod_schemaSettASSD.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_schemaSettASSD.ascx.designer.cs">
|
||||
<DependentUpon>mod_schemaSettASSD.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_selData.ascx.cs">
|
||||
<DependentUpon>mod_selData.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -790,6 +824,13 @@
|
||||
<Compile Include="WebUserControls\mod_selData.ascx.designer.cs">
|
||||
<DependentUpon>mod_selData.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_selDataOra.ascx.cs">
|
||||
<DependentUpon>mod_selDataOra.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_selDataOra.ascx.designer.cs">
|
||||
<DependentUpon>mod_selDataOra.ascx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebUserControls\mod_selSquadre.ascx.cs">
|
||||
<DependentUpon>mod_selSquadre.ascx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<NameOfLastUsedPublishProfile>WinLab-Rigamonti</NameOfLastUsedPublishProfile>
|
||||
<NameOfLastUsedPublishProfile>IIS02</NameOfLastUsedPublishProfile>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_selData.ascx" TagPrefix="uc1" TagName="mod_selData" %>
|
||||
|
||||
|
||||
<asp:TextBox runat="server" ID="lblDataFrom" type="date" Visible="false" />
|
||||
<div class="ui-grid-b" style="padding: 2px;">
|
||||
<div class="ui-block-a ui-shadow ui-corner-all">
|
||||
<asp:DropDownList ID="ddlSquadre" runat="server" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra" AutoPostBack="True" OnSelectedIndexChanged="ddlSquadre_SelectedIndexChanged"></asp:DropDownList>
|
||||
@@ -60,7 +61,7 @@
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="ddlSquadre" DefaultValue="" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />
|
||||
<asp:SessionParameter SessionField="DataRif" Name="Data" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="lblDataFrom" Name="Data" PropertyName="Text" Type="DateTime" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
|
||||
@@ -20,26 +20,20 @@ namespace WebSCR.WebUserControls
|
||||
mod_selData.eh_update += Mod_selData_eh_update;
|
||||
}
|
||||
/// <summary>
|
||||
/// rilegge (eventualmente90 dati ins essione da cookie se non presenti
|
||||
/// rilegge (eventualmente) dati ins essione da cookie se non presenti
|
||||
/// </summary>
|
||||
private static void reloadSessionByCookie()
|
||||
private void reloadSessionByCookie()
|
||||
{
|
||||
// se valore in session è nullo PROVO a leggerlo da cookie...
|
||||
DateTime adesso = DateTime.Now;
|
||||
if (!memLayer.ML.isInSessionObject("DataRif"))
|
||||
{
|
||||
try
|
||||
{
|
||||
adesso = Convert.ToDateTime(memLayer.ML.getCookieVal("DataRif"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
memLayer.ML.setSessionVal("DataRif", adesso.ToString("yyyy-MM-dd"), true);
|
||||
}
|
||||
lblDataFrom.Text = mod_selData.dataTxt.ToString("yyyy-MM-dd");
|
||||
}
|
||||
private void Mod_selData_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
reloadSessionByCookie();
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
try
|
||||
{
|
||||
grView.DataBind();
|
||||
@@ -47,6 +41,7 @@ namespace WebSCR.WebUserControls
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// inserimento associazione user/squadra
|
||||
/// </summary>
|
||||
@@ -55,16 +50,17 @@ namespace WebSCR.WebUserControls
|
||||
protected void btnDoInsert_Click(object sender, EventArgs e)
|
||||
{
|
||||
DtProxy.man.taAsSq.insertQuery(ddlSquadre.SelectedValue, mod_selData.dateSel, ddlDip.SelectedValue);
|
||||
grView.DataBind();
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
protected void ddlSquadre_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
grView.DataBind();
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
protected void ddlDip_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,15 @@ namespace WebSCR.WebUserControls {
|
||||
|
||||
public partial class mod_AssSquadra {
|
||||
|
||||
/// <summary>
|
||||
/// lblDataFrom control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox lblDataFrom;
|
||||
|
||||
/// <summary>
|
||||
/// ddlSquadre control.
|
||||
/// </summary>
|
||||
|
||||
@@ -6,7 +6,12 @@
|
||||
<div style="clear: both; font-size: 0.9em;">
|
||||
<div>
|
||||
<div class="flLeft" style="font-size: 0.75em; width: 55%;">
|
||||
<asp:Label CssClass="tStrong flLeft" ID="CognomeLabel" runat="server" Text='<%# Eval("RagSoc") %>' />
|
||||
<div>
|
||||
<asp:Label CssClass="tStrong flLeft" ID="CognomeLabel" runat="server" Text='<%# Eval("RagSoc") %>' />
|
||||
</div>
|
||||
<div style="clear: both; font-size: 1.2em;">
|
||||
<asp:Label CssClass="flLeft" ID="Tel" runat="server" Text='<%# Eval("Tel","Tel/Cell: {0}") %>' />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flRight" style="font-size: 0.8em; width: 45%;">
|
||||
<div class="flRight" style="clear: both;">
|
||||
@@ -32,7 +37,7 @@
|
||||
<b>
|
||||
<asp:Label ID="lblRifOC" runat="server" Text='<%# Eval("RifOC") %>' /></b>
|
||||
| <i class="fa fa-building-o"></i>
|
||||
<asp:Label ID="lblPianoCons" runat="server" Text='<%# Eval("PianoCons") %>' /><asp:Label ID="lblAscensore" runat="server" Visible='<%# Eval("Ascensore") %>' Text=" | Ascensore" /><asp:Label ID="lblRitUsato" runat="server" Visible='<%# Eval("RitUsato") %>' Text=" | Ritiro Usato" />
|
||||
<asp:Label ID="lblPianoCons" runat="server" Text='<%# Eval("PianoCons") %>' /><asp:Label ID="lblAscensore" runat="server" Visible='<%# Eval("Ascensore") %>' Text=" | Ascensore" /><asp:Label ID="lblRitUsato" runat="server" Visible='<%# Eval("RitUsato").ToString()=="1" %>' Text=" | Ritiro Usato" />
|
||||
</div>
|
||||
<div class="flRight" style="font-size: 0.8em; color: #ACACAC;">
|
||||
<asp:Label ID="lblNoteGen" runat="server" Text='<%# Eval("NoteGen") %>' />
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
<asp:ListItem Text="PREVISTI" Value="PREVISTO"></asp:ListItem>
|
||||
<asp:ListItem Text="IN CORSO" Value="INCORSO"></asp:ListItem>
|
||||
<asp:ListItem Text="CONCLUSI" Value="CONCLUSO"></asp:ListItem>
|
||||
<asp:ListItem Text="APERTI" Value="APERTO"></asp:ListItem>
|
||||
<asp:ListItem Text="TUTTI" Value="*" Selected="True"></asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
@@ -57,20 +58,9 @@
|
||||
</div>
|
||||
<div class="ui-block-c" style="text-align: right; margin: auto;">
|
||||
<uc1:mod_selSquadre runat="server" ID="mod_selSquadre" />
|
||||
<%--<div class="flLeft" style="font-size: 0.85em;">
|
||||
<asp:Button runat="server" ID="btnAllSquadre" Text="Squadre (tutte)" OnClick="btnAllSquadre_Click" />
|
||||
</div>
|
||||
<div class="flLeft" style="font-size: 0.85em;">
|
||||
<div data-role="controlgroup" data-type="horizontal" class="ui-controlgroup ui-controlgroup-horizontal ui-corner-all">
|
||||
<asp:RadioButtonList ID="rblSquadre" runat="server" DataSourceID="odsSquadre" DataTextField="CodSquadra" DataValueField="CodSquadra" RepeatDirection="Horizontal" RepeatLayout="Flow" AppendDataBoundItems="false" AutoPostBack="True" OnSelectedIndexChanged="rblSquadre_SelectedIndexChanged">
|
||||
<asp:ListItem Selected="True" Text="Tutte" Value="*"></asp:ListItem>
|
||||
</asp:RadioButtonList>
|
||||
</div>
|
||||
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter"></asp:ObjectDataSource>
|
||||
</div>--%>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-mini">
|
||||
<div class="ui-mini noShadows">
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" AutoGenerateColumns="False" DataKeyNames="IdxImpegno" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" AllowPaging="True" OnRowCommand="grView_RowCommand" OnSelectedIndexChanged="grView_SelectedIndexChanged">
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
@@ -105,7 +95,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both; width: 240px; font-size: 0.8em; color: #ACACAC;">
|
||||
<div style="clear: both; width: 20em; font-size: 0.8em; color: #ACACAC;">
|
||||
<div>
|
||||
<div class="flRight">
|
||||
<i class="fa fa-truck"></i>
|
||||
@@ -119,9 +109,12 @@
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Squadra" SortExpression="DescrSquadra">
|
||||
<HeaderTemplate>
|
||||
<asp:Label ID="lblHeadSquadra" runat="server" Text="Squadra" Visible='<%# showSelSquadre %>'></asp:Label>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div>
|
||||
<asp:Label ID="lblDescrSquadra" runat="server" Text='<%# Bind("DescrSquadra") %>'></asp:Label>
|
||||
<asp:Label ID="lblDescrSquadra" runat="server" Text='<%# Bind("DescrSquadra") %>' Visible='<%# showSelSquadre %>'></asp:Label>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
@@ -161,15 +154,34 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="DOC / note" SortExpression="RifOC">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblRifOC" runat="server" Text='<%# Eval("RifOC") %>' />
|
||||
<div class="flRight" style="font-size: 0.8em; color: #ACACAC;">
|
||||
<div class="flLeft" style="font-size: 0.75em;">
|
||||
<asp:Label ID="lblRifOC" runat="server" Text='<%# Eval("RifOC") %>' />
|
||||
<br />
|
||||
<asp:Label CssClass="flRight" Font-Size="0.9em" ForeColor="#5E5E5E" ID="lblDettImpegno" runat="server" Text='<%# Eval("DettImpegno") %>' />
|
||||
</div>
|
||||
<div class="flRight" style="font-size: 0.8em; color: #4f89ad;">
|
||||
<asp:Label ID="lblNoteGen" runat="server" Text='<%# Eval("NoteGen") %>' />
|
||||
</div>
|
||||
<div class="flRight" style="font-size: 0.7em; color: #3f6d89;">
|
||||
<asp:Label ID="lblNoteTec" runat="server" Text='<%# Eval("NoteInt") %>' />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Aperto" SortExpression="IntAperto" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Eval("IntAperto") %>' CssClass="ui-state-disabled" />
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usato" SortExpression="RitUsato" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("RitUsato") %>' CssClass="ui-state-disabled" />
|
||||
<asp:DropDownList runat="server" ID="ddlRitUs" DataSourceID="odsRitUs" DataTextField="label" DataValueField="value" SelectedValue='<%# Eval("RitUsato") %>' CssClass="ui-state-disabled"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsRitUs" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="RitUsato" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
@@ -188,7 +200,7 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getBySearch" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" FilterExpression="CodSquadra LIKE '%{0}%' OR DescrSquadra LIKE '%{0}%' OR CodCliente LIKE '%{0}%' OR RagSoc LIKE '%{0}%' OR RifOC LIKE '%{0}%' " OldValuesParameterFormatString="original_{0}">
|
||||
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getBySearch" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" FilterExpression="CodSquadra LIKE '%{0}%' OR DescrSquadra LIKE '%{0}%' OR CodCliente LIKE '%{0}%' OR RagSoc LIKE '%{0}%' OR RifOC LIKE '%{0}%' " OldValuesParameterFormatString="Original_{0}">
|
||||
<FilterParameters>
|
||||
<asp:ControlParameter ControlID="txtSearch" DefaultValue="*" Type="string" />
|
||||
</FilterParameters>
|
||||
|
||||
@@ -112,8 +112,24 @@ namespace WebSCR.WebUserControls
|
||||
/// ultimo comando letto da link button
|
||||
/// </summary>
|
||||
public string lastCmd { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// determina visibilità selettore squadre
|
||||
/// </summary>
|
||||
public bool showSelSquadre
|
||||
{
|
||||
get
|
||||
{
|
||||
return mod_selSquadre.Visible;
|
||||
}
|
||||
set
|
||||
{
|
||||
mod_selSquadre.Visible = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// URL per rimando su selezione
|
||||
/// </summary>
|
||||
public string redirBaseUrl { get; set; }
|
||||
/// <summary>
|
||||
/// aggiungo/tolgo all'intervallo selezione
|
||||
/// </summary>
|
||||
@@ -197,7 +213,8 @@ namespace WebSCR.WebUserControls
|
||||
riga = DtProxy.man.taImp.GetData()[0];
|
||||
}
|
||||
// rimando su pagina!
|
||||
Response.Redirect(string.Format("{0}?CodCliente={1}&Indir={2}&Data={3:yyyy-MM-dd}&IdxImpegno={4}", "Pianificazione", riga.CodCliente, riga.Indir, riga.DataOra, IdxImpegno));
|
||||
Response.Redirect(string.Format("{0}?CodCliente={1}&Indir={2}&Data={3:yyyy-MM-dd}&IdxImpegno={4}", redirBaseUrl, riga.CodCliente, riga.Indir, riga.DataOra, IdxImpegno));
|
||||
//Response.Redirect(string.Format("{0}?CodCliente={1}&Indir={2}&Data={3:yyyy-MM-dd}&IdxImpegno={4}", "Pianificazione", riga.CodCliente, riga.Indir, riga.DataOra, IdxImpegno));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="ui-mini">
|
||||
<div class="ui-grid-solo" style="padding: 2px;">
|
||||
<div class="ui-block-a ui-shadow ui-corner-all">
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" Width="100%" AutoGenerateColumns="False" DataKeyNames="DataFrom,CodSquadra,Matr">
|
||||
<asp:GridView ID="grView" runat="server" DataSourceID="ods" Width="100%" AutoGenerateColumns="False" DataKeyNames="Data,Slot,CodSquadra,Matr">
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
@@ -19,18 +19,18 @@
|
||||
Nessun componente squadra assegnato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<%--<asp:BoundField DataField="Matr" HeaderText="Matr" ReadOnly="True" SortExpression="Matr" />--%>
|
||||
<asp:BoundField DataField="CognomeNome" HeaderText="Cognome Nome" ReadOnly="True" SortExpression="Matr" />
|
||||
<asp:BoundField DataField="DataFrom" HeaderText="Inizio" ReadOnly="True" SortExpression="DataFrom" DataFormatString="{0:ddd dd/MM/yyyy}" HtmlEncode="false" />
|
||||
<asp:BoundField DataField="DataTo" HeaderText="Fine" SortExpression="DataTo" DataFormatString="{0:ddd dd/MM/yyyy}" HtmlEncode="false" />
|
||||
<%--<asp:BoundField DataField="Data" HeaderText="Data" ReadOnly="True" SortExpression="Data" />
|
||||
<asp:BoundField DataField="Slot" HeaderText="Slot" ReadOnly="True" SortExpression="Slot" />
|
||||
<asp:BoundField DataField="CodSquadra" HeaderText="CodSquadra" SortExpression="CodSquadra" ReadOnly="True" />
|
||||
<asp:BoundField DataField="Matr" HeaderText="Matr" ReadOnly="True" SortExpression="Matr" />
|
||||
<asp:BoundField DataField="DescrSquadra" HeaderText="DescrSquadra" ReadOnly="True" SortExpression="DescrSquadra" />--%>
|
||||
<%--<asp:BoundField DataField="CssColor" HeaderText="CssColor" SortExpression="CssColor" />--%>
|
||||
<asp:BoundField DataField="CognomeNome" HeaderText="Cognome Nome" SortExpression="CognomeNome" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetByCodSqData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSquadreTableAdapter">
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByImpegno" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter">
|
||||
<SelectParameters>
|
||||
<%--<asp:ControlParameter ControlID="ddlSquadre" DefaultValue="" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />--%>
|
||||
<asp:SessionParameter SessionField="CodSquadra" Name="CodSquadra" Type="String" />
|
||||
<%--<asp:CookieParameter CookieName="DataRif" Name="Data" Type="DateTime" />--%>
|
||||
<asp:SessionParameter SessionField="DataImp" Name="Data" Type="DateTime" />
|
||||
<asp:QueryStringParameter Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
|
||||
@@ -13,5 +13,9 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
|
||||
}
|
||||
public void doUpdate()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -49,7 +49,7 @@
|
||||
<b>
|
||||
<asp:Label ID="lblRifOC" runat="server" Text='<%# Eval("RifOC") %>' /></b>
|
||||
| <i class="fa fa-building-o"></i>
|
||||
<asp:Label ID="lblPianoCons" runat="server" Text='<%# Eval("PianoCons") %>' /><asp:Label ID="lblAscensore" runat="server" Visible='<%# Eval("Ascensore") %>' Text=" | Ascensore" /><asp:Label ID="lblRitUsato" runat="server" Visible='<%# Eval("RitUsato") %>' Text=" | Ritiro Usato" />
|
||||
<asp:Label ID="lblPianoCons" runat="server" Text='<%# Eval("PianoCons") %>' /><asp:Label ID="lblAscensore" runat="server" Visible='<%# Eval("Ascensore") %>' Text=" | Ascensore" /><asp:Label ID="lblRitUsato" runat="server" Visible='<%# Eval("RitUsato").ToString()=="1" %>' Text=" | Ritiro Usato" />
|
||||
</div>
|
||||
<div class="flRight" style="font-size: 0.8em; color: #ACACAC;">
|
||||
<asp:Label ID="lblNoteGen" runat="server" Text='<%# Eval("NoteGen") %>' />
|
||||
|
||||
@@ -122,7 +122,13 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Usato" SortExpression="RitUsato" ItemStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Eval("RitUsato") %>' CssClass="ui-state-disabled" />
|
||||
<asp:DropDownList runat="server" ID="ddlRitUs" DataSourceID="odsRitUs" DataTextField="label" DataValueField="value" SelectedValue='<%# Eval("RitUsato") %>' CssClass="ui-state-disabled"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsRitUs" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="RitUsato" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</ItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettASSD" %>
|
||||
|
||||
<asp:Repeater ID="repShow" runat="server" DataSourceID="odsASSD">
|
||||
<ItemTemplate>
|
||||
<span style="white-space: nowrap;">
|
||||
<%# Eval("CognomeNome") %> |
|
||||
</span>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:ObjectDataSource ID="odsSquadra" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter"></asp:ObjectDataSource>
|
||||
|
||||
<asp:GridView ID="grViewEdit" runat="server" AutoGenerateColumns="False" DataKeyNames="Data,Slot,CodSquadra,Matr" DataSourceID="odsASSD" AllowPaging="True" AllowSorting="True" PageSize="20">
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
|
||||
<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
|
||||
<RowStyle BackColor="#EFF3FB" HorizontalAlign="Left" />
|
||||
<SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
|
||||
<SortedAscendingCellStyle BackColor="#F5F7FB" />
|
||||
<SortedAscendingHeaderStyle BackColor="#6D95E1" />
|
||||
<SortedDescendingCellStyle BackColor="#E9EBEF" />
|
||||
<SortedDescendingHeaderStyle BackColor="#4870BE" />
|
||||
<AlternatingRowStyle BackColor="White" />
|
||||
<EmptyDataTemplate>
|
||||
Nessun risultato
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<HeaderTemplate>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<div class="ui-nodisc-icon ui-alt-icon">
|
||||
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Edit"></asp:LinkButton>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="update" CommandName="Update" Text="Update"></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Squadra" SortExpression="DescrSquadra">
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="ddlSquadra" runat="server" DataSourceID="odsSquadra" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Bind("CodSquadra") %>'></asp:DropDownList>
|
||||
<%--<asp:TextBox ID="txtCodSquadra" runat="server" Text='<%# Bind("CodSquadra") %>'></asp:TextBox>--%>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Eval("DescrSquadra") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Risorsa" SortExpression="CognomeNome">
|
||||
<EditItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("CognomeNome") %>'></asp:Label>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Eval("CognomeNome") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbDelete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="delete" CommandName="Delete" Text="Delete" ToolTip="Elimina" OnClientClick="return confirm('Sei sicuro di voler eliminare il record?')"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbCancel" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-refresh ui-btn-icon-notext ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="cancel" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
|
||||
</EditItemTemplate>
|
||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="odsASSD" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getBySlotSq" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter" UpdateMethod="updateSquadra" OnUpdated="odsASSD_Updated" DeleteMethod="deleteQuery">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_Data" Type="DateTime" />
|
||||
<asp:Parameter Name="Original_Slot" Type="String" />
|
||||
<asp:Parameter Name="Original_Matr" Type="String" />
|
||||
<asp:Parameter Name="Original_CodSquadra" Type="String" />
|
||||
</DeleteParameters>
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="hfCodSquadra" Name="CodSquadra" PropertyName="Value" Type="String" />
|
||||
<asp:ControlParameter ControlID="hfDataRif" DefaultValue="" Name="Data" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="hfSlot" Name="Slot" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_CodSquadra" Type="String" />
|
||||
<asp:Parameter Name="Original_Data" Type="DateTime" />
|
||||
<asp:Parameter Name="Original_Slot" Type="String" />
|
||||
<asp:Parameter Name="Original_Matr" Type="String" />
|
||||
<asp:Parameter Name="CodSquadra" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:HiddenField runat="server" ID="hfDataRif" />
|
||||
<asp:HiddenField runat="server" ID="hfSlot" />
|
||||
<asp:HiddenField runat="server" ID="hfCodSquadra" />
|
||||
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_dettASSD : System.Web.UI.UserControl
|
||||
{
|
||||
public event EventHandler eh_updReq;
|
||||
/// <summary>
|
||||
/// solleva evento selezione data
|
||||
/// </summary>
|
||||
protected void reportEvent()
|
||||
{
|
||||
// evento!
|
||||
if (eh_updReq != null)
|
||||
{
|
||||
eh_updReq(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// data di riferimento scelta
|
||||
/// </summary>
|
||||
public DateTime DataRif
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToDateTime(hfDataRif.Value);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfDataRif.Value = value.ToShortDateString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// slot impostato
|
||||
/// </summary>
|
||||
public string Slot
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfSlot.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfSlot.Value = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// CodSquadra impostata
|
||||
/// </summary>
|
||||
public string CodSquadra
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfCodSquadra.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfCodSquadra.Value = value;
|
||||
}
|
||||
}
|
||||
public bool editMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return repShow.Visible;
|
||||
|
||||
}
|
||||
set
|
||||
{
|
||||
repShow.Visible = !value;
|
||||
grViewEdit.Visible = value;
|
||||
}
|
||||
}
|
||||
|
||||
protected void odsASSD_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
// sollevo evento!
|
||||
reportEvent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebSCR.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_dettASSD {
|
||||
|
||||
/// <summary>
|
||||
/// repShow control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Repeater repShow;
|
||||
|
||||
/// <summary>
|
||||
/// odsSquadra control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsSquadra;
|
||||
|
||||
/// <summary>
|
||||
/// grViewEdit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.GridView grViewEdit;
|
||||
|
||||
/// <summary>
|
||||
/// odsASSD control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsASSD;
|
||||
|
||||
/// <summary>
|
||||
/// hfDataRif control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfDataRif;
|
||||
|
||||
/// <summary>
|
||||
/// hfSlot control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfSlot;
|
||||
|
||||
/// <summary>
|
||||
/// hfCodSquadra control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfCodSquadra;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,19 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_dettInt.ascx.cs" Inherits="WebSCR.WebUserControls.mod_dettInt" %>
|
||||
<div class="ui-field-contain" style="visibility: <%: isVisible %>; height: <%: visHeight %>;">
|
||||
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="font-size: 0.9em; width: 90%;">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna"></asp:DropDownList>
|
||||
<asp:LinkButton ID="lbAdd" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" Text="Aggiungi" OnClick="lbAdd_Click" />
|
||||
<div class="ui-mini noShadows">
|
||||
<div class="flLeft div_2_3 ui-corner-all">
|
||||
<div class="ui-field-contain" style="visibility: <%: isVisible %>; height: <%: visHeight %>;">
|
||||
<div data-role="controlgroup" data-type="horizontal" data-mini="true" style="font-size: 0.9em; width: 90%;">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoCons" DataSourceID="odsTipoCons" DataTextField="DescrConsegna" DataValueField="CodConsegna"></asp:DropDownList>
|
||||
<asp:LinkButton ID="lbAdd" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" Text="Aggiungi" OnClick="lbAdd_Click" Visible='<%# canAddData %>' />
|
||||
</div>
|
||||
</div>
|
||||
<asp:ObjectDataSource runat="server" ID="odsTipoCons" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter" />
|
||||
|
||||
</div>
|
||||
<div class="flLeft div_1_3 ui-corner-all">
|
||||
<asp:Label runat="server" ID="lblWarning" Text="..." ForeColor="Red" />
|
||||
</div>
|
||||
</div>
|
||||
<asp:ObjectDataSource runat="server" ID="odsTipoCons" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagTipoConsegneTableAdapter" />
|
||||
|
||||
<asp:GridView ID="grViewDettInt" runat="server" AutoGenerateColumns="False" DataKeyNames="IdxImpegno,NumCons" DataSourceID="odsDettInt" Width="100%">
|
||||
<EditRowStyle BackColor="#2461BF" />
|
||||
@@ -84,5 +92,6 @@
|
||||
<asp:Parameter Name="Original_NumCons" Type="Int32" />
|
||||
<asp:Parameter Name="CodConsegna" Type="String" />
|
||||
<asp:Parameter Name="Note" Type="String" />
|
||||
<asp:SessionParameter SessionField="matrOp" Name="MatrOp" Type="String" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -92,6 +93,7 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// aggiunge il task corrente all'elenco dei task...
|
||||
@@ -100,9 +102,113 @@ namespace WebSCR.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
DtProxy.man.taDetImp.insertQuery(idxImpegno, ddlTipoCons.SelectedValue);
|
||||
//doUpdate();
|
||||
reportEvent();
|
||||
// verifico se si possa inserire (ovvero totale tempo > minTempo e valore da inserire NEGATIVO...)
|
||||
if (((actualMin + selTaskMin) >= minTempoInt))
|
||||
{
|
||||
// fix warning
|
||||
lblWarning.Visible = false;
|
||||
lblWarning.Text = "";
|
||||
|
||||
DtProxy.man.taDetImp.insertQuery(idxImpegno, matrOp, ddlTipoCons.SelectedValue);
|
||||
//doUpdate();
|
||||
reportEvent();
|
||||
}
|
||||
else
|
||||
{
|
||||
// fix warning
|
||||
lblWarning.Visible = true;
|
||||
lblWarning.Text = string.Format("Attenzione: impossibile inserire, tempo complessivo diventerebbe inferiore a soglia minima ({0} min)!", minTempoInt);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se si possano agigungere dati: ha patricola (OP) e l'intervento ha il record usato si/no compilato
|
||||
/// </summary>
|
||||
public bool canAddData
|
||||
{
|
||||
get
|
||||
{
|
||||
return hasMatricola && isRitUsOk;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se il record sia OK x ritiro usato...
|
||||
/// </summary>
|
||||
public bool isRitUsOk
|
||||
{
|
||||
get
|
||||
{
|
||||
bool answ = false;
|
||||
try
|
||||
{
|
||||
answ = DtProxy.man.taImp.getByKey(idxImpegno)[0].RitUsato >= 0;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// verifica se ci sia matricola in sessione
|
||||
/// </summary>
|
||||
public bool hasMatricola
|
||||
{
|
||||
get
|
||||
{
|
||||
return matrOp != "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// matricola OP (x utente)
|
||||
/// </summary>
|
||||
public string matrOp
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("matrOp");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
protected int minTempoInt
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.CRI("minTempoInterv");
|
||||
}
|
||||
}
|
||||
protected int actualMin
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = DtProxy.man.taVRI.getByKey(idxImpegno)[0].TotMin;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected int selTaskMin
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = DtProxy.man.taATC.getByKey(ddlTipoCons.SelectedValue)[0].MinutiStd;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
protected void odsDettInt_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
@@ -118,6 +224,8 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
public void doUpdate()
|
||||
{
|
||||
lblWarning.Visible = false;
|
||||
lbAdd.DataBind();
|
||||
grViewDettInt.DataBind();
|
||||
}
|
||||
protected void odsDettInt_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
|
||||
@@ -39,6 +39,15 @@ namespace WebSCR.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsTipoCons;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// grViewDettInt control.
|
||||
/// </summary>
|
||||
|
||||
@@ -17,6 +17,11 @@ namespace WebSCR.WebUserControls
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
// leggo impegno
|
||||
int IdxImpegno = 0;
|
||||
@@ -31,7 +36,7 @@ namespace WebSCR.WebUserControls
|
||||
if (IdxImpegno > 0)
|
||||
{
|
||||
// cerco DOC...
|
||||
DS_Applicazione.ImpegniRow riga =DtProxy.man.taImp.getByKey(IdxImpegno)[0];
|
||||
DS_Applicazione.ImpegniRow riga = DtProxy.man.taImp.getByKey(IdxImpegno)[0];
|
||||
// se c'è documento...
|
||||
if (riga.RifOC != "")
|
||||
{
|
||||
@@ -47,8 +52,8 @@ namespace WebSCR.WebUserControls
|
||||
if (numDoc > 0)
|
||||
{
|
||||
// imposto link del doc richiesto x download...
|
||||
hlDoc.NavigateUrl = string.Format("{0}/{1:0000000}_{2}_{3:yyyy}.pdf", memLayer.ML.CRS("fileUploadFolder"), numDoc, tipoDoc, DateTime.Now);
|
||||
hlDoc.Text = string.Format("{1}{0:0000000} ({2:yyyy})", numDoc, tipoDoc, DateTime.Now);
|
||||
hlDoc.NavigateUrl = string.Format("{0}/{1:0000000}_{2}_{3}.pdf", memLayer.ML.CRS("fileUploadFolder"), numDoc, tipoDoc, riga.AnnoOC);
|
||||
hlDoc.Text = string.Format("{1}{0:0000000} ({2})", numDoc, tipoDoc, riga.AnnoOC);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,11 @@ namespace WebSCR.WebUserControls
|
||||
divNewEdit.Visible = isWriteEnabled;
|
||||
btnAdd.DataBind();
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
{
|
||||
grView.DataBind();
|
||||
}
|
||||
protected void Upload(object sender, EventArgs e)
|
||||
{
|
||||
string filename = Path.GetFileName(FileUpload1.PostedFile.FileName);
|
||||
|
||||
@@ -3,10 +3,8 @@
|
||||
<div id="divDisponib" runat="server">
|
||||
<div class="ui-grid-a ui-mini">
|
||||
<div class="ui-block-a">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-grid-solo">
|
||||
<div class="ui-block-a">
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<asp:TextBox runat="server" ID="txtDataFrom" type="date" OnTextChanged="txtDataFrom_TextChanged" AutoPostBack="True" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,20 +1,14 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_filtroZona.ascx.cs" Inherits="WebSCR.WebUserControls.mod_filtroZona" %>
|
||||
<div class="ui-grid-solo">
|
||||
<div class="flLeft" style="width: 25%;">
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<asp:Label runat="server" ID="lblCliente" Font-Size="1.2em" />
|
||||
</div>
|
||||
<div class="flRight" style="width: 25%;">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblZona" Font-Size="1.3em" /></b>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblIndirizzo" />
|
||||
</div>
|
||||
<div style="text-align:center; margin: auto; width: 49%;">
|
||||
<div class="flLeft" style="font-size: 0.80em; width: 80%;">
|
||||
<div class="ui-block-b" style="text-align:center; margin: auto;">
|
||||
<div class="flLeft" style="font-size: 0.80em; width: 60%;">
|
||||
<asp:TextBox runat="server" ID="txtCerca" placeholder="Ricerca OC/DC" AutoPostBack="true" OnTextChanged="txtCerca_TextChanged" />
|
||||
</div>
|
||||
<div class="flLeft" style="font-size: 0.80em; width: 20%;">
|
||||
<asp:DropDownList runat="server" ID="ddlAnno" DataSourceID="odsAnno" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlAnno_SelectedIndexChanged"></asp:DropDownList>
|
||||
<div class="flLeft" style="font-size: 0.80em; width: 40%;">
|
||||
<asp:DropDownList runat="server" ID="ddlAnno" DataSourceID="odsAnno" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlAnno_SelectedIndexChanged" Font-Size="0.9em"></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsAnno" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValidDesc" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="*" Name="TableName" Type="String" />
|
||||
@@ -23,4 +17,9 @@
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<b><asp:Label runat="server" ID="lblZona" Font-Size="1.3em" /></b>
|
||||
<br />
|
||||
<asp:Label runat="server" ID="lblIndirizzo" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -28,18 +28,27 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
if (memLayer.ML.isInSessionObject("currDoc"))
|
||||
{
|
||||
txtCerca.Text = memLayer.ML.StringSessionObj("currDoc");
|
||||
ddlAnno.DataBind();
|
||||
refreshSearch();
|
||||
}
|
||||
else
|
||||
{
|
||||
lblCliente.Text = "";
|
||||
lblIndirizzo.Text = "";
|
||||
lblZona.Text = "";
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// forza Update
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
txtCerca.Text = memLayer.ML.StringSessionObj("currDoc");
|
||||
if (memLayer.ML.isInSessionObject("currDoc"))
|
||||
{
|
||||
ddlAnno.DataBind();
|
||||
// salvo anno..
|
||||
memLayer.ML.setSessionVal("yearSel", ddlAnno.SelectedValue);
|
||||
refreshSearch();
|
||||
}
|
||||
else
|
||||
{
|
||||
lblCliente.Text = "";
|
||||
lblIndirizzo.Text = "";
|
||||
lblZona.Text = "";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,10 +82,16 @@ namespace WebSCR.WebUserControls
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = txtCerca.Text.Trim();
|
||||
answ = txtCerca.Text.Trim().ToUpper();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// 2016.02.01 modifica se trovo OC0 --> OC0000000
|
||||
if (answ == "OC0" || answ == "OC00" || answ == "OC000")
|
||||
{
|
||||
answ = "OC0000000";
|
||||
txtCerca.Text = answ;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
@@ -120,7 +135,7 @@ namespace WebSCR.WebUserControls
|
||||
memLayer.ML.emptySessionVal("currDoc");
|
||||
}
|
||||
}
|
||||
catch
|
||||
catch(Exception exc)
|
||||
{ }
|
||||
}
|
||||
else
|
||||
@@ -134,10 +149,11 @@ namespace WebSCR.WebUserControls
|
||||
|
||||
protected void ddlAnno_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// salvo anno
|
||||
memLayer.ML.setSessionVal("yearSel", ddlAnno.SelectedValue);
|
||||
refreshSearch();
|
||||
reportEvent();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+18
-18
@@ -21,24 +21,6 @@ namespace WebSCR.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblCliente;
|
||||
|
||||
/// <summary>
|
||||
/// lblZona control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblZona;
|
||||
|
||||
/// <summary>
|
||||
/// lblIndirizzo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblIndirizzo;
|
||||
|
||||
/// <summary>
|
||||
/// txtCerca control.
|
||||
/// </summary>
|
||||
@@ -65,5 +47,23 @@ namespace WebSCR.WebUserControls {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsAnno;
|
||||
|
||||
/// <summary>
|
||||
/// lblZona control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblZona;
|
||||
|
||||
/// <summary>
|
||||
/// lblIndirizzo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblIndirizzo;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestIntSquadra.ascx.cs" Inherits="WebSCR.WebUserControls.mod_gestIntSquadra" %>
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestIntSquadre.ascx.cs" Inherits="WebSCR.WebUserControls.mod_gestIntSquadre" %>
|
||||
|
||||
<asp:HiddenField runat="server" ClientIDMode="Static" ID="hLat" />
|
||||
<asp:HiddenField runat="server" ClientIDMode="Static" ID="hLon" />
|
||||
@@ -26,6 +26,7 @@
|
||||
</div>
|
||||
|
||||
<div id="divNote" runat="server" visible="false" style="text-align: center; margin: auto;">
|
||||
<asp:CheckBox runat="server" Text="Intervento (ri-)aperto" ID="chkIntAperto" />
|
||||
<asp:TextBox runat="server" ID="txtNote" TextMode="MultiLine" Height="2em" />
|
||||
<asp:LinkButton ID="lbAddNote" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" Text="Salva Nota" Width="75%" OnClick="lbAddNote_Click" />
|
||||
</div>
|
||||
+7
-3
@@ -9,7 +9,7 @@ using WebSCR_data;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_gestIntSquadra : System.Web.UI.UserControl
|
||||
public partial class mod_gestIntSquadre : System.Web.UI.UserControl
|
||||
{
|
||||
public event EventHandler eh_update;
|
||||
/// <summary>
|
||||
@@ -141,13 +141,17 @@ namespace WebSCR.WebUserControls
|
||||
divNote.Visible = !divNote.Visible;
|
||||
fixVisibility();
|
||||
string note = "";
|
||||
bool aperto = false;
|
||||
try
|
||||
{
|
||||
note = DtProxy.man.taImp.getByKey(IdxImpegno)[0].NoteInt;
|
||||
DS_Applicazione.ImpegniRow riga = DtProxy.man.taImp.getByKey(IdxImpegno)[0];
|
||||
note = riga.NoteInt;
|
||||
aperto = riga.IntAperto;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
txtNote.Text = note;
|
||||
chkIntAperto.Checked = aperto;
|
||||
reportEvent();
|
||||
}
|
||||
|
||||
@@ -158,7 +162,7 @@ namespace WebSCR.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void lbAddNote_Click(object sender, EventArgs e)
|
||||
{
|
||||
DtProxy.man.taImp.updNoteInt(IdxImpegno, txtNote.Text.Trim());
|
||||
DtProxy.man.taImp.updNoteInt(IdxImpegno, txtNote.Text.Trim(), chkIntAperto.Checked);
|
||||
divNote.Visible = false;
|
||||
fixVisibility();
|
||||
reportEvent();
|
||||
+10
-1
@@ -10,7 +10,7 @@
|
||||
namespace WebSCR.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_gestIntSquadra {
|
||||
public partial class mod_gestIntSquadre {
|
||||
|
||||
/// <summary>
|
||||
/// hLat control.
|
||||
@@ -66,6 +66,15 @@ namespace WebSCR.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divNote;
|
||||
|
||||
/// <summary>
|
||||
/// chkIntAperto control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox chkIntAperto;
|
||||
|
||||
/// <summary>
|
||||
/// txtNote control.
|
||||
/// </summary>
|
||||
@@ -6,14 +6,19 @@
|
||||
<script type="text/javascript">
|
||||
function eventClick(e) {
|
||||
//alert('Event with id ' + e.id() + ' was selected.');
|
||||
document.location = '<%= SteamWare.devicesAuthProxy.pagCorrente %>?CodCliente=<%= this.CodCliente %>&Indir=<%= this.Indir %>&Data=<%= this.Data %>&IdxImpegno=' + e.id();
|
||||
document.location = '<%= SteamWare.devicesAuthProxy.pagCorrente %>?Action=EDIT&CodCliente=<%= this.CodCliente %>&Indir=<%= this.Indir %>&Data=<%= this.Data %>&IdxImpegno=' + e.id();
|
||||
}
|
||||
function newRange(start, end) {
|
||||
document.location = '<%= SteamWare.devicesAuthProxy.pagCorrente %>?Action=NEW&Data=<%= this.Data %>&codSquadra=<%= this.codSquadra %>&currDoc=<%= this.currDoc %>&matrOp=<%= this.matrOp %>&start=' + start + '&end=' + end;
|
||||
}
|
||||
<%--function move(start, end) {
|
||||
document.location = '<%= SteamWare.devicesAuthProxy.pagCorrente %>?Action=MOVE&Data=<%= this.Data %>&codSquadra=<%= this.codSquadra %>&currDoc=<%= this.currDoc %>&matrOp=<%= this.matrOp %>&start=' + start + '&end=' + end;
|
||||
}--%>
|
||||
|
||||
</script>
|
||||
|
||||
<asp:Label runat="server" ID="lblCodCli" Visible="false" />
|
||||
<asp:Label runat="server" ID="lblData" Visible="false" />
|
||||
|
||||
<div class="ui-grid-solo ui-mini" style="margin: -2px -2px;">
|
||||
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server"
|
||||
DataSourceID="ods"
|
||||
@@ -30,13 +35,14 @@
|
||||
BusinessEndsHour="22"
|
||||
ShowEventStartEnd="True"
|
||||
CellHeight="15"
|
||||
TimeRangeSelectedHandling="CallBack"
|
||||
EventMoveHandling="CallBack"
|
||||
TimeRangeSelectedHandling="JavaScript"
|
||||
TimeRangeSelectedJavaScript="newRange(start,end)"
|
||||
EventClickHandling="JavaScript"
|
||||
EventClickJavaScript="eventClick(e)"
|
||||
Theme="calendar_white"
|
||||
EventMoveHandling="PostBack"
|
||||
OnEventMove="DayPilotCalendar1_EventMove"
|
||||
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
|
||||
OnEventClick="DayPilotCalendar1_EventClick"
|
||||
Width="95%"
|
||||
HourFontSize="6"
|
||||
DayFontSize="8pt"
|
||||
|
||||
@@ -30,11 +30,13 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
data = Convert.ToDateTime(qsVal("Data"));
|
||||
}
|
||||
DayPilotCalendar1.TimeRangeSelected += DayPilotCalendar1_TimeRangeSelected;
|
||||
DayPilotCalendar1.EventMove += DayPilotCalendar1_EventMove;
|
||||
DayPilotCalendar1.Days = day2show;
|
||||
#if false
|
||||
DayPilotCalendar1.EventMove += DayPilotCalendar1_EventMove;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
public int day2show
|
||||
{
|
||||
get
|
||||
@@ -85,37 +87,53 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
return memLayer.ML.QSS(nome);
|
||||
}
|
||||
void DayPilotCalendar1_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
|
||||
protected void DayPilotCalendar1_EventMove(object sender, DayPilot.Web.Ui.Events.EventMoveEventArgs e)
|
||||
{
|
||||
// sposto evento!
|
||||
DtProxy.man.taImp.updStart(Convert.ToInt32(e.Id), e.NewStart);
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// evento selezione periodo inizio
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void DayPilotCalendar1_TimeRangeSelected(object sender, DayPilot.Web.Ui.Events.TimeRangeSelectedEventArgs e)
|
||||
{
|
||||
// se ho 1 sola squadra selezionata...
|
||||
//if(rblSquadre.SelectedIndex >= 0)
|
||||
//if (mod_selSquadre.selected.Count == 1)
|
||||
if (memLayer.ML.StringSessionObj("elencoSquadre").Length > 0)
|
||||
// controllo che sia presente matricola altrimenti NON lo permetto...
|
||||
if (matrOp != "")
|
||||
{
|
||||
// recupero OC se in sessione...
|
||||
string doc = memLayer.ML.StringSessionObj("currDoc");
|
||||
if (doc == "") doc = "OC00000000";
|
||||
// prendo la squadra selezionata
|
||||
//string squadra = mod_selSquadre.selected[0].ToString();
|
||||
string squadra = memLayer.ML.StringSessionObj("elencoSquadre").Split(',')[0].ToString();
|
||||
// selezionato periodo, salvo evento inizio...
|
||||
DtProxy.man.taImp.insertQuery(e.Start, "INDIC", squadra, doc, DateTime.Now.Year);
|
||||
// consumo il doc selezionato e quindi rimuovo da sessione...
|
||||
memLayer.ML.emptySessionVal("currDoc");
|
||||
// sposto evento!
|
||||
DtProxy.man.taImp.updStart(Convert.ToInt32(e.Id), e.NewStart, matrOp, DateTime.Now);
|
||||
if (memLayer.ML.confReadBool("svuotaMatrOpMove"))
|
||||
{
|
||||
// rimuovo matrOp
|
||||
memLayer.ML.emptySessionVal("matrOp");
|
||||
errorMess = "spostamento effettuato";
|
||||
}
|
||||
doUpdate();
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMess = "Attenzione manca matricola! prego selezionare prima di effettuare spostamento.";
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// anno selezionato
|
||||
/// </summary>
|
||||
public int yearSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = DateTime.Now.Year;
|
||||
if (memLayer.ML.isInSessionObject("yearSel"))
|
||||
{
|
||||
answ = memLayer.ML.IntSessionObj("yearSel");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// anno selezionato
|
||||
/// </summary>
|
||||
public string errorMess
|
||||
{
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("errorMess", value);
|
||||
|
||||
}
|
||||
doUpdate();
|
||||
}
|
||||
|
||||
public void doUpdate()
|
||||
@@ -169,16 +187,41 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
// this assumes your event object in Events collection has "color" field or property
|
||||
e.BackgroundColor = (string)e.DataItem["CssColor"];
|
||||
#if false
|
||||
string tUser = "<i class=\"fa fa-user\"></i>";
|
||||
e.Html = e.Html.Replace("6P", string.Format("{0}{0}{0}{0}{0}{0}", tUser));
|
||||
e.Html = e.Html.Replace("5P", string.Format("{0}{0}{0}{0}{0}", tUser));
|
||||
e.Html = e.Html.Replace("4P", string.Format("{0}{0}{0}{0}", tUser));
|
||||
e.Html = e.Html.Replace("3P", string.Format("{0}{0}{0}", tUser));
|
||||
e.Html = e.Html.Replace("2P", string.Format("{0}{0}", tUser));
|
||||
e.Html = e.Html.Replace("1P", string.Format("{0}", tUser));
|
||||
#endif
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
|
||||
protected void DayPilotCalendar1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e)
|
||||
public string matrOp
|
||||
{
|
||||
#if false
|
||||
Response.Redirect(string.Format("{0}?CodCliente={1}&Indir={2}&Data={3:yyyy-MM-dd}&IdxImpegno={4}", devicesAuthProxy.pagCorrente, qsVal("CodCliente"), qsVal("Indir"), qsVal("Data"), e.Id));
|
||||
#endif
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("matrOp");
|
||||
}
|
||||
}
|
||||
public string currDoc
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("currDoc");
|
||||
}
|
||||
}
|
||||
public string codSquadra
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj("elencoSquadre").Split(',')[0].ToString();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_giornataASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_giornataASSD" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_dettASSD.ascx" TagPrefix="uc1" TagName="mod_dettASSD" %>
|
||||
|
||||
|
||||
<asp:HiddenField runat="server" ID="hfDataRif" />
|
||||
<asp:HiddenField runat="server" ID="hfSlot" />
|
||||
<asp:Repeater ID="repShow" runat="server" DataSourceID="odsSquadre">
|
||||
<ItemTemplate>
|
||||
<div runat="server" id="divSquadra" style='<%# Eval("CssColor","background-color: {0};") %>'>
|
||||
<div style="font-size: 0.7em; line-height: 1.4;">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblSquadra"><%# Eval("DescrSquadra") %></asp:Label></b>
|
||||
</div>
|
||||
<div style="font-size: 0.6em; line-height: 1.1; margin: 1px;">
|
||||
<uc1:mod_dettASSD runat="server" ID="mod_dettASSD" DataRif='<%# Eval("Data") %>' Slot='<%# Eval("Slot") %>' CodSquadra='<%# Eval("CodSquadra") %>' editMode="false" />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
|
||||
<asp:Repeater ID="repEdit" runat="server" DataSourceID="odsSquadre">
|
||||
<ItemTemplate>
|
||||
<div class="flLeft" runat="server" id="divSquadra" style='<%# Eval("CssColor","min-width:250px; background-color: {0};") %>'>
|
||||
<div style="font-size: 0.7em; line-height: 1.4;">
|
||||
<b>
|
||||
<asp:Label runat="server" ID="lblSquadra"><%# Eval("DescrSquadra") %></asp:Label></b>
|
||||
</div>
|
||||
<div style="font-size: 0.6em; line-height: 1.1; margin: 1px;">
|
||||
<uc1:mod_dettASSD runat="server" ID="mod_dettASSD" DataRif='<%# Eval("Data") %>' Slot='<%# Eval("Slot") %>' CodSquadra='<%# Eval("CodSquadra") %>' editMode="true" Oneh_updReq="mod_dettASSD_eh_updReq" />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getSquadre_byDateSlot" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AssegnSlotSquadreDipTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="CodSquadra" Type="String" SessionField="elencoSquadre" DefaultValue="*" />
|
||||
<asp:ControlParameter ControlID="hfDataRif" Name="Data" PropertyName="Value" Type="DateTime" />
|
||||
<asp:ControlParameter ControlID="hfSlot" Name="Slot" PropertyName="Value" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_giornataASSD : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// data di riferimento scelta
|
||||
/// </summary>
|
||||
public DateTime DataRif
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToDateTime(hfDataRif.Value);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfDataRif.Value = value.ToShortDateString();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// slot impostato
|
||||
/// </summary>
|
||||
public string Slot
|
||||
{
|
||||
get
|
||||
{
|
||||
return hfSlot.Value;
|
||||
}
|
||||
set
|
||||
{
|
||||
hfSlot.Value = value;
|
||||
}
|
||||
}
|
||||
public bool editMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return repShow.Visible;
|
||||
|
||||
}
|
||||
set
|
||||
{
|
||||
repShow.Visible = !value;
|
||||
repEdit.Visible = value;
|
||||
repShow.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
protected void mod_dettASSD_eh_updReq(object sender, EventArgs e)
|
||||
{
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// forza update
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
// aggiorno repView...
|
||||
repEdit.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebSCR.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_giornataASSD {
|
||||
|
||||
/// <summary>
|
||||
/// hfDataRif control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfDataRif;
|
||||
|
||||
/// <summary>
|
||||
/// hfSlot control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HiddenField hfSlot;
|
||||
|
||||
/// <summary>
|
||||
/// repShow control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Repeater repShow;
|
||||
|
||||
/// <summary>
|
||||
/// repEdit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Repeater repEdit;
|
||||
|
||||
/// <summary>
|
||||
/// odsSquadre control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsSquadre;
|
||||
}
|
||||
}
|
||||
@@ -19,8 +19,11 @@
|
||||
<li><a href="Interventi" data-icon="mail" class='<%: liClass("Interventi") %>'>Gestione Interventi</a></li>
|
||||
<li><a href="Pianificazione" data-icon="calendar" class='<%: liClass("Pianificazione") %>'>Pianificazione</a></li>
|
||||
<li><a href="Setup" data-icon="gear" class='<%: liClass("Setup") %>'>Setup</a></li>
|
||||
<li>
|
||||
<asp:HyperLink runat="server" ID="hlLocalUploader" Text="Aggiornamento Anagrafiche" Target="_blank" CssClass="ui-mini ui-btn ui-shadow ui-corner-all ui-icon-action" /></li>
|
||||
</ul>
|
||||
<ul runat="server" id="ulSquadra" visible="false">
|
||||
<li><a href="IntSquadre" data-icon="mail" class='<%: liClass("IntSquadre") %>'>Gestione Interventi</a></li>
|
||||
<li><a href="Menu" data-icon="home" class='<%: liClass("Menu") %>'>Menu Squadre</a></li>
|
||||
<li><a href="Squadra" data-icon="navigation" class='<%: liClass("Squadra") %>'>Squadre/Consegne</a></li>
|
||||
</ul>
|
||||
|
||||
@@ -86,6 +86,7 @@ namespace WebSCR.WebUserControls
|
||||
// altri controlli
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
hlLocalUploader.NavigateUrl = memLayer.ML.confReadString("localUplURL");
|
||||
Timer1.Interval = memLayer.ML.confReadInt("intUpdatePagina_ms");
|
||||
Page.Title = Request.Url.ToString();
|
||||
// se ho cambiato pagina registro...)
|
||||
@@ -96,8 +97,7 @@ namespace WebSCR.WebUserControls
|
||||
// salvo apgina corrente
|
||||
devicesAuthProxy.pagCorrente = titolo; // devicesAuthProxy.getCurrPage(Request.Url);
|
||||
// update valori
|
||||
lblVers.Text = string.Format("v.{0}.{1}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Major, System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Minor);
|
||||
lblVers.ToolTip = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.MinorRevision.ToString();
|
||||
lblVers.Text = string.Format("v.{0}.{1}.{2}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Major, System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Minor, System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build);
|
||||
}
|
||||
// SOLO se la pagina NON E' "safe"...
|
||||
if (memLayer.ML.confReadString("PageNoIndex").IndexOf(titolo) < 0)
|
||||
@@ -134,7 +134,7 @@ namespace WebSCR.WebUserControls
|
||||
ulSquadra.Visible = false;
|
||||
ulMagazzino.Visible = true;
|
||||
}
|
||||
else if(devicesAuthProxy.pagCorrente == "Squadra" || devicesAuthProxy.pagCorrente == "Menu")
|
||||
else if(devicesAuthProxy.pagCorrente == "Squadra" || devicesAuthProxy.pagCorrente == "IntSquadre" || devicesAuthProxy.pagCorrente == "Menu")
|
||||
{
|
||||
ulStd.Visible = false;
|
||||
ulSquadra.Visible = true;
|
||||
|
||||
@@ -48,6 +48,15 @@ namespace WebSCR.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl ulStd;
|
||||
|
||||
/// <summary>
|
||||
/// hlLocalUploader control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlLocalUploader;
|
||||
|
||||
/// <summary>
|
||||
/// ulSquadra control.
|
||||
/// </summary>
|
||||
|
||||
@@ -1,48 +1,67 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_impegno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_impegno" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_selDataOra.ascx" TagPrefix="uc1" TagName="mod_selDataOra" %>
|
||||
|
||||
|
||||
<asp:FormView ID="frmViewImpegni" runat="server" DataKeyNames="IdxImpegno" DataSourceID="odsImpegni" Width="100%">
|
||||
|
||||
<asp:FormView ID="frmViewImpegni" runat="server" DataKeyNames="IdxImpegno" DataSourceID="odsImpegni" Width="100%" OnItemUpdating="frmViewImpegni_ItemUpdating">
|
||||
<EditItemTemplate>
|
||||
<div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<asp:DropDownList runat="server" ID="ddlSquadra" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Bind("CodSquadra") %>'></asp:DropDownList>
|
||||
</div>
|
||||
<div class="ui-block-b" style="text-align: right;">
|
||||
<asp:TextBox runat="server" ID="lblDataFrom" type="date" Text='<%# Eval("DataOra","{0:yyyyy-MM-dd}") %>' Enabled="false" />
|
||||
<div class="ui-block-b" style="text-align: center; background-color: #CDFFFF;">
|
||||
<label for="mod_selDataOra1">INIZIO EFFETTIVO</label>
|
||||
<uc1:mod_selDataOra runat="server" ID="mod_selDataOra1" dataOraSel='<%# Bind("DataOra") %>' />
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario" SelectedValue='<%# Eval("DataOra","{0:HH:mm:00}") %>' Enabled="false"></asp:DropDownList>
|
||||
<div class="ui-block-c text-center">
|
||||
<label for="lblOrarioCom">ORARIO COMUNICATO</label>
|
||||
<uc1:mod_selDataOra runat="server" ID="mod_selDataOraFrom" dataOraSel='<%# Bind("DataOraComFrom") %>' />
|
||||
<uc1:mod_selDataOra runat="server" ID="mod_selDataOraTo" dataOraSel='<%# Bind("DataOraComTo") %>' />
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtNumPers">num pers</label>
|
||||
<asp:TextBox runat="server" ID="txtNumPers" placeholder="Num Op" Text='<%# Bind("NumOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkRitUsato">rit. usato</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkRitUsato" runat="server" Checked='<%# Bind("RitUsato") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtPiano">piano cons.</label>
|
||||
<asp:TextBox runat="server" ID="txtPiano" placeholder="piano cons." Text='<%# Bind("PianoCons") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-block-c">
|
||||
<label for="chkAscensore">ascensore</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkAscensore" runat="server" Checked='<%# Bind("Ascensore") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<label for="chkIntAperto">aperto</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkIntAperto" runat="server" Checked='<%# Bind("IntAperto") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="lblMatr">Matr.</label>
|
||||
<asp:Label runat="server" ID="lblMatr" Text='<%# Eval("MatrOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<label for="ddlRitUs">rit. usato</label>
|
||||
<asp:DropDownList runat="server" ID="ddlRitUs" DataSourceID="odsRitUs" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("RitUsato") %>'></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsRitUs" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="RitUsato" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c" style="margin-top: 1.5em;">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoOrario" DataSourceID="odsTipoOrario" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("TipoOrario") %>'></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipoOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
@@ -99,6 +118,12 @@
|
||||
<asp:TextBox CssClass="flRight" ID="NoteGen" runat="server" Text='<%# Bind("NoteGen") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Note Squadra</label>
|
||||
<asp:Label CssClass="flRight" ID="Label1" runat="server" Text='<%# Eval("NoteInt") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; margin: auto;">
|
||||
@@ -114,40 +139,62 @@
|
||||
<asp:DropDownList runat="server" ID="ddlSquadra" DataSourceID="odsSquadre" DataTextField="DescrSquadra" DataValueField="CodSquadra" SelectedValue='<%# Eval("CodSquadra") %>'></asp:DropDownList>
|
||||
</div>
|
||||
<div class="ui-block-b" style="text-align: right;">
|
||||
<asp:TextBox runat="server" ID="txtDataFrom" type="date" Text='<%# Eval("DataOra","{0:yyyyy-MM-dd}") %>' />
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<asp:TextBox runat="server" ID="txtDataFrom" type="date" Text='<%# Eval("DataOra","{0:yyyy-MM-dd}") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario" SelectedValue='<%# Eval("DataOra","{0:HH:mm:00}") %>'></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario" SelectedValue='<%# Eval("DataOra","{0:HH:mm:00}") %>'></asp:DropDownList>
|
||||
<div class="ui-block-c text-center">
|
||||
<label for="lblOrarioCom"><%# checkOrario(Eval("DataOra"),Eval("DataOraComFrom"),Eval("DataOraComTo"), "ORARIO COMUNICATO", "<i class=\"Rosso fa fa-exclamation-triangle\"></i><i class=\"Rosso fa fa-clock-o\"></i>") %></label>
|
||||
<asp:Label runat="server" ID="lblOrarioCom" CssClass="tStrong"><%# string.Format("{0: dddd dd/MM/yy HH:mm} --> {1:HH:mm}", Eval("DataOraComFrom"),Eval("DataOraComTo")) %></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtNumPers">num pers</label>
|
||||
<asp:TextBox runat="server" ID="txtNumPers" placeholder="Num Op" Text='<%# Eval("NumOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="chkRitUsato">rit. usato</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkRitUsato" runat="server" Checked='<%# Eval("RitUsato") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<label for="txtPiano">piano cons.</label>
|
||||
<asp:TextBox runat="server" ID="txtPiano" placeholder="piano cons." Text='<%# Eval("PianoCons") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-block-c">
|
||||
<label for="chkAscensore">ascensore</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkAscensore" runat="server" Checked='<%# Eval("Ascensore") %>' />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<div class="ui-block-b">
|
||||
<div class="ui-grid-b">
|
||||
<div class="ui-block-a">
|
||||
<label for="chkIntAperto">aperto</label>
|
||||
<br />
|
||||
<asp:CheckBox ID="chkIntAperto" runat="server" Checked='<%# Eval("IntAperto") %>' />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<label for="lblMatr">Matr.</label>
|
||||
<asp:Label runat="server" ID="lblMatr" Text='<%# Eval("MatrOp") %>' />
|
||||
</div>
|
||||
<div class="ui-block-c">
|
||||
<label for="ddlRitUs">rit. usato</label>
|
||||
<asp:DropDownList runat="server" ID="ddlRitUs" DataSourceID="odsRitUs" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("RitUsato") %>'></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsRitUs" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:Parameter DefaultValue="Impegni" Name="TableName" Type="String" />
|
||||
<asp:Parameter DefaultValue="RitUsato" Name="FieldName" Type="String" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-block-c" style="margin-top: 1.5em;">
|
||||
<asp:DropDownList runat="server" ID="ddlTipoOrario" DataSourceID="odsTipoOrario" DataTextField="label" DataValueField="value" SelectedValue='<%# Bind("TipoOrario") %>'></asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipoOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getValid" TypeName="WebSCR_data.DS_UtilityTableAdapters.ListValuesTableAdapter">
|
||||
<SelectParameters>
|
||||
@@ -204,18 +251,27 @@
|
||||
<asp:Label CssClass="flRight" ID="NoteGenLabel" runat="server" Text='<%# Bind("NoteGen") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
<ul data-role="listview" data-inset="true">
|
||||
<li class="ui-field-contain">
|
||||
<label style="font-size: 0.9em;">Note Squadra</label>
|
||||
<asp:Label CssClass="flRight" ID="Label1" runat="server" Text='<%# Eval("NoteInt") %>' />
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: center; margin: auto;">
|
||||
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Modifica" Width="30em" Visible='<%# !disableEdit %>'/>
|
||||
|
||||
<asp:LinkButton ID="lbEdit" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="edit" CommandName="Edit" Text="Modifica" Width="20em" Visible='<%# !disableEdit && hasMatricola %>' />
|
||||
<asp:LinkButton ID="lbDelete" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete ui-btn-icon-right ui-btn-inline" runat="server" CausesValidation="False" CommandArgument="delete" CommandName="Delete" Text="ELIMINA" Width="20em" Visible='<%# !disableEdit && hasMatricola %>' OnClientClick="return confirm('Sei sicuro di voler eliminare il record?')" />
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:FormView>
|
||||
<asp:ObjectDataSource ID="odsImpegni" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByKey" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" UpdateMethod="updateQuery" OnUpdating="odsImpegni_Updating">
|
||||
<asp:ObjectDataSource ID="odsImpegni" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByKey" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.ImpegniTableAdapter" UpdateMethod="updateQuery" OnUpdating="odsImpegni_Updating" DeleteMethod="deleteQuery" OnDeleted="odsImpegni_Deleted" OnUpdated="odsImpegni_Updated">
|
||||
<SelectParameters>
|
||||
<asp:QueryStringParameter DefaultValue="0" Name="IdxImpegno" QueryStringField="IdxImpegno" Type="Int32" />
|
||||
</SelectParameters>
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
</DeleteParameters>
|
||||
<UpdateParameters>
|
||||
<asp:Parameter Name="Original_IdxImpegno" Type="Int32" />
|
||||
<asp:Parameter Name="TipoOrario" Type="String" />
|
||||
@@ -228,6 +284,9 @@
|
||||
<asp:Parameter Name="Ascensore" Type="Int32" />
|
||||
<asp:Parameter Name="PianoCons" Type="Int32" />
|
||||
<asp:Parameter Name="UserMod" Type="String" />
|
||||
<asp:Parameter Name="IntAperto" Type="Boolean" />
|
||||
<asp:Parameter Name="DataOraComFrom" Type="DateTime" />
|
||||
<asp:Parameter Name="DataOraComTo" Type="DateTime" />
|
||||
</UpdateParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter"></asp:ObjectDataSource>
|
||||
|
||||
@@ -11,6 +11,34 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_impegno : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// evento errore in update
|
||||
/// </summary>
|
||||
public event EventHandler eh_errUpd;
|
||||
/// <summary>
|
||||
/// sollevo evento selezione /deselezione
|
||||
/// </summary>
|
||||
protected void raiseEventErrUpd()
|
||||
{
|
||||
if (eh_errUpd != null)
|
||||
{
|
||||
eh_errUpd(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// evento update
|
||||
/// </summary>
|
||||
public event EventHandler eh_Upd;
|
||||
/// <summary>
|
||||
/// sollevo evento selezione /deselezione
|
||||
/// </summary>
|
||||
protected void raiseEventUpd()
|
||||
{
|
||||
if (eh_Upd != null)
|
||||
{
|
||||
eh_Upd(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
@@ -23,6 +51,33 @@ namespace WebSCR.WebUserControls
|
||||
/// </summary>
|
||||
public bool disableEdit { get; set; }
|
||||
/// <summary>
|
||||
/// verifica se ci sia matricola in sessione
|
||||
/// </summary>
|
||||
public bool hasMatricola
|
||||
{
|
||||
get
|
||||
{
|
||||
return matrOp != "";
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// matricola OP (x utente)
|
||||
/// </summary>
|
||||
public string matrOp
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("matrOp");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// impegno corrente
|
||||
/// </summary>
|
||||
public int idxImpegno
|
||||
@@ -72,6 +127,58 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
e.InputParameters["NoteGen"] = "";
|
||||
}
|
||||
if (e.InputParameters["MatrOp"] == null)
|
||||
{
|
||||
e.InputParameters["MatrOp"] = matrOp;
|
||||
}
|
||||
}
|
||||
|
||||
protected void odsImpegni_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
memLayer.ML.setSessionVal("errorMess", "Record Eliminato");
|
||||
Response.Redirect(SteamWare.devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
|
||||
protected void frmViewImpegni_ItemUpdating(object sender, FormViewUpdateEventArgs e)
|
||||
{
|
||||
// controllo, SE avesse selezionato ND NON permetto salvataggio e blocco
|
||||
if (e.NewValues["RitUsato"].ToString() == "-1")
|
||||
{
|
||||
e.Cancel = true;
|
||||
memLayer.ML.setSessionVal("errorMess", "ERRORE: va specificato Si/no per ritiro usato");
|
||||
raiseEventErrUpd();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// formatta messaggio orario controllando SE quello impostato sia fuori fascia promessa a cliente
|
||||
/// </summary>
|
||||
/// <param name="_dataOra"></param>
|
||||
/// <param name="_dataOraFrom"></param>
|
||||
/// <param name="_dataOraTo"></param>
|
||||
/// <param name="txtMain"></param>
|
||||
/// <param name="txtErr"></param>
|
||||
/// <returns></returns>
|
||||
public string checkOrario(object _dataOra, object _dataOraFrom, object _dataOraTo, object txtMain, object txtErr)
|
||||
{
|
||||
string answ = txtMain.ToString();
|
||||
try
|
||||
{
|
||||
DateTime DTI = Convert.ToDateTime(_dataOra);
|
||||
DateTime DTFrom = Convert.ToDateTime(_dataOraFrom);
|
||||
DateTime DTTo = Convert.ToDateTime(_dataOraTo);
|
||||
if (DTI.Subtract(DTFrom).TotalMinutes < 0 || DTI.Subtract(DTTo).TotalMinutes > 0)
|
||||
{
|
||||
answ = string.Format("{0}{1}{0}", txtErr, txtMain);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected void odsImpegni_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
raiseEventUpd();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,60 +10,79 @@
|
||||
<%@ Register Src="~/WebUserControls/mod_fileImpegno.ascx" TagPrefix="uc1" TagName="mod_fileImpegno" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_fileUpload.ascx" TagPrefix="uc1" TagName="mod_fileUpload" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_compSquadra.ascx" TagPrefix="uc1" TagName="mod_compSquadra" %>
|
||||
<script type="text/javascript">
|
||||
function bindEvents() {
|
||||
$("#<%=upnTestata.ClientID%>").trigger("create");
|
||||
}
|
||||
|
||||
bindEvents();
|
||||
|
||||
//Re-bind for callbacks
|
||||
var prm = Sys.WebForms.PageRequestManager.getInstance();
|
||||
prm.add_endRequest(function () {
|
||||
bindEvents();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="ui-grid-a ui-mini">
|
||||
<div class="ui-block-a ui-corner-all" style="text-align: center; margin: auto; font-size: 0.9em; border: 1px solid #CDCDCD; min-height: 80px; background-color: #EAEAFF;">
|
||||
<div class="tStrong">Ricerca per Documento</div>
|
||||
<uc1:mod_filtroZona runat="server" ID="mod_filtroZona" />
|
||||
</div>
|
||||
<div class="ui-block-b ui-corner-all" style="text-align: center; margin: auto; font-size: 0.9em; border: 1px solid #CDCDCD; min-height: 80px; background-color: #EAEAFF;">
|
||||
<div class="tStrong">Ricerca per Periodo</div>
|
||||
<uc1:mod_filtroPeriodo runat="server" ID="mod_filtroPeriodo" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-mini" style="width: 100%; margin: -2px -4px; text-align: center; margin: auto;">
|
||||
<div style="width: 90%; float: left; text-align: center; margin: auto;">
|
||||
<uc1:mod_selSquadre runat="server" ID="mod_selSquadre" />
|
||||
</div>
|
||||
<div style="width: 10%; float: right; text-align: center; margin: auto; min-width: 80px;">
|
||||
<asp:LinkButton runat="server" ID="lbLess" OnClick="lbLess_Click"><i class="fa fa-minus-square fa-2x"></i></asp:LinkButton>
|
||||
|
||||
<asp:LinkButton runat="server" ID="lbMore" OnClick="lbMore_Click"><i class="fa fa-plus-square fa-2x"></i></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-mini" style="width: 100%;">
|
||||
<div style="min-width: 85px; width: 20%; float: left;">
|
||||
<uc1:mod_dispPeriodo runat="server" ID="mod_dispPeriodo" />
|
||||
</div>
|
||||
<div style="width: 80%; float: right;">
|
||||
<uc1:mod_giornata runat="server" ID="mod_giornata" />
|
||||
<div style="width: 100%;">
|
||||
<div style="width: 75%; float: left;">
|
||||
<div data-role="listview" data-inset="true">
|
||||
<div class="ui-field-contain">
|
||||
<uc1:mod_impegno runat="server" ID="mod_impegno" />
|
||||
</div>
|
||||
<div class="ui-body">
|
||||
<uc1:mod_dettInt runat="server" ID="mod_dettInt" />
|
||||
</div>
|
||||
<asp:UpdatePanel runat="server" ID="upnTestata" UpdateMode="Always">
|
||||
<ContentTemplate>
|
||||
<div class="ui-grid-b ui-mini noShadows">
|
||||
<div class="ui-block-a ui-corner-all" style="text-align: center; margin: auto; font-size: 0.9em; border: 1px solid #CDCDCD; min-height: 80px; background-color: #EAEAFF;">
|
||||
<div class="tStrong">Ricerca per Documento</div>
|
||||
<uc1:mod_filtroZona runat="server" ID="mod_filtroZona" />
|
||||
</div>
|
||||
<div class="ui-block-b ui-corner-all" style="text-align: center; margin: auto; font-size: 0.9em; border: 1px solid #CDCDCD; min-height: 80px; background-color: #EAEAFF;">
|
||||
<div class="tStrong">Matr. Operatore</div>
|
||||
<div style="width: 80%; margin: auto;">
|
||||
<asp:TextBox runat="server" ID="txtMatrOp" AutoPostBack="true" OnTextChanged="txtMatrOp_TextChanged" />
|
||||
<asp:Label runat="server" ID="lblWarning" ForeColor="Red"></asp:Label>
|
||||
</div>
|
||||
</div>
|
||||
<div style="width: 25%; float: right;">
|
||||
<div data-role="listview" data-inset="true">
|
||||
<div class="ui-body">
|
||||
<uc1:mod_compSquadra runat="server" ID="mod_compSquadra" />
|
||||
<div class="ui-block-c ui-corner-all" style="text-align: center; margin: auto; font-size: 0.9em; border: 1px solid #CDCDCD; min-height: 80px; background-color: #EAEAFF;">
|
||||
<div class="tStrong">Ricerca per Periodo</div>
|
||||
<uc1:mod_filtroPeriodo runat="server" ID="mod_filtroPeriodo" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-mini" style="width: 100%; margin: -2px -4px; text-align: center;">
|
||||
<div style="width: 90%; float: left; text-align: center; margin: auto;">
|
||||
<uc1:mod_selSquadre runat="server" ID="mod_selSquadre" />
|
||||
</div>
|
||||
<div style="width: 10%; float: right; text-align: center; margin: auto; min-width: 80px;">
|
||||
<asp:LinkButton runat="server" ID="lbLess" OnClick="lbLess_Click"><i class="fa fa-minus-square fa-2x"></i></asp:LinkButton>
|
||||
|
||||
<asp:LinkButton runat="server" ID="lbMore" OnClick="lbMore_Click"><i class="fa fa-plus-square fa-2x"></i></asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-mini noShadows" style="width: 100%;">
|
||||
<div style="min-width: 85px; width: 20%; float: left;">
|
||||
<uc1:mod_dispPeriodo runat="server" ID="mod_dispPeriodo" />
|
||||
</div>
|
||||
<div style="width: 80%; float: right;">
|
||||
<uc1:mod_giornata runat="server" ID="mod_giornata" />
|
||||
<div style="width: 100%;">
|
||||
<div style="width: 75%; float: left;">
|
||||
<div data-role="listview" data-inset="true">
|
||||
<div class="ui-field-contain">
|
||||
<uc1:mod_impegno runat="server" ID="mod_impegno" />
|
||||
</div>
|
||||
<div class="ui-body">
|
||||
<uc1:mod_dettInt runat="server" ID="mod_dettInt" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-body">
|
||||
<uc1:mod_fileImpegno runat="server" ID="mod_fileImpegno" />
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" enableMod="false" />
|
||||
<div style="width: 25%; float: right;">
|
||||
<div data-role="listview" data-inset="true">
|
||||
<div class="ui-body">
|
||||
<uc1:mod_compSquadra runat="server" ID="mod_compSquadra" />
|
||||
</div>
|
||||
<div class="ui-body">
|
||||
<uc1:mod_fileImpegno runat="server" ID="mod_fileImpegno" />
|
||||
<uc1:mod_fileUpload runat="server" ID="mod_fileUpload" enableMod="false" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
</asp:UpdatePanel>
|
||||
|
||||
@@ -18,18 +18,39 @@ namespace WebSCR.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// fix visibilità...
|
||||
fixVisibility();
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// se c'è imposto matricola...
|
||||
txtMatrOp.Text = matrOp;
|
||||
// fix filtri...
|
||||
mod_filtroZona.Zona = memLayer.ML.confReadString("zonaDef");
|
||||
mod_filtroPeriodo.numGG = memLayer.ML.confReadInt("numGgDef");
|
||||
// reimposto selezione squadre...
|
||||
mod_selSquadre.selezionaDaSession();
|
||||
// refresh
|
||||
refreshDetail();
|
||||
}
|
||||
mod_filtroZona.eh_selIndir += mod_filtroZona_eh_selIndir;
|
||||
mod_filtroPeriodo.eh_selData += mod_filtroPeriodo_eh_selData;
|
||||
mod_dettInt.eh_update += mod_dettInt_eh_update;
|
||||
mod_impegno.eh_errUpd += Mod_impegno_eh_errUpd;
|
||||
mod_impegno.eh_Upd += Mod_impegno_eh_Upd;
|
||||
}
|
||||
|
||||
private void Mod_impegno_eh_Upd(object sender, EventArgs e)
|
||||
{
|
||||
// aggiorno visualizzazione dett a dx
|
||||
mod_compSquadra.doUpdate();
|
||||
mod_fileImpegno.doUpdate();
|
||||
mod_fileUpload.doUpdate();
|
||||
mod_dettInt.doUpdate();
|
||||
}
|
||||
|
||||
private void Mod_impegno_eh_errUpd(object sender, EventArgs e)
|
||||
{
|
||||
lblWarning.Text = errorMess;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -56,7 +77,6 @@ namespace WebSCR.WebUserControls
|
||||
catch
|
||||
{ }
|
||||
Response.Redirect(string.Format("{0}?Data={1:yyyy-MM-dd}", devicesAuthProxy.pagCorrente, adesso));
|
||||
//refreshDetail();
|
||||
}
|
||||
/// <summary>
|
||||
/// recupera valore querystring
|
||||
@@ -72,6 +92,9 @@ namespace WebSCR.WebUserControls
|
||||
/// </summary>
|
||||
private void fixVisibility()
|
||||
{
|
||||
// imposto (se c'è) errore
|
||||
lblWarning.Text = errorMess;
|
||||
|
||||
// imposto filtraggi zona...
|
||||
mod_dispPeriodo.Zona = mod_filtroZona.Zona;
|
||||
mod_filtroPeriodo.Visible = true;
|
||||
@@ -85,24 +108,248 @@ namespace WebSCR.WebUserControls
|
||||
mod_fileImpegno.Visible = false;
|
||||
mod_fileUpload.Visible = false;
|
||||
mod_compSquadra.Visible = false;
|
||||
if (qsVal("Data") != "")
|
||||
{
|
||||
if (qsVal("IdxImpegno") != "")
|
||||
{
|
||||
// salvo parametri in sessione
|
||||
saveSessParam();
|
||||
|
||||
mod_impegno.Visible = true;
|
||||
mod_dettInt.Visible = true;
|
||||
mod_fileImpegno.Visible = true;
|
||||
mod_fileUpload.Visible = true;
|
||||
mod_compSquadra.Visible = true;
|
||||
|
||||
|
||||
// 2016.01.20 controllo tipo azione: new/edit/...
|
||||
if (qsVal("Action") == "NEW")
|
||||
{
|
||||
// creo NUOVO impegno
|
||||
tryCreaImpegno();
|
||||
|
||||
// ricarico!!!
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
else if (qsVal("Action") == "MOVE")
|
||||
{
|
||||
// prova a spostare
|
||||
tryMove();
|
||||
|
||||
// ricarico!!!
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
else if (qsVal("Action") == "EDIT")
|
||||
{
|
||||
errorMess = "EDIT";
|
||||
lblWarning.Text = "EDIT";
|
||||
// controllo
|
||||
if (qsVal("Data") != "")
|
||||
{
|
||||
if (qsVal("IdxImpegno") != "")
|
||||
{
|
||||
// salvo parametri in sessione
|
||||
saveSessParam();
|
||||
|
||||
mod_impegno.Visible = true;
|
||||
mod_dettInt.Visible = true;
|
||||
mod_fileImpegno.Visible = true;
|
||||
mod_fileUpload.Visible = true;
|
||||
mod_compSquadra.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_giornata.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// mostro giornata
|
||||
mod_giornata.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void tryMove()
|
||||
{
|
||||
// verifico di avere MatrOP selezionata
|
||||
if (matrOp != "")
|
||||
{
|
||||
DateTime newStart = DateTime.Now;
|
||||
DateTime adesso = newStart;
|
||||
try
|
||||
{
|
||||
newStart = Convert.ToDateTime(qsVal("newStart"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
int idxImpegno = 0;
|
||||
try
|
||||
{
|
||||
idxImpegno = Convert.ToInt32(qsVal("IdxImpegno"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (newStart != adesso)
|
||||
{
|
||||
if (idxImpegno > 0)
|
||||
{
|
||||
DtProxy.man.taImp.updStart(idxImpegno, newStart, matrOp, DateTime.Now);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMess = "Prego indicare Matricola Operatore per procedere";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// anno selezionato
|
||||
/// </summary>
|
||||
public int yearSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = DateTime.Now.Year;
|
||||
if (memLayer.ML.isInSessionObject("yearSel"))
|
||||
{
|
||||
answ = memLayer.ML.IntSessionObj("yearSel");
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public string codSquadra
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("elencoSquadre").Split(',')[0].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public string matrOp
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("matrOp");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public string errorMess
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("errorMess");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("errorMess", value);
|
||||
}
|
||||
}
|
||||
public string currDoc
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = memLayer.ML.StringSessionObj("currDoc");
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// genera un nuovo impegno (oppure mostra warning...)
|
||||
/// </summary>
|
||||
private void tryCreaImpegno()
|
||||
{
|
||||
if (codSquadra != "")
|
||||
{
|
||||
// verifico di avere MatrOP selezionata
|
||||
if (matrOp != "")
|
||||
{
|
||||
// verifico di avere DOC selezionato...
|
||||
if (currDoc != "")
|
||||
{
|
||||
DateTime inizio = DateTime.Now;
|
||||
DateTime fine = inizio;
|
||||
DateTime adesso = inizio;
|
||||
try
|
||||
{
|
||||
inizio = Convert.ToDateTime(qsVal("start"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
try
|
||||
{
|
||||
fine = Convert.ToDateTime(qsVal("end"));
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
if (inizio != adesso)
|
||||
{
|
||||
int durataTot = Convert.ToInt32(fine.Subtract(inizio).TotalMinutes);
|
||||
// selezionato periodo, salvo evento inizio...
|
||||
DtProxy.man.taImp.insertQuery(inizio, durataTot, codSquadra, currDoc, yearSel, matrOp, DateTime.Now);
|
||||
// consumo il doc selezionato e quindi rimuovo da sessione...
|
||||
memLayer.ML.emptySessionVal("currDoc");
|
||||
// matricola operatore: eventualmente qui inserire condizioni scadenza avanzate...
|
||||
if (memLayer.ML.confReadBool("svuotaMatrOp"))
|
||||
{
|
||||
// rimuovo matrOp
|
||||
memLayer.ML.emptySessionVal("matrOp");
|
||||
}
|
||||
errorMess = "...";
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMess= "Prego indicare inizio attività per procedere";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMess = "Prego indicare documento OC/DC per procedere";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mod_giornata.Visible = true;
|
||||
errorMess = "Prego indicare Matricola Operatore per procedere";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errorMess = "Prego selezionare UNA squadra per procedere";
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// reset dati documento e matricola (se richiesto)
|
||||
/// </summary>
|
||||
private void resetDocMatr()
|
||||
{
|
||||
if (needRefresh)
|
||||
{
|
||||
// se è vuoto doc resetto...
|
||||
if (!memLayer.ML.isInSessionObject("currDoc"))
|
||||
{
|
||||
mod_filtroZona.doUpdate();
|
||||
}
|
||||
|
||||
// update matrOp...
|
||||
txtMatrOp.Text = memLayer.ML.StringSessionObj("matrOp");
|
||||
needRefresh = false;
|
||||
//txtMatrOp.DataBind();
|
||||
}
|
||||
}
|
||||
|
||||
private void saveSessParam()
|
||||
@@ -131,6 +378,7 @@ namespace WebSCR.WebUserControls
|
||||
memLayer.ML.setSessionVal("CodSquadra", CodSquadra);
|
||||
memLayer.ML.setSessionVal("DataImp", DataImp);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// nuovo record impegno...
|
||||
@@ -148,7 +396,10 @@ namespace WebSCR.WebUserControls
|
||||
/// <param name="e"></param>
|
||||
void mod_filtroZona_eh_selIndir(object sender, EventArgs e)
|
||||
{
|
||||
errorMess = "Selezionato Documento";
|
||||
lblWarning.Text = errorMess;
|
||||
refreshDetail();
|
||||
mod_giornata.doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// refresh detail
|
||||
@@ -163,6 +414,8 @@ namespace WebSCR.WebUserControls
|
||||
{
|
||||
//adesso = Convert.ToDateTime(memLayer.ML.StringSessionObj("DataRif"));
|
||||
adesso = Convert.ToDateTime(mod_filtroPeriodo.dataFrom);
|
||||
// salvo!!!
|
||||
memLayer.ML.setSessionVal("DataRif", adesso);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
@@ -174,8 +427,27 @@ namespace WebSCR.WebUserControls
|
||||
mod_dispPeriodo.doUpdate();
|
||||
mod_impegno.doUpdate();
|
||||
mod_dettInt.doUpdate();
|
||||
|
||||
#if false
|
||||
// check reset data
|
||||
resetDocMatr();
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// richiesta refresh COMPLETO della pagina
|
||||
/// </summary>
|
||||
public bool needRefresh
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.BoolSessionObj("needRefresh");
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal("needRefresh", value);
|
||||
}
|
||||
}
|
||||
protected void lbLess_Click(object sender, EventArgs e)
|
||||
{
|
||||
int days = mod_giornata.day2show;
|
||||
@@ -197,5 +469,36 @@ namespace WebSCR.WebUserControls
|
||||
Response.Redirect(devicesAuthProxy.pagCorrente);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// inserita matricola operatore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void txtMatrOp_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (txtMatrOp.Text.Trim() != "")
|
||||
{
|
||||
memLayer.ML.setSessionVal("matrOp", txtMatrOp.Text.Trim());
|
||||
errorMess = "Selezionato Operatore";
|
||||
lblWarning.Text = errorMess;
|
||||
}
|
||||
else
|
||||
{
|
||||
memLayer.ML.emptySessionVal("matrOp");
|
||||
lblWarning.Text = "";
|
||||
}
|
||||
mod_giornata.doUpdate();
|
||||
mod_impegno.doUpdate();
|
||||
}
|
||||
|
||||
protected override void OnUnload(EventArgs e)
|
||||
{
|
||||
base.OnUnload(e);
|
||||
|
||||
// check reset data
|
||||
resetDocMatr();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,15 @@ namespace WebSCR.WebUserControls {
|
||||
|
||||
public partial class mod_pianificazione {
|
||||
|
||||
/// <summary>
|
||||
/// upnTestata control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.UpdatePanel upnTestata;
|
||||
|
||||
/// <summary>
|
||||
/// mod_filtroZona control.
|
||||
/// </summary>
|
||||
@@ -21,6 +30,24 @@ namespace WebSCR.WebUserControls {
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_filtroZona mod_filtroZona;
|
||||
|
||||
/// <summary>
|
||||
/// txtMatrOp control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtMatrOp;
|
||||
|
||||
/// <summary>
|
||||
/// lblWarning control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||
|
||||
/// <summary>
|
||||
/// mod_filtroPeriodo control.
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_schemaSettASSD.ascx.cs" Inherits="WebSCR.WebUserControls.mod_schemaSettASSD" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_giornataASSD.ascx" TagPrefix="uc1" TagName="mod_giornataASSD" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_selData.ascx" TagPrefix="uc1" TagName="mod_selData" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_selSquadre.ascx" TagPrefix="uc1" TagName="mod_selSquadre" %>
|
||||
|
||||
<div class="ui-grid-b ui-mini noShadows">
|
||||
<div class="ui-block-a ui-corner-all">
|
||||
<asp:LinkButton runat="server" ID="lbtClonaPrev" Width="90%" CssClass="ui-btn ui-btn-b ui-shadow ui-corner-all ui-icon-star ui-btn-icon-right ui-btn-inline" OnClick="lbtClonaPrev_Click" OnClientClick="return confirm('Sei sicuro di voler clonare i dati dalla settimana precedente? questo richiede di eliminare i dati eventualmente presenti per la settimana corrente.')">CLONA SETT PREC</asp:LinkButton>
|
||||
</div>
|
||||
<div class="ui-block-b ui-corner-all">
|
||||
<uc1:mod_selData runat="server" ID="mod_selData" />
|
||||
</div>
|
||||
<div class="ui-block-c ui-corner-all">
|
||||
<asp:LinkButton runat="server" ID="lbtInitWeek" Width="90%" CssClass="ui-btn ui-btn-b ui-shadow ui-corner-all ui-icon-plus ui-btn-icon-right ui-btn-inline" OnClick="lbtInitWeek_Click" OnClientClick="return confirm('Sei sicuro di voler inizializzare la settimana? Saranno inseriti come disponibili tutti gli operatori non ancora preallocati.')">INIZIALIZZA SETT</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-grid-solo ui-mini noShadows">
|
||||
<uc1:mod_selSquadre runat="server" ID="mod_selSquadre" />
|
||||
</div>
|
||||
<div class="ui-grid-solo" style="margin: 10px;">
|
||||
<asp:Repeater ID="repWeek" runat="server" DataSourceID="odsSettimana">
|
||||
<ItemTemplate>
|
||||
<div class="flLeft" style="min-width: 150px; width: 13.9%; margin: 1px; padding: 1px; border: 1px solid #696969;">
|
||||
<div class="ui-bar ui-bar-b">
|
||||
<asp:Label runat="server" ID="lblTestata" Text='<%# Eval("Data", "{0:ddd dd/MM}") %>' />
|
||||
</div>
|
||||
<div style="min-height: 250px;">
|
||||
<asp:LinkButton runat="server" ID="lbtEditMat" CssClass="ui-btn ui-mini ui-btn-c ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-right ui-btn-inline" Width="70%" Font-Size="0.6em" ToolTip="Edit" CommandArgument='<%# Eval("Data") %>' OnClick="lbtEditMat_Click">MATTINA</asp:LinkButton>
|
||||
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD" DataRif='<%# Eval("Data") %>' Slot="MAT" editMode="false" />
|
||||
</div>
|
||||
<hr />
|
||||
<div style="min-height: 250px;">
|
||||
<asp:LinkButton runat="server" ID="lbtEditPom" CssClass="ui-btn ui-mini ui-btn-c ui-shadow ui-corner-all ui-icon-edit ui-btn-icon-right ui-btn-inline" Width="70%" Font-Size="0.6em" ToolTip="Edit" CommandArgument='<%# Eval("Data") %>' OnClick="lbtEditPom_Click">POMERIGGIO</asp:LinkButton>
|
||||
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD1" DataRif='<%# Eval("Data") %>' Slot="POM" editMode="false" />
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:Repeater>
|
||||
<asp:ObjectDataSource ID="odsSettimana" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_UtilityTableAdapters.SettimanaTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:SessionParameter Name="Data" SessionField="DataRif" Type="DateTime" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<div runat="server" id="divEdit">
|
||||
<div class="ui-grid-a noShadows" style="font-size: 1.3em;">
|
||||
<div class="ui-block-a ui-corner-all">
|
||||
<h3>
|
||||
<asp:Label runat="server" ID="lblData" />
|
||||
-
|
||||
<asp:Label runat="server" ID="lblSlot" /></h3>
|
||||
</div>
|
||||
<div class="ui-block-b ui-corner-all">
|
||||
<asp:LinkButton ID="lbCancel" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-refresh ui-btn-icon-right ui-btn-inline" runat="server" Width="20em" OnClick="lbCancel_Click">Torna a schema SETTIMANALE</asp:LinkButton>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-size: 1.2em;">
|
||||
<uc1:mod_giornataASSD runat="server" ID="mod_giornataASSD" editMode="true" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,91 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using WebSCR_data;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_schemaSettASSD : System.Web.UI.UserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
fixVisibility(false);
|
||||
// reimposto selezione squadre...
|
||||
mod_selSquadre.selezionaDaSession();
|
||||
}
|
||||
//aggancio modifica data e salvo...
|
||||
mod_selData.eh_update += Mod_selData_eh_update;
|
||||
}
|
||||
/// <summary>
|
||||
/// determina visibilità controlli
|
||||
/// </summary>
|
||||
/// <param name="showDet"></param>
|
||||
private void fixVisibility(bool showDet)
|
||||
{
|
||||
repWeek.Visible = !showDet;
|
||||
divEdit.Visible = showDet;
|
||||
}
|
||||
|
||||
private void Mod_selData_eh_update(object sender, EventArgs e)
|
||||
{
|
||||
repWeek.DataBind();
|
||||
}
|
||||
|
||||
protected void lbtClonaPrev_Click(object sender, EventArgs e)
|
||||
{
|
||||
// chiamo stored x clonare da sett prec
|
||||
DtProxy.man.taASSD.clonePrevWeek(mod_selData.dateSel);
|
||||
// refresh
|
||||
repWeek.DataBind();
|
||||
mod_giornataASSD.doUpdate();
|
||||
}
|
||||
|
||||
protected void lbtInitWeek_Click(object sender, EventArgs e)
|
||||
{
|
||||
// chiamo stored x inserire missing
|
||||
DtProxy.man.taASSD.insMiss(mod_selData.dateSel);
|
||||
|
||||
// refresh
|
||||
repWeek.DataBind();
|
||||
mod_giornataASSD.doUpdate();
|
||||
}
|
||||
|
||||
protected void lbtEditMat_Click(object sender, EventArgs e)
|
||||
{
|
||||
// sistemo dati x dettaglio giorno
|
||||
LinkButton lbt = (LinkButton)sender;
|
||||
DateTime data = Convert.ToDateTime(lbt.CommandArgument);
|
||||
string slot = "MAT";
|
||||
showEditMode(data, slot);
|
||||
}
|
||||
|
||||
private void showEditMode(DateTime data, string slot)
|
||||
{
|
||||
mod_giornataASSD.DataRif = data;
|
||||
mod_giornataASSD.Slot = slot;
|
||||
lblData.Text = data.ToString("ddd dd/MM");
|
||||
lblSlot.Text = slot;
|
||||
// update visualizzazione
|
||||
fixVisibility(true);
|
||||
}
|
||||
|
||||
protected void lbtEditPom_Click(object sender, EventArgs e)
|
||||
{
|
||||
// sistemo dati x dettaglio giorno
|
||||
LinkButton lbt = (LinkButton)sender;
|
||||
DateTime data = Convert.ToDateTime(lbt.CommandArgument);
|
||||
string slot = "POM";
|
||||
showEditMode(data, slot);
|
||||
}
|
||||
|
||||
protected void lbCancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
fixVisibility(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebSCR.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_schemaSettASSD {
|
||||
|
||||
/// <summary>
|
||||
/// lbtClonaPrev control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtClonaPrev;
|
||||
|
||||
/// <summary>
|
||||
/// mod_selData control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_selData mod_selData;
|
||||
|
||||
/// <summary>
|
||||
/// lbtInitWeek control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtInitWeek;
|
||||
|
||||
/// <summary>
|
||||
/// mod_selSquadre control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_selSquadre mod_selSquadre;
|
||||
|
||||
/// <summary>
|
||||
/// repWeek control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Repeater repWeek;
|
||||
|
||||
/// <summary>
|
||||
/// odsSettimana control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsSettimana;
|
||||
|
||||
/// <summary>
|
||||
/// divEdit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEdit;
|
||||
|
||||
/// <summary>
|
||||
/// lblData control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblData;
|
||||
|
||||
/// <summary>
|
||||
/// lblSlot control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblSlot;
|
||||
|
||||
/// <summary>
|
||||
/// lbCancel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbCancel;
|
||||
|
||||
/// <summary>
|
||||
/// mod_giornataASSD control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::WebSCR.WebUserControls.mod_giornataASSD mod_giornataASSD;
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selData.ascx.cs" Inherits="WebSCR.WebUserControls.mod_selData" %>
|
||||
|
||||
|
||||
<div style="text-align: center; margin: auto; padding: 0em 5em;">
|
||||
<div style="text-align: center; margin: auto; padding: 0 5em;">
|
||||
<asp:TextBox runat="server" ID="txtDataRif" type="date" AutoPostBack="True" OnTextChanged="txtDataRif_TextChanged" />
|
||||
</div>
|
||||
|
||||
@@ -101,9 +101,24 @@ namespace WebSCR.WebUserControls
|
||||
answ = Convert.ToDateTime(memLayer.ML.getCookieVal("DataRif"));
|
||||
}
|
||||
catch
|
||||
{
|
||||
if (txtDataRif.Text != "") answ = Convert.ToDateTime(txtDataRif.Text);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
public DateTime dataTxt
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = dateSel;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToDateTime(txtDataRif.Text);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selDataOra.ascx.cs" Inherits="WebSCR.WebUserControls.mod_selDataOra" %>
|
||||
|
||||
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<asp:TextBox runat="server" ID="txtDataSel" type="date" TextMode="Date" />
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
<asp:DropDownList runat="server" ID="ddlOrario" DataSourceID="odsOrario" DataTextField="Orario" DataValueField="Orario"></asp:DropDownList>
|
||||
</div>
|
||||
</div>
|
||||
<asp:ObjectDataSource ID="odsOrario" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="WebSCR_data.DS_UtilityTableAdapters.GiornoTipoTableAdapter"></asp:ObjectDataSource>
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
using SteamWare;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace WebSCR.WebUserControls
|
||||
{
|
||||
public partial class mod_selDataOra : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// selezionata NUOVA data
|
||||
/// </summary>
|
||||
public event EventHandler eh_update;
|
||||
/// <summary>
|
||||
/// solleva evento selezione data
|
||||
/// </summary>
|
||||
protected void reportEvent()
|
||||
{
|
||||
// evento!
|
||||
if (eh_update != null)
|
||||
{
|
||||
eh_update(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// stringa UID univoca
|
||||
/// </summary>
|
||||
public string uid
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.UniqueID.Replace("$", "_").Replace("-", "_");
|
||||
}
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// data-ora selezionata
|
||||
/// </summary>
|
||||
public DateTime dataOraSel
|
||||
{
|
||||
get
|
||||
{
|
||||
DateTime answ = DateTime.Now;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToDateTime(txtDataSel.Text.Trim());
|
||||
// aggiungo ora
|
||||
DateTime oraSel = Convert.ToDateTime(ddlOrario.SelectedValue);
|
||||
double ore = oraSel.Hour + Convert.ToDouble(oraSel.Minute) / 60;
|
||||
answ = answ.AddHours(ore);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
set
|
||||
{
|
||||
ddlOrario.DataBind();
|
||||
try
|
||||
{
|
||||
txtDataSel.Text = string.Format("{0:yyyy-MM-dd}", value);
|
||||
ddlOrario.SelectedValue = string.Format("{0:HH:mm:00}", value);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
}
|
||||
}
|
||||
public bool showData
|
||||
{
|
||||
get
|
||||
{
|
||||
return txtDataSel.Visible;
|
||||
}
|
||||
set
|
||||
{
|
||||
txtDataSel.Visible = value;
|
||||
}
|
||||
}
|
||||
public bool showOra
|
||||
{
|
||||
get
|
||||
{
|
||||
return ddlOrario.Visible;
|
||||
}
|
||||
set
|
||||
{
|
||||
ddlOrario.Visible = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace WebSCR.WebUserControls {
|
||||
|
||||
|
||||
public partial class mod_selDataOra {
|
||||
|
||||
/// <summary>
|
||||
/// txtDataSel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox txtDataSel;
|
||||
|
||||
/// <summary>
|
||||
/// ddlOrario control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.DropDownList ddlOrario;
|
||||
|
||||
/// <summary>
|
||||
/// odsOrario control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ObjectDataSource odsOrario;
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ namespace WebSCR.WebUserControls
|
||||
public partial class mod_selSquadre : System.Web.UI.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// elenco squadre slezionate
|
||||
/// elenco squadre selezionate
|
||||
/// </summary>
|
||||
public List<ListItem> selected;
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -69,6 +69,8 @@ namespace WebSCR.WebUserControls
|
||||
}
|
||||
elencoSquadre = string.Join(",", selected);
|
||||
memLayer.ML.setSessionVal("elencoSquadre", elencoSquadre);
|
||||
memLayer.ML.setSessionVal("errorMess", "Sel.Squadra");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -602,7 +602,7 @@
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.setupConnectionStringBase">
|
||||
<summary>
|
||||
effettua setup dei connection strings da web.config delal singola applicazione
|
||||
effettua setup dei connection strings da web.config della singola applicazione
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.authProxy.#ctor">
|
||||
@@ -1430,12 +1430,19 @@
|
||||
</member>
|
||||
<member name="M:SteamWare.devicesAuthProxy.numAuth(System.String,System.String)">
|
||||
<summary>
|
||||
Restitusice il numero di attivazioni rimaste x utente dato email e key
|
||||
Restituisce il numero di attivazioni rimaste x utente dato email e key
|
||||
</summary>
|
||||
<param name="UserAuthKey"></param>
|
||||
<param name="email"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.devicesAuthProxy.numAuth(System.String)">
|
||||
<summary>
|
||||
Restituisce il numero di attivazioni rimaste x utente dato email
|
||||
</summary>
|
||||
<param name="email"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.devicesAuthProxy.clearAllUserData">
|
||||
<summary>
|
||||
cancella da session l'utente
|
||||
@@ -3348,6 +3355,13 @@
|
||||
forza lo svuotamento delel tabelle indicate come in cache...
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.memLayer.imgUrl(System.String)">
|
||||
<summary>
|
||||
Formattazione stringa URL immagini con gestione "base url"
|
||||
</summary>
|
||||
<param name="urlRelPath"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:SteamWare.PasswordHash">
|
||||
<summary>
|
||||
Salted password hashing with PBKDF2-SHA1.
|
||||
@@ -3720,12 +3734,12 @@
|
||||
</member>
|
||||
<member name="P:SteamWare.UserControl.isWriteEnabled">
|
||||
<summary>
|
||||
determina se l'utente sia abilitato a scrivere nelal apgina corrente (quindi modificare e cancellare...)
|
||||
determina se l'utente sia abilitato a scrivere nella pagina corrente (quindi modificare e cancellare...)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.UserControl.isPageEnabled">
|
||||
<summary>
|
||||
determina se l'utente sia abilitato alla pagina corrente (di base visualizzaizone...)
|
||||
determina se l'utente sia abilitato alla pagina corrente (di base visualizzazione...)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:SteamWare.UserControl.titolo">
|
||||
@@ -3733,6 +3747,13 @@
|
||||
titolo pagina
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.UserControl.grView_RowDataBound(System.Object,System.Web.UI.WebControls.GridViewRowEventArgs)">
|
||||
<summary>
|
||||
evento standard agganciabile da grView x aggiunta doppio click e singolo click (x edit e select)
|
||||
</summary>
|
||||
<param name="sender"></param>
|
||||
<param name="e"></param>
|
||||
</member>
|
||||
<member name="T:SteamWare.user_std">
|
||||
<summary>
|
||||
classe gestione utente: auth e permission/ruoli - versione GENERICA
|
||||
@@ -4660,5 +4681,24 @@
|
||||
<param name="originalVal"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:SteamWare.TempiCiclo">
|
||||
<summary>
|
||||
gestione helper tempi ciclo
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SteamWare.TempiCiclo.minSec(System.Object)">
|
||||
<summary>
|
||||
formatta in minuti/sec partendo da min.cent
|
||||
</summary>
|
||||
<param name="minCent"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:SteamWare.TempiCiclo.minCent2Sec(System.Decimal)">
|
||||
<summary>
|
||||
conversione da tempo minuti centesimali a minuti/secondi
|
||||
</summary>
|
||||
<param name="valore"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
</members>
|
||||
</doc>
|
||||
|
||||
Binary file not shown.
@@ -13,7 +13,9 @@
|
||||
<add key="intUpdatePagina_ms" value="240000" />
|
||||
<add key="zonaDef" value="Z00" />
|
||||
<add key="numGgDef" value="20" />
|
||||
<add key="minCookieSquadra" value="3" />
|
||||
<add key="minCookieSquadra" value="5" />
|
||||
<add key="svuotaMatrOp" value="true" />
|
||||
<add key="svuotaMatrOpMove" value="true" />
|
||||
<!--nome sw e versioni-->
|
||||
<add key="CodModulo" value="WebSCR" />
|
||||
<add key="AutoAuth" value="true" />
|
||||
@@ -40,23 +42,23 @@
|
||||
<add key="day2show" value="5" />
|
||||
<add key="minDays" value="1" />
|
||||
<add key="maxDays" value="10" />
|
||||
<!--gestione aggiunta task-->
|
||||
<add key ="minTempoInterv" value="10" />
|
||||
<!--file allegati documenti-->
|
||||
<add key="fileUploadFolder" value="~/DocUploader"/>
|
||||
<add key="fileUploadFolder" value="~/DocUploader" />
|
||||
<!--gestione squadre-->
|
||||
<add key="NumGg" value="5" />
|
||||
<!--gestione sw uploader locale-->
|
||||
<add key="localUplURL" value="http://IIS02/" />
|
||||
<!--stringhe connessione-->
|
||||
<add key="WebSCRConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="WebSCRFilesConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="WebSCRConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="WebSCRFilesConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
<add key="DevicesAuthConnectionString" value="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer;" />
|
||||
</appSettings>
|
||||
<connectionStrings>
|
||||
<!--
|
||||
<add name="SteamWare.Properties.Settings.WebSCRConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />-->
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCRConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCRConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="WebSCR_data.Properties.Settings.WebSCR_filesConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR_files;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
<add name="SteamWare.Properties.Settings.DS_AuthConnectionString" connectionString="Data Source=SQL-STEAM\SQL2012;Initial Catalog=WebSCR;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>
|
||||
<!--
|
||||
For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||
@@ -67,6 +69,7 @@
|
||||
</system.Web>
|
||||
-->
|
||||
<system.web>
|
||||
<globalization culture="it-it" />
|
||||
<compilation debug="true" targetFramework="4.5">
|
||||
<assemblies>
|
||||
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
|
||||
@@ -91,7 +94,7 @@
|
||||
<error statusCode="403" redirect="NoAccess.htm" />
|
||||
<error statusCode="404" redirect="FileNotFound.htm" />
|
||||
</customErrors>-->
|
||||
<customErrors mode="Off"/>
|
||||
<customErrors mode="Off" />
|
||||
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
|
||||
<namespaces>
|
||||
<add namespace="System.Web.Optimization" />
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user