Merge branch 'develop'

This commit is contained in:
Samuele Locatelli
2013-02-20 18:57:37 +01:00
42 changed files with 750 additions and 141 deletions
Binary file not shown.
+4 -1
View File
@@ -206,6 +206,9 @@
</Content>
<Content Include="Default.aspx" />
<Content Include="demoUpload.aspx" />
<Content Include="images\reset_m.png" />
<Content Include="images\reset_s.png" />
<Content Include="images\reset_l.png" />
<Content Include="images\link-break_l.png" />
<Content Include="images\link-break_m.png" />
<Content Include="images\link-break_s.png" />
@@ -712,7 +715,7 @@
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>61133</DevelopmentServerPort>
<DevelopmentServerPort>52344</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>
</IISUrl>
+5 -2
View File
@@ -29,13 +29,16 @@
<add key="welcomeApp" value="ETS-WS_welcomeApp" />
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.0" />
<add key="minRev" value="119" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="121" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
<add key="archiveDirRed" value="~/ArchivioDocsRed" />
<add key="stdEmail" value="info@etseng.it"/>
<!--area gestione auth cookie-->
<add key="enableCookie" value="true" />
<add key="cookieDayExp" value="6" />
<!--area date-->
<add key="defDayFrom" value="-3650" />
<!--area controlli grid-->
+66 -20
View File
@@ -382,6 +382,10 @@ namespace ETS_WS
DirectoryInfo dir = new DirectoryInfo(destFolder);
FileInfo file = dir.GetFiles("*.eml", SearchOption.TopDirectoryOnly).OrderByDescending(m => m.CreationTimeUtc).First();
// hack: inserisco il campo "non inviato" nel file di testo della email... "X-Unsent: 1"
StreamWriter sw = file.AppendText();
sw.Write("X-Unsent: 1");
sw.Flush();
return file.Name;
}
/// <summary>
@@ -463,6 +467,45 @@ namespace ETS_WS
}
}
/// <summary>
/// elimina il file archiviato e resetta metadati a empty
/// </summary>
/// <param name="nomeFile"></param>
public void deleteRecordAndFile(int idxFile)
{
string nomeFile = "ETS-Proto.docx";
lg.Info("Eliminato file {0} per svuotamento record", idxFile);
// effettuo operazioni sostituzione file!
docMetaDataSet docData = WebShipUtils.mng.docMetaFromIdxFile(idxFile);
docMetaDataSet docDataEmpty = emptyDocData(DateTime.Now);
string numComm = "";
string annoComm = "";
// ricavo num ed anno commessa...
try
{
numComm = docDataEmpty.commessa.Substring(0, docDataEmpty.commessa.IndexOf("-"));
annoComm = docDataEmpty.commessa.Substring(docDataEmpty.commessa.IndexOf("-") + 1);
}
catch
{ }
string path = docData.path;
if (path != "")
{
// calcolo path
path = string.Format("{0}{1}", utils.obj.confReadString("archiveDir"), docData.path);
// elimino file vecchio
fileMover.obj.eliminaFile(path, WebShipUtils.nomeFileFullFromIdxFile(idxFile));
// aggiorno su DB
utils.obj.taDoc.updateQuery(idxFile, utils.obj.currUserAD, docDataEmpty.dataRic, docDataEmpty.dataDoc, numComm, annoComm, docDataEmpty.fase, docDataEmpty.fonte, docDataEmpty.oggetto, docDataEmpty.InOut, docDataEmpty.isRed);
utils.obj.taDoc.updateFile(idxFile, utils.obj.currUserAD, nomeFile, path);
lg.Info("Aggiornato in db nome file {0} per sostituzione causa svuotamento", nomeFile);
// ricalcolo nome file
string newFileName = WebShipUtils.nomeFileFullFromIdxFile(idxFile);
// sposto file
fileMover.obj.muoviFile("~/DocTemplates/", path, nomeFile, newFileName, true);
lg.Info("Spostato file {0} per sostituzione causa svuotamento", nomeFile);
}
}
/// <summary>
/// salva su db il tempalte dei metadati correnti
/// </summary>
/// <param name="userId">user id (AD) univoco</param>
@@ -582,16 +625,11 @@ namespace ETS_WS
public static void dateIsOk(DateTime data)
{
bool answ = false;
string commessa = string.Format("0000-{0}", data.Year);
string fase = "ALTRE";
string fonte = "ETS Engineering & Technical Services S.p.A.";
string InOut = "Out";
string oggetto = "n.d.";
string searchAll = "*";
bool isRed = true;
docMetaDataSet docsData = emptyDocData(data);
try
{
answ = utils.obj.taDoc.getBySearch(data.Date, data.Date.AddDays(1), commessa, fase, fonte, InOut, searchAll, isRed).Rows.Count > 0;
answ = utils.obj.taDoc.getBySearch(data.Date, data.Date.AddDays(1), docsData.commessa, docsData.fase, docsData.fonte, docsData.InOut, searchAll, docsData.isRed).Rows.Count > 0;
}
catch
{ }
@@ -599,22 +637,30 @@ namespace ETS_WS
if (!answ)
{
string nomeFile = "ETS-Proto.docx";
docMetaDataSet docsData = new docMetaDataSet();
docsData.commessa = commessa;
docsData.dataDoc = data;
docsData.dataRic = data;
docsData.fase = fase;
docsData.fonte = fonte;
docsData.InOut = InOut;
docsData.oggetto = oggetto;
docsData.isRed = isRed;
docsData.path = path(docsData);
docsData.reqProto = true;
docsData.tags = new List<string>();
WebShipUtils.mng.generaDocDaTemplate(nomeFile, docsData);
}
}
/// <summary>
/// restituisce un set di dati "empty" utile x reset
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
public static docMetaDataSet emptyDocData(DateTime data)
{
docMetaDataSet docsData = new docMetaDataSet();
docsData.commessa = string.Format("0000-{0}", data.Year);
docsData.dataDoc = data;
docsData.dataRic = data;
docsData.fase = "ALTRE";
docsData.fonte = "ETS Engineering & Technical Services S.p.A.";
docsData.InOut = "Out";
docsData.oggetto = "n.d.";
docsData.isRed = true;
docsData.path = path(docsData);
docsData.reqProto = true;
docsData.tags = new List<string>();
return docsData;
}
/// <summary>
/// genera un doc da template, tramite
/// - salvataggio
@@ -15,18 +15,22 @@
<uc1:mod_singleFileUpload ID="mod_singleFileUpload1" runat="server" btnText="Carica Nuovo File" />
</div>
<div class="divSx">
<div class="divSx" style="background-color: #999; width: 100%; color: White; vertical-align: middle; padding: 0px 2px 0px 2px; margin-top: 4px; font-size: 9pt;">
<asp:CheckBoxList ID="cblTags" runat="server" DataSourceID="odsTags" DataTextField="tag" DataValueField="idxTag" RepeatLayout="Flow" AutoPostBack="True" OnSelectedIndexChanged="cblTags_SelectedIndexChanged" RepeatDirection="Horizontal">
<div class="divSx" style="background-color: #999; width: 100%; color: White; vertical-align: middle; padding: 0px 2px 0px 2px;
margin-top: 4px; font-size: 9pt;">
<asp:CheckBoxList ID="cblTags" runat="server" DataSourceID="odsTags" DataTextField="tag" DataValueField="idxTag" RepeatLayout="Flow"
AutoPostBack="True" OnSelectedIndexChanged="cblTags_SelectedIndexChanged" RepeatDirection="Horizontal">
</asp:CheckBoxList>
<asp:ObjectDataSource ID="odsTags" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="ETS_Data.DS_WebScipTableAdapters.AnagTagsTableAdapter"></asp:ObjectDataSource>
<asp:ObjectDataSource ID="odsTags" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="GetData" TypeName="ETS_Data.DS_WebScipTableAdapters.AnagTagsTableAdapter">
</asp:ObjectDataSource>
</div>
</div>
</asp:Panel>
</div>
<asp:GridView ID="grView" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ods" DataKeyNames="idxFile" Width="100%" AllowPaging="True" OnRowCancelingEdit="grView_RowCancelingEdit" OnRowEditing="grView_RowEditing" OnRowUpdated="grView_RowUpdated">
<asp:GridView ID="grView" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ods" DataKeyNames="idxFile"
Width="100%" AllowPaging="True" OnRowCancelingEdit="grView_RowCancelingEdit" OnRowEditing="grView_RowEditing" OnRowUpdated="grView_RowUpdated">
<RowStyle CssClass="lightGray" />
<AlternatingRowStyle CssClass="" />
<EditRowStyle CssClass="secColA-4" />
<AlternatingRowStyle CssClass="lightBlue" />
<EditRowStyle CssClass="valignMiddle secColA-4" />
<SelectedRowStyle CssClass="secColA-4" />
<FooterStyle CssClass="secColA-1" />
<PagerStyle CssClass="secColA-1" ForeColor="White" HorizontalAlign="Center" Height="1.2em" VerticalAlign="Middle" Font-Size="11pt" />
@@ -35,17 +39,30 @@
<Columns>
<asp:TemplateField HeaderText="">
<ItemTemplate>
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ImageUrl="~/images/edit_m.png" ToolTip="Edit" Visible='<%# showEditButton(Eval("idxFile")) %>' />
<asp:ImageButton ID="imgEdit" runat="server" CausesValidation="False" CommandName="Edit" ImageUrl="~/images/edit_m.png" ToolTip="Edit"
Visible='<%# showEditButton(Eval("idxFile")) %>' />
</ItemTemplate>
<EditItemTemplate>
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ImageUrl="~/images/apply_m.png" ToolTip="Update" />
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="~/images/cancel_m.png" ToolTip="Cancel" />
<asp:ImageButton ID="imgUpdate" runat="server" CausesValidation="False" CommandName="Update" ImageUrl="~/images/apply_l.png"
ToolTip="Update" />
<br />
<asp:ImageButton ID="imgCancel" runat="server" CausesValidation="False" CommandName="Cancel" ImageUrl="~/images/cancel_l.png"
ToolTip="Cancel" />
<br />
<br />
<asp:ImageButton ID="imgSvuota" runat="server" CausesValidation="False" OnClick="imgSvuota_Click" CommandArgument='<%# Eval("idxFile") %>' ImageUrl="~/images/reset_l.png"
ToolTip="Svuota" />
<asp:ConfirmButtonExtender ID="cbeSvuota" runat="server" ConfirmText="Sei sicuro di voler resettare/svuotare il record? Il file associato sarà eliminato ed i metadati resettati. L'operazione non è annullabile!"
TargetControlID="imgSvuota">
</asp:ConfirmButtonExtender>
</EditItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Comm." SortExpression="Commessa" ItemStyle-Wrap="false" ItemStyle-CssClass="padSxDx">
<EditItemTemplate>
<asp:TextBox ID="txtCommessa" runat="server" Text='<%# Bind("Commessa") %>' Width="5em" />
<asp:AutoCompleteExtender ID="aceCommessa" runat="server" TargetControlID="txtCommessa" ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoCommesseSoloCod" CompletionInterval="10" MinimumPrefixLength="1" CompletionListCssClass="autocompleteListCssClass" CompletionListItemCssClass="autocomplete" CompletionListHighlightedItemCssClass="autocompleteHiglight" CompletionListElementID="autocompleteElemID" />
<asp:AutoCompleteExtender ID="aceCommessa" runat="server" TargetControlID="txtCommessa" ServicePath="~/WS/AutoCompletamento.asmx"
ServiceMethod="elencoCommesseSoloCod" CompletionInterval="10" MinimumPrefixLength="1" CompletionListCssClass="autocompleteListCssClass"
CompletionListItemCssClass="autocomplete" CompletionListHighlightedItemCssClass="autocompleteHiglight" CompletionListElementID="autocompleteElemID" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Eval("Commessa") %>' ForeColor="#DD8800" />
@@ -59,61 +76,81 @@
</asp:TemplateField>
<asp:TemplateField HeaderText="Nome" SortExpression="Nome" ItemStyle-Wrap="false" ItemStyle-CssClass="padSxDx">
<ItemTemplate>
<asp:HyperLink runat="server" ID="hlFile" Text='<%# shortMe(Eval("NomeFile"),25,4) %>' ToolTip='<%# accoda("{0}/{1}",new object[]{Eval("fullPath"),Eval("Nome")}) %>' Target="_blank" NavigateUrl='<%# accoda("{0}/{1}",new object[]{Eval("fullPath"),Eval("Nome")})%>' />
<asp:HyperLink runat="server" ID="hlFile" Text='<%# shortMe(Eval("NomeFile"),25,10) %>' ToolTip='<%# accoda("{0}/{1}",new object[]{Eval("fullPath"),Eval("Nome")}) %>'
Target="_blank" NavigateUrl='<%# accoda("{0}/{1}",new object[]{Eval("fullPath"),Eval("Nome")})%>' />
</ItemTemplate>
<ItemStyle Wrap="true"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="" ItemStyle-CssClass="padSxDx">
<ItemTemplate>
<asp:HyperLink runat="server" ImageUrl="~/images/folder_m.png" Text="folder" ToolTip='<%# Eval("fullPath") %>' Target="_blank" NavigateUrl='<%# filePath(Eval("fullPath"), true) %>' />
<asp:HyperLink runat="server" ImageUrl="~/images/folder_m.png" Text="folder" ToolTip='<%# Eval("fullPath") %>' Target="_blank"
NavigateUrl='<%# filePath(Eval("fullPath"), true) %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="NrProt." SortExpression="Numero" ItemStyle-Wrap="false" ItemStyle-CssClass="padSxDx">
<ItemTemplate>
<asp:Label ID="lblProto" runat="server" Text='<%# nrProtoAnno(Eval("Numero"),Eval("Anno")) %>' ToolTip='<%# Eval("NrProtocollo") %>' />
<asp:Label ID="lblProto" runat="server" Text='<%# nrProtoAnno(Eval("Numero"),Eval("Anno")) %>' ToolTip='<%# Eval("NrProtocollo") %>'
ForeColor="#777777" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="DataRic" SortExpression="DataRic" ItemStyle-VerticalAlign="Top" ItemStyle-CssClass="padSxDx">
<EditItemTemplate>
<asp:Label runat="server" ID="lblDataDoc" Text="DataDoc:" />
<asp:TextBox ID="txtDataDoc" runat="server" Text='<%# Bind("DataDoc","{0:dd/MM/yyyy}") %>' Width="5em" ToolTip="Data Documento" />
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataDoc" TargetControlID="txtDataDoc" />
<br />
<asp:Label runat="server" ID="lblDataRic" Text="DataRic:" />
<asp:TextBox ID="txtDataRic" runat="server" Text='<%# Bind("DataRic","{0:dd/MM/yyyy}") %>' Width="5em" ToolTip="Data Ricezione" />
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataRic" TargetControlID="txtDataRic" />
</EditItemTemplate>
<asp:TemplateField HeaderText="SR" SortExpression="SR" ItemStyle-Wrap="false" ItemStyle-CssClass="padSxDx">
<ItemTemplate>
<asp:Label ID="lblDataDoc" runat="server" Text='<%# Eval("DataRic","{0:dd/MM/yy}") %>' ToolTip='<%# Eval("DataDoc","data doc: {0:dd/MM/yy}") %>' ForeColor="#777777" />
<asp:Label ID="lblSR" runat="server" Text='<%# Eval("SR") %>' ToolTip='<%# Eval("Redattore") %>' />
</ItemTemplate>
<ItemStyle VerticalAlign="Top"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Fase" SortExpression="Fase" ItemStyle-CssClass="padSxDx">
<asp:TemplateField HeaderText="DataRic" SortExpression="DataRic" ItemStyle-CssClass="padSxDx">
<EditItemTemplate>
<div style="vertical-align: text-bottom;">
<asp:TextBox ID="txtFase" runat="server" Text='<%# Bind("Fase") %>' Width="10em" TextMode="MultiLine" Rows="3" />
<asp:AutoCompleteExtender ID="aceFase" runat="server" TargetControlID="txtFase" ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoFasi" CompletionInterval="10" MinimumPrefixLength="1" CompletionListCssClass="autocompleteListCssClass" CompletionListItemCssClass="autocomplete" CompletionListHighlightedItemCssClass="autocompleteHiglight" CompletionListElementID="autocompleteElemID" />
<div style="text-align: left;">
<div>
<asp:Label runat="server" ID="lblDataDoc" Text="DataDoc:" Font-Size="7pt" />
<br />
<asp:TextBox ID="txtDataDoc" runat="server" Text='<%# Bind("DataDoc","{0:dd/MM/yyyy}") %>' Width="5em" ToolTip="Data Documento" />
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataDoc" TargetControlID="txtDataDoc" />
</div>
<div>
<asp:Label runat="server" ID="lblDataRic" Text="DataRic:" Font-Size="7pt"/>
<br />
<asp:TextBox ID="txtDataRic" runat="server" Text='<%# Bind("DataRic","{0:dd/MM/yyyy}") %>' Width="5em" ToolTip="Data Ricezione" />
<asp:CalendarExtender runat="server" FirstDayOfWeek="Monday" ID="ceDataRic" TargetControlID="txtDataRic" />
</div>
</div>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Eval("Fase") %>' />
<asp:Label ID="lblDataDoc" runat="server" Text='<%# Eval("DataRic","{0:dd/MM/yy}") %>' ToolTip='<%# Eval("DataDoc","data doc: {0:dd/MM/yy}") %>'
ForeColor="#777777" />
</ItemTemplate>
<ItemStyle VerticalAlign="Top"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="Fonte" SortExpression="Fonte" ItemStyle-CssClass="padSxDx">
<asp:TemplateField HeaderText="Fase" SortExpression="Fase" ItemStyle-CssClass="valignMiddle padSxDx">
<EditItemTemplate>
<asp:TextBox ID="txtFonte" runat="server" Text='<%# Bind("Fonte") %>' Width="10em" TextMode="MultiLine" Rows="3" />
<asp:AutoCompleteExtender ID="aceFonte" runat="server" TargetControlID="txtFonte" ServicePath="~/WS/AutoCompletamento.asmx" ServiceMethod="elencoFonti" CompletionInterval="10" MinimumPrefixLength="1" CompletionListCssClass="autocompleteListCssClass" CompletionListItemCssClass="autocomplete" CompletionListHighlightedItemCssClass="autocompleteHiglight" CompletionListElementID="autocompleteElemID" />
<div style="vertical-align: text-bottom;">
<asp:TextBox ID="txtFase" runat="server" Text='<%# Bind("Fase") %>' Width="12em" TextMode="MultiLine" Rows="5" />
<asp:AutoCompleteExtender ID="aceFase" runat="server" TargetControlID="txtFase" ServicePath="~/WS/AutoCompletamento.asmx"
ServiceMethod="elencoFasi" CompletionInterval="10" MinimumPrefixLength="1" CompletionListCssClass="autocompleteListCssClass"
CompletionListItemCssClass="autocomplete" CompletionListHighlightedItemCssClass="autocompleteHiglight" CompletionListElementID="autocompleteElemID" />
</div>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Fonte") %>' ForeColor="#777777" />
<asp:Label ID="Label2" runat="server" Text='<%# shortMe(Eval("Fase"),20,10) %>' ToolTip='<%# Eval("Fase") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Oggetto" SortExpression="Oggetto" ItemStyle-CssClass="padSxDx">
<asp:TemplateField HeaderText="Fonte" SortExpression="Fonte" ItemStyle-CssClass="valignMiddle padSxDx">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Oggetto") %>' Width="20em" TextMode="MultiLine" Rows="3" />
<asp:TextBox ID="txtFonte" runat="server" Text='<%# Bind("Fonte") %>' Width="12em" TextMode="MultiLine" Rows="5" />
<asp:AutoCompleteExtender ID="aceFonte" runat="server" TargetControlID="txtFonte" ServicePath="~/WS/AutoCompletamento.asmx"
ServiceMethod="elencoFonti" CompletionInterval="10" MinimumPrefixLength="1" CompletionListCssClass="autocompleteListCssClass"
CompletionListItemCssClass="autocomplete" CompletionListHighlightedItemCssClass="autocompleteHiglight" CompletionListElementID="autocompleteElemID" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Oggetto") %>' />
<asp:Label ID="Label3" runat="server" Text='<%# shortMe(Eval("Fonte"),25,12) %>' ToolTip='<%# Eval("Fonte") %>' ForeColor="#777777" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Oggetto" SortExpression="Oggetto" ItemStyle-CssClass="valignMiddle padSxDx">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Oggetto") %>' Width="20em" TextMode="MultiLine" Rows="5" />
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# shortMe(Eval("Oggetto"),50,25) %>' ToolTip='<%# Eval("Oggetto") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="&uarr;&darr;" ItemStyle-CssClass="padSxDx">
@@ -137,7 +174,9 @@
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getBySearch_paged" TypeName="ETS_Data.DS_WebScipTableAdapters.tbDocumentiTableAdapter" OldValuesParameterFormatString="Original_{0}" EnablePaging="True" SelectCountMethod="getBySearch_count" SortParameterName="SortExpression" OnUpdating="ods_Updating" UpdateMethod="updateQuery">
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="getBySearch_paged" TypeName="ETS_Data.DS_WebScipTableAdapters.tbDocumentiTableAdapter"
OldValuesParameterFormatString="Original_{0}" EnablePaging="True" SelectCountMethod="getBySearch_count" SortParameterName="SortExpression"
OnUpdating="ods_Updating" UpdateMethod="updateQuery">
<%--EnableCaching="true" CacheDuration="5" SortParameterName="SortExpression" --%>
<SelectParameters>
<asp:SessionParameter DefaultValue="*" Name="inizio" SessionField="_inizio" Type="DateTime" />
@@ -169,7 +169,7 @@ namespace ETS_WS.WebUserControls
int lastChar = Convert.ToInt32(_lastChar);
if (answ.Length > maxChar)
{
answ = answ.Substring(0, maxChar) + "[...]" + answ.Substring(answ.Length - lastChar);
answ = answ.Substring(0, maxChar - lastChar) + "..." + answ.Substring(answ.Length - lastChar);
}
return answ;
}
@@ -368,5 +368,29 @@ namespace ETS_WS.WebUserControls
{
return string.Format("{0}-{1}", numero, anno);
}
/// <summary>
/// "svuota la riga" resettando metadati ed eliminando file...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void imgSvuota_Click(object sender, EventArgs e)
{
// salvo
ImageButton lbtn = (ImageButton)sender;
int idxFile = 0;
try
{
idxFile = Convert.ToInt32(lbtn.CommandArgument);
}
catch
{ }
// svuoto metadati ed elimino file...
WebShipUtils.mng.deleteRecordAndFile(idxFile);
// chiudo edit...
pnlRTUpdate.CssClass = "";
showHideEditRecord(false);
grView.EditIndex = -1;
grView.DataBind();
}
}
}
@@ -34,7 +34,19 @@ namespace ETS_WS.WebUserControls
// verifico attivazione button submin (ovvero ci sono tutti i valori...)
btnSubmit.Visible = WebShipUtils.mng.metaPresent;
// mostro gen protocolli SE ho richiesta di generare protocollo
pnlGenDocs.Visible = (WebShipUtils.mng.metaPresent && WebShipUtils.mng.currMetaData.reqProto);
if (WebShipUtils.mng.metaPresent && WebShipUtils.mng.currMetaData.reqProto)
{
pnlGenDocs.Visible = true;
// controllo.... mostro TUTTE le opzioni SOLO se è protocollo e se è OUT... altrimenti "solo protocollo"...
bool showAllBtn = (WebShipUtils.mng.currMetaData.InOut.ToUpper() == "OUT");
btnGenLettera.Visible = showAllBtn;
btnGenFax.Visible = showAllBtn;
btnGenMail.Visible = showAllBtn;
}
else
{
pnlGenDocs.Visible = false;
}
}
/// <summary>
/// richiesta update
Binary file not shown.
Binary file not shown.
+18 -1
View File
@@ -173,12 +173,24 @@
.menuNav
{
background-color: #B5C7DE;
/*background-image: -webkit-gradient(linear,left top,left bottom,from( #A5B7CE ),to( #B8E1FD ));
background-image: -webkit-linear-gradient( #A5B7CE,#B8E1FD );
background-image: -moz-linear-gradient( #A5B7CE,#B8E1FD );
background-image: -ms-linear-gradient( #A5B7CE,#B8E1FD );
background-image: -o-linear-gradient( #A5B7CE,#B8E1FD );
background-image: linear-gradient( #A5B7CE,#B8E1FD );*/
color: #284E98;
font-size: 1.2em;
}
.menuNavSel
{
background-color: #507CD1;
/*background-image: -webkit-gradient(linear,left top,left bottom,from( #B8E1FD ),to( #A5B7CE ));
background-image: -webkit-linear-gradient( #B8E1FD,#A5B7CE );
background-image: -moz-linear-gradient( #B8E1FD,#A5B7CE );
background-image: -ms-linear-gradient( #B8E1FD,#A5B7CE );
background-image: -o-linear-gradient( #B8E1FD,#A5B7CE );
background-image: linear-gradient( #B8E1FD,#A5B7CE );*/
}
.menuItem
{
@@ -474,4 +486,9 @@
vertical-align: top;
background-color: #EFF3FB;
}
/* end gridview */
/* end gridview */
.valignMiddle
{
vertical-align: middle;
}
+38 -4
View File
@@ -29,6 +29,12 @@
.secColA-1
{
background-color: #0A64A4;
background-image: -webkit-gradient(linear,left top,left bottom,from( #0A64A4 ),to( #4481DF ));
background-image: -webkit-linear-gradient( #0A64A4,#4481DF );
background-image: -moz-linear-gradient( #0A64A4,#4481DF );
background-image: -ms-linear-gradient( #0A64A4,#4481DF );
background-image: -o-linear-gradient( #0A64A4,#4481DF );
background-image: linear-gradient( #0A64A4,#4481DF );
}
.secColA-2
{
@@ -40,11 +46,23 @@
}
.secColA-4
{
background-color: #3E94D1;
/*background-color: #3E94D1;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #4683ff ),to( #2461BF ));
background-image: -webkit-linear-gradient( #4683ff,#2461BF );
background-image: -moz-linear-gradient( #4683ff,#2461BF );
background-image: -ms-linear-gradient( #4683ff,#2461BF );
background-image: -o-linear-gradient( #4683ff,#2461BF );
background-image: linear-gradient( #4683ff,#2461BF );
}
.secColA-5
{
background-color: #B8E1FD;
/*background-color: #B8E1FD;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #B8E1FD ),to( #2461BF ));
background-image: -webkit-linear-gradient( #B8E1FD,#2461BF );
background-image: -moz-linear-gradient( #B8E1FD,#2461BF );
background-image: -ms-linear-gradient( #B8E1FD,#2461BF );
background-image: -o-linear-gradient( #B8E1FD,#2461BF );
background-image: linear-gradient( #B8E1FD,#2461BF );
}
.secColB-1
{
@@ -86,10 +104,26 @@
{
background-color: #FFCEBC;
}
.lightBlue
{
border: 1px solid #CDCDCD;
background-image: -webkit-gradient(linear,left top,left bottom,from( #ddf ),to( #e1f1ff ));
background-image: -webkit-linear-gradient( #ddf,#e1f1ff );
background-image: -moz-linear-gradient( #ddf,#e1f1ff );
background-image: -ms-linear-gradient( #ddf,#e1f1ff );
background-image: -o-linear-gradient( #ddf,#e1f1ff );
background-image: linear-gradient( #ddf,#e1f1ff );
}
.lightGray
{
background-color: #EDEDED;
/*background-color: #EDEDED;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 ));
background-image: -webkit-linear-gradient( #fff,#f1f1f1 );
background-image: -moz-linear-gradient( #fff,#f1f1f1 );
background-image: -ms-linear-gradient( #fff,#f1f1f1 );
background-image: -o-linear-gradient( #fff,#f1f1f1 );
background-image: linear-gradient( #fff,#f1f1f1 );
border: 1px solid #CDCDCD;
}
/* FINE Schema colori */
+18 -1
View File
@@ -173,12 +173,24 @@
.menuNav
{
background-color: #B5C7DE;
/*background-image: -webkit-gradient(linear,left top,left bottom,from( #A5B7CE ),to( #B8E1FD ));
background-image: -webkit-linear-gradient( #A5B7CE,#B8E1FD );
background-image: -moz-linear-gradient( #A5B7CE,#B8E1FD );
background-image: -ms-linear-gradient( #A5B7CE,#B8E1FD );
background-image: -o-linear-gradient( #A5B7CE,#B8E1FD );
background-image: linear-gradient( #A5B7CE,#B8E1FD );*/
color: #284E98;
font-size: 1.2em;
}
.menuNavSel
{
background-color: #507CD1;
/*background-image: -webkit-gradient(linear,left top,left bottom,from( #B8E1FD ),to( #A5B7CE ));
background-image: -webkit-linear-gradient( #B8E1FD,#A5B7CE );
background-image: -moz-linear-gradient( #B8E1FD,#A5B7CE );
background-image: -ms-linear-gradient( #B8E1FD,#A5B7CE );
background-image: -o-linear-gradient( #B8E1FD,#A5B7CE );
background-image: linear-gradient( #B8E1FD,#A5B7CE );*/
}
.menuItem
{
@@ -474,4 +486,9 @@
vertical-align: top;
background-color: #EFF3FB;
}
/* end gridview */
/* end gridview */
.valignMiddle
{
vertical-align: middle;
}
+38 -4
View File
@@ -29,6 +29,12 @@
.secColA-1
{
background-color: #0A64A4;
background-image: -webkit-gradient(linear,left top,left bottom,from( #0A64A4 ),to( #4481DF ));
background-image: -webkit-linear-gradient( #0A64A4,#4481DF );
background-image: -moz-linear-gradient( #0A64A4,#4481DF );
background-image: -ms-linear-gradient( #0A64A4,#4481DF );
background-image: -o-linear-gradient( #0A64A4,#4481DF );
background-image: linear-gradient( #0A64A4,#4481DF );
}
.secColA-2
{
@@ -40,11 +46,23 @@
}
.secColA-4
{
background-color: #3E94D1;
/*background-color: #3E94D1;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #4683ff ),to( #2461BF ));
background-image: -webkit-linear-gradient( #4683ff,#2461BF );
background-image: -moz-linear-gradient( #4683ff,#2461BF );
background-image: -ms-linear-gradient( #4683ff,#2461BF );
background-image: -o-linear-gradient( #4683ff,#2461BF );
background-image: linear-gradient( #4683ff,#2461BF );
}
.secColA-5
{
background-color: #B8E1FD;
/*background-color: #B8E1FD;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #B8E1FD ),to( #2461BF ));
background-image: -webkit-linear-gradient( #B8E1FD,#2461BF );
background-image: -moz-linear-gradient( #B8E1FD,#2461BF );
background-image: -ms-linear-gradient( #B8E1FD,#2461BF );
background-image: -o-linear-gradient( #B8E1FD,#2461BF );
background-image: linear-gradient( #B8E1FD,#2461BF );
}
.secColB-1
{
@@ -86,10 +104,26 @@
{
background-color: #FFCEBC;
}
.lightBlue
{
border: 1px solid #CDCDCD;
background-image: -webkit-gradient(linear,left top,left bottom,from( #ddf ),to( #e1f1ff ));
background-image: -webkit-linear-gradient( #ddf,#e1f1ff );
background-image: -moz-linear-gradient( #ddf,#e1f1ff );
background-image: -ms-linear-gradient( #ddf,#e1f1ff );
background-image: -o-linear-gradient( #ddf,#e1f1ff );
background-image: linear-gradient( #ddf,#e1f1ff );
}
.lightGray
{
background-color: #EDEDED;
/*background-color: #EDEDED;*/
background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 ));
background-image: -webkit-linear-gradient( #fff,#f1f1f1 );
background-image: -moz-linear-gradient( #fff,#f1f1f1 );
background-image: -ms-linear-gradient( #fff,#f1f1f1 );
background-image: -o-linear-gradient( #fff,#f1f1f1 );
background-image: linear-gradient( #fff,#f1f1f1 );
border: 1px solid #CDCDCD;
}
/* FINE Schema colori */
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 B

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<parameters>
<parameter name="ETS_Data.Properties.Settings.ETS_WSConnectionString-Web.config Connection String" description="ETS_Data.Properties.Settings.ETS_WSConnectionString Connection String used in web.config by the application to access the database." defaultvalue="Data Source=localhost;Initial Catalog=ETS_WS;Persist Security Info=True;User ID=steamware;Password=viadante16" tags="SqlConnectionString">
<parameterEntry kind="XmlFile" scope="C:\\Users\\samuele\\Documents\\Visual\ Studio\ 2010\\Projects\\ETS\\ETS-WS\\ETS-WS\\obj\\ETS\\Package\\PackageTmp\\Web\.config$" match="/configuration/connectionStrings/add[@name='ETS_Data.Properties.Settings.ETS_WSConnectionString']/@connectionString" />
<parameterEntry kind="XmlFile" scope="C:\\Users\\samuele\.STEAMWAREWIN\\Documents\\Visual\ Studio\ 2010\\Projects\\ETS\\ETS-WS\\ETS-WS\\obj\\ETS\\Package\\PackageTmp\\Web\.config$" match="/configuration/connectionStrings/add[@name='ETS_Data.Properties.Settings.ETS_WSConnectionString']/@connectionString" />
</parameter>
<parameter name="ETS_Data.Properties.Settings.ETS_AnagraficaConnectionString-Web.config Connection String" description="ETS_Data.Properties.Settings.ETS_AnagraficaConnectionString Connection String used in web.config by the application to access the database." defaultvalue="Data Source=localhost;Initial Catalog=ETS_Anagrafica;Persist Security Info=True;User ID=steamware;Password=viadante16" tags="SqlConnectionString">
<parameterEntry kind="XmlFile" scope="C:\\Users\\samuele\\Documents\\Visual\ Studio\ 2010\\Projects\\ETS\\ETS-WS\\ETS-WS\\obj\\ETS\\Package\\PackageTmp\\Web\.config$" match="/configuration/connectionStrings/add[@name='ETS_Data.Properties.Settings.ETS_AnagraficaConnectionString']/@connectionString" />
<parameterEntry kind="XmlFile" scope="C:\\Users\\samuele\.STEAMWAREWIN\\Documents\\Visual\ Studio\ 2010\\Projects\\ETS\\ETS-WS\\ETS-WS\\obj\\ETS\\Package\\PackageTmp\\Web\.config$" match="/configuration/connectionStrings/add[@name='ETS_Data.Properties.Settings.ETS_AnagraficaConnectionString']/@connectionString" />
</parameter>
</parameters>
@@ -29,13 +29,16 @@
<add key="welcomeApp" value="ETS-WS_welcomeApp" />
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.0" />
<add key="minRev" value="119" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="121" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
<add key="archiveDirRed" value="~/ArchivioDocsRed" />
<add key="stdEmail" value="info@etseng.it"/>
<!--area gestione auth cookie-->
<add key="enableCookie" value="true" />
<add key="cookieDayExp" value="6" />
<!--area date-->
<add key="defDayFrom" value="-3650" />
<!--area controlli grid-->
@@ -29,13 +29,16 @@
<add key="welcomeApp" value="ETS-WS_welcomeApp" />
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.0" />
<add key="minRev" value="119" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="121" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
<add key="archiveDirRed" value="~/ArchivioDocsRed" />
<add key="stdEmail" value="info@etseng.it"/>
<!--area gestione auth cookie-->
<add key="enableCookie" value="true" />
<add key="cookieDayExp" value="6" />
<!--area date-->
<add key="defDayFrom" value="-3650" />
<!--area controlli grid-->
@@ -34,3 +34,39 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\obj\ETS
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\obj\ETS\ETS-WS.pdb
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\AjaxMin.dll
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\DocumentFormat.OpenXml.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\NLog.config
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\css\BuildBlocks.css
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\css\ExtraComp.css
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\css\ETS.css
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\css\MasterPage.css
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\css\Style.css
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ETS-WS.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ETS-WS.pdb
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\AjaxControlToolkit.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\AjaxMin.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\DocumentFormat.OpenXml.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ETS_Data.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\HtmlAgilityPack.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\NLog.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\SanitizerProviders.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ETS_Data.pdb
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\NLog.xml
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ar\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\cs\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\de\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\es\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\fr\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\he\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\hi\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\it\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ja\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ko\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\nl\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\pt\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\ru\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\tr-TR\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\zh-CHS\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\bin\zh-CHT\AjaxControlToolkit.resources.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\obj\ETS\ETS-WS.csprojResolveAssemblyReference.cache
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\obj\ETS\ETS-WS.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS-WS\ETS-WS\obj\ETS\ETS-WS.pdb
Binary file not shown.
@@ -29,13 +29,16 @@
<add key="welcomeApp" value="ETS-WS_welcomeApp" />
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.0" />
<add key="minRev" value="119" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="121" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
<add key="archiveDirRed" value="~/ArchivioDocsRed" />
<add key="stdEmail" value="info@etseng.it"/>
<!--area gestione auth cookie-->
<add key="enableCookie" value="true" />
<add key="cookieDayExp" value="6" />
<!--area date-->
<add key="defDayFrom" value="-3650" />
<!--area controlli grid-->
@@ -29,13 +29,16 @@
<add key="welcomeApp" value="ETS-WS_welcomeApp" />
<add key="appName" value="ETS-WS" />
<add key="SiteName" value="ETS" />
<add key="mainRev" value="1.0" />
<add key="minRev" value="119" />
<add key="mainRev" value="1.1" />
<add key="minRev" value="121" />
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
<add key="tempUplDir" value="~/TempUploads" />
<add key="archiveDir" value="~/ArchivioDocs" />
<add key="archiveDirRed" value="~/ArchivioDocsRed" />
<add key="stdEmail" value="info@etseng.it"/>
<!--area gestione auth cookie-->
<add key="enableCookie" value="true" />
<add key="cookieDayExp" value="6" />
<!--area date-->
<add key="defDayFrom" value="-3650" />
<!--area controlli grid-->
+46 -46
View File
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
// Runtime Version:4.0.30319.18033
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -1508,9 +1508,9 @@ namespace ETS_Data {
this.columnRiferimenti.MaxLength = 100;
this.columnAttivita.MaxLength = 100;
this.columnAutore.MaxLength = 50;
this.columnSA.MaxLength = 2;
this.columnSA.MaxLength = 4;
this.columnRedattore.MaxLength = 50;
this.columnSR.MaxLength = 2;
this.columnSR.MaxLength = 4;
this.columnAnnotazioni.MaxLength = 1073741823;
this.columnLegUtente.MaxLength = 25;
this.columnNoteSystemManager.MaxLength = 1073741823;
@@ -10493,21 +10493,12 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
allChangedRows.AddRange(updatedRows);
}
}
if ((this._tmpFileUtTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.tmpFileUt.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
if ((this._tbMetaDataSetTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._tmpFileUtTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._anagFasiTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._anagFasiTableAdapter.Update(updatedRows));
result = (result + this._tbMetaDataSetTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -10520,12 +10511,21 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
allChangedRows.AddRange(updatedRows);
}
}
if ((this._tbMetaDataSetTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
if ((this._anagFasiTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._tbMetaDataSetTableAdapter.Update(updatedRows));
result = (result + this._anagFasiTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
if ((this._tmpFileUtTableAdapter != null)) {
global::System.Data.DataRow[] updatedRows = dataSet.tmpFileUt.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
if (((updatedRows != null)
&& (0 < updatedRows.Length))) {
result = (result + this._tmpFileUtTableAdapter.Update(updatedRows));
allChangedRows.AddRange(updatedRows);
}
}
@@ -10555,19 +10555,11 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
allAddedRows.AddRange(addedRows);
}
}
if ((this._tmpFileUtTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.tmpFileUt.Select(null, null, global::System.Data.DataViewRowState.Added);
if ((this._tbMetaDataSetTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._tmpFileUtTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._anagFasiTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._anagFasiTableAdapter.Update(addedRows));
result = (result + this._tbMetaDataSetTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -10579,11 +10571,19 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
allAddedRows.AddRange(addedRows);
}
}
if ((this._tbMetaDataSetTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.Added);
if ((this._anagFasiTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.AnagFasi.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._tbMetaDataSetTableAdapter.Update(addedRows));
result = (result + this._anagFasiTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
if ((this._tmpFileUtTableAdapter != null)) {
global::System.Data.DataRow[] addedRows = dataSet.tmpFileUt.Select(null, null, global::System.Data.DataViewRowState.Added);
if (((addedRows != null)
&& (0 < addedRows.Length))) {
result = (result + this._tmpFileUtTableAdapter.Update(addedRows));
allAddedRows.AddRange(addedRows);
}
}
@@ -10597,19 +10597,11 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private int UpdateDeletedRows(DS_WebScip dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
int result = 0;
if ((this._tbMetaDataSetTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if ((this._tmpFileUtTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.tmpFileUt.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._tbMetaDataSetTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._tags2DocTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Tags2Doc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._tags2DocTableAdapter.Update(deletedRows));
result = (result + this._tmpFileUtTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
@@ -10621,11 +10613,19 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
allChangedRows.AddRange(deletedRows);
}
}
if ((this._tmpFileUtTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.tmpFileUt.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if ((this._tags2DocTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.Tags2Doc.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._tmpFileUtTableAdapter.Update(deletedRows));
result = (result + this._tags2DocTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
if ((this._tbMetaDataSetTableAdapter != null)) {
global::System.Data.DataRow[] deletedRows = dataSet.tbMetaDataSet.Select(null, null, global::System.Data.DataViewRowState.Deleted);
if (((deletedRows != null)
&& (0 < deletedRows.Length))) {
result = (result + this._tbMetaDataSetTableAdapter.Update(deletedRows));
allChangedRows.AddRange(deletedRows);
}
}
+11 -11
View File
@@ -921,7 +921,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
<xs:element name="DS_WebScip" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_WebScip" msprop:Generator_UserDSName="DS_WebScip">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="tmpFileUt" msprop:Generator_TableClassName="tmpFileUtDataTable" msprop:Generator_TableVarName="tabletmpFileUt" msprop:Generator_RowChangedName="tmpFileUtRowChanged" msprop:Generator_TablePropName="tmpFileUt" msprop:Generator_RowDeletingName="tmpFileUtRowDeleting" msprop:Generator_RowChangingName="tmpFileUtRowChanging" msprop:Generator_RowEvHandlerName="tmpFileUtRowChangeEventHandler" msprop:Generator_RowDeletedName="tmpFileUtRowDeleted" msprop:Generator_RowClassName="tmpFileUtRow" msprop:Generator_UserTableName="tmpFileUt" msprop:Generator_RowEvArgName="tmpFileUtRowChangeEvent">
<xs:element name="tmpFileUt" msprop:Generator_TableClassName="tmpFileUtDataTable" msprop:Generator_TableVarName="tabletmpFileUt" msprop:Generator_TablePropName="tmpFileUt" msprop:Generator_RowDeletingName="tmpFileUtRowDeleting" msprop:Generator_RowChangingName="tmpFileUtRowChanging" msprop:Generator_RowEvHandlerName="tmpFileUtRowChangeEventHandler" msprop:Generator_RowDeletedName="tmpFileUtRowDeleted" msprop:Generator_UserTableName="tmpFileUt" msprop:Generator_RowChangedName="tmpFileUtRowChanged" msprop:Generator_RowEvArgName="tmpFileUtRowChangeEvent" msprop:Generator_RowClassName="tmpFileUtRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFile" msprop:Generator_ColumnVarNameInTable="columnidxFile" msprop:Generator_ColumnPropNameInRow="idxFile" msprop:Generator_ColumnPropNameInTable="idxFileColumn" msprop:Generator_UserColumnName="idxFile" type="xs:int" />
@@ -993,7 +993,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tbDocumenti" msprop:Generator_TableClassName="tbDocumentiDataTable" msprop:Generator_TableVarName="tabletbDocumenti" msprop:Generator_TablePropName="tbDocumenti" msprop:Generator_RowDeletingName="tbDocumentiRowDeleting" msprop:Generator_RowChangingName="tbDocumentiRowChanging" msprop:Generator_RowEvHandlerName="tbDocumentiRowChangeEventHandler" msprop:Generator_RowDeletedName="tbDocumentiRowDeleted" msprop:Generator_UserTableName="tbDocumenti" msprop:Generator_RowChangedName="tbDocumentiRowChanged" msprop:Generator_RowEvArgName="tbDocumentiRowChangeEvent" msprop:Generator_RowClassName="tbDocumentiRow">
<xs:element name="tbDocumenti" msprop:Generator_TableClassName="tbDocumentiDataTable" msprop:Generator_TableVarName="tabletbDocumenti" msprop:Generator_RowChangedName="tbDocumentiRowChanged" msprop:Generator_TablePropName="tbDocumenti" msprop:Generator_RowDeletingName="tbDocumentiRowDeleting" msprop:Generator_RowChangingName="tbDocumentiRowChanging" msprop:Generator_RowEvHandlerName="tbDocumentiRowChangeEventHandler" msprop:Generator_RowDeletedName="tbDocumentiRowDeleted" msprop:Generator_RowClassName="tbDocumentiRow" msprop:Generator_UserTableName="tbDocumenti" msprop:Generator_RowEvArgName="tbDocumentiRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFile" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxFile" msprop:Generator_ColumnPropNameInRow="idxFile" msprop:Generator_ColumnPropNameInTable="idxFileColumn" msprop:Generator_UserColumnName="idxFile" type="xs:int" />
@@ -1103,7 +1103,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
<xs:element name="SA" msprop:Generator_ColumnVarNameInTable="columnSA" msprop:Generator_ColumnPropNameInRow="SA" msprop:Generator_ColumnPropNameInTable="SAColumn" msprop:Generator_UserColumnName="SA" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
<xs:maxLength value="4" />
</xs:restriction>
</xs:simpleType>
</xs:element>
@@ -1117,7 +1117,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
<xs:element name="SR" msprop:Generator_ColumnVarNameInTable="columnSR" msprop:Generator_ColumnPropNameInRow="SR" msprop:Generator_ColumnPropNameInTable="SRColumn" msprop:Generator_UserColumnName="SR" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2" />
<xs:maxLength value="4" />
</xs:restriction>
</xs:simpleType>
</xs:element>
@@ -1161,7 +1161,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagFasi" msprop:Generator_TableClassName="AnagFasiDataTable" msprop:Generator_TableVarName="tableAnagFasi" msprop:Generator_RowChangedName="AnagFasiRowChanged" msprop:Generator_TablePropName="AnagFasi" msprop:Generator_RowDeletingName="AnagFasiRowDeleting" msprop:Generator_RowChangingName="AnagFasiRowChanging" msprop:Generator_RowEvHandlerName="AnagFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagFasiRowDeleted" msprop:Generator_RowClassName="AnagFasiRow" msprop:Generator_UserTableName="AnagFasi" msprop:Generator_RowEvArgName="AnagFasiRowChangeEvent">
<xs:element name="AnagFasi" msprop:Generator_TableClassName="AnagFasiDataTable" msprop:Generator_TableVarName="tableAnagFasi" msprop:Generator_TablePropName="AnagFasi" msprop:Generator_RowDeletingName="AnagFasiRowDeleting" msprop:Generator_RowChangingName="AnagFasiRowChanging" msprop:Generator_RowEvHandlerName="AnagFasiRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagFasiRowDeleted" msprop:Generator_UserTableName="AnagFasi" msprop:Generator_RowChangedName="AnagFasiRowChanged" msprop:Generator_RowEvArgName="AnagFasiRowChangeEvent" msprop:Generator_RowClassName="AnagFasiRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFase" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxFase" msprop:Generator_ColumnPropNameInRow="idxFase" msprop:Generator_ColumnPropNameInTable="idxFaseColumn" msprop:Generator_UserColumnName="idxFase" type="xs:int" />
@@ -1189,7 +1189,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AnagTags" msprop:Generator_TableClassName="AnagTagsDataTable" msprop:Generator_TableVarName="tableAnagTags" msprop:Generator_RowChangedName="AnagTagsRowChanged" msprop:Generator_TablePropName="AnagTags" msprop:Generator_RowDeletingName="AnagTagsRowDeleting" msprop:Generator_RowChangingName="AnagTagsRowChanging" msprop:Generator_RowEvHandlerName="AnagTagsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagTagsRowDeleted" msprop:Generator_RowClassName="AnagTagsRow" msprop:Generator_UserTableName="AnagTags" msprop:Generator_RowEvArgName="AnagTagsRowChangeEvent">
<xs:element name="AnagTags" msprop:Generator_TableClassName="AnagTagsDataTable" msprop:Generator_TableVarName="tableAnagTags" msprop:Generator_TablePropName="AnagTags" msprop:Generator_RowDeletingName="AnagTagsRowDeleting" msprop:Generator_RowChangingName="AnagTagsRowChanging" msprop:Generator_RowEvHandlerName="AnagTagsRowChangeEventHandler" msprop:Generator_RowDeletedName="AnagTagsRowDeleted" msprop:Generator_UserTableName="AnagTags" msprop:Generator_RowChangedName="AnagTagsRowChanged" msprop:Generator_RowEvArgName="AnagTagsRowChangeEvent" msprop:Generator_RowClassName="AnagTagsRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxTag" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnidxTag" msprop:Generator_ColumnPropNameInRow="idxTag" msprop:Generator_ColumnPropNameInTable="idxTagColumn" msprop:Generator_UserColumnName="idxTag" type="xs:int" />
@@ -1203,7 +1203,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Tags2Doc" msprop:Generator_TableClassName="Tags2DocDataTable" msprop:Generator_TableVarName="tableTags2Doc" msprop:Generator_RowChangedName="Tags2DocRowChanged" msprop:Generator_TablePropName="Tags2Doc" msprop:Generator_RowDeletingName="Tags2DocRowDeleting" msprop:Generator_RowChangingName="Tags2DocRowChanging" msprop:Generator_RowEvHandlerName="Tags2DocRowChangeEventHandler" msprop:Generator_RowDeletedName="Tags2DocRowDeleted" msprop:Generator_RowClassName="Tags2DocRow" msprop:Generator_UserTableName="Tags2Doc" msprop:Generator_RowEvArgName="Tags2DocRowChangeEvent">
<xs:element name="Tags2Doc" msprop:Generator_TableClassName="Tags2DocDataTable" msprop:Generator_TableVarName="tableTags2Doc" msprop:Generator_TablePropName="Tags2Doc" msprop:Generator_RowDeletingName="Tags2DocRowDeleting" msprop:Generator_RowChangingName="Tags2DocRowChanging" msprop:Generator_RowEvHandlerName="Tags2DocRowChangeEventHandler" msprop:Generator_RowDeletedName="Tags2DocRowDeleted" msprop:Generator_UserTableName="Tags2Doc" msprop:Generator_RowChangedName="Tags2DocRowChanged" msprop:Generator_RowEvArgName="Tags2DocRowChangeEvent" msprop:Generator_RowClassName="Tags2DocRow">
<xs:complexType>
<xs:sequence>
<xs:element name="idxFile" msprop:Generator_ColumnVarNameInTable="columnidxFile" msprop:Generator_ColumnPropNameInRow="idxFile" msprop:Generator_ColumnPropNameInTable="idxFileColumn" msprop:Generator_UserColumnName="idxFile" type="xs:int" />
@@ -1211,7 +1211,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tbMetaDataSet" msprop:Generator_TableClassName="tbMetaDataSetDataTable" msprop:Generator_TableVarName="tabletbMetaDataSet" msprop:Generator_TablePropName="tbMetaDataSet" msprop:Generator_RowDeletingName="tbMetaDataSetRowDeleting" msprop:Generator_RowChangingName="tbMetaDataSetRowChanging" msprop:Generator_RowEvHandlerName="tbMetaDataSetRowChangeEventHandler" msprop:Generator_RowDeletedName="tbMetaDataSetRowDeleted" msprop:Generator_UserTableName="tbMetaDataSet" msprop:Generator_RowChangedName="tbMetaDataSetRowChanged" msprop:Generator_RowEvArgName="tbMetaDataSetRowChangeEvent" msprop:Generator_RowClassName="tbMetaDataSetRow">
<xs:element name="tbMetaDataSet" msprop:Generator_TableClassName="tbMetaDataSetDataTable" msprop:Generator_TableVarName="tabletbMetaDataSet" msprop:Generator_RowChangedName="tbMetaDataSetRowChanged" msprop:Generator_TablePropName="tbMetaDataSet" msprop:Generator_RowDeletingName="tbMetaDataSetRowDeleting" msprop:Generator_RowChangingName="tbMetaDataSetRowChanging" msprop:Generator_RowEvHandlerName="tbMetaDataSetRowChangeEventHandler" msprop:Generator_RowDeletedName="tbMetaDataSetRowDeleted" msprop:Generator_RowClassName="tbMetaDataSetRow" msprop:Generator_UserTableName="tbMetaDataSet" msprop:Generator_RowEvArgName="tbMetaDataSetRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="userId" msprop:Generator_ColumnVarNameInTable="columnuserId" msprop:Generator_ColumnPropNameInRow="userId" msprop:Generator_ColumnPropNameInTable="userIdColumn" msprop:Generator_UserColumnName="userId">
@@ -1284,7 +1284,7 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="stp_userLoginRefreshDb" msprop:Generator_TableClassName="stp_userLoginRefreshDbDataTable" msprop:Generator_TableVarName="tablestp_userLoginRefreshDb" msprop:Generator_TablePropName="stp_userLoginRefreshDb" msprop:Generator_RowDeletingName="stp_userLoginRefreshDbRowDeleting" msprop:Generator_RowChangingName="stp_userLoginRefreshDbRowChanging" msprop:Generator_RowEvHandlerName="stp_userLoginRefreshDbRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_userLoginRefreshDbRowDeleted" msprop:Generator_UserTableName="stp_userLoginRefreshDb" msprop:Generator_RowChangedName="stp_userLoginRefreshDbRowChanged" msprop:Generator_RowEvArgName="stp_userLoginRefreshDbRowChangeEvent" msprop:Generator_RowClassName="stp_userLoginRefreshDbRow">
<xs:element name="stp_userLoginRefreshDb" msprop:Generator_TableClassName="stp_userLoginRefreshDbDataTable" msprop:Generator_TableVarName="tablestp_userLoginRefreshDb" msprop:Generator_RowChangedName="stp_userLoginRefreshDbRowChanged" msprop:Generator_TablePropName="stp_userLoginRefreshDb" msprop:Generator_RowDeletingName="stp_userLoginRefreshDbRowDeleting" msprop:Generator_RowChangingName="stp_userLoginRefreshDbRowChanging" msprop:Generator_RowEvHandlerName="stp_userLoginRefreshDbRowChangeEventHandler" msprop:Generator_RowDeletedName="stp_userLoginRefreshDbRowDeleted" msprop:Generator_RowClassName="stp_userLoginRefreshDbRow" msprop:Generator_UserTableName="stp_userLoginRefreshDb" msprop:Generator_RowEvArgName="stp_userLoginRefreshDbRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="msecExec" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnmsecExec" msprop:Generator_ColumnPropNameInRow="msecExec" msprop:Generator_ColumnPropNameInTable="msecExecColumn" msprop:Generator_UserColumnName="msecExec" minOccurs="0">
@@ -1328,8 +1328,8 @@ SELECT userId, setName, Commessa, Fase, Fonte, Oggetto, DataRic, DataDoc, path,
</xs:element>
<xs:annotation>
<xs:appinfo>
<msdata:Relationship name="FK_Tags2Doc_AnagTags" msdata:parent="AnagTags" msdata:child="Tags2Doc" msdata:parentkey="idxTag" msdata:childkey="idxTag" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_AnagTags" msprop:Generator_RelationVarName="relationFK_Tags2Doc_AnagTags" msprop:Generator_UserParentTable="AnagTags" msprop:Generator_ParentPropName="AnagTagsRow" />
<msdata:Relationship name="FK_Tags2Doc_tbDocumenti" msdata:parent="tbDocumenti" msdata:child="Tags2Doc" msdata:parentkey="idxFile" msdata:childkey="idxFile" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_tbDocumenti" msprop:Generator_RelationVarName="relationFK_Tags2Doc_tbDocumenti" msprop:Generator_UserParentTable="tbDocumenti" msprop:Generator_ParentPropName="tbDocumentiRow" />
<msdata:Relationship name="FK_Tags2Doc_AnagTags" msdata:parent="AnagTags" msdata:child="Tags2Doc" msdata:parentkey="idxTag" msdata:childkey="idxTag" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_AnagTags" msprop:Generator_ParentPropName="AnagTagsRow" msprop:Generator_RelationVarName="relationFK_Tags2Doc_AnagTags" msprop:Generator_UserParentTable="AnagTags" />
<msdata:Relationship name="FK_Tags2Doc_tbDocumenti" msdata:parent="tbDocumenti" msdata:child="Tags2Doc" msdata:parentkey="idxFile" msdata:childkey="idxFile" msprop:Generator_UserChildTable="Tags2Doc" msprop:Generator_ChildPropName="GetTags2DocRows" msprop:Generator_UserRelationName="FK_Tags2Doc_tbDocumenti" msprop:Generator_ParentPropName="tbDocumentiRow" msprop:Generator_RelationVarName="relationFK_Tags2Doc_tbDocumenti" msprop:Generator_UserParentTable="tbDocumenti" />
</xs:appinfo>
</xs:annotation>
</xs:schema>
+2
View File
@@ -107,6 +107,8 @@
<Compile Include="utils.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="SQL\ETS_WS\ETS_WS_00121.sql" />
<Content Include="SQL\ETS_WS\ETS_WS_00120.sql" />
<Content Include="SQL\ETS_WS\ETS_WS_00119.sql" />
<None Include="app.config">
<SubType>Designer</SubType>
+277
View File
@@ -0,0 +1,277 @@
set ANSI_NULLS on;
go
/***************************************
* FUNCTION f_siglaUtente
*
* calcola la sigla utente dalla vista sulla tab utenti
*
* Steamware, S.E.L.
* mod: 2013.02.20
*
****************************************/
create FUNCTION f_siglaUtente(@utente NVARCHAR(MAX))
RETURNS NVARCHAR(4) AS
BEGIN
----------------------------------------
-- dichiaro le componenti del nome
----------------------------------------
DECLARE @answ NVARCHAR(4)
SELECT @answ = ISNULL(sigla,'-') FROM v_selUtenti WHERE ( Cognome + ' ' + Nome = @utente ) OR ( Nome + ' ' + Cognome = @utente )
-- se fosse nullo provo a prendere le iniziali..
IF(ISNULL(@answ,'-') = '-')
BEGIN
DECLARE @indice INT
SELECT @indice = CHARINDEX(' ', @utente)
SET @answ = LEFT(@utente,1)+SUBSTRING(@utente,@indice+1,1)
END
RETURN UPPER(ISNULL(@answ,'-'))
END
go
set xact_abort on;
go
begin transaction;
go
alter table tbDocumenti alter column
SA nvarchar(4);
go
alter table tbDocumenti alter column
SR nvarchar(4);
go
alter table tbDocumenti add
constraint DF_tbDocumenti_Autore default ('-') for Autore,
constraint DF_tbDocumenti_SA default ('-') for SA,
constraint DF_tbDocumenti_Redattore default ('-') for Redattore,
constraint DF_tbDocumenti_SR default ('-') for SR;
go
set ANSI_NULLS on;
go
/*************************************
* STORED PROCEDURE stp_tbDocs_insert
*
* crea un nuovo doc con i valori minimi x inserimento
*
* mod : 2012.10.04
* aut : S.E. Locatelli
**************************************/
alter PROCEDURE stp_tbDocs_insert
(
@nome NVARCHAR(250),
@fullPath NVARCHAR(500),
@userId NVARCHAR(50),
@isProtocollo BIT, --significa va calcolato NrProtocollo, Numero, Anno (corrente)
@DataRic DATETIME,
@DataDoc DATETIME,
@NumeroCommessa NVARCHAR(4),
@AnnoCommessa NVARCHAR(4),
@Fase NVARCHAR(250),
@Fonte NVARCHAR(100),
@Oggetto NVARCHAR(250),
@InOut NVARCHAR(3),
@Autore NVARCHAR(50),
@Redattore NVARCHAR(50),
@isRed BIT,
@newIdxFile INT OUTPUT
)
AS
BEGIN tran
-- dichiarazioni
DECLARE @Anno INT
DECLARE @Numero INT
DECLARE @NrProtocollo INT
DECLARE @SA NVARCHAR(4)
DECLARE @SR NVARCHAR(4)
--DECLARE @fullName NVARCHAR(250)
-- calcolo valori base
SET @Anno = YEAR(GETDATE())
SET @Numero = ( SELECT CASE WHEN @isProtocollo=1 THEN dbo.f_nextNumeroByAnno(@Anno) ELSE 0 END )
SET @NrProtocollo = ( SELECT CASE WHEN @isProtocollo=1 THEN dbo.f_nextNrProtocollo() ELSE 0 END )
-- calcolo sigla autore e redattore...
SELECT @SR = dbo.f_siglaUtente(@Redattore)
SELECT @SA = dbo.f_siglaUtente(@Autore)
-- vero insert
INSERT INTO tbDocumenti(NomeFile,fullPath,userId,isRed,NrProtocollo,Numero,Anno,DataRic,DataDoc,NumeroCommessa,AnnoCommessa,Fase,Fonte,Oggetto,InOut,Autore,Redattore,SA,SR)
VALUES (@nome,@fullPath,@userId,@isRed,@NrProtocollo,@Numero,@Anno,@DataRic,@DataDoc,@NumeroCommessa ,@AnnoCommessa,@Fase,@Fonte,@Oggetto,@InOut,@Autore,@Redattore,@SA,@SR)
SELECT @newIdxFile = SCOPE_IDENTITY()
COMMIT tran
RETURN @newIdxFile
go
commit;
go
set xact_abort on;
go
begin transaction;
go
set ANSI_NULLS on;
go
create VIEW v_selUtenti
AS
SELECT UtenteAD, Cognome, Nome, email, sigla, attivo
FROM ETS_Anagrafica.dbo.Utenti
go
exec sp_addextendedproperty 'MS_DiagramPane1', '[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties =
Begin PaneConfigurations =
Begin PaneConfiguration = 0
NumPanes = 4
Configuration = "(H (1[40] 4[20] 2[20] 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 = "Utenti (ETS_Anagrafica.dbo)"
Begin Extent =
Top = 6
Left = 38
Bottom = 291
Right = 208
End
DisplayFlags = 280
TopColumn = 0
End
End
End
Begin SQLPane =
End
Begin DataPane =
Begin ParameterDefaults = ""
End
Begin ColumnWidths = 9
Width = 284
Width = 1500
Width = 1500
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_selUtenti';
go
exec sp_addextendedproperty 'MS_DiagramPaneCount', 1, 'SCHEMA', 'dbo', 'VIEW', 'v_selUtenti';
go
commit;
go
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(120, GETDATE())
GO
SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC
GO
+33
View File
@@ -0,0 +1,33 @@
-- update dove manca redattore
UPDATE tbDocumenti
SET Redattore = '-', SR='-'
WHERE ISNULL(LTRIM(RTRIM(Redattore)),'') = ''
GO
-- idem x autore
UPDATE tbDocumenti
SET Autore = '-', SA='-'
WHERE ISNULL(LTRIM(RTRIM(Autore)),'') = ''
GO
UPDATE tbDocumenti
SET SR=dbo.f_siglaUtente(Redattore)
WHERE ISNULL(LTRIM(RTRIM(SR)),'') = ''
GO
UPDATE tbDocumenti
SET SA=dbo.f_siglaUtente(Autore)
WHERE ISNULL(LTRIM(RTRIM(SA)),'') = ''
GO
-- fix upper!
UPDATE tbDocumenti
SET SR = UPPER(SR),SA=UPPER(SA)
GO
-- registro versione...
INSERT INTO [dbo].[LogUpdateDb] ([Versione],[Data]) VALUES(121, GETDATE())
GO
SELECT TOP 10 * FROM LogUpdateDb ORDER BY Versione DESC
GO
Binary file not shown.
Binary file not shown.
@@ -8,3 +8,13 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ET
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.dll
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.pdb
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\DocumentFormat.OpenXml.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\NLog.config
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\ETS_Data.dll.config
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\ETS_Data.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\ETS_Data.pdb
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\DocumentFormat.OpenXml.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\NLog.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\NLog.xml
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.csprojResolveAssemblyReference.cache
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.pdb
Binary file not shown.
Binary file not shown.
@@ -8,3 +8,13 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\ETS\ETS_
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\ETS\ETS_Data.dll
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\ETS\ETS_Data.pdb
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\DocumentFormat.OpenXml.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\ETS\ETS_Data.csprojResolveAssemblyReference.cache
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\ETS\ETS_Data.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\NLog.config
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\ETS_Data.dll.config
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\ETS_Data.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\ETS_Data.pdb
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\DocumentFormat.OpenXml.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\NLog.dll
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\ETS\NLog.xml
C:\Users\samuele.STEAMWAREWIN\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\ETS\ETS_Data.pdb
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -257,7 +257,7 @@ namespace ETS_Data
}
#endregion
#region area Session
/// <summary>