Fix parziale problemi segnalati da Giancarlo

git-svn-id: https://keyhammer.ath.cx/svn/GMW/trunk@345 365432ac-a1b5-4ffd-bb28-6d3099d32164
This commit is contained in:
samuele
2011-03-30 10:35:35 +00:00
parent 7d5b5886c4
commit ea76ff77b4
61 changed files with 664 additions and 3401 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
+1 -1
View File
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
+1 -1
View File
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
+1 -1
View File
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
+1 -1
View File
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
+1 -1
View File
@@ -5,7 +5,7 @@
<rd:DataSourceID>945313fa-66e9-456e-b1dd-514d7a9e9842</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
+1 -1
View File
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
+6 -9
View File
@@ -62,7 +62,7 @@
<add key="appName" value="GMW" />
<add key="SiteName" value="Ambivere"/>
<add key="mainRev" value="1.0" />
<add key="minRev" value="337"/>
<add key="minRev" value="340"/>
<add key="copyRight" value="SteamWare © 2010-2011" />
<add key="_allowForceUser" value="true" />
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx" />
@@ -114,7 +114,7 @@
<add key="defDayFrom" value="-60"/>
<!--Setup codici postazioni-->
<add key="IdxPosizMP" value="56"/>
<add key="IdxPosizMP" value="6"/>
<add key="IdxPosNewFusi" value="80"/>
<add key="IdxPosNewWip" value="84"/>
<add key="IdxPosNewRienTerz" value="88"/>
@@ -148,21 +148,18 @@
<add key="ReportDatasource" value="GMWDataSet_stp_prtCartByUDC" />
<add key="passkey" value="pi=314" />
<add key="CodCS" value="MA" />
<add key="CodCS" value="SP" />
<add key="MinutiFinestraEditUDC" value="10" />
<add key="_adminEmail" value="samuele@steamware.net" />
<add key="_logDir" value="~/logs/" />
<add key="_smtpCli" value="keyhammer.ath.cx" />
<!--<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008;Initial Catalog=GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008;Initial Catalog=GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer" />-->
<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="GMWConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="PermessiConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="UtenteCdcConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=sa;Password=keyhammer" />
<add key="VocabolarioConnectionString" value="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=sa;Password=keyhammer" />
</appSettings>
<connectionStrings>
<!--<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=10.74.82.217\sql2008;Initial Catalog=GMW_prod;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>-->
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=10.74.82.217\sql2008r2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>
<add name="GMW_data.Properties.Settings.GMWConnectionString" connectionString="Data Source=10.74.82.217\sql2008r2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
@@ -18,7 +18,7 @@
<td valign="top">
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
DataKeyNames="nRapQual,UdcAssoc,BenesQual" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
DataKeyNames="nRapQual,UdcAssoc,BenesQual,LegaScaric" DataSourceID="ods" OnPageIndexChanged="grView_PageIndexChanged"
OnSorted="grView_Sorted">
<RowStyle CssClass="ctrRowStyle" />
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
@@ -46,7 +46,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="DataRapQual" SortExpression="DataRapQual">
<ItemTemplate>
<asp:Label ID="lblDataRapQual" runat="server" Text='<%# Eval("DataRapQual") %>' />
<asp:Label ID="lblDataRapQual" runat="server" Text='<%# Eval("DataRapQual","{0:0000/00/00}") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="CodFor" SortExpression="CodFor">
@@ -69,6 +69,11 @@
<asp:Label ID="lblBenesQual" runat="server" Text='<%# Eval("BenesQual") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="LegaScaric" SortExpression="LegaScaric">
<ItemTemplate>
<asp:Label ID="lblLegaScaric" runat="server" Text='<%# Eval("LegaScaric") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="UdcTot" SortExpression="UdcTot">
<ItemTemplate>
<asp:Label ID="lblUdcTot" runat="server" Text='<%# Eval("UdcTot") %>' />
@@ -82,7 +87,7 @@
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByDateRange" FilterExpression="nRapQual LIKE '%{0}%' "
SelectMethod="getByDateRange" FilterExpression="nRapQual LIKE '%{0}%' OR CodFor LIKE '%{0}%' OR CodLega LIKE '%{0}%' "
TypeName="GMW_data.DS_magazzinoTableAdapters.v_RapQualSuntoTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="DataFrom" SessionField="_inizio" Type="DateTime" />
@@ -217,8 +217,9 @@ namespace GMW.WebUserControls
string numRappQualUdc = grView.SelectedDataKey["nRapQual"].ToString();
int UdcAssoc = Convert.ToInt32(grView.SelectedDataKey["UdcAssoc"]);
string benestare = grView.SelectedDataKey["BenesQual"].ToString();
string legaScaric = grView.SelectedDataKey["LegaScaric"].ToString();
// controllo il benestare...
if (benestare.ToUpper() == "S") // benestare S = è possibile prendere in carico...
if ((benestare.ToUpper() == "S") && (legaScaric.ToUpper() == "N")) // benestare S = è possibile prendere in carico... se lega scaricata = 'N'
{
btnDelibera.Visible = true;
// sistemo traduzione...
+2 -2
View File
@@ -68,7 +68,7 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="DataRapQual" SortExpression="DataRapQual">
<ItemTemplate>
<asp:Label ID="lblDataRapQual" runat="server" Text='<%# Eval("DataRapQual") %>' />
<asp:Label ID="lblDataRapQual" runat="server" Text='<%# Eval("DataRapQual","{0:0000/00/00}") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ProgUDC" SortExpression="ProgUDC">
@@ -99,7 +99,7 @@
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getConsumabiliByData" FilterExpression="(CONVERT(nRapQual, 'System.String') LIKE '%{0}%') OR (ProgUDC LIKE '%{0}%') OR (UDC LIKE '%{0}%')"
SelectMethod="getConsumabiliByData" FilterExpression="(CONVERT(nRapQual, 'System.String') LIKE '%{0}%') OR (ProgUDC LIKE '%{0}%') OR (UDC LIKE '%{0}%') OR (CodFor LIKE '%{0}%') OR (CodLega LIKE '%{0}%') "
TypeName="GMW_data.DS_magazzinoTableAdapters.RapQualTableAdapter">
<SelectParameters>
<asp:SessionParameter Name="DataFrom" SessionField="_inizio" Type="DateTime" />
+94 -35
View File
@@ -1,35 +1,94 @@
<%@ Control Language="C#" AutoEventWireup="true"
Inherits="mod_periodoAnalisi" Codebehind="mod_periodoAnalisi.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<div>
<div style="float: left; padding-right:4px;">
<asp:Label ID="lblPeriodo" runat="server" />
</div>
<div style="float: left; padding-right:4px;">
<asp:TextBox ID="txtInizio" TabIndex="1" runat="server" Width="6em" MaxLength="10"
AutoPostBack="True" OnTextChanged="txtInizio_TextChanged"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtInizio"
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
</cc1:CalendarExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="!!!" ControlToValidate="txtInizio" Display="Dynamic" />
</div>
<div style="float: left; padding-right:4px;">
<asp:TextBox ID="txtFine" TabIndex="2" runat="server" Width="6em" MaxLength="10"
AutoPostBack="True" OnTextChanged="txtFine_TextChanged"></asp:TextBox>
<cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFine"
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
</cc1:CalendarExtender>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="!!!" ControlToValidate="txtFine" Display="Dynamic" />
</div>
<div style="float: left;">
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"
DataSourceID="odsPeriodi" DataTextField="label" DataValueField="value">
</asp:DropDownList>
<asp:ObjectDataSource ID="odsPeriodi" runat="server" OldValuesParameterFormatString="original_{0}"
SelectMethod="getByConditio" TypeName="GMW_data.DS_utilityTableAdapters.v_selPeriodiTradTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="IT" Name="conditio" SessionField="lingua" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="mod_periodoAnalisi"
CodeBehind="mod_periodoAnalisi.ascx.cs" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<table cellpadding="0" cellspacing="0" class="filtraggio">
<tr>
<td>
<asp:Label ID="lblPeriodo" runat="server"></asp:Label>
&nbsp;&nbsp;
<asp:TextBox ID="txtInizio" TabIndex="1" runat="server" Width="60px" MaxLength="10"
AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" />
<asp:DropDownList ID="ddlOraInizio" TabIndex="2" runat="server" AutoPostBack="True"
OnTextChanged="txtInizio_TextChanged" Font-Size="Smaller">
<asp:ListItem>00</asp:ListItem>
<asp:ListItem>01</asp:ListItem>
<asp:ListItem>02</asp:ListItem>
<asp:ListItem>03</asp:ListItem>
<asp:ListItem>04</asp:ListItem>
<asp:ListItem>05</asp:ListItem>
<asp:ListItem>06</asp:ListItem>
<asp:ListItem>07</asp:ListItem>
<asp:ListItem>08</asp:ListItem>
<asp:ListItem>09</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
</asp:DropDownList>
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtInizio"
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
</asp:CalendarExtender>
&nbsp;&#8594&nbsp;
<asp:TextBox ID="txtFine" TabIndex="3" runat="server" Width="60px" MaxLength="10"
AutoPostBack="True" OnTextChanged="txtFine_TextChanged" />
<asp:DropDownList ID="ddlOraFine" TabIndex="2" runat="server" AutoPostBack="True"
OnTextChanged="txtFine_TextChanged" Font-Size="Smaller">
<asp:ListItem>00</asp:ListItem>
<asp:ListItem>01</asp:ListItem>
<asp:ListItem>02</asp:ListItem>
<asp:ListItem>03</asp:ListItem>
<asp:ListItem>04</asp:ListItem>
<asp:ListItem>05</asp:ListItem>
<asp:ListItem>06</asp:ListItem>
<asp:ListItem>07</asp:ListItem>
<asp:ListItem>08</asp:ListItem>
<asp:ListItem>09</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>11</asp:ListItem>
<asp:ListItem>12</asp:ListItem>
<asp:ListItem>13</asp:ListItem>
<asp:ListItem>14</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>16</asp:ListItem>
<asp:ListItem>17</asp:ListItem>
<asp:ListItem>18</asp:ListItem>
<asp:ListItem>19</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>21</asp:ListItem>
<asp:ListItem>22</asp:ListItem>
<asp:ListItem>23</asp:ListItem>
</asp:DropDownList>
<asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFine"
FirstDayOfWeek="Monday" Format="dd/MM/yyyy">
</asp:CalendarExtender>
&nbsp;&nbsp;&nbsp;
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Font-Size="Smaller">
<asp:ListItem>selezione</asp:ListItem>
<asp:ListItem>oggi</asp:ListItem>
<asp:ListItem>ieri</asp:ListItem>
<asp:ListItem>questa settimana</asp:ListItem>
<asp:ListItem Selected="True">ultimi 7gg</asp:ListItem>
<asp:ListItem>questo mese</asp:ListItem>
<asp:ListItem>ultimi 30gg</asp:ListItem>
</asp:DropDownList>
&nbsp;&nbsp;&nbsp;
<asp:Button ID="btnUpdate" runat="server" Text="update" Visible="false" OnClick="btnUpdate_Click" />
</td>
<td>
<asp:Label ID="lblDurataMin" runat="server" Visible="false"></asp:Label>
&nbsp;&nbsp;
<asp:TextBox ID="txtDurataMin" TabIndex="3" runat="server" Width="30px" MaxLength="3"
AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" Visible="false"></asp:TextBox>
</td>
</tr>
</table>
@@ -10,6 +10,7 @@ using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SteamWare;
public partial class mod_periodoAnalisi : System.Web.UI.UserControl
{
#region area protected
@@ -20,6 +21,7 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl
{
base.OnInit(e);
setIntervallo();
setDurataMin();
}
/// <summary>
@@ -29,50 +31,65 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl
/// <param name="e"></param>
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
intervalloDate _intervallo = new intervalloDate();
// verifico cosa sia cambiato ed imposto date...
datario _datario = new datario();
switch (DropDownList1.SelectedValue)
{
case "1_today":
case "oggi":
_intervallo = _datario.giornata(DateTime.Now);
break;
case "2_yesterday":
case "ieri":
_intervallo = _datario.giornata(DateTime.Now.AddDays(-1));
break;
case "3_last_7":
case "ultimi 7gg":
_intervallo = _datario.ultimiGiorni(DateTime.Now, 7);
break;
case "4_this_week":
case "questa settimana":
_intervallo = _datario.questaSett(DateTime.Now);
break;
case "5_last_30":
case "ultimi 30gg":
_intervallo = _datario.ultimiGiorni(DateTime.Now, 30);
break;
case "6_this_month":
case "questo mese":
_intervallo = _datario.questoMese(DateTime.Now);
break;
case "7_last_month":
_intervallo = _datario.estremiMese(DateTime.Now.AddMonths(-1));
break;
case "8_this_year":
_intervallo = _datario.estremiAnno(DateTime.Now);
break;
case "9_last_year":
_intervallo = _datario.estremiAnno(DateTime.Now.AddYears(-1));
break;
default:
break;
}
intervalloAnalisi = _intervallo;
aggiornaDateMostrate();
if ((intervalloAnalisi.inizio != _intervallo.inizio) || (intervalloAnalisi.fine != _intervallo.fine))
{
verificaCoerenzaDate();
aggiornaDateMostrate(false);
// mostro btn update
btnUpdate.Visible = true;
}
}
private void aggiornaDateMostrate()
/// <summary>
/// effettua update delle date mostrate da intervallo analisi (ed eventualmente riporta update...)
/// </summary>
/// <param name="doReportUpdate"></param>
private void aggiornaDateMostrate(bool doReportUpdate)
{
txtInizio.Text = intervalloAnalisi.inizio.ToShortDateString();
txtFine.Text = intervalloAnalisi.fine.AddDays(-1).ToShortDateString(); // mostro 1 gg in meno xché termina alle 00:00...
reportUpdate();
scriviDate();
if (doReportUpdate)
{
reportUpdate();
}
}
/// <summary>
/// scrive nuove date in controllo
/// </summary>
private void scriviDate()
{
// se intervallo non è valorizzato leggo da sessione...
if (!_intervallo.isValid)
{
_intervallo = intervalloAnalisi;
}
txtInizio.Text = _intervallo.inizio.ToShortDateString();
ddlOraInizio.SelectedValue = _intervallo.inizio.Hour.ToString("00");
txtFine.Text = _intervallo.fine.ToShortDateString();
ddlOraFine.SelectedValue = _intervallo.fine.Hour.ToString("00");
}
private void setIntervallo()
@@ -85,79 +102,111 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl
catch
{
_intervallo = new intervalloDate();
_intervallo.fine = DateTime.Now.Subtract(DateTime.Now.TimeOfDay).AddDays(1);
_intervallo.inizio = _intervallo.fine.AddMonths(-1);
_intervallo.inizio = DateTime.Now.AddDays(-7);
_intervallo.fine = DateTime.Now;
Session["_intervallo"] = _intervallo;
Session["_inizio"] = _intervallo.inizio;
Session["_fine"] = _intervallo.fine;
}
txtInizio.Text = _intervallo.inizio.ToShortDateString();
txtFine.Text = _intervallo.fine.ToShortDateString();
scriviDate();
}
/// <summary>
/// wrapper traduzione
/// </summary>
/// <param name="lemma"></param>
/// <returns></returns>
public string traduci(object lemma)
private void setDurataMin()
{
return user_std.UtSn.Traduci(lemma.ToString());
int _durataMin;
try
{
_durataMin = (int)Session["_durataMin"];
}
catch
{
_durataMin = 0;
Session["_durataMin"] = _durataMin;
}
txtDurataMin.Text = _durataMin.ToString();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
lblPeriodo.Text = traduci("periodoRif");
txtInizio.ToolTip = traduci("inizioPeriodo");
txtFine.ToolTip = traduci("finePeriodo");
}
}
protected void txtInizio_TextChanged(object sender, EventArgs e)
{
// imposto il selettore a discesa...
DropDownList1.SelectedIndex = 0;
// se campo vuoto imposto oggi...
if (txtInizio.Text == "")
{
txtInizio.Text = DateTime.Now.ToShortDateString();
}
else
{
txtInizio.Text = Convert.ToDateTime(txtInizio.Text).ToShortDateString();
}
// aggiorno dati in session...
aggiornaPeriodo();
lblPeriodo.Text = "Periodo di riferimento: ";
txtInizio.ToolTip = "inizio periodo di riferimento per i dati mostrati";
txtFine.ToolTip = "fine periodo di riferimento per i dati mostrati";
lblDurataMin.Text = "Visualizza eventi con durata superiore a";
}
private void aggiornaPeriodo()
{
_intervallo = new intervalloDate();
_intervallo.inizio = Convert.ToDateTime(txtInizio.Text);
_intervallo.fine = ((DateTime)Convert.ToDateTime(txtFine.Text)).Date.AddDays(1);
//_intervallo.fine = ((DateTime)Convert.ToDateTime(txtFine.Text)).Date.AddDays(1).AddMinutes(-1);
intervalloAnalisi = _intervallo;
// calcolo tempi arrotondati
int oraInizio = Convert.ToInt32(ddlOraInizio.SelectedValue);
int oraFine = Convert.ToInt32(ddlOraFine.SelectedValue);
_intervallo.inizio = Convert.ToDateTime(txtInizio.Text).AddHours(oraInizio);
_intervallo.fine = Convert.ToDateTime(txtFine.Text).AddHours(oraFine);
verificaCoerenzaDate();
int _durataMin;
_durataMin = Convert.ToInt32(txtDurataMin.Text);
Session["_durataMin"] = _durataMin;
reportUpdate();
}
/// <summary>
/// verifica che le date dell'intervallo siano coerenti (inizio < fine)
/// </summary>
private void verificaCoerenzaDate()
{
// controllo date siano coerenti (fine > inizio)...
if (_intervallo.inizio >= _intervallo.fine)
{
// controllo non siano date successive ad oggi...
if (_intervallo.fine > DateTime.Now)
{
_intervallo.fine = DateTime.Now;
}
_intervallo.inizio = _intervallo.fine.AddDays(-1);
}
//intervalloAnalisi = _intervallo;
aggiornaDateMostrate(false);
}
/// <summary>
/// evento cambio testo data inizio
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtInizio_TextChanged(object sender, EventArgs e)
{
// imposto il selettore a discesa...
setPeriodoFree();
// mostro btn update
btnUpdate.Visible = true;
}
/// <summary>
/// evento cambio testo data fine
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void txtFine_TextChanged(object sender, EventArgs e)
{
// imposto il selettore a discesa...
DropDownList1.SelectedIndex = 0;
// se campo vuoto imposto oggi...
if (txtFine.Text == "")
{
txtFine.Text = DateTime.Now.AddDays(1).ToShortDateString();
}
else
{
txtFine.Text = Convert.ToDateTime(txtFine.Text).ToShortDateString();
}
// aggiorno dati in session...
aggiornaPeriodo();
setPeriodoFree();
// mostro btn update
btnUpdate.Visible = true;
}
/// <summary>
/// in questo caso faccio udpate periodo mostrato
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnUpdate_Click(object sender, EventArgs e)
{
aggiornaPeriodo();
// nascondo btn update
btnUpdate.Visible = false;
}
/// <summary>
/// riporta aggiornamento a controller
/// </summary>
protected void reportUpdate()
{
intervalloAnalisi = _intervallo;
// alzo l'evento d update/inserimento e ricarico cache...
if (eh_doUpdate != null)
{
@@ -183,23 +232,20 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl
Session["_fine"] = interv.fine;
}
}
public void doUpdate()
/// <summary>
/// effettua update
/// </summary>
/// <param name="doReportUpdate"></param>
public void doUpdate(bool doReportUpdate)
{
aggiornaDateMostrate();
aggiornaDateMostrate(doReportUpdate);
}
/// <summary>
/// imposta periodo libero di selezione
/// </summary>
public void setPeriodoFree()
{
// imposto come periodo libero
DropDownList1.SelectedIndex = 0;
// inserisco un intervallo date da parametro web.config
intervalloDate interv = new intervalloDate();
interv.fine = DateTime.Now.Date.AddDays(1);
interv.inizio = interv.fine.AddDays(memLayer.ML.confReadInt("defDayFrom"));
intervalloAnalisi = interv;
// update!
doUpdate();
}
#region gestione eventi
@@ -208,6 +254,6 @@ public partial class mod_periodoAnalisi : System.Web.UI.UserControl
#endregion
#endregion
#endregion
}
+46 -28
View File
@@ -9,9 +9,9 @@
//------------------------------------------------------------------------------
public partial class mod_periodoAnalisi
{
public partial class mod_periodoAnalisi {
/// <summary>
/// lblPeriodo control.
/// </summary>
@@ -20,7 +20,7 @@ public partial class mod_periodoAnalisi {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPeriodo;
/// <summary>
/// txtInizio control.
/// </summary>
@@ -29,7 +29,16 @@ public partial class mod_periodoAnalisi {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtInizio;
/// <summary>
/// ddlOraInizio 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 ddlOraInizio;
/// <summary>
/// CalendarExtender1 control.
/// </summary>
@@ -38,16 +47,7 @@ public partial class mod_periodoAnalisi {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender1;
/// <summary>
/// RequiredFieldValidator1 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.RequiredFieldValidator RequiredFieldValidator1;
/// <summary>
/// txtFine control.
/// </summary>
@@ -56,7 +56,16 @@ public partial class mod_periodoAnalisi {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtFine;
/// <summary>
/// ddlOraFine 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 ddlOraFine;
/// <summary>
/// CalendarExtender2 control.
/// </summary>
@@ -65,16 +74,7 @@ public partial class mod_periodoAnalisi {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::AjaxControlToolkit.CalendarExtender CalendarExtender2;
/// <summary>
/// RequiredFieldValidator2 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.RequiredFieldValidator RequiredFieldValidator2;
/// <summary>
/// DropDownList1 control.
/// </summary>
@@ -83,13 +83,31 @@ public partial class mod_periodoAnalisi {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
/// <summary>
/// odsPeriodi control.
/// btnUpdate 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 odsPeriodi;
protected global::System.Web.UI.WebControls.Button btnUpdate;
/// <summary>
/// lblDurataMin 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 lblDurataMin;
/// <summary>
/// txtDurataMin 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 txtDurataMin;
}
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
+3 -3
View File
@@ -7,7 +7,7 @@
<add key="appName" value="GMW"/>
<add key="SiteName" value="Ambivere"/>
<add key="mainRev" value="1.0"/>
<add key="minRev" value="337"/>
<add key="minRev" value="340"/>
<add key="copyRight" value="SteamWare © 2010-2011"/>
<add key="_allowForceUser" value="true" />
<add key="_safePages" value="jumper.aspx#unauthorized.aspx#allegati.aspx#forceUser.aspx#login.aspx#test.aspx#istruzioni.aspx#Test.aspx"/>
@@ -99,8 +99,8 @@
<add key="_adminEmail" value="samuele@steamware.net" />
<add key="_logDir" value="~/logs/" />
<add key="_smtpCli" value="keyhammer.ath.cx" />
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" />
<add key="GMWConnectionString" value="Data Source=localhost;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"/>
<add key="PermessiConnectionString" value="Data Source=localhost;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware" />
<add key="UtenteCdcConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Anagrafica;Persist Security Info=True;User ID=connGMW;Password=steamware" />
<add key="VocabolarioConnectionString" value="Data Source=localhost;Initial Catalog=SteamWare_Vocabolario;Persist Security Info=True;User ID=connGMW;Password=steamware" />
</appSettings>
+1 -1
View File
@@ -1,5 +1,5 @@
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString"
connectionString="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
connectionString="Data Source=localhost;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
providerName="System.Data.SqlClient" />
</connectionStrings>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -8,7 +8,6 @@ c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\System.Web.Ajax.pdb
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\AjaxControlToolkit.pdb
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\GMW_data.pdb
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\SteamWare.pdb
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\ar\AjaxControlToolkit.resources.dll
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\cs\AjaxControlToolkit.resources.dll
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW\bin\de\AjaxControlToolkit.resources.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
+31 -6
View File
@@ -8802,6 +8802,8 @@ namespace GMW_data {
private global::System.Data.DataColumn columnUdcAssoc;
private global::System.Data.DataColumn columnLegaScaric;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public v_RapQualSuntoDataTable() {
this.TableName = "v_RapQualSunto";
@@ -8888,6 +8890,13 @@ namespace GMW_data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataColumn LegaScaricColumn {
get {
return this.columnLegaScaric;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.ComponentModel.Browsable(false)]
public int Count {
@@ -8917,7 +8926,7 @@ namespace GMW_data {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public v_RapQualSuntoRow Addv_RapQualSuntoRow(string nRapQual, decimal DataRapQual, string CodFor, string CodLega, decimal Qta, string BenesQual, int UdcTot, int UdcAssoc) {
public v_RapQualSuntoRow Addv_RapQualSuntoRow(string nRapQual, decimal DataRapQual, string CodFor, string CodLega, decimal Qta, string BenesQual, int UdcTot, int UdcAssoc, string LegaScaric) {
v_RapQualSuntoRow rowv_RapQualSuntoRow = ((v_RapQualSuntoRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
nRapQual,
@@ -8927,7 +8936,8 @@ namespace GMW_data {
Qta,
BenesQual,
UdcTot,
UdcAssoc};
UdcAssoc,
LegaScaric};
rowv_RapQualSuntoRow.ItemArray = columnValuesArray;
this.Rows.Add(rowv_RapQualSuntoRow);
return rowv_RapQualSuntoRow;
@@ -8955,6 +8965,7 @@ namespace GMW_data {
this.columnBenesQual = base.Columns["BenesQual"];
this.columnUdcTot = base.Columns["UdcTot"];
this.columnUdcAssoc = base.Columns["UdcAssoc"];
this.columnLegaScaric = base.Columns["LegaScaric"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -8975,9 +8986,11 @@ namespace GMW_data {
base.Columns.Add(this.columnUdcTot);
this.columnUdcAssoc = new global::System.Data.DataColumn("UdcAssoc", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnUdcAssoc);
this.columnLegaScaric = new global::System.Data.DataColumn("LegaScaric", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnLegaScaric);
this.Constraints.Add(new global::System.Data.UniqueConstraint("v_RapQualSuntoKey1", new global::System.Data.DataColumn[] {
this.columnnRapQual}, false));
this.columnnRapQual.Unique = true;
this.columnnRapQual,
this.columnLegaScaric}, false));
this.columnDataRapQual.AllowDBNull = false;
this.columnCodFor.AllowDBNull = false;
this.columnCodFor.MaxLength = 6;
@@ -8985,6 +8998,8 @@ namespace GMW_data {
this.columnCodLega.MaxLength = 15;
this.columnBenesQual.AllowDBNull = false;
this.columnBenesQual.MaxLength = 1;
this.columnLegaScaric.AllowDBNull = false;
this.columnLegaScaric.MaxLength = 1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -13708,6 +13723,16 @@ namespace GMW_data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string LegaScaric {
get {
return ((string)(this[this.tablev_RapQualSunto.LegaScaricColumn]));
}
set {
this[this.tablev_RapQualSunto.LegaScaricColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsnRapQualNull() {
return this.IsNull(this.tablev_RapQualSunto.nRapQualColumn);
@@ -25561,6 +25586,7 @@ SELECT nRapQual, DataRapQual, ProgUDC, CodFor, DestTerz, CodLega, DataPrelFus, T
tableMapping.ColumnMappings.Add("BenesQual", "BenesQual");
tableMapping.ColumnMappings.Add("UdcTot", "UdcTot");
tableMapping.ColumnMappings.Add("UdcAssoc", "UdcAssoc");
tableMapping.ColumnMappings.Add("LegaScaric", "LegaScaric");
this._adapter.TableMappings.Add(tableMapping);
}
@@ -25575,8 +25601,7 @@ SELECT nRapQual, DataRapQual, ProgUDC, CodFor, DestTerz, CodLega, DataPrelFus, T
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[3];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT nRapQual, DataRapQual, CodFor, CodLega, Qta, BenesQual, UdcTot, UdcAssoc F" +
"ROM dbo.v_RapQualSunto";
this._commandCollection[0].CommandText = "SELECT *\r\nFROM dbo.v_RapQualSunto";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
+12 -2
View File
@@ -2409,10 +2409,11 @@ WHERE (IdxPosizione = @IdxPosizione)</CommandText>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="v_RapQualSuntoTableAdapter" GeneratorDataComponentClassName="v_RapQualSuntoTableAdapter" Name="v_RapQualSunto" UserDataComponentName="v_RapQualSuntoTableAdapter">
<MainSource>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.v_RapQualSunto" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="SP_GMW.dbo.v_RapQualSunto" DbObjectType="View" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="true">
<CommandText>SELECT nRapQual, DataRapQual, CodFor, CodLega, Qta, BenesQual, UdcTot, UdcAssoc FROM dbo.v_RapQualSunto</CommandText>
<CommandText>SELECT *
FROM dbo.v_RapQualSunto</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
@@ -2427,6 +2428,7 @@ WHERE (IdxPosizione = @IdxPosizione)</CommandText>
<Mapping SourceColumn="BenesQual" DataSetColumn="BenesQual" />
<Mapping SourceColumn="UdcTot" DataSetColumn="UdcTot" />
<Mapping SourceColumn="UdcAssoc" DataSetColumn="UdcAssoc" />
<Mapping SourceColumn="LegaScaric" DataSetColumn="LegaScaric" />
</Mappings>
<Sources>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dbo.stp_rappQualSuntoGetByDataRange" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByDateRange" GetMethodModifier="Public" GetMethodName="getByDateRange" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByDateRange" UserSourceName="getByDateRange">
@@ -3534,6 +3536,13 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
</xs:element>
<xs:element name="UdcTot" msprop:Generator_UserColumnName="UdcTot" msprop:Generator_ColumnPropNameInRow="UdcTot" msprop:Generator_ColumnVarNameInTable="columnUdcTot" msprop:Generator_ColumnPropNameInTable="UdcTotColumn" type="xs:int" minOccurs="0" />
<xs:element name="UdcAssoc" msprop:Generator_UserColumnName="UdcAssoc" msprop:Generator_ColumnPropNameInRow="UdcAssoc" msprop:Generator_ColumnVarNameInTable="columnUdcAssoc" msprop:Generator_ColumnPropNameInTable="UdcAssocColumn" type="xs:int" minOccurs="0" />
<xs:element name="LegaScaric" msprop:Generator_UserColumnName="LegaScaric" msprop:Generator_ColumnVarNameInTable="columnLegaScaric" msprop:Generator_ColumnPropNameInRow="LegaScaric" msprop:Generator_ColumnPropNameInTable="LegaScaricColumn">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
@@ -3694,6 +3703,7 @@ SELECT Particolare, CodCS, CodCliente, DisegnoGrezzo, CodFamiglia, DescParticola
<xs:unique name="v_RapQualSuntoKey1">
<xs:selector xpath=".//mstns:v_RapQualSunto" />
<xs:field xpath="mstns:nRapQual" />
<xs:field xpath="mstns:LegaScaric" />
</xs:unique>
<xs:unique name="AnagParticolari_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AnagParticolari" />
+1 -1
View File
@@ -4,7 +4,7 @@
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="690" 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="77" ViewPortY="1059" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:ElencoCartellini" ZOrder="3" X="79" Y="230" Height="552" Width="250" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="368" />
<Shape ID="DesignTable:AnagMag" ZOrder="8" X="1008" Y="389" Height="229" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
+3
View File
@@ -161,6 +161,9 @@
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="SqlScripts\GMW_00350.sql" />
<None Include="SqlScripts\GMW_00345.sql" />
<None Include="SqlScripts\GMW_00340.sql" />
<None Include="SqlScripts\GMW_00336.sql" />
<None Include="SqlScripts\GMW_00335.sql" />
<None Include="SqlScripts\GMW_00327.sql" />
+2 -2
View File
@@ -26,8 +26,8 @@ namespace GMW_data.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True" +
";User ID=sa;Password=keyhammer")]
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=10.74.82.217\\SQL2008R2;Initial Catalog=SP_GMW;Persist Security Info=T" +
"rue;User ID=sa;Password=keyhammer")]
public string GMWConnectionString {
get {
return ((string)(this["GMWConnectionString"]));
+2 -2
View File
@@ -5,10 +5,10 @@
<Setting Name="GMWConnectionString" Type="(Connection string)" Scope="Application">
<DesignTimeValue Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
&lt;SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&lt;ConnectionString&gt;Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer&lt;/ConnectionString&gt;
&lt;ConnectionString&gt;Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer&lt;/ConnectionString&gt;
&lt;ProviderName&gt;System.Data.SqlClient&lt;/ProviderName&gt;
&lt;/SerializableConnectionString&gt;</DesignTimeValue>
<Value Profile="(Default)">Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer</Value>
<Value Profile="(Default)">Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer</Value>
</Setting>
</Settings>
</SettingsFile>
+286
View File
@@ -0,0 +1,286 @@
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
alter VIEW v_selDestinatariListePrelievo
AS
SELECT CAST('*' AS NVARCHAR(6)) AS value, CAST('*' AS NVARCHAR(50)) AS label, '01-PreFus' AS conditio
UNION
SELECT CAST(CodCliente AS NVARCHAR(6)) AS value, CAST(CodCliente AS NVARCHAR(6)) + ' - ' + CAST(RagSociale AS NVARCHAR(50)) AS label, '02-PreCli' AS conditio
FROM RilPro.AnagClienti
UNION
SELECT CAST(CodTerzista AS NVARCHAR(6)) AS value, CAST(CodTerzista AS NVARCHAR(6)) + ' - ' + CAST(DescTerzista AS NVARCHAR(50)) AS label, '03-TerWip' AS conditio
FROM RilPro.AnagDepositi
go
exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[19] 4[25] 2[19] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration = 7
NumPanes = 1
Configuration = "(V (3))"
End
Begin PaneConfiguration = 8
NumPanes = 3
Configuration = "(H (1[56] 4[18] 2) )"
End
Begin PaneConfiguration = 9
NumPanes = 2
Configuration = "(H (1 [75] 4))"
End
Begin PaneConfiguration = 10
NumPanes = 2
Configuration = "(H (1[66] 2) )"
End
Begin PaneConfiguration = 11
NumPanes = 2
Configuration = "(H (4 [60] 2))"
End
Begin PaneConfiguration = 12
NumPanes = 1
Configuration = "(H (1) )"
End
Begin PaneConfiguration = 13
NumPanes = 1
Configuration = "(V (4))"
End
Begin PaneConfiguration = 14
NumPanes = 1
Configuration = "(V (2))"
End
ActivePaneConfig = 0
End
Begin DiagramPane =
Begin Origin =
Top = 0
Left = 0
End
Begin Tables =
End
End
Begin SQLPane =
End
Begin DataPane =
Begin ParameterDefaults = ""
End
Begin ColumnWidths = 9
Width = 284
Width = 1500
Width = 3360
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
End
End
Begin CriteriaPane =
Begin ColumnWidths = 11
Column = 1440
Alias = 900
Table = 1170
Output = 720
Append = 1400
NewValue = 1170
SortType = 1350
SortOrder = 1410
GroupBy = 1350
Filter = 1350
Or = 1350
Or = 1350
Or = 1350
End
End
End
', 'SCHEMA', 'dbo', 'VIEW', 'v_selDestinatariListePrelievo'
go
commit
go
set xact_abort on
go
begin transaction
go
set ANSI_NULLS on
go
alter VIEW v_RapQualSunto
AS
SELECT TOP (100) PERCENT CAST(nRapQual AS NVARCHAR(20)) AS nRapQual, DataRapQual, CodFor, CodLega, SUM(Qta) AS Qta, BenesQual, COUNT(*) AS UdcTot,
COUNT(UDC) AS UdcAssoc, LegaScaric
FROM RilPro.RapQual
GROUP BY nRapQual, DataRapQual, CodFor, CodLega, BenesQual, LegaScaric
ORDER BY nRapQual
go
exec sp_updateextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[41] 4[20] 2[9] 3) )"
End
Begin PaneConfiguration = 1
NumPanes = 3
Configuration = "(H (1 [50] 4 [25] 3))"
End
Begin PaneConfiguration = 2
NumPanes = 3
Configuration = "(H (1 [50] 2 [25] 3))"
End
Begin PaneConfiguration = 3
NumPanes = 3
Configuration = "(H (4 [30] 2 [40] 3))"
End
Begin PaneConfiguration = 4
NumPanes = 2
Configuration = "(H (1 [56] 3))"
End
Begin PaneConfiguration = 5
NumPanes = 2
Configuration = "(H (2 [66] 3))"
End
Begin PaneConfiguration = 6
NumPanes = 2
Configuration = "(H (4 [50] 3))"
End
Begin PaneConfiguration = 7
NumPanes = 1
Configuration = "(V (3))"
End
Begin PaneConfiguration = 8
NumPanes = 3
Configuration = "(H (1[56] 4[18] 2) )"
End
Begin PaneConfiguration = 9
NumPanes = 2
Configuration = "(H (1 [75] 4))"
End
Begin PaneConfiguration = 10
NumPanes = 2
Configuration = "(H (1[66] 2) )"
End
Begin PaneConfiguration = 11
NumPanes = 2
Configuration = "(H (4 [60] 2))"
End
Begin PaneConfiguration = 12
NumPanes = 1
Configuration = "(H (1) )"
End
Begin PaneConfiguration = 13
NumPanes = 1
Configuration = "(V (4))"
End
Begin PaneConfiguration = 14
NumPanes = 1
Configuration = "(V (2))"
End
ActivePaneConfig = 0
End
Begin DiagramPane =
Begin Origin =
Top = 0
Left = 0
End
Begin Tables =
Begin Table = "RapQual (RilPro)"
Begin Extent =
Top = 6
Left = 38
Bottom = 314
Right = 208
End
DisplayFlags = 280
TopColumn = 0
End
End
End
Begin SQLPane =
End
Begin DataPane =
Begin ParameterDefaults = ""
End
Begin ColumnWidths = 10
Width = 284
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
Width = 1500
End
End
Begin CriteriaPane =
Begin ColumnWidths = 12
Column = 1440
Alias = 1305
Table = 1170
Output = 720
Append = 1400
NewValue = 1170
SortType = 1350
SortOrder = 1410
GroupBy = 1350
Filter = 1350
Or = 1350
Or = 1350
Or = 1350
End
End
End
', 'SCHEMA', 'dbo', 'VIEW', 'v_RapQualSunto'
go
commit
go
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(340, GETDATE())
GO
+9
View File
@@ -0,0 +1,9 @@
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(345, GETDATE())
GO
+7
View File
@@ -0,0 +1,7 @@
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(350, GETDATE())
GO
+1 -1
View File
@@ -4,7 +4,7 @@
</configSections>
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
Binary file not shown.
+1 -1
View File
@@ -4,7 +4,7 @@
</configSections>
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -4,7 +4,7 @@
</configSections>
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
connectionString="Data Source=10.74.82.217\SQL2008R2;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=sa;Password=keyhammer"
providerName="System.Data.SqlClient" />
</connectionStrings>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -12,7 +12,6 @@ c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Release\GMW_data.pdb
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Release\SteamWare.dll
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Release\ICSharpCode.SharpZipLib.dll
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data\bin\Release\SteamWare.pdb
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Release\ResolveAssemblyReference.cache
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Release\GMW_data.dll
c:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2008\Projects\GMW\GMW_data\obj\Release\GMW_data.pdb
Binary file not shown.
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
@@ -1,5 +1,5 @@
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString"
connectionString="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
connectionString="Data Source=localhost;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
providerName="System.Data.SqlClient" />
</connectionStrings>
@@ -5,7 +5,7 @@
<rd:DataSourceID>37647cab-a462-4a59-ae44-1bb2d82f1cff</rd:DataSourceID>
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=GMW</ConnectString>
<ConnectString>Data Source=SRV-DEV01;Initial Catalog=SP_GMW</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
@@ -1,5 +1,5 @@
<connectionStrings>
<add name="GMW_data.Properties.Settings.GMWConnectionString"
connectionString="Data Source=localhost;Initial Catalog=GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
connectionString="Data Source=localhost;Initial Catalog=SP_GMW;Persist Security Info=True;User ID=connGMW;Password=steamware"
providerName="System.Data.SqlClient" />
</connectionStrings>
+3 -3
View File
@@ -349,14 +349,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:GMW"
"ProductCode" = "8:{FAA72B3C-8593-4441-AD51-93841B7832E8}"
"PackageCode" = "8:{E30221A4-9D39-4729-9DE2-C46A951B1C89}"
"ProductCode" = "8:{1724306E-51F3-4186-9FF3-F1B0B6DC918C}"
"PackageCode" = "8:{2D7919AB-5529-45A9-9F0C-EB6F2A4092A2}"
"UpgradeCode" = "8:{C9BC0732-DC92-4336-BAC9-A05A5D2A97C0}"
"RestartWWWService" = "11:TRUE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.0.337"
"ProductVersion" = "8:1.0.350"
"Manufacturer" = "8:SteamWare s.r.l."
"ARPHELPTELEPHONE" = "8:+39-035460560"
"ARPHELPLINK" = "8:http://www.steamware.net"
Binary file not shown.