Traduzione elenco schede (inizio)

This commit is contained in:
Samuele E. Locatelli
2018-02-24 11:55:28 +01:00
parent b208b170d4
commit 531132b05f
10 changed files with 66 additions and 35 deletions
+4 -4
View File
@@ -2036,7 +2036,7 @@ namespace CMS_SC_Data {
this.columnCodScheda.MaxLength = 50;
this.columnVers.AllowDBNull = false;
this.columnDescrizione.AllowDBNull = false;
this.columnDescrizione.MaxLength = 2147483647;
this.columnDescrizione.MaxLength = 500;
this.columnPath.AllowDBNull = false;
this.columnPath.MaxLength = 2147483647;
this.columnFasiEnab.AllowDBNull = false;
@@ -3948,7 +3948,7 @@ namespace CMS_SC_Data {
this.columnCodScheda.MaxLength = 50;
this.columnVers.AllowDBNull = false;
this.columnNumScheda.AllowDBNull = false;
this.columnDescrizione.MaxLength = 250;
this.columnDescrizione.MaxLength = 500;
this.columnopz.AllowDBNull = false;
this.columnopz.MaxLength = 50;
this.columnFasiEnab.AllowDBNull = false;
@@ -11325,7 +11325,7 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
this._commandCollection[4].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[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodScheda", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Vers", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Path", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FasiEnab", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[4].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodVisib", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
@@ -14209,7 +14209,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordin
this._commandCollection[7].CommandText = "dbo.stp_SCM_updateQuery";
this._commandCollection[7].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[7].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[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Descrizione", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@opz", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@FasiEnab", global::System.Data.SqlDbType.NVarChar, 2147483647, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[7].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_IdxDossier", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 10, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
+4 -4
View File
@@ -341,7 +341,7 @@ SELECT CodScheda, Vers, Descrizione, Path, FasiEnab, CodVisib FROM AnagSchede WH
<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="nvarchar" DbType="String" Direction="Input" ParameterName="@CodScheda" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Vers" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Path" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FasiEnab" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodVisib" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -1013,7 +1013,7 @@ SELECT IdxDossier, CodScheda, Vers, NumScheda, Descrizione, opz, FasiEnab, Ordin
<CommandText>dbo.stp_SCM_updateQuery</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="nvarchar" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Descrizione" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@opz" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@FasiEnab" Precision="0" ProviderType="NVarChar" Scale="0" Size="2147483647" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_IdxDossier" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
@@ -1636,7 +1636,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
<xs:element name="Descrizione" msprop:Generator_ColumnVarNameInTable="columnDescrizione" msprop:Generator_ColumnPropNameInRow="Descrizione" msprop:Generator_ColumnPropNameInTable="DescrizioneColumn" msprop:Generator_UserColumnName="Descrizione">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2147483647" />
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
@@ -1859,7 +1859,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
<xs:element name="Descrizione" msprop:Generator_ColumnVarNameInTable="columnDescrizione" msprop:Generator_ColumnPropNameInRow="Descrizione" msprop:Generator_ColumnPropNameInTable="DescrizioneColumn" msprop:Generator_UserColumnName="Descrizione" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="250" />
<xs:maxLength value="500" />
</xs:restriction>
</xs:simpleType>
</xs:element>
+6 -6
View File
@@ -9,18 +9,18 @@
<Shape ID="DesignTable:ElencoFamMacc" ZOrder="26" X="598" Y="-22" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:ElencoMacchineCN" ZOrder="12" X="1029" Y="-32" Height="365" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
<Shape ID="DesignTable:AnagFasi" ZOrder="10" X="1097" Y="812" Height="204" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:AnagSchede" ZOrder="4" X="55" Y="436" Height="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:DettScheda" ZOrder="3" X="420" Y="536" Height="388" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
<Shape ID="DesignTable:AnagSchede" ZOrder="2" X="55" Y="436" Height="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
<Shape ID="DesignTable:DettScheda" ZOrder="5" X="420" Y="536" Height="388" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
<Shape ID="DesignTable:ValidVal" ZOrder="14" X="59" Y="778" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
<Shape ID="DesignTable:SchemaCollFamMacc" ZOrder="1" X="51" Y="-39" Height="411" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="260" />
<Shape ID="DesignTable:SchemaCollFamMacc" ZOrder="3" X="51" Y="-39" Height="411" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="260" />
<Shape ID="DesignTable:ElencoDossier" ZOrder="9" X="1070" Y="325" Height="434" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="283" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="6" X="738" Y="184" Height="365" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="1" X="738" Y="184" Height="365" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
<Shape ID="DesignTable:Misure" ZOrder="7" X="735" Y="583" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:ReportData" ZOrder="19" X="439" Y="962" Height="365" Width="253" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:Tags2Macchine" ZOrder="18" X="1366" Y="-8" Height="158" Width="277" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:AnagTags" ZOrder="15" X="1376" Y="245" Height="227" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
<Shape ID="DesignTable:UserParam" ZOrder="2" X="525" Y="1406" Height="204" Width="294" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:StatoCollaudi" ZOrder="5" X="63" Y="1186" Height="388" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:UserParam" ZOrder="4" X="525" Y="1406" Height="204" Width="294" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
<Shape ID="DesignTable:StatoCollaudi" ZOrder="6" X="63" Y="1186" Height="388" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="306" />
<Shape ID="DesignTable:DFR" ZOrder="8" X="738" Y="1126" Height="204" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
</Shapes>
<Connectors>
+6 -2
View File
@@ -49,8 +49,12 @@
</div>
</div>
<div class="col-8 text-right">
<asp:DropDownList runat="server" ID="ddlSelScheda" DataSourceID="odsScheda" DataTextField="label" CssClass="form-control form-control-sm" DataValueField="value"></asp:DropDownList>
<asp:ObjectDataSource ID="odsScheda" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selSchedaTableAdapter"></asp:ObjectDataSource>
<asp:DropDownList runat="server" ID="ddlSelScheda" DataSourceID="odsScheda" DataTextField="label" CssClass="form-control form-control-sm" DataValueField="value" OnDataBound="ddlSelScheda_DataBound" OnSelectedIndexChanged="ddlSelScheda_SelectedIndexChanged"></asp:DropDownList>
<asp:ObjectDataSource ID="odsScheda" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByLang" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selSchedaTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="IT" Name="lang" SessionField="Lingua" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
<div class="row">
<div class="col-6">
<asp:Button runat="server" ID="btnInsMisFasi" CssClass="btn btn-block btn-warning" Text='<%# traduci("btnInsMisFasi") %>' OnClick="btnInsMisFasi_Click" Enabled='<%# isWriteEnabled %>' />
+13
View File
@@ -130,5 +130,18 @@ namespace CMS_SC
mod_elencoSchedeDossier.doUpdate();
}
protected void ddlSelScheda_DataBound(object sender, EventArgs e)
{
if (memLayer.ML.isInSessionObject("ES_CodSchedaSel"))
{
ddlSelScheda.SelectedValue = memLayer.ML.StringSessionObj("ES_CodSchedaSel");
}
}
protected void ddlSelScheda_SelectedIndexChanged(object sender, EventArgs e)
{
// salvo...
memLayer.ML.setSessionVal("ES_CodSchedaSel", ddlSelScheda.SelectedValue);
}
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selSchedaUrl.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_selSchedaUrl" %>
<div>
<div style="float: left;">
<asp:DropDownList runat="server" ID="ddlSelScheda" AutoPostBack="True" OnSelectedIndexChanged="ddlSelScheda_SelectedIndexChanged" DataSourceID="odsScheda" DataTextField="label" CssClass="form-control form-control-sm" DataValueField="value"></asp:DropDownList>
<asp:DropDownList runat="server" ID="ddlSelScheda" AutoPostBack="True" OnSelectedIndexChanged="ddlSelScheda_SelectedIndexChanged" DataSourceID="odsScheda" DataTextField="label" CssClass="form-control form-control-sm" DataValueField="value" OnDataBound="ddlSelScheda_DataBound"></asp:DropDownList>
<asp:ObjectDataSource ID="odsScheda" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="getByLang" TypeName="CMS_SC_Data.DS_UtilityTableAdapters.v_selSchedaTableAdapter">
<SelectParameters>
<asp:SessionParameter DefaultValue="IT" Name="lang" SessionField="Lingua" Type="String" />
+26 -18
View File
@@ -15,26 +15,29 @@ namespace CMS_SC.WebUserControls
{
if (!Page.IsPostBack)
{
// cerco in URL cod scheda, se c'è seleziono...
if (memLayer.ML.QSS(QSName) != "")
{
ddlSelScheda.SelectedValue = memLayer.ML.QSS(QSName);
}
else
{
try
{
ddlSelScheda.DataBind();
ddlSelScheda.SelectedIndex = 0;
updateAndRedirect();
}
catch
{ }
}
fixUrl();
doUpdate();
}
}
public void doUpdate()
{
// cerco in URL cod scheda, se c'è seleziono...
if (memLayer.ML.QSS(QSName) != "")
{
ddlSelScheda.SelectedValue = memLayer.ML.QSS(QSName);
}
else
{
try
{
ddlSelScheda.DataBind();
ddlSelScheda.SelectedIndex = 0;
updateAndRedirect();
}
catch
{ }
}
fixUrl();
}
private void updateAndRedirect()
{
Response.Redirect(string.Format("{0}?{3}={1}&CodFam={2}", devicesAuthProxy.pagCorrente, ddlSelScheda.SelectedValue, memLayer.ML.QSS("CodFam"), QSName));
@@ -116,5 +119,10 @@ namespace CMS_SC.WebUserControls
}
}
public bool showLinkDoc { get; set; }
protected void ddlSelScheda_DataBound(object sender, EventArgs e)
{
doUpdate();
}
}
}
Binary file not shown.
+6
View File
@@ -48,3 +48,9 @@ UPDATE Dettscheda SET NomeMisura = '[IT]' + NomeMisura + '[/IT]' + CHAR(10) + '[
ALTER TABLE SchemaCollFamMacc ALTER COLUMN Descrizione NVARCHAR(500) NOT NULL
--aggiorno DETTAGLIO scheda...
UPDATE SchemaCollFamMacc SET Descrizione = '[IT]' + Descrizione + '[/IT]' + CHAR(10) + '[EN]' + Descrizione + '[/EN]'
-- sistemo le ISTANZE delle schede configurate x i vari dossier...
ALTER TABLE SchemaCollMacc ALTER COLUMN Descrizione NVARCHAR(500) NOT NULL
--aggiorno DETTAGLIO scheda...
UPDATE SchemaCollMacc SET Descrizione = '[IT]' + Descrizione + '[/IT]' + CHAR(10) + '[EN]' + Descrizione + '[/EN]'