aggiunta gestioen editing tags

This commit is contained in:
samuele
2012-10-22 12:51:44 +02:00
parent b714dec409
commit cd8e2e7d92
13 changed files with 165 additions and 47 deletions
@@ -9,7 +9,20 @@
<link href="../css/MasterPage.css" rel="stylesheet" type="text/css" />
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
<% } %>
<uc1:mod_singleFileUpload ID="mod_singleFileUpload1" runat="server" btnText="Carica Nuovo File" />
<div class="clearDiv ">
<asp:Panel runat="server" ID="pnlRTUpdate" Width="100%" Height="26px">
<div class="divSx">
<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">
</asp:CheckBoxList>
<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">
<RowStyle CssClass="lightGray" />
<AlternatingRowStyle CssClass="" />
@@ -28,7 +28,7 @@ namespace ETS_WS.WebUserControls
{
if (!Page.IsPostBack)
{
showHideSubstFile(false);
showHideEditRecord(false);
}
mod_singleFileUpload1.tempArea = WebShipUtils.mng.UserTempPath;
mod_singleFileUpload1.eh_fileUploaded += new EventHandler(mod_singleFileUpload1_eh_fileUploaded);
@@ -171,17 +171,7 @@ namespace ETS_WS.WebUserControls
}
return answ;
}
/// <summary>
/// fake selection: rimanda in realtà alla pagina di insert/upload, salvando in area temp il file selezionato (con il nome originale)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
// idxFile selezionato!
int idxFile = Convert.ToInt32(grView.SelectedDataKey["idxFile"]);
}
/// <summary>
/// <summary>
/// gestione update ods
/// </summary>
/// <param name="sender"></param>
@@ -204,8 +194,12 @@ namespace ETS_WS.WebUserControls
/// <param name="e"></param>
protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
{
// fix riga in edit...
grView.SelectedIndex = e.NewEditIndex;
pnlRTUpdate.CssClass = "rltUpdate";
WebShipUtils.mng.idxFileEdit = Convert.ToInt32(grView.SelectedDataKey["idxFile"]);
// fix btn cambio file
showHideSubstFile(true);
showHideEditRecord(true);
}
/// <summary>
/// nascondo button sostituzione file
@@ -214,7 +208,9 @@ namespace ETS_WS.WebUserControls
/// <param name="e"></param>
protected void grView_RowUpdated(object sender, GridViewUpdatedEventArgs e)
{
showHideSubstFile(false);
grView.SelectedIndex = -1;
pnlRTUpdate.CssClass = "";
showHideEditRecord(false);
}
/// <summary>
/// nascondo button sostituzione file
@@ -223,15 +219,31 @@ namespace ETS_WS.WebUserControls
/// <param name="e"></param>
protected void grView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
{
showHideSubstFile(false);
grView.SelectedIndex = -1;
pnlRTUpdate.CssClass = "";
showHideEditRecord(false);
}
/// <summary>
/// mostra/nasconde controllo sostituzione file
/// </summary>
/// <param name="p"></param>
private void showHideSubstFile(bool p)
private void showHideEditRecord(bool p)
{
mod_singleFileUpload1.btnEnabled = p;
cblTags.Visible = p;
if (p)
{
docMetaDataSet currData = WebShipUtils.mng.docMetaFromIdxFile(WebShipUtils.mng.idxFileEdit);
// calcolo i tags "da accendere"...
if (currData.tags.Count > 0)
{
cblTags.DataBind();
foreach (string tag in currData.tags)
{
cblTags.Items.FindByValue(tag).Selected = true;
}
}
}
}
/// <summary>
/// file caricato! effettuo sostituzione!
@@ -248,7 +260,29 @@ namespace ETS_WS.WebUserControls
// update gridview!
grView.DataBind();
}
/// <summary>
/// update dei tags selezionati
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void cblTags_SelectedIndexChanged(object sender, EventArgs e)
{
// elimino i tags "vecchi"
utils.obj.taTags2Doc.deleteByIdxFile(WebShipUtils.mng.idxFileEdit);
// salvo nuovi tags associati
foreach (ListItem tag in cblTags.Items)
{
if (tag.Selected)
{
try
{
utils.obj.taTags2Doc.Insert(WebShipUtils.mng.idxFileEdit, Convert.ToInt32(tag.Value));
}
catch
{ }
}
}
}
}
}
@@ -12,6 +12,15 @@ namespace ETS_WS.WebUserControls {
public partial class mod_archivioDocumenti {
/// <summary>
/// pnlRTUpdate 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.Panel pnlRTUpdate;
/// <summary>
/// mod_singleFileUpload1 control.
/// </summary>
@@ -21,6 +30,24 @@ namespace ETS_WS.WebUserControls {
/// </remarks>
protected global::ETS_WS.WebUserControls.mod_singleFileUpload mod_singleFileUpload1;
/// <summary>
/// cblTags 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.CheckBoxList cblTags;
/// <summary>
/// odsTags 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 odsTags;
/// <summary>
/// grView control.
/// </summary>
@@ -5,11 +5,7 @@
<%@ Register Src="mod_inputDati.ascx" TagName="mod_inputDati" TagPrefix="uc2" %>
<%--container principale--%>
<div>
<%--testata protocollo--%>
<div class="clearDiv">
<%--<uc1:mod_testataProt ID="mod_testataProt1" runat="server" />--%>
</div>
<%--input dati--%>
<%--input dati--%>
<div class="clearDiv">
<uc2:mod_inputDati ID="mod_inputDati1" runat="server" />
</div>
@@ -166,7 +166,7 @@ namespace ETS_WS.WebUserControls
answ.oggetto = utils.cleanPathName(txtOggetto.Text);
answ.dataDoc = Convert.ToDateTime(txtDataDoc.Text);
answ.dataRic = Convert.ToDateTime(txtDataRic.Text);
answ.isRed = chkIsRed.Checked;
answ.isRed = chkIsRed.Checked;
answ.path = WebShipUtils.mng.path(answ);
// calcolo i tags...
List<string> tags = new List<string>();
@@ -254,15 +254,5 @@ namespace ETS_WS.WebUserControls
{
updateVisual();
}
#if false
/// <summary>
/// ricarica da sessione dati x edit
/// </summary>
public void loadEditData()
{
// ricarico dati di editing
metaDatiDoc = WebShipUtils.mng.currMetaData;
}
#endif
}
}
@@ -108,7 +108,6 @@ namespace ETS_WS.WebUserControls
string body = string.Format("Commessa: {1}{0}Fase: {2}{0}Oggetto: {3}{0}prot. num: {4}", Environment.NewLine, docsData.commessa, docsData.fase, docsData.oggetto, protocollo);
string newFileName = WebShipUtils.CreaEml(mittente, destinatario, subject, body, null, Server.MapPath(pathDest));
// sostituisco file appena creato con quello nuovo
//fileMover.obj.eliminaFile(fullPath);
fileMover.obj.muoviFile(pathDest, pathDest, newFileName, WebShipUtils.nomeFileFullFromIdxFile(idxFile), true);
}
}
Binary file not shown.
Binary file not shown.
+7
View File
@@ -130,6 +130,13 @@
}
/* end buttons! */
/* update controls */
.rltUpdate
{
background-color: #FFFF33;
}
/* end */
/* zona menù top */
.menuNav
{
+7
View File
@@ -130,6 +130,13 @@
}
/* end buttons! */
/* update controls */
.rltUpdate
{
background-color: #FFFF33;
}
/* end */
/* zona menù top */
.menuNav
{
+37 -3
View File
@@ -7793,17 +7793,23 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase =
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitCommandCollection() {
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
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 idxFile, idxTag FROM dbo.Tags2Doc";
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[1].Connection = this.Connection;
this._commandCollection[1].CommandText = "dbo.stp_T2D_getByIdxFile";
this._commandCollection[1].CommandText = "dbo.stp_T2D_deleteByIdxFile";
this._commandCollection[1].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFile", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[2].Connection = this.Connection;
this._commandCollection[2].CommandText = "dbo.stp_T2D_getByIdxFile";
this._commandCollection[2].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RETURN_VALUE", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.ReturnValue, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[2].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idxFile", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -7835,7 +7841,7 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase =
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_WebScip.Tags2DocDataTable getByIdxFile(global::System.Nullable<int> idxFile) {
this.Adapter.SelectCommand = this.CommandCollection[1];
this.Adapter.SelectCommand = this.CommandCollection[2];
if ((idxFile.HasValue == true)) {
this.Adapter.SelectCommand.Parameters[1].Value = ((int)(idxFile.Value));
}
@@ -7954,6 +7960,34 @@ SELECT idxFase, codFase, descrizione, folderName FROM AnagFasi WHERE (idxFase =
public virtual int Update(int Original_idxFile, int Original_idxTag) {
return this.Update(Original_idxFile, Original_idxTag, Original_idxFile, Original_idxTag);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public virtual int deleteByIdxFile(global::System.Nullable<int> idxFile) {
global::System.Data.SqlClient.SqlCommand command = this.CommandCollection[1];
if ((idxFile.HasValue == true)) {
command.Parameters[1].Value = ((int)(idxFile.Value));
}
else {
command.Parameters[1].Value = global::System.DBNull.Value;
}
global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
if (((command.Connection.State & global::System.Data.ConnectionState.Open)
!= global::System.Data.ConnectionState.Open)) {
command.Connection.Open();
}
int returnValue;
try {
returnValue = command.ExecuteNonQuery();
}
finally {
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
command.Connection.Close();
}
}
return returnValue;
}
}
/// <summary>
+18 -7
View File
@@ -706,6 +706,17 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i
<Mapping SourceColumn="idxTag" DataSetColumn="idxTag" />
</Mappings>
<Sources>
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_T2D_deleteByIdxFile" DbObjectType="StoredProcedure" GenerateShortCommands="true" GeneratorSourceName="deleteByIdxFile" Modifier="Public" Name="deleteByIdxFile" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteByIdxFile">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_T2D_deleteByIdxFile</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@idxFile" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
<DbSource ConnectionRef="ETS_WSConnectionString (Settings)" DbObjectName="ETS_WS.dbo.stp_T2D_getByIdxFile" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByIdxFile" GetMethodModifier="Public" GetMethodName="getByIdxFile" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByIdxFile" UserSourceName="getByIdxFile">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
@@ -727,7 +738,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i
<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" />
@@ -799,7 +810,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i
</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" />
@@ -967,7 +978,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i
</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" />
@@ -995,7 +1006,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i
</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" />
@@ -1009,7 +1020,7 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i
</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" />
@@ -1043,8 +1054,8 @@ SELECT idxFile, idxTag FROM Tags2Doc WHERE (idxFile = @idxFile) AND (idxTag = @i
</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>
+1 -1
View File
@@ -10,7 +10,7 @@
<Shape ID="DesignTable:tbDocumenti" ZOrder="1" X="342" Y="70" Height="761" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="558" />
<Shape ID="DesignTable:AnagFasi" ZOrder="6" X="1040" Y="130" Height="191" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AnagTags" ZOrder="5" X="736" Y="103" Height="154" Width="202" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:Tags2Doc" ZOrder="4" X="736" Y="345" Height="148" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="78" />
<Shape ID="DesignTable:Tags2Doc" ZOrder="4" X="736" Y="345" Height="167" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="78" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_Tags2Doc_AnagTags" ZOrder="3" LineWidth="11">