ok filtraggio Pn2Part

This commit is contained in:
Samuele E. Locatelli
2016-07-28 18:42:00 +02:00
parent 82f3aab9a5
commit 56bf7d65e1
16 changed files with 61 additions and 21 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
View File
@@ -17,6 +17,7 @@ namespace GMW
mod_specDmtx.FormatoDtmx = "*";
mod_trascFormDmtx.FormatoDtmx = "*";
mod_trascPn2Part.FormatoDtmx = "*";
mod_trascPn2Part.PartNumber = "*";
mod_trascPn2Pn.FormatoDtmx = "*";
}
mod_anagFormatiDtx.eh_ucev += Mod_anagFormatiDtx_eh_ucev;
@@ -63,6 +64,8 @@ namespace GMW
case ucEvType.Reset:
mod_specDmtx.FormatoDtmx = "*";
mod_trascFormDmtx.FormatoDtmx = "*";
mod_trascPn2Part.FormatoDtmx = "*";
mod_trascPn2Pn.FormatoDtmx = "*";
break;
case ucEvType.ReqUpdateParent:
break;
+6 -16
View File
@@ -1,27 +1,17 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_trascPn2Part.ascx.cs" Inherits="GMW.WebUserControls.mod_trascPn2Part" %>
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="FormatoDtmxMM,FormatoDtmx" DataSourceID="ods" AllowSorting="True" Width="100%" CssClass="table table-striped table-condensed table-responsive">
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="PartNumber" DataSourceID="ods" AllowSorting="True" Width="100%" CssClass="table table-striped table-condensed table-responsive">
<Columns>
<asp:BoundField DataField="FormatoDtmxMM" HeaderText="FormatoDtmxMM" ReadOnly="True" SortExpression="FormatoDtmxMM" />
<asp:BoundField DataField="FormatoDtmx" HeaderText="FormatoDtmx" ReadOnly="True" SortExpression="FormatoDtmx" />
<asp:BoundField DataField="FormatoDtmx" HeaderText="FormatoDtmx" SortExpression="FormatoDtmx" />
<asp:BoundField DataField="PartNumber" HeaderText="PartNumber" ReadOnly="True" SortExpression="PartNumber" />
<asp:BoundField DataField="Particolare" HeaderText="Particolare" SortExpression="Particolare" />
</Columns>
</asp:GridView>
<asp:ObjectDataSource runat="server" ID="ods" DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="getByTipo" TypeName="GMW_data.DS_DataMatrixTableAdapters.TrascFormatoDmtxTableAdapter" UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_FormatoDtmxMM" Type="String" />
<asp:Parameter Name="Original_FormatoDtmx" Type="String" />
</DeleteParameters>
<InsertParameters>
<asp:Parameter Name="FormatoDtmxMM" Type="String" />
<asp:Parameter Name="FormatoDtmx" Type="String" />
</InsertParameters>
<asp:ObjectDataSource runat="server" ID="ods" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByPnFormato" TypeName="GMW_data.DS_DataMatrixTableAdapters.TrascDatamatrixTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="hfFormatoDtmx" DefaultValue="" Name="FormatoDtmx" PropertyName="Value" Type="String" />
<asp:ControlParameter ControlID="hfPartNumber" DefaultValue="" Name="PartNumber" PropertyName="Value" Type="String" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Original_FormatoDtmxMM" Type="String" />
<asp:Parameter Name="Original_FormatoDtmx" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
<asp:HiddenField runat="server" ID="hfFormatoDtmx" />
<asp:HiddenField runat="server" ID="hfPartNumber" />
+1 -1
View File
@@ -1,5 +1,5 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_trascPn2Pn.ascx.cs" Inherits="GMW.WebUserControls.mod_trascPn2Pn" %>
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="PartNumberIN, PartNumberOUT" DataSourceID="ods" AllowSorting="True" Width="100%" CssClass="table table-striped table-condensed table-responsive">
<asp:GridView runat="server" ID="grView" AutoGenerateColumns="False" DataKeyNames="PartNumberIN, PartNumberOUT" DataSourceID="ods" AllowSorting="True" Width="100%" CssClass="table table-striped table-condensed table-responsive" OnSelectedIndexChanged="grView_SelectedIndexChanged">
<HeaderStyle CssClass="default" />
<PagerStyle CssClass="active GridPager" />
<PagerSettings Mode="NumericFirstLast" />
@@ -133,6 +133,10 @@ namespace GMW.WebUserControls
if (e.InputParameters["PartNumberOUT"] == null) e.InputParameters["PartNumberOUT"] = "";
}
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
{
raiseEvent(ucEvType.Selected);
}
public string FormatoDtmx
{
get
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
+14 -1
View File
@@ -1293,7 +1293,20 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
<Mapping SourceColumn="Particolare" DataSetColumn="Particolare" />
<Mapping SourceColumn="FormatoDtmx" DataSetColumn="FormatoDtmx" />
</Mappings>
<Sources />
<Sources>
<DbSource ConnectionRef="GMWConnectionString (Settings)" DbObjectName="GMW.dmtx.stp_TPN2P_getByTipo" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getByPnFormato" GetMethodModifier="Public" GetMethodName="getByPnFormato" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getByPnFormato" UserSourceName="getByPnFormato">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dmtx.stp_TPN2P_getByTipo</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="@FormatoDtmx" Precision="0" ProviderType="NVarChar" Scale="0" Size="20" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@PartNumber" Precision="0" ProviderType="NVarChar" Scale="0" Size="30" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
+2 -2
View File
@@ -4,7 +4,7 @@
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="319" ViewPortY="28" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="354" ViewPortY="28" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:TranscodificaParticolari" ZOrder="24" X="946" Y="49" Height="134" Width="281" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:ElencoDataMatrix" ZOrder="22" X="604" Y="14" Height="400" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
@@ -26,7 +26,7 @@
<Shape ID="DesignTable:TabSpecDtx" ZOrder="6" X="1241" Y="579" Height="267" Width="262" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:TrascFormatoDmtx" ZOrder="4" X="1541" Y="603" Height="153" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:TrascPartNum" ZOrder="3" X="1596" Y="419" Height="115" Width="227" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:TrascDatamatrix" ZOrder="2" X="1610" Y="840" Height="134" Width="240" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
<Shape ID="DesignTable:TrascDatamatrix" ZOrder="2" X="1610" Y="840" Height="153" Width="245" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_TabSpecDtx_AnagFormatiDtmx" ZOrder="9" LineWidth="11">
+31 -1
View File
@@ -17832,11 +17832,18 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
[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[1];
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[2];
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "SELECT PartNumber, Particolare, FormatoDtmx FROM dbo.TrascDatamatrix";
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 = "dmtx.stp_TPN2P_getByTipo";
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("@FormatoDtmx", global::System.Data.SqlDbType.NVarChar, 20, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PartNumber", global::System.Data.SqlDbType.NVarChar, 30, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -17863,6 +17870,29 @@ SELECT PartNumber, Particolare, FormatoDtmx FROM TrascDatamatrix WHERE (PartNumb
return dataTable;
}
[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")]
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, false)]
public virtual DS_DataMatrix.TrascDatamatrixDataTable getByPnFormato(string FormatoDtmx, string PartNumber) {
this.Adapter.SelectCommand = this.CommandCollection[1];
if ((FormatoDtmx == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(FormatoDtmx));
}
if ((PartNumber == null)) {
this.Adapter.SelectCommand.Parameters[2].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[2].Value = ((string)(PartNumber));
}
DS_DataMatrix.TrascDatamatrixDataTable dataTable = new DS_DataMatrix.TrascDatamatrixDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
[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")]