Completata traduzione fino a dettaglio scheda...
This commit is contained in:
Generated
+3
-3
@@ -2393,7 +2393,7 @@ namespace CMS_SC_Data {
|
||||
this.columnCodMisura.AllowDBNull = false;
|
||||
this.columnCodMisura.MaxLength = 50;
|
||||
this.columnNomeMisura.AllowDBNull = false;
|
||||
this.columnNomeMisura.MaxLength = 50;
|
||||
this.columnNomeMisura.MaxLength = 500;
|
||||
this.columnTipoValMisura.AllowDBNull = false;
|
||||
this.columnTipoValMisura.MaxLength = 50;
|
||||
this.columnNomePar.AllowDBNull = false;
|
||||
@@ -11949,7 +11949,7 @@ SELECT CodScheda, Vers, CodMisura, NomeMisura, TipoValMisura, NomePar, CodVisib
|
||||
this._commandCollection[4].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
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("@CodSchedaVers", global::System.Data.SqlDbType.NVarChar, 100, 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("@NomeMisura", 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("@NomeMisura", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[5] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[5].Connection = this.Connection;
|
||||
this._commandCollection[5].CommandText = "dbo.stp_DS_moveUpDown";
|
||||
@@ -11965,7 +11965,7 @@ SELECT CodScheda, Vers, CodMisura, NomeMisura, TipoValMisura, NomePar, CodVisib
|
||||
this._commandCollection[6].CommandType = global::System.Data.CommandType.StoredProcedure;
|
||||
this._commandCollection[6].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[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomeMisura", global::System.Data.SqlDbType.NVarChar, 500, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TipoValMisura", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@NomePar", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[6].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, "", "", ""));
|
||||
|
||||
@@ -469,7 +469,7 @@ SELECT CodScheda, Vers, CodMisura, NomeMisura, TipoValMisura, NomePar, CodVisib
|
||||
<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="@CodSchedaVers" Precision="0" ProviderType="NVarChar" Scale="0" Size="100" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NomeMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NomeMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
</Parameters>
|
||||
</DbCommand>
|
||||
</SelectCommand>
|
||||
@@ -495,7 +495,7 @@ SELECT CodScheda, Vers, CodMisura, NomeMisura, TipoValMisura, NomePar, CodVisib
|
||||
<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="@CodMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NomeMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NomeMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="500" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@TipoValMisura" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@NomePar" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" 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" />
|
||||
@@ -1685,7 +1685,7 @@ SELECT Email, ParName, ParValue FROM UserParam WHERE (Email = @Email) AND (ParNa
|
||||
<xs:element name="NomeMisura" msprop:Generator_ColumnVarNameInTable="columnNomeMisura" msprop:Generator_ColumnPropNameInRow="NomeMisura" msprop:Generator_ColumnPropNameInTable="NomeMisuraColumn" msprop:Generator_UserColumnName="NomeMisura">
|
||||
<xs:simpleType>
|
||||
<xs:restriction base="xs:string">
|
||||
<xs:maxLength value="50" />
|
||||
<xs:maxLength value="500" />
|
||||
</xs:restriction>
|
||||
</xs:simpleType>
|
||||
</xs:element>
|
||||
|
||||
@@ -9,14 +9,14 @@
|
||||
<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="9" X="1097" Y="812" Height="204" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="76" />
|
||||
<Shape ID="DesignTable:AnagSchede" ZOrder="1" X="53" Y="398" Height="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
|
||||
<Shape ID="DesignTable:DettScheda" ZOrder="2" X="421" Y="465" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
|
||||
<Shape ID="DesignTable:AnagSchede" ZOrder="2" X="53" Y="398" Height="319" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="168" />
|
||||
<Shape ID="DesignTable:DettScheda" ZOrder="1" 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="68" Y="739" Height="342" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="191" />
|
||||
<Shape ID="DesignTable:SchemaCollFamMacc" ZOrder="5" X="67" Y="-36" Height="411" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="260" />
|
||||
<Shape ID="DesignTable:ElencoDossier" ZOrder="8" X="1070" Y="325" Height="434" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="283" />
|
||||
<Shape ID="DesignTable:SchemaCollMacc" ZOrder="4" X="738" Y="184" Height="365" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="214" />
|
||||
<Shape ID="DesignTable:Misure" ZOrder="6" 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="418" Y="847" Height="365" Width="253" 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="10" X="0" Y="0" Height="204" Width="294" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="99" />
|
||||
@@ -28,11 +28,11 @@
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>353</X>
|
||||
<Y>695</Y>
|
||||
<Y>626</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>421</X>
|
||||
<Y>695</Y>
|
||||
<X>420</X>
|
||||
<Y>626</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
@@ -51,12 +51,12 @@
|
||||
<Connector ID="DesignRelation:FK_ValidVal_DettScheda" ZOrder="25" LineWidth="11">
|
||||
<RoutePoints>
|
||||
<Point>
|
||||
<X>421</X>
|
||||
<Y>795</Y>
|
||||
<X>420</X>
|
||||
<Y>866</Y>
|
||||
</Point>
|
||||
<Point>
|
||||
<X>368</X>
|
||||
<Y>795</Y>
|
||||
<Y>866</Y>
|
||||
</Point>
|
||||
</RoutePoints>
|
||||
</Connector>
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,6 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_DettScheda.ascx.cs" Inherits="CMS_SC.WebUserControls.mod_DettScheda" %>
|
||||
<%@ Register Src="~/WebUserControls/mod_textTrans.ascx" TagPrefix="uc1" TagName="mod_textTrans" %>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
function enter(obj) {
|
||||
@@ -39,7 +41,9 @@
|
||||
<asp:LinkButton ID="lbEdit" runat="server" CausesValidation="False" CommandName="Edit" ToolTip="Edit" CssClass="fa fa-edit text-info fa-2x" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="CodMisura" HeaderText="CodMisura" ReadOnly="false" SortExpression="CodMisura" ControlStyle-Width="6em" />
|
||||
<asp:BoundField DataField="CodMisura" HeaderText="CodMisura" ReadOnly="false" SortExpression="CodMisura" ControlStyle-Width="6em" >
|
||||
<ControlStyle Width="6em"></ControlStyle>
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField ShowHeader="False" ItemStyle-Wrap="false">
|
||||
<HeaderTemplate>
|
||||
<%# traduci("moveMis") %>
|
||||
@@ -56,8 +60,20 @@
|
||||
</div>
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
|
||||
<ItemStyle Wrap="False"></ItemStyle>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Nome Misura" SortExpression="NomeMisura">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NomeMisura") %>' CssClass="form-control form-control-sm small" TextMode="MultiLine" Height="8em" Font-Size="0.9em" />
|
||||
<p><b>[IT]</b>Versione testo in Italiano<b>[/IT]</b><br />
|
||||
<b>[EN]</b>English version text<b>[/EN]</b></p>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<uc1:mod_textTrans runat="server" ID="mod_textTrans" fullText='<%# Eval("NomeMisura") %>' tagOpen="[IT]" tagClose="[/IT]" />
|
||||
</ItemTemplate>
|
||||
<ControlStyle Width="30em" />
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="NomeMisura" HeaderText="Nome Misura" SortExpression="NomeMisura" ControlStyle-Width="30em" />
|
||||
<asp:TemplateField HeaderText="Tipo Mis." SortExpression="TipoValMisura">
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="ddlTipoValMisura" runat="server" SelectedValue='<%# Bind("TipoValMisura") %>' DataSourceID="odsTipoVal" DataTextField="label" DataValueField="value">
|
||||
@@ -67,8 +83,12 @@
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("TipoValMisura") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="NomePar" HeaderText="Nome Par." SortExpression="NomePar" ControlStyle-Width="16em" />
|
||||
<asp:BoundField DataField="CodVisib" HeaderText="Visib." SortExpression="CodVisib" ControlStyle-Width="3em" />
|
||||
<asp:BoundField DataField="NomePar" HeaderText="Nome Par." SortExpression="NomePar" ControlStyle-Width="16em" >
|
||||
<ControlStyle Width="16em"></ControlStyle>
|
||||
</asp:BoundField>
|
||||
<asp:BoundField DataField="CodVisib" HeaderText="Visib." SortExpression="CodVisib" ControlStyle-Width="3em" >
|
||||
<ControlStyle Width="3em"></ControlStyle>
|
||||
</asp:BoundField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbAddNew" runat="server" CausesValidation="false" ToolTip="InsNew" CssClass="fa fa-plus text-success fa-2x" OnClick="lbAddNew_Click" />
|
||||
@@ -84,7 +104,7 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByScheda" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.DettSchedaTableAdapter" FilterExpression=" CodMisura LIKE '%{0}%' OR NomeMisura LIKE '%{0}%' OR TipoValMisura LIKE '%{0}%' OR NomePar LIKE '%{0}%' " DeleteMethod="deleteQuery" InsertMethod="insertNew" UpdateMethod="updateQuery" OnDeleted="ods_Deleted" OnUpdated="ods_Updated">
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByScheda" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.DettSchedaTableAdapter" FilterExpression=" CodMisura LIKE '%{0}%' OR NomeMisura LIKE '%{0}%' OR TipoValMisura LIKE '%{0}%' OR NomePar LIKE '%{0}%' " DeleteMethod="deleteQuery" InsertMethod="insertNew" UpdateMethod="updateQuery" OnDeleted="ods_Deleted" OnUpdated="ods_Updated" OnUpdating="ods_Updating">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_CodScheda" Type="String" />
|
||||
<asp:Parameter Name="Original_Vers" Type="Int32" />
|
||||
|
||||
@@ -5,285 +5,294 @@ using System.Web.UI.WebControls;
|
||||
|
||||
namespace CMS_SC.WebUserControls
|
||||
{
|
||||
public partial class mod_DettScheda : SteamWare.UserControl
|
||||
public partial class mod_DettScheda : SteamWare.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// selezione valore in DettScheda
|
||||
/// </summary>
|
||||
public event EventHandler eh_selezioneValore;
|
||||
/// <summary>
|
||||
/// richiesta SAVE (da enter)
|
||||
/// </summary>
|
||||
public event EventHandler eh_reqSave;
|
||||
/// <summary>
|
||||
/// sollevo evento selezione
|
||||
/// </summary>
|
||||
protected void raiseEvent()
|
||||
{
|
||||
/// <summary>
|
||||
/// selezione valore in DettScheda
|
||||
/// </summary>
|
||||
public event EventHandler eh_selezioneValore;
|
||||
/// <summary>
|
||||
/// richiesta SAVE (da enter)
|
||||
/// </summary>
|
||||
public event EventHandler eh_reqSave;
|
||||
/// <summary>
|
||||
/// sollevo evento selezione
|
||||
/// </summary>
|
||||
protected void raiseEvent()
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selezioneValore != null)
|
||||
{
|
||||
eh_selezioneValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// caricamento macchina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione pagina grid view
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return grView.PageSize;
|
||||
}
|
||||
set
|
||||
{
|
||||
grView.PageSize = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta di aggiunta record, tutto a zero!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbAddNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
insertNewRec();
|
||||
}
|
||||
/// <summary>
|
||||
/// inserisco un nuovo record da completare...
|
||||
/// </summary>
|
||||
private void insertNewRec()
|
||||
{
|
||||
// inserisco nuovo record SE HO una selezione da URL
|
||||
if (memLayer.ML.QSS("CodSchedaVers") != "")
|
||||
{
|
||||
DtProxy.man.taDS.insertNew(memLayer.ML.QSS("CodSchedaVers"), "");
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// crea un nuovo record ...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
insertNewRec();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// Scheda selezionata
|
||||
/// </summary>
|
||||
public string CodSchedaSel
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = grView.SelectedDataKey["CodScheda"].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Versione selezionata
|
||||
/// </summary>
|
||||
public int VersSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = -1;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(grView.SelectedDataKey["Vers"].ToString());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Misura selezionata
|
||||
/// </summary>
|
||||
public string CodMisuraSel
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = grView.SelectedDataKey["CodMisura"].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session il prox comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lb_Click(object sender, EventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// selezionato valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// verifico se ho un argomento di tipo moveUp / moveDown... quale comando?
|
||||
string _comando = "";
|
||||
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
if (_comando != "")
|
||||
{
|
||||
// SE c'era comando eseguo move...
|
||||
switch (_comando)
|
||||
{
|
||||
case "moveUp":
|
||||
case "moveDown":
|
||||
DtProxy.man.taDS.moveUpDown(_comando, CodSchedaSel, VersSel, CodMisuraSel);
|
||||
break;
|
||||
case "clone":
|
||||
DtProxy.man.taDS.clone(memLayer.ML.QSS("CodSchedaVers"), grView.SelectedDataKey["CodMisura"].ToString());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
resetSelezione();
|
||||
}
|
||||
else
|
||||
{
|
||||
raiseEvent();
|
||||
}
|
||||
}
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetto selezione
|
||||
/// </summary>
|
||||
private void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
raiseEvent();
|
||||
}
|
||||
/// <summary>
|
||||
/// determina visibilità frecce spostamento
|
||||
/// </summary>
|
||||
/// <param name="direction">direzione: UP / DOWN</param>
|
||||
/// <param name="CodMisura">CodMisura da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool arrowVisible(object _direction, object _CodMisura)
|
||||
{
|
||||
bool answ = false;
|
||||
string direction = _direction.ToString();
|
||||
string CodMisura = _CodMisura.ToString();
|
||||
if (memLayer.ML.QSS("CodSchedaVers") != "")
|
||||
{
|
||||
// recupero TUTTE le righe della scheda dett corrente
|
||||
DS_Applicazione.DettSchedaDataTable tab = DtProxy.man.taDS.getByScheda(memLayer.ML.QSS("CodSchedaVers"));
|
||||
// a seconda della direzione CERCO se ci siano misure prima/dopo...
|
||||
string where = "";
|
||||
switch (direction)
|
||||
{
|
||||
case "UP":
|
||||
where = string.Format("CodMisura < '{0}'", CodMisura);
|
||||
break;
|
||||
case "DOWN":
|
||||
where = string.Format("CodMisura > '{0}'", CodMisura);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
answ = tab.Select(where).Length > 0;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// determina visibilità delete (solo se è ultima misura)
|
||||
/// </summary>
|
||||
/// <param name="direction">direzione: UP / DOWN</param>
|
||||
/// <param name="CodMisura">CodMisura da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool delEnabled(object _CodMisura)
|
||||
{
|
||||
bool answ = false;
|
||||
string CodMisura = _CodMisura.ToString();
|
||||
if (memLayer.ML.QSS("CodSchedaVers") != "")
|
||||
{
|
||||
// recupero TUTTE le righe della scheda dett corrente
|
||||
DS_Applicazione.DettSchedaDataTable tab = DtProxy.man.taDS.getByScheda(memLayer.ML.QSS("CodSchedaVers"));
|
||||
// a seconda della direzione CERCO se ci siano misure prima/dopo...
|
||||
string where = string.Format("CodMisura > '{0}'", CodMisura);
|
||||
answ = tab.Select(where).Length == 0;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// save del record
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
// verifico SE sia in editing...
|
||||
if (grView.EditIndex >= 0)
|
||||
{
|
||||
// salvo
|
||||
grView.UpdateRow(grView.EditIndex, false);
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_reqSave != null)
|
||||
{
|
||||
eh_reqSave(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_selezioneValore != null)
|
||||
{
|
||||
eh_selezioneValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// caricamento macchina
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
/// <summary>
|
||||
/// dimensione pagina grid view
|
||||
/// </summary>
|
||||
public int pageSize
|
||||
{
|
||||
get
|
||||
{
|
||||
return grView.PageSize;
|
||||
}
|
||||
set
|
||||
{
|
||||
grView.PageSize = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta di aggiunta record, tutto a zero!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbAddNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
insertNewRec();
|
||||
}
|
||||
/// <summary>
|
||||
/// inserisco un nuovo record da completare...
|
||||
/// </summary>
|
||||
private void insertNewRec()
|
||||
{
|
||||
// inserisco nuovo record SE HO una selezione da URL
|
||||
if (memLayer.ML.QSS("CodSchedaVers") != "")
|
||||
{
|
||||
DtProxy.man.taDS.insertNew(memLayer.ML.QSS("CodSchedaVers"), "");
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// crea un nuovo record ...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewFromEmpty_Click(object sender, EventArgs e)
|
||||
{
|
||||
insertNewRec();
|
||||
}
|
||||
/// <summary>
|
||||
/// wrapper traduzione
|
||||
/// </summary>
|
||||
/// <param name="lemma"></param>
|
||||
/// <returns></returns>
|
||||
public string traduci(string lemma)
|
||||
{
|
||||
return user_std.UtSn.Traduci(lemma);
|
||||
}
|
||||
/// <summary>
|
||||
/// Scheda selezionata
|
||||
/// </summary>
|
||||
public string CodSchedaSel
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = grView.SelectedDataKey["CodScheda"].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Versione selezionata
|
||||
/// </summary>
|
||||
public int VersSel
|
||||
{
|
||||
get
|
||||
{
|
||||
int answ = -1;
|
||||
try
|
||||
{
|
||||
answ = Convert.ToInt32(grView.SelectedDataKey["Vers"].ToString());
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Misura selezionata
|
||||
/// </summary>
|
||||
public string CodMisuraSel
|
||||
{
|
||||
get
|
||||
{
|
||||
string answ = "";
|
||||
try
|
||||
{
|
||||
answ = grView.SelectedDataKey["CodMisura"].ToString();
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo in session il prox comando
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lb_Click(object sender, EventArgs e)
|
||||
{
|
||||
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", ((LinkButton)sender).CommandArgument);
|
||||
}
|
||||
/// <summary>
|
||||
/// selezionato valore
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// verifico se ho un argomento di tipo moveUp / moveDown... quale comando?
|
||||
string _comando = "";
|
||||
if (SteamWare.memLayer.ML.isInSessionObject("nextObjCommand"))
|
||||
{
|
||||
_comando = SteamWare.memLayer.ML.StringSessionObj("nextObjCommand");
|
||||
SteamWare.memLayer.ML.emptySessionVal("nextObjCommand");
|
||||
}
|
||||
if (_comando != "")
|
||||
{
|
||||
// SE c'era comando eseguo move...
|
||||
switch (_comando)
|
||||
{
|
||||
case "moveUp":
|
||||
case "moveDown":
|
||||
DtProxy.man.taDS.moveUpDown(_comando, CodSchedaSel, VersSel, CodMisuraSel);
|
||||
break;
|
||||
case "clone":
|
||||
DtProxy.man.taDS.clone(memLayer.ML.QSS("CodSchedaVers"), grView.SelectedDataKey["CodMisura"].ToString());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
resetSelezione();
|
||||
}
|
||||
else
|
||||
{
|
||||
raiseEvent();
|
||||
}
|
||||
}
|
||||
protected void btnReset_Click(object sender, EventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
/// <summary>
|
||||
/// resetto selezione
|
||||
/// </summary>
|
||||
private void resetSelezione()
|
||||
{
|
||||
grView.SelectedIndex = -1;
|
||||
grView.DataBind();
|
||||
raiseEvent();
|
||||
}
|
||||
/// <summary>
|
||||
/// determina visibilità frecce spostamento
|
||||
/// </summary>
|
||||
/// <param name="direction">direzione: UP / DOWN</param>
|
||||
/// <param name="CodMisura">CodMisura da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool arrowVisible(object _direction, object _CodMisura)
|
||||
{
|
||||
bool answ = false;
|
||||
string direction = _direction.ToString();
|
||||
string CodMisura = _CodMisura.ToString();
|
||||
if (memLayer.ML.QSS("CodSchedaVers") != "")
|
||||
{
|
||||
// recupero TUTTE le righe della scheda dett corrente
|
||||
DS_Applicazione.DettSchedaDataTable tab = DtProxy.man.taDS.getByScheda(memLayer.ML.QSS("CodSchedaVers"));
|
||||
// a seconda della direzione CERCO se ci siano misure prima/dopo...
|
||||
string where = "";
|
||||
switch (direction)
|
||||
{
|
||||
case "UP":
|
||||
where = string.Format("CodMisura < '{0}'", CodMisura);
|
||||
break;
|
||||
case "DOWN":
|
||||
where = string.Format("CodMisura > '{0}'", CodMisura);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
answ = tab.Select(where).Length > 0;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// determina visibilità delete (solo se è ultima misura)
|
||||
/// </summary>
|
||||
/// <param name="direction">direzione: UP / DOWN</param>
|
||||
/// <param name="CodMisura">CodMisura da verificare</param>
|
||||
/// <returns></returns>
|
||||
public bool delEnabled(object _CodMisura)
|
||||
{
|
||||
bool answ = false;
|
||||
string CodMisura = _CodMisura.ToString();
|
||||
if (memLayer.ML.QSS("CodSchedaVers") != "")
|
||||
{
|
||||
// recupero TUTTE le righe della scheda dett corrente
|
||||
DS_Applicazione.DettSchedaDataTable tab = DtProxy.man.taDS.getByScheda(memLayer.ML.QSS("CodSchedaVers"));
|
||||
// a seconda della direzione CERCO se ci siano misure prima/dopo...
|
||||
string where = string.Format("CodMisura > '{0}'", CodMisura);
|
||||
answ = tab.Select(where).Length == 0;
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
|
||||
{
|
||||
resetSelezione();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// save del record
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
// verifico SE sia in editing...
|
||||
if (grView.EditIndex >= 0)
|
||||
{
|
||||
// salvo
|
||||
grView.UpdateRow(grView.EditIndex, false);
|
||||
grView.EditIndex = -1;
|
||||
grView.DataBind();
|
||||
}
|
||||
else
|
||||
{
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_reqSave != null)
|
||||
{
|
||||
eh_reqSave(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
// metto a capo tra i vari tag SE non ci fosse...
|
||||
if (e.InputParameters["NomeMisura"].ToString().IndexOf("][") >= 0)
|
||||
{
|
||||
e.InputParameters["NomeMisura"] = e.InputParameters["NomeMisura"].ToString().Replace("][", "]\n[");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -100,7 +100,7 @@
|
||||
<span class="input-group input-group-sm mb-0">
|
||||
<asp:Label runat="server" ID="lblUtente" CssClass="bg-dark text-light p-2" ToolTip='<%# usrAuthToolTip %>'><i class="fa fa-user fa-lg <%: usrAuthCss %>"></i> <%# usrAuthText %></asp:Label>
|
||||
<span class="input-group-append">
|
||||
<asp:DropDownList runat="server" ID="ddlLang" AutoPostBack="true" OnSelectedIndexChanged="ddlLang_SelectedIndexChanged">
|
||||
<asp:DropDownList runat="server" CssClass="bg-primary text-light" ID="ddlLang" AutoPostBack="true" OnSelectedIndexChanged="ddlLang_SelectedIndexChanged">
|
||||
<asp:ListItem>IT</asp:ListItem>
|
||||
<asp:ListItem>EN</asp:ListItem>
|
||||
</asp:DropDownList>
|
||||
|
||||
@@ -253,7 +253,7 @@ namespace CMS_SC.WebUserControls
|
||||
{
|
||||
try
|
||||
{
|
||||
if (nomeElem.IndexOf(user_std.pagCorrente) >= 0) answ = "active";
|
||||
if (nomeElem.IndexOf(user_std.pagCorrente) >= 0) answ = "active table-primary";
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
Binary file not shown.
@@ -34,6 +34,13 @@ VALUES ('FN0001',0,'M0002','File Allegati','FILE','','FCS','')
|
||||
ALTER TABLE AnagSchede DROP CONSTRAINT [DF_AnagSchede_Descrizione]
|
||||
ALTER TABLE AnagSchede ALTER COLUMN Descrizione NVARCHAR(MAX) NOT NULL
|
||||
ALTER TABLE AnagSchede ADD CONSTRAINT [DF_AnagSchede_Descrizione] DEFAULT ('') FOR [Descrizione]
|
||||
|
||||
-- traduzione nome schede collaudo compreso a capo - CHAR(10)
|
||||
UPDATE AnagSchede SET Descrizione = '[IT]' + Descrizione + '[/IT]' + CHAR(10) + '[EN]' + Descrizione + '[/EN]'
|
||||
|
||||
|
||||
-- modifica colonna NomeMisura NVARCHAR(MAX)
|
||||
ALTER TABLE Dettscheda ALTER COLUMN NomeMisura NVARCHAR(500) NOT NULL
|
||||
--aggiorno DETTAGLIO scheda...
|
||||
UPDATE Dettscheda SET NomeMisura = '[IT]' + NomeMisura + '[/IT]' + CHAR(10) + '[EN]' + NomeMisura + '[/EN]'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user