Generazione (esempio) di evento (da completare con task...) con selezione squadre

This commit is contained in:
Samuele E. Locatelli
2015-04-29 11:58:08 +02:00
parent 0c58a9705d
commit 3338e756d3
35 changed files with 2607 additions and 58 deletions
+1 -1
View File
@@ -9,4 +9,4 @@ VersGen\obj\*
# WebSC
#--------------------------------------------
WebSCR\obj\*
WebSCR/logs/*.txt
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+148
View File
@@ -18,3 +18,151 @@
border: 1px solid #707070;
color: #333333;
}
/* calendar white */
.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, #eeeeee 0%, #dddddd);
background: -webkit-gradient(linear, left top, left bottom, from(#eeeeee), to(#dddddd));
filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#eeeeee", endColorStr="#dddddd");
}
.calendar_white_cornerright_inner {
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-bottom: 1px solid #999;
}
.calendar_white_rowheader_inner {
font-size: 16pt;
text-align: right;
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
.calendar_white_corner_inner {
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
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: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
.calendar_white_cell_inner {
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
background-color: #ffffff;
}
.calendar_white_alldayheader_inner {
text-align: center;
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
.calendar_white_message {
opacity: 0.9;
filter: alpha(opacity=90);
padding: 10px;
color: #ffffff;
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, #ffffff 0%, #eeeeee);
background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));
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: 0px 2px 3px rgba(0, 0, 0, 0.3), inset 0px 0px 2px rgba(255, 255, 255, 0.8);
-webkit-box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3), inset 0px 0px 2px rgba(255, 255, 255, 0.8);
box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3), inset 0px 0px 2px rgba(255, 255, 255, 0.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: 0px;
bottom: 2px;
left: 2px;
right: 0px;
padding: 2px;
font-size: 12px;
}
.calendar_white_shadow_inner {
background-color: #666666;
opacity: 0.5;
filter: alpha(opacity=50);
height: 100%;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
+221
View File
@@ -43,4 +43,225 @@
background-color: @grigioChiaro;
border: 1px solid @grigioScuro;
color: @testoScuro;
}
/* calendar white */
.calendar_white_main
{
border: 1px solid #999;
}
.calendar_white_colheader
{
}
.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: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-bottom: 1px solid #999;
}
.calendar_white_rowheader_inner
{
font-size: 16pt;
text-align: right;
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
.calendar_white_corner_inner
{
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
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: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
.calendar_white_cell_inner
{
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
background-color: #ffffff;
}
.calendar_white_alldayheader_inner
{
text-align: center;
position: absolute;
top: 0px;
left: 0px;
bottom: 0px;
right: 0px;
border-right: 1px solid #999;
border-bottom: 1px solid #999;
}
.calendar_white_message
{
opacity: 0.9;
filter: alpha(opacity=90);
padding: 10px;
color: #ffffff;
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,
#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;
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-box-shadow:
0px 2px 3px rgba(000,000,000,0.3),
inset 0px 0px 2px rgba(255,255,255,0.8);
-webkit-box-shadow:
0px 2px 3px rgba(000,000,000,0.3),
inset 0px 0px 2px rgba(255,255,255,0.8);
box-shadow:
0px 2px 3px rgba(000,000,000,0.3),
inset 0px 0px 2px rgba(255,255,255,0.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: 0px;
bottom: 2px;
left: 2px;
right: 0px;
padding: 2px;
font-size: 12px;
}
.calendar_white_shadow_inner
{
background-color: #666666;
opacity: 0.5;
filter: alpha(opacity=50);
height: 100%;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
+1 -1
View File
@@ -1 +1 @@
.greenBox{background-color:#c3ffc3;border:1px solid #00a400;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}
.greenBox{background-color:#c3ffc3;border:1px solid #00a400;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}.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:12px}.calendar_white_shadow_inner{background-color:#666;opacity:.5;filter:alpha(opacity=50);height:100%;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}
+49 -45
View File
@@ -1,51 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/>
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
</sectionGroup>
</configSections>
<appSettings>
<!--parametri base-->
<add key="intUpdatePagina_ms" value="240000" />
<add key="numGgDef" value="30" />
<add key="intUpdatePagina_ms" value="240000"/>
<add key="numGgDef" value="30"/>
<!--nome sw e versioni-->
<add key="CodModulo" value="WebSCR" />
<add key="AutoAuth" value="true" />
<add key="baseUrl" value="http://iis02/WebSCR" />
<add key="CodModulo" value="WebSCR"/>
<add key="AutoAuth" value="true"/>
<add key="baseUrl" value="http://iis02/WebSCR"/>
<!--Logging-->
<add key="_logDir" value="~/logs/" />
<add key="doShrinkFolder" value="true" />
<add key="_logLevel" value="6" />
<add key="_logMaxMb" value="30" />
<add key="_logDir" value="~/logs/"/>
<add key="doShrinkFolder" value="true"/>
<add key="_logLevel" value="6"/>
<add key="_logMaxMb" value="30"/>
<!--Gestione email-->
<add key="_fromEmail" value="steamwarebot@gmail.com" />
<add key="_smtpCli" value="smtp.gmail.com" />
<add key="_emailUser" value="steamwarebot@gmail.com" />
<add key="_emailPwd" value="drmfsls16" />
<add key="_enableSSL" value="true" />
<add key="_fromEmail" value="steamwarebot@gmail.com"/>
<add key="_smtpCli" value="smtp.gmail.com"/>
<add key="_emailUser" value="steamwarebot@gmail.com"/>
<add key="_emailPwd" value="drmfsls16"/>
<add key="_enableSSL" value="true"/>
<!--gestione auth dispositivi-->
<add key="AuthCookieName" value="AuthDeviceWebSCR" />
<add key="defaultDomain" value="WebSCR" />
<add key="enablePlain" value="true" />
<add key="urlGestUtenti" value="UserAdmin" />
<add key="adminEmail" value="samuele@steamware.net" />
<add key="PageNoIndex" value="UserAdmin#Test" />
<add key="AuthCookieName" value="AuthDeviceWebSCR"/>
<add key="defaultDomain" value="WebSCR"/>
<add key="enablePlain" value="true"/>
<add key="urlGestUtenti" value="UserAdmin"/>
<add key="adminEmail" value="samuele@steamware.net"/>
<add key="PageNoIndex" value="UserAdmin#Test"/>
<!--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_files;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=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_files;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;"/>
</appSettings>
<connectionStrings>
<!--<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.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="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="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"/>
</connectionStrings>
<!--
For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
@@ -56,13 +56,17 @@
</system.Web>
-->
<system.web>
<compilation debug="true" targetFramework="4.5" />
<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
@@ -77,16 +81,16 @@
-->
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
<namespaces>
<add namespace="System.Web.Optimization" />
<add namespace="System.Web.Optimization"/>
</namespaces>
<controls>
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt"/>
</controls>
</pages>
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
</httpModules>
</system.web>
<!--
@@ -94,11 +98,11 @@
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler"/>
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler"/>
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler"/>
</modules>
</system.webServer>
<elmah>
@@ -106,12 +110,12 @@
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
more information on remote access and securing ELMAH.
-->
<security allowRemoteAccess="false" />
<security allowRemoteAccess="false"/>
</elmah>
<location path="elmah.axd" inheritInChildApplications="false">
<system.web>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
</httpHandlers>
<!--
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
@@ -125,15 +129,15 @@
</system.web>
<system.webServer>
<handlers>
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
<add name="ELMAH" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode"/>
</handlers>
</system.webServer>
</location>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" />
<assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
+12
View File
@@ -46,6 +46,10 @@
<HintPath>..\packages\Antlr.3.4.1.9004\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>
<Private>True</Private>
</Reference>
<Reference Include="Elmah, Version=1.2.14706.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\elmah.corelibrary.1.2.2\lib\Elmah.dll</HintPath>
<Private>True</Private>
@@ -358,6 +362,7 @@
<Content Include="WebUserControls\mod_header.ascx" />
<Content Include="WebUserControls\mod_Interventi.ascx" />
<Content Include="WebUserControls\mod_pianificazione.ascx" />
<Content Include="WebUserControls\mod_schedaGiorno.ascx" />
<Content Include="WebUserControls\mod_selettoreIndirizzo.ascx" />
<Content Include="WebUserControls\mod_selettoreSlot.ascx" />
<None Include="Scripts\jquery-2.1.3.intellisense.js" />
@@ -569,6 +574,13 @@
<Compile Include="WebUserControls\mod_pianificazione.ascx.designer.cs">
<DependentUpon>mod_pianificazione.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_schedaGiorno.ascx.cs">
<DependentUpon>mod_schedaGiorno.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_schedaGiorno.ascx.designer.cs">
<DependentUpon>mod_schedaGiorno.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_selettoreIndirizzo.ascx.cs">
<DependentUpon>mod_selettoreIndirizzo.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -0,0 +1,43 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_schedaGiorno.ascx.cs" Inherits="WebSCR.WebUserControls.mod_schedaGiorno" %>
<%@ Register Assembly="DayPilot" Namespace="DayPilot.Web.Ui" TagPrefix="DayPilot" %>
<div class="ui-grid-a ui-mini">
<div class="ui-block-a" style="text-align:right;">
<asp:Button runat="server" ID="btnAllSquadre" Text="Squadre (tutte)" OnClick="btnAllSquadre_Click" />
</div>
<div class="ui-block-b">
<fieldset 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>
</fieldset>
<asp:ObjectDataSource ID="odsSquadre" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByData" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.DisponibilitaTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="lblData" Name="Data" PropertyName="Text" Type="DateTime" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
<DayPilot:DayPilotCalendar ID="DayPilotCalendar1" runat="server"
DataIdField="IdxImpegno"
DataTextField="NomeImpegno"
DataStartField="Inizio"
DataEndField="Fine"
TimeFormat="Clock24Hours"
CssClassPrefix="calendar_white"
ViewType="Day"
BusinessBeginsHour="8"
BusinessEndsHour="20"
ScrollPositionHour="12"
ShowEventStartEnd="True"
DataSourceID="ods"
DataValueField="IdxImpegno" TimeRangeSelectedHandling="CallBack"></DayPilot:DayPilotCalendar>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByDate" TypeName="WebSCR_data.DS_ApplicazioneTableAdapters.v_ImpegniCalTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="lblData" Name="Data" PropertyName="Text" Type="DateTime" />
<asp:ControlParameter ControlID="rblSquadre" Name="CodSquadra" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<asp:Label runat="server" ID="lblData" Visible="false" />
@@ -0,0 +1,89 @@
using SteamWare;
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_schedaGiorno : System.Web.UI.UserControl
{
public event EventHandler eh_newData;
/// <summary>
/// solleva evento selezione data
/// </summary>
protected void reportEvent()
{
// evento!
if (eh_newData != null)
{
eh_newData(this, new EventArgs());
}
}
protected void Page_Load(object sender, EventArgs e)
{
DayPilotCalendar1.TimeRangeSelected += DayPilotCalendar1_TimeRangeSelected;
DayPilotCalendar1.EventClick +=DayPilotCalendar1_EventClick;
}
private void DayPilotCalendar1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e)
{
// selezionato periodo, salvo evento inizio...
DtProxy.man.taImp.insertQuery(e.Start, "Gialla", memLayer.ML.StringSessionObj("CodCliente"), "OC123456", "indirizzo1", "12345", "localita", "GG");
DayPilotCalendar1.DataBind();
reportEvent();
}
/// <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)
{
// selezionato periodo, salvo evento inizio...
DtProxy.man.taImp.insertQuery(e.Start, "Gialla", memLayer.ML.StringSessionObj("CodCliente"), "OC123456", "indirizzo1", "12345", "localita", "GG");
DayPilotCalendar1.DataBind();
reportEvent();
}
/// <summary>
/// data di riferimento
/// </summary>
public DateTime data
{
get
{
DateTime answ = DateTime.Now;
try
{
answ = DayPilotCalendar1.StartDate;
}
catch
{ }
return answ;
}
set
{
DayPilotCalendar1.StartDate = value;
lblData.Text = value.ToString("yyyy/MM/dd");
}
}
/// <summary>
/// selezione nuova squadra...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void rblSquadre_SelectedIndexChanged(object sender, EventArgs e)
{
// aggiorno controllo...
}
protected void btnAllSquadre_Click(object sender, EventArgs e)
{
// resetto sel rbl
rblSquadre.SelectedIndex = -1;
}
}
}
+69
View File
@@ -0,0 +1,69 @@
//------------------------------------------------------------------------------
// <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_schedaGiorno {
/// <summary>
/// btnAllSquadre 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.Button btnAllSquadre;
/// <summary>
/// rblSquadre 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.RadioButtonList rblSquadre;
/// <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;
/// <summary>
/// DayPilotCalendar1 control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::DayPilot.Web.Ui.DayPilotCalendar DayPilotCalendar1;
/// <summary>
/// ods 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 ods;
/// <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;
}
}
@@ -1,4 +1,6 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selettoreSlot.ascx.cs" Inherits="WebSCR.WebUserControls.mod_selettoreSlot" %>
<%@ Register Src="~/WebUserControls/mod_schedaGiorno.ascx" TagPrefix="uc1" TagName="mod_schedaGiorno" %>
<div id="divDisponib" runat="server">
<div class="ui-grid-b ui-mini">
<div class="ui-block-a">
@@ -71,7 +73,7 @@
</div>
</div>
<div class="ui-block-b">
vista elenco verticale giornata selezionata...
<uc1:mod_schedaGiorno runat="server" id="mod_schedaGiorno" />
</div>
</div>
</div>
@@ -89,6 +89,16 @@ namespace WebSCR.WebUserControls
numGG = memLayer.ML.confReadInt("numGgDef");
dataFrom = DateTime.Now;
}
mod_schedaGiorno.eh_newData += mod_schedaGiorno_eh_newData;
}
/// <summary>
/// nuovo record impegno...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mod_schedaGiorno_eh_newData(object sender, EventArgs e)
{
repSlot.DataBind();
}
/// <summary>
/// aggiungo/tolgo all'intervallo selezione
@@ -154,6 +164,7 @@ namespace WebSCR.WebUserControls
{
LinkButton lb = (LinkButton)sender;
dataSel = Convert.ToDateTime(lb.CommandArgument);
mod_schedaGiorno.data = dataSel;
}
}
}
@@ -101,5 +101,14 @@ namespace WebSCR.WebUserControls {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.ObjectDataSource odsSlot;
/// <summary>
/// mod_schedaGiorno control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebSCR.WebUserControls.mod_schedaGiorno mod_schedaGiorno;
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -26,3 +26,4 @@ C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\bin\System.
C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\WebSCR.csprojResolveAssemblyReference.cache
C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\WebSCR.dll
C:\Users\samuele\documents\visual studio 2012\Projects\WebSCR\WebSCR\obj\Debug\WebSCR.pdb
C:\Users\samuele\Documents\Visual Studio 2012\Projects\WebSCR\WebSCR\bin\DayPilot.dll
Binary file not shown.
+1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" />
<package id="DayPilot" version="5.0.302" targetFramework="net45" />
<package id="elmah" version="1.2.2" targetFramework="net45" />
<package id="elmah.corelibrary" version="1.2.2" targetFramework="net45" />
<package id="FontAwesome" version="4.2.0" targetFramework="net45" />
+1738 -1
View File
File diff suppressed because it is too large Load Diff
+180
View File
@@ -573,6 +573,24 @@ FROM v_elencoImpegni</CommandText>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_Imp_insertQuery" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="insertQuery">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_Imp_insertQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@DataOra" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodCliente" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@RifOC" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Indir" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Cap" Precision="0" ProviderType="NVarChar" Scale="0" Size="10" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Localita" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Prov" Precision="0" ProviderType="NVarChar" Scale="0" Size="2" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DispImpTotTableAdapter" GeneratorDataComponentClassName="DispImpTotTableAdapter" Name="DispImpTot" UserDataComponentName="DispImpTotTableAdapter">
@@ -627,6 +645,114 @@ FROM v_elencoImpegni</CommandText>
</Mappings>
<Sources />
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_ImpegniCalTableAdapter" GeneratorDataComponentClassName="v_ImpegniCalTableAdapter" Name="v_ImpegniCal" UserDataComponentName="v_ImpegniCalTableAdapter">
<MainSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.v_ImpegniCal" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT * FROM dbo.v_ImpegniCal</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="IdxImpegno" DataSetColumn="IdxImpegno" />
<Mapping SourceColumn="NomeImpegno" DataSetColumn="NomeImpegno" />
<Mapping SourceColumn="Inizio" DataSetColumn="Inizio" />
<Mapping SourceColumn="Fine" DataSetColumn="Fine" />
<Mapping SourceColumn="CodSquadra" DataSetColumn="CodSquadra" />
</Mappings>
<Sources>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_ImpCal_getByDay" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDate" GetMethodModifier="Public" GetMethodName="getByDate" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDate" UserSourceName="getByDate">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_ImpCal_getByDay</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DisponibilitaTableAdapter" GeneratorDataComponentClassName="DisponibilitaTableAdapter" Name="Disponibilita" UserDataComponentName="DisponibilitaTableAdapter">
<MainSource>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.Disponibilita" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[Disponibilita] WHERE (([Data] = @Original_Data) AND ([CodSquadra] = @Original_CodSquadra) AND ([OreDisp] = @Original_OreDisp) AND ([NumOp] = @Original_NumOp) AND ((@IsNull_MinDisp = 1 AND [MinDisp] IS NULL) OR ([MinDisp] = @Original_MinDisp)))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Data" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OreDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OreDisp" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MinDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MinDisp" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MinDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MinDisp" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[Disponibilita] ([Data], [CodSquadra], [OreDisp], [NumOp]) VALUES (@Data, @CodSquadra, @OreDisp, @NumOp);
SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSquadra = @CodSquadra) AND (Data = @Data)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OreDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OreDisp" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM dbo.Disponibilita</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[Disponibilita] SET [Data] = @Data, [CodSquadra] = @CodSquadra, [OreDisp] = @OreDisp, [NumOp] = @NumOp WHERE (([Data] = @Original_Data) AND ([CodSquadra] = @Original_CodSquadra) AND ([OreDisp] = @Original_OreDisp) AND ([NumOp] = @Original_NumOp) AND ((@IsNull_MinDisp = 1 AND [MinDisp] IS NULL) OR ([MinDisp] = @Original_MinDisp)));
SELECT Data, CodSquadra, OreDisp, NumOp, MinDisp FROM Disponibilita WHERE (CodSquadra = @CodSquadra) AND (Data = @Data)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@OreDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OreDisp" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Data" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodSquadra" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodSquadra" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_OreDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="OreDisp" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_NumOp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NumOp" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MinDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MinDisp" SourceColumnNullMapping="true" SourceVersion="Original" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_MinDisp" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MinDisp" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="Data" DataSetColumn="Data" />
<Mapping SourceColumn="CodSquadra" DataSetColumn="CodSquadra" />
<Mapping SourceColumn="OreDisp" DataSetColumn="OreDisp" />
<Mapping SourceColumn="NumOp" DataSetColumn="NumOp" />
<Mapping SourceColumn="MinDisp" DataSetColumn="MinDisp" />
</Mappings>
<Sources>
<DbSource ConnectionRef="WebSCRConnectionString (Settings)" DbObjectName="WebSCR.dbo.stp_Dis_getByData" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByData" GetMethodModifier="Public" GetMethodName="getByData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByData" UserSourceName="getByData">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_Dis_getByData</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="datetime" DbType="DateTime" Direction="Input" ParameterName="@Data" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -965,6 +1091,46 @@ FROM v_elencoImpegni</CommandText>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="v_ImpegniCal" msprop:Generator_TableClassName="v_ImpegniCalDataTable" msprop:Generator_TableVarName="tablev_ImpegniCal" msprop:Generator_TablePropName="v_ImpegniCal" msprop:Generator_RowDeletingName="v_ImpegniCalRowDeleting" msprop:Generator_RowChangingName="v_ImpegniCalRowChanging" msprop:Generator_RowEvHandlerName="v_ImpegniCalRowChangeEventHandler" msprop:Generator_RowDeletedName="v_ImpegniCalRowDeleted" msprop:Generator_UserTableName="v_ImpegniCal" msprop:Generator_RowChangedName="v_ImpegniCalRowChanged" msprop:Generator_RowEvArgName="v_ImpegniCalRowChangeEvent" msprop:Generator_RowClassName="v_ImpegniCalRow">
<xs:complexType>
<xs:sequence>
<xs:element name="IdxImpegno" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxImpegno" msprop:Generator_ColumnPropNameInRow="IdxImpegno" msprop:Generator_ColumnPropNameInTable="IdxImpegnoColumn" msprop:Generator_UserColumnName="IdxImpegno" type="xs:int" />
<xs:element name="NomeImpegno" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnNomeImpegno" msprop:Generator_ColumnPropNameInRow="NomeImpegno" msprop:Generator_ColumnPropNameInTable="NomeImpegnoColumn" msprop:Generator_UserColumnName="NomeImpegno" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="103" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Inizio" msprop:Generator_ColumnVarNameInTable="columnInizio" msprop:Generator_ColumnPropNameInRow="Inizio" msprop:Generator_ColumnPropNameInTable="InizioColumn" msprop:Generator_UserColumnName="Inizio" type="xs:dateTime" />
<xs:element name="Fine" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnFine" msprop:Generator_ColumnPropNameInRow="Fine" msprop:Generator_ColumnPropNameInTable="FineColumn" msprop:Generator_UserColumnName="Fine" type="xs:dateTime" minOccurs="0" />
<xs:element name="CodSquadra" msprop:Generator_ColumnVarNameInTable="columnCodSquadra" msprop:Generator_ColumnPropNameInRow="CodSquadra" msprop:Generator_ColumnPropNameInTable="CodSquadraColumn" msprop:Generator_UserColumnName="CodSquadra">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Disponibilita" msprop:Generator_TableClassName="DisponibilitaDataTable" msprop:Generator_TableVarName="tableDisponibilita" msprop:Generator_TablePropName="Disponibilita" msprop:Generator_RowDeletingName="DisponibilitaRowDeleting" msprop:Generator_RowChangingName="DisponibilitaRowChanging" msprop:Generator_RowEvHandlerName="DisponibilitaRowChangeEventHandler" msprop:Generator_RowDeletedName="DisponibilitaRowDeleted" msprop:Generator_UserTableName="Disponibilita" msprop:Generator_RowChangedName="DisponibilitaRowChanged" msprop:Generator_RowEvArgName="DisponibilitaRowChangeEvent" msprop:Generator_RowClassName="DisponibilitaRow">
<xs:complexType>
<xs:sequence>
<xs:element name="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" msprop:Generator_UserColumnName="Data" type="xs:dateTime" />
<xs:element name="CodSquadra" msprop:Generator_ColumnVarNameInTable="columnCodSquadra" msprop:Generator_ColumnPropNameInRow="CodSquadra" msprop:Generator_ColumnPropNameInTable="CodSquadraColumn" msprop:Generator_UserColumnName="CodSquadra">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="OreDisp" msprop:Generator_ColumnVarNameInTable="columnOreDisp" msprop:Generator_ColumnPropNameInRow="OreDisp" msprop:Generator_ColumnPropNameInTable="OreDispColumn" msprop:Generator_UserColumnName="OreDisp" type="xs:int" />
<xs:element name="NumOp" msprop:Generator_ColumnVarNameInTable="columnNumOp" msprop:Generator_ColumnPropNameInRow="NumOp" msprop:Generator_ColumnPropNameInTable="NumOpColumn" msprop:Generator_UserColumnName="NumOp" type="xs:int" />
<xs:element name="MinDisp" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnMinDisp" msprop:Generator_ColumnPropNameInRow="MinDisp" msprop:Generator_ColumnPropNameInTable="MinDispColumn" msprop:Generator_UserColumnName="MinDisp" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -994,5 +1160,19 @@ FROM v_elencoImpegni</CommandText>
<xs:field xpath="mstns:Data" />
<xs:field xpath="mstns:CodSquadra" />
</xs:unique>
<xs:unique name="v_ImpegniCal_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:v_ImpegniCal" />
<xs:field xpath="mstns:IdxImpegno" />
</xs:unique>
<xs:unique name="Disponibilita_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Disponibilita" />
<xs:field xpath="mstns:Data" />
<xs:field xpath="mstns:CodSquadra" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_Disponibilita_AnagSquadre" msdata:parent="AnagSquadre" msdata:child="Disponibilita" msdata:parentkey="CodSquadra" msdata:childkey="CodSquadra" msprop:Generator_UserChildTable="Disponibilita" msprop:Generator_ChildPropName="GetDisponibilitaRows" msprop:Generator_UserRelationName="FK_Disponibilita_AnagSquadre" msprop:Generator_ParentPropName="AnagSquadreRow" msprop:Generator_RelationVarName="relationFK_Disponibilita_AnagSquadre" msprop:Generator_UserParentTable="AnagSquadre" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+28 -9
View File
@@ -4,15 +4,34 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="73" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:AnagSquadre" ZOrder="3" X="535" Y="428" Height="248" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagZone" ZOrder="7" X="556" Y="160" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTipoConsegne" ZOrder="6" X="919" Y="164" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:AnagClienti" ZOrder="5" X="266" Y="256" Height="402" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="332" />
<Shape ID="DesignTable:Impegni" ZOrder="4" X="32" Y="190" Height="573" Width="193" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="484" />
<Shape ID="DesignTable:DispImpTot" ZOrder="1" X="890" Y="469" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DispImpSquadre" ZOrder="2" X="893" Y="703" Height="153" Width="253" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagSquadre" ZOrder="7" X="535" Y="428" Height="248" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:AnagZone" ZOrder="10" X="556" Y="160" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:AnagTipoConsegne" ZOrder="9" X="919" Y="164" Height="267" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:AnagClienti" ZOrder="4" X="362" Y="191" Height="402" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="332" />
<Shape ID="DesignTable:Impegni" ZOrder="8" X="32" Y="190" Height="592" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="484" />
<Shape ID="DesignTable:DispImpTot" ZOrder="5" X="890" Y="469" Height="172" Width="293" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:DispImpSquadre" ZOrder="6" X="1026" Y="671" Height="153" Width="241" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:v_ImpegniCal" ZOrder="1" X="450" Y="797" Height="191" Width="222" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
<Shape ID="DesignTable:Disponibilita" ZOrder="3" X="784" Y="708" Height="191" Width="218" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
</Shapes>
<Connectors />
<Connectors>
<Connector ID="DesignRelation:FK_Disponibilita_AnagSquadre" ZOrder="2" LineWidth="11">
<RoutePoints>
<Point>
<X>745</X>
<Y>676</Y>
</Point>
<Point>
<X>745</X>
<Y>725</Y>
</Point>
<Point>
<X>784</X>
<Y>725</Y>
</Point>
</RoutePoints>
</Connector>
</Connectors>
</DiagramLayout>
+3
View File
@@ -33,6 +33,7 @@ namespace WebSCR_data
taAC = new DS_ApplicazioneTableAdapters.AnagClientiTableAdapter();
taAS = new DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter();
taAZ = new DS_ApplicazioneTableAdapters.AnagZoneTableAdapter();
taImp = new DS_ApplicazioneTableAdapters.ImpegniTableAdapter();
taFile = new DS_UtilityTableAdapters.tblFilesTableAdapter();
}
/// <summary>
@@ -54,6 +55,7 @@ namespace WebSCR_data
taAC.Connection.ConnectionString = connStr;
taAS.Connection.ConnectionString = connStr;
taAZ.Connection.ConnectionString = connStr;
taImp.Connection.ConnectionString = connStr;
taFile.Connection.ConnectionString = connStrFiles;
}
@@ -73,6 +75,7 @@ namespace WebSCR_data
public DS_ApplicazioneTableAdapters.AnagClientiTableAdapter taAC;
public DS_ApplicazioneTableAdapters.AnagSquadreTableAdapter taAS;
public DS_ApplicazioneTableAdapters.AnagZoneTableAdapter taAZ;
public DS_ApplicazioneTableAdapters.ImpegniTableAdapter taImp;
public DS_UtilityTableAdapters.tblFilesTableAdapter taFile;
public static DtProxy man = new DtProxy();
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.