inserita "preselezione" tra nuova ed offerta esistente
This commit is contained in:
Samuele E. Locatelli
2014-05-12 16:19:37 +02:00
parent 6ad3db8312
commit ca8ca60c22
17 changed files with 820 additions and 65 deletions
+40 -16
View File
@@ -5,20 +5,44 @@
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
fare clonando pagina QUOTE
<%--<asp:LinkButton runat="server" ID="lbChkStandard" class="btn btn-warning" Width="100%" OnClick="lbChkStandard_Click"><i class="fa fa-flash"></i>&nbsp;<%: traduci("CheckStd") %></asp:LinkButton>--%>
<br />
<br />
Attenzione!<br />
con questa selezione
<br />
<br />
select pl.RawMat, CodItem, count(*)
from ProductionLog pl inner join DiesDet dd on pl.CodDies = dd.CodDies
where dd.CodItem = '1AN00001'
group by pl.RawMat, CodItem
<br />
<br />
cercare se ci siano dati x poter generare un offerta standard o se piuttosto si debba x forza passare al simulatore
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
<h2><%: traduci("ProductCode") %></h2>
</div>
<div class="panel-body">
<div class="row" style="font-size: 1.2em; line-height: 1.6em;">
<div class="col-xs-3">
<asp:DropDownList ID="ddlProduct" runat="server" DataSourceID="odsProducts" DataValueField="value" DataTextField="value" AutoPostBack="true" Font-Size="1.4em" />
<asp:ObjectDataSource ID="odsProducts" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_UtilityTableAdapters.v_selItemsTableAdapter"></asp:ObjectDataSource>
</div>
<div class="col-xs-9">
<asp:ListView ID="lstView" runat="server"></asp:ListView>
<div class="shortcuts">
<asp:Repeater ID="repView" runat="server" DataSourceID="ods">
<ItemTemplate>
<div class="shortcut">
<%: traduci("RawMat") %>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("RawMat") %>' Font-Bold="true" Font-Size="1.2em" />
<div class="didascalia">
<asp:Label ID="Label2" runat="server" Text='<%# Bind("numRec","{0} rec") %>' />
</div>
<div style="font-size: 0.7em;">
<asp:HyperLink runat="server" ID="hlExistingProd" NavigateUrl='<%# getUrl(false,Eval("RawMat")) %>' CssClass="btn btn-success" Width="100%" Visible='<%# Convert.ToInt32(Eval("numRec")) > 0 %>'><%: traduci("ExistingProduct")%></asp:HyperLink>
<asp:HyperLink runat="server" ID="hlNewProd" NavigateUrl='<%# getUrl(true,Eval("RawMat")) %>' CssClass="btn btn-warning" Width="100%" Visible='<%# Convert.ToInt32(Eval("numRec")) == 0 %>'><%: traduci("NewProduct")%></asp:HyperLink>
</div>
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="C2P_Data.DS_UtilityTableAdapters.Offers4ItemTableAdapter">
<SelectParameters>
<asp:ControlParameter ControlID="ddlProduct" DefaultValue="" Name="CodItem" PropertyName="SelectedValue" Type="String" />
</SelectParameters>
</asp:ObjectDataSource>
</div>
</div>
</div>
</div>
</div>
</asp:Content>
+27 -1
View File
@@ -7,10 +7,36 @@ using System.Web.UI.WebControls;
namespace C2P
{
public partial class ExistingProductOffer : System.Web.UI.Page
public partial class ExistingProductOffer : SteamWare.UserPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
/// <summary>
/// url x rimbalzo offerta
/// </summary>
/// <param name="_isNew">indica se nuovo prodotto o esistente</param>
/// <param name="_rawMat">codice lega</param>
/// <returns></returns>
public string getUrl(object _isNew, object _rawMat)
{
string answ = "";
bool isNew = false;
try
{
isNew = Convert.ToBoolean(_isNew);
}
catch
{ }
if (isNew)
{
answ = string.Format("~/NewProductOffer?RawMat={0}&CodItem={1}", _rawMat, ddlProduct.SelectedValue);
}
else
{
answ = string.Format("~/Quote?RawMat={0}&CodItem={1}", _rawMat, ddlProduct.SelectedValue);
}
return answ;
}
}
}
+45
View File
@@ -11,5 +11,50 @@ namespace C2P {
public partial class ExistingProductOffer {
/// <summary>
/// ddlProduct 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.DropDownList ddlProduct;
/// <summary>
/// odsProducts 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 odsProducts;
/// <summary>
/// lstView 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.ListView lstView;
/// <summary>
/// repView 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.Repeater repView;
/// <summary>
/// ods 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 ods;
}
}
+2 -2
View File
@@ -51,9 +51,9 @@
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
</assemblies>
<buildProviders>
<!--<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</buildProviders>
</buildProviders>-->
</compilation>
<httpRuntime targetFramework="4.5" />
<pages>
+11 -44
View File
@@ -26,30 +26,16 @@
<asp:HyperLink runat="server" ID="hlRevHist" Target="_blank">
<asp:Label runat="server" ID="lblQuoteType" />
<asp:Label runat="server" ID="lblCodQuote" /><span style="color: #dedede; font-size: 0.8em;">.<asp:Label runat="server" ID="lblQuoteRev" /></span>
</asp:HyperLink>
</div>
</div>
</div>
</div>
<div class="container">
</asp:HyperLink></div></div></div></div><div class="container">
<div class="row" style="min-height: 322px;">
<div class="panel panel-default">
<%--<div class="panel-heading">--%>
<div class="btn-group btn-group-justified">
<div class="btn-group">
<asp:LinkButton runat="server" ID="lbHeader" class="btn btn-default" OnClick="lbt_Click" CommandArgument="Header"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("HEADER") %></asp:LinkButton>
</div>
<div class="btn-group">
<asp:LinkButton runat="server" ID="lbCosts" class="btn btn-default" OnClick="lbt_Click" CommandArgument="Costs"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("COSTS") %></asp:LinkButton>
</div>
<div class="btn-group">
<asp:LinkButton runat="server" ID="lbExtrPar" class="btn btn-default" OnClick="lbt_Click" CommandArgument="ExtrPar"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("EXTRUS-PARAM") %></asp:LinkButton>
</div>
<div class="btn-group">
<asp:LinkButton runat="server" ID="lbPackPar" class="btn btn-default" OnClick="lbt_Click" CommandArgument="PackPar"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("PACK-PARAM") %></asp:LinkButton>
</div>
</div>
<%--</div>--%><div class="panel-body">
<asp:LinkButton runat="server" ID="lbHeader" class="btn btn-default" OnClick="lbt_Click" CommandArgument="Header"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("HEADER") %></asp:LinkButton></div><div class="btn-group">
<asp:LinkButton runat="server" ID="lbCosts" class="btn btn-default" OnClick="lbt_Click" CommandArgument="Costs"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("COSTS") %></asp:LinkButton></div><div class="btn-group">
<asp:LinkButton runat="server" ID="lbExtrPar" class="btn btn-default" OnClick="lbt_Click" CommandArgument="ExtrPar"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("EXTRUS-PARAM") %></asp:LinkButton></div><div class="btn-group">
<asp:LinkButton runat="server" ID="lbPackPar" class="btn btn-default" OnClick="lbt_Click" CommandArgument="PackPar"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("PACK-PARAM") %></asp:LinkButton></div></div><%--</div>--%><div class="panel-body">
<uc1:mod_Q_Costs ID="mod_Q_Costs1" runat="server" />
<uc2:mod_Q_ExtrPar ID="mod_Q_ExtrPar1" runat="server" />
<uc3:mod_Q_Header ID="mod_Q_Header1" runat="server" />
@@ -57,15 +43,11 @@
</div>
</div>
</div>
<div class="row">
<div class="panel panel-default">
<div class="btn-group btn-group-justified">
<div class="btn-group">
<asp:LinkButton runat="server" ID="lbQuotation" class="btn btn-default" OnClick="lbt_Click" CommandArgument="Quote"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("QUOTATION") %></asp:LinkButton>
</div>
</div>
<div class="panel-body">
<asp:LinkButton runat="server" ID="lbQuotation" class="btn btn-default" OnClick="lbt_Click" CommandArgument="Quote"><i class="fa fa-tasks"></i>&nbsp;<%: traduci("QUOTATION") %></asp:LinkButton></div></div><div class="panel-body">
<uc5:mod_Q_Quot ID="mod_Q_Quot1" runat="server" />
</div>
</div>
@@ -73,26 +55,11 @@
<div style="margin-bottom: 30px;">
<div id="divStato0" runat="server" class="row">
<div class="col-xs-4 col-xs-offset-4">
<asp:LinkButton runat="server" ID="lbCreateOffer" class="btn btn-success" Width="100%" OnClick="lnkCreateOffer_Click"><i class="fa fa-check"></i>&nbsp;<%: traduci("nextIdxQState-01") %></asp:LinkButton>
</div>
</div>
<div id="divStato1" runat="server" class="row">
<asp:LinkButton runat="server" ID="lbCreateOffer" class="btn btn-success" Width="100%" OnClick="lnkCreateOffer_Click"><i class="fa fa-check"></i>&nbsp;<%: traduci("nextIdxQState-01") %></asp:LinkButton></div></div><div id="divStato1" runat="server" class="row">
<div class="col-xs-4 col-xs-offset-2">
<asp:LinkButton runat="server" ID="lbReject" class="btn btn-danger" Width="100%" OnClick="lbReject_Click"><i class="fa fa-thumbs-o-down"></i>&nbsp;<%: traduci("nextIdxQState-00") %></asp:LinkButton>
</div>
<div class="col-xs-4">
<asp:LinkButton runat="server" ID="lbApprove" class="btn btn-success" Width="100%" OnClick="lbApprove_Click"><i class="fa fa-thumbs-o-up"></i>&nbsp;<%: traduci("nextIdxQState-02") %></asp:LinkButton>
</div>
</div>
<div id="divStato2" runat="server" class="row">
<asp:LinkButton runat="server" ID="lbReject" class="btn btn-danger" Width="100%" OnClick="lbReject_Click"><i class="fa fa-thumbs-o-down"></i>&nbsp;<%: traduci("nextIdxQState-00") %></asp:LinkButton></div><div class="col-xs-4">
<asp:LinkButton runat="server" ID="lbApprove" class="btn btn-success" Width="100%" OnClick="lbApprove_Click"><i class="fa fa-thumbs-o-up"></i>&nbsp;<%: traduci("nextIdxQState-02") %></asp:LinkButton></div></div><div id="divStato2" runat="server" class="row">
<div class="col-xs-4 col-xs-offset-4">
<asp:LinkButton runat="server" ID="lbRelease" class="btn btn-success" Width="100%" OnClick="lbRelease_Click"><i class="fa fa-upload"></i>&nbsp;<%: traduci("nextIdxQState-03") %></asp:LinkButton>
</div>
</div>
<div id="divStato3" runat="server" class="row">
<asp:LinkButton runat="server" ID="lbRelease" class="btn btn-success" Width="100%" OnClick="lbRelease_Click"><i class="fa fa-upload"></i>&nbsp;<%: traduci("nextIdxQState-03") %></asp:LinkButton></div></div><div id="divStato3" runat="server" class="row">
<div class="col-xs-4 col-xs-offset-4">
<asp:LinkButton runat="server" ID="lbNewRev" class="btn btn-success" Width="100%" OnClick="lbNewRev_Click"><i class="fa fa-upload"></i>&nbsp;<%: traduci("createNewRev") %></asp:LinkButton>
</div>
</div>
</div>
</div>
<asp:LinkButton runat="server" ID="lbNewRev" class="btn btn-success" Width="100%" OnClick="lbNewRev_Click"><i class="fa fa-upload"></i>&nbsp;<%: traduci("createNewRev") %></asp:LinkButton></div></div></div></div>
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
View File
@@ -52,6 +52,9 @@
<DesignTime>True</DesignTime>
<DependentUpon>DS_Quotes.xsd</DependentUpon>
</Compile>
<Compile Include="DS_Utility.cs">
<DependentUpon>DS_Utility.xsd</DependentUpon>
</Compile>
<Compile Include="DS_Utility1.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
+9
View File
@@ -0,0 +1,9 @@
namespace C2P_Data
{
}
namespace C2P_Data {
public partial class DS_Utility {
}
}
+47
View File
@@ -228,6 +228,28 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Offers4ItemTableAdapter" GeneratorDataComponentClassName="Offers4ItemTableAdapter" Name="Offers4Item" UserDataComponentName="Offers4ItemTableAdapter">
<MainSource>
<DbSource ConnectionRef="Proxima_C2PConnectionString (Settings)" DbObjectName="Proxima_C2P.dbo.stp_checkOffers4Item" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
<SelectCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_checkOffers4Item</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="@CodItem" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</SelectCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="RawMat" DataSetColumn="RawMat" />
<Mapping SourceColumn="CodItem" DataSetColumn="CodItem" />
<Mapping SourceColumn="Column1" DataSetColumn="numRec" />
<Mapping SourceColumn="numRec" DataSetColumn="numRec" />
</Mappings>
<Sources />
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -366,6 +388,27 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Offers4Item" msprop:Generator_TableClassName="Offers4ItemDataTable" msprop:Generator_TableVarName="tableOffers4Item" msprop:Generator_RowChangedName="Offers4ItemRowChanged" msprop:Generator_TablePropName="Offers4Item" msprop:Generator_RowDeletingName="Offers4ItemRowDeleting" msprop:Generator_RowChangingName="Offers4ItemRowChanging" msprop:Generator_RowEvHandlerName="Offers4ItemRowChangeEventHandler" msprop:Generator_RowDeletedName="Offers4ItemRowDeleted" msprop:Generator_RowClassName="Offers4ItemRow" msprop:Generator_UserTableName="Offers4Item" msprop:Generator_RowEvArgName="Offers4ItemRowChangeEvent">
<xs:complexType>
<xs:sequence>
<xs:element name="RawMat" msprop:Generator_ColumnVarNameInTable="columnRawMat" msprop:Generator_ColumnPropNameInRow="RawMat" msprop:Generator_ColumnPropNameInTable="RawMatColumn" msprop:Generator_UserColumnName="RawMat">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CodItem" msprop:Generator_ColumnVarNameInTable="columnCodItem" msprop:Generator_ColumnPropNameInRow="CodItem" msprop:Generator_ColumnPropNameInTable="CodItemColumn" msprop:Generator_UserColumnName="CodItem" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="numRec" msdata:ReadOnly="true" msdata:Caption="Column1" msprop:Generator_ColumnVarNameInTable="columnnumRec" msprop:Generator_ColumnPropNameInRow="numRec" msprop:Generator_ColumnPropNameInTable="numRecColumn" msprop:Generator_UserColumnName="numRec" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -395,5 +438,9 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke
<xs:field xpath="mstns:Report" />
<xs:field xpath="mstns:Chiave" />
</xs:unique>
<xs:unique name="Offers4Item_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Offers4Item" />
<xs:field xpath="mstns:RawMat" />
</xs:unique>
</xs:element>
</xs:schema>
+8 -2
View File
@@ -4,9 +4,15 @@
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="0" ViewPortY="0" 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="-10" ViewPortY="-10" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:v_selClient" ZOrder="1" X="164" Y="164" Height="134" Width="205" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selClient" ZOrder="7" X="164" Y="164" Height="134" Width="205" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selItems" ZOrder="6" X="506" Y="657" Height="134" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selRawMat" ZOrder="5" X="239" Y="585" Height="134" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selCons" ZOrder="4" X="844" Y="518" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:v_selIncoterms" ZOrder="3" X="552" Y="476" Height="115" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
<Shape ID="DesignTable:ReportPrintTicket" ZOrder="2" X="786" Y="162" Height="248" Width="158" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="140" />
<Shape ID="DesignTable:Offers4Item" ZOrder="1" X="817" Y="748" Height="134" Width="214" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
</Shapes>
<Connectors />
</DiagramLayout>
+625
View File
@@ -36,6 +36,8 @@ namespace C2P_Data {
private ReportPrintTicketDataTable tableReportPrintTicket;
private Offers4ItemDataTable tableOffers4Item;
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -82,6 +84,9 @@ namespace C2P_Data {
if ((ds.Tables["ReportPrintTicket"] != null)) {
base.Tables.Add(new ReportPrintTicketDataTable(ds.Tables["ReportPrintTicket"]));
}
if ((ds.Tables["Offers4Item"] != null)) {
base.Tables.Add(new Offers4ItemDataTable(ds.Tables["Offers4Item"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -160,6 +165,16 @@ namespace C2P_Data {
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
public Offers4ItemDataTable Offers4Item {
get {
return this.tableOffers4Item;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.BrowsableAttribute(true)]
@@ -245,6 +260,9 @@ namespace C2P_Data {
if ((ds.Tables["ReportPrintTicket"] != null)) {
base.Tables.Add(new ReportPrintTicketDataTable(ds.Tables["ReportPrintTicket"]));
}
if ((ds.Tables["Offers4Item"] != null)) {
base.Tables.Add(new Offers4ItemDataTable(ds.Tables["Offers4Item"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
@@ -314,6 +332,12 @@ namespace C2P_Data {
this.tableReportPrintTicket.InitVars();
}
}
this.tableOffers4Item = ((Offers4ItemDataTable)(base.Tables["Offers4Item"]));
if ((initTable == true)) {
if ((this.tableOffers4Item != null)) {
this.tableOffers4Item.InitVars();
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -336,6 +360,8 @@ namespace C2P_Data {
base.Tables.Add(this.tablev_selIncoterms);
this.tableReportPrintTicket = new ReportPrintTicketDataTable();
base.Tables.Add(this.tableReportPrintTicket);
this.tableOffers4Item = new Offers4ItemDataTable();
base.Tables.Add(this.tableOffers4Item);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -374,6 +400,12 @@ namespace C2P_Data {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private bool ShouldSerializeOffers4Item() {
return false;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -447,6 +479,9 @@ namespace C2P_Data {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void ReportPrintTicketRowChangeEventHandler(object sender, ReportPrintTicketRowChangeEvent e);
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public delegate void Offers4ItemRowChangeEventHandler(object sender, Offers4ItemRowChangeEvent e);
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
@@ -2161,6 +2196,296 @@ namespace C2P_Data {
}
}
/// <summary>
///Represents the strongly named DataTable class.
///</summary>
[global::System.Serializable()]
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class Offers4ItemDataTable : global::System.Data.TypedTableBase<Offers4ItemRow> {
private global::System.Data.DataColumn columnRawMat;
private global::System.Data.DataColumn columnCodItem;
private global::System.Data.DataColumn columnnumRec;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemDataTable() {
this.TableName = "Offers4Item";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal Offers4ItemDataTable(global::System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected Offers4ItemDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn RawMatColumn {
get {
return this.columnRawMat;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn CodItemColumn {
get {
return this.columnCodItem;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataColumn numRecColumn {
get {
return this.columnnumRec;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
[global::System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemRow this[int index] {
get {
return ((Offers4ItemRow)(this.Rows[index]));
}
}
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event Offers4ItemRowChangeEventHandler Offers4ItemRowChanging;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event Offers4ItemRowChangeEventHandler Offers4ItemRowChanged;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event Offers4ItemRowChangeEventHandler Offers4ItemRowDeleting;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public event Offers4ItemRowChangeEventHandler Offers4ItemRowDeleted;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void AddOffers4ItemRow(Offers4ItemRow row) {
this.Rows.Add(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemRow AddOffers4ItemRow(string RawMat, string CodItem, int numRec) {
Offers4ItemRow rowOffers4ItemRow = ((Offers4ItemRow)(this.NewRow()));
object[] columnValuesArray = new object[] {
RawMat,
CodItem,
numRec};
rowOffers4ItemRow.ItemArray = columnValuesArray;
this.Rows.Add(rowOffers4ItemRow);
return rowOffers4ItemRow;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemRow FindByRawMat(string RawMat) {
return ((Offers4ItemRow)(this.Rows.Find(new object[] {
RawMat})));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public override global::System.Data.DataTable Clone() {
Offers4ItemDataTable cln = ((Offers4ItemDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataTable CreateInstance() {
return new Offers4ItemDataTable();
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal void InitVars() {
this.columnRawMat = base.Columns["RawMat"];
this.columnCodItem = base.Columns["CodItem"];
this.columnnumRec = base.Columns["numRec"];
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitClass() {
this.columnRawMat = new global::System.Data.DataColumn("RawMat", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnRawMat);
this.columnCodItem = new global::System.Data.DataColumn("CodItem", typeof(string), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnCodItem);
this.columnnumRec = new global::System.Data.DataColumn("numRec", typeof(int), null, global::System.Data.MappingType.Element);
base.Columns.Add(this.columnnumRec);
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
this.columnRawMat}, true));
this.columnRawMat.AllowDBNull = false;
this.columnRawMat.Unique = true;
this.columnRawMat.MaxLength = 50;
this.columnCodItem.MaxLength = 50;
this.columnnumRec.ReadOnly = true;
this.columnnumRec.Caption = "Column1";
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemRow NewOffers4ItemRow() {
return ((Offers4ItemRow)(this.NewRow()));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
return new Offers4ItemRow(builder);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override global::System.Type GetRowType() {
return typeof(Offers4ItemRow);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.Offers4ItemRowChanged != null)) {
this.Offers4ItemRowChanged(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.Offers4ItemRowChanging != null)) {
this.Offers4ItemRowChanging(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.Offers4ItemRowDeleted != null)) {
this.Offers4ItemRowDeleted(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.Offers4ItemRowDeleting != null)) {
this.Offers4ItemRowDeleting(this, new Offers4ItemRowChangeEvent(((Offers4ItemRow)(e.Row)), e.Action));
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void RemoveOffers4ItemRow(Offers4ItemRow row) {
this.Rows.Remove(row);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
DS_Utility ds = new DS_Utility();
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "Offers4ItemDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
@@ -2512,6 +2837,88 @@ namespace C2P_Data {
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
public partial class Offers4ItemRow : global::System.Data.DataRow {
private Offers4ItemDataTable tableOffers4Item;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal Offers4ItemRow(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableOffers4Item = ((Offers4ItemDataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string RawMat {
get {
return ((string)(this[this.tableOffers4Item.RawMatColumn]));
}
set {
this[this.tableOffers4Item.RawMatColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public string CodItem {
get {
try {
return ((string)(this[this.tableOffers4Item.CodItemColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'CodItem\' in table \'Offers4Item\' is DBNull.", e);
}
}
set {
this[this.tableOffers4Item.CodItemColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public int numRec {
get {
try {
return ((int)(this[this.tableOffers4Item.numRecColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("The value for column \'numRec\' in table \'Offers4Item\' is DBNull.", e);
}
}
set {
this[this.tableOffers4Item.numRecColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsCodItemNull() {
return this.IsNull(this.tableOffers4Item.CodItemColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetCodItemNull() {
this[this.tableOffers4Item.CodItemColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool IsnumRecNull() {
return this.IsNull(this.tableOffers4Item.numRecColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public void SetnumRecNull() {
this[this.tableOffers4Item.numRecColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
@@ -2715,6 +3122,40 @@ namespace C2P_Data {
}
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public class Offers4ItemRowChangeEvent : global::System.EventArgs {
private Offers4ItemRow eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemRowChangeEvent(Offers4ItemRow row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemRow Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace C2P_Data.DS_UtilityTableAdapters {
@@ -4149,6 +4590,190 @@ SELECT Ticket, Report, Chiave, UserReq, DataReq, DataPrint FROM ReportPrintTicke
}
}
/// <summary>
///Represents the connection and commands used to retrieve and save data.
///</summary>
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
[global::System.ComponentModel.ToolboxItem(true)]
[global::System.ComponentModel.DataObjectAttribute(true)]
[global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
public partial class Offers4ItemTableAdapter : global::System.ComponentModel.Component {
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
private global::System.Data.SqlClient.SqlConnection _connection;
private global::System.Data.SqlClient.SqlTransaction _transaction;
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
private bool _clearBeforeFill;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public Offers4ItemTableAdapter() {
this.ClearBeforeFill = true;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
get {
if ((this._adapter == null)) {
this.InitAdapter();
}
return this._adapter;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlConnection Connection {
get {
if ((this._connection == null)) {
this.InitConnection();
}
return this._connection;
}
set {
this._connection = value;
if ((this.Adapter.InsertCommand != null)) {
this.Adapter.InsertCommand.Connection = value;
}
if ((this.Adapter.DeleteCommand != null)) {
this.Adapter.DeleteCommand.Connection = value;
}
if ((this.Adapter.UpdateCommand != null)) {
this.Adapter.UpdateCommand.Connection = value;
}
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
if ((this.CommandCollection[i] != null)) {
((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
internal global::System.Data.SqlClient.SqlTransaction Transaction {
get {
return this._transaction;
}
set {
this._transaction = value;
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
this.CommandCollection[i].Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.DeleteCommand != null))) {
this.Adapter.DeleteCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.InsertCommand != null))) {
this.Adapter.InsertCommand.Transaction = this._transaction;
}
if (((this.Adapter != null)
&& (this.Adapter.UpdateCommand != null))) {
this.Adapter.UpdateCommand.Transaction = this._transaction;
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
get {
if ((this._commandCollection == null)) {
this.InitCommandCollection();
}
return this._commandCollection;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
public bool ClearBeforeFill {
get {
return this._clearBeforeFill;
}
set {
this._clearBeforeFill = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitAdapter() {
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
tableMapping.SourceTable = "Table";
tableMapping.DataSetTable = "Offers4Item";
tableMapping.ColumnMappings.Add("RawMat", "RawMat");
tableMapping.ColumnMappings.Add("CodItem", "CodItem");
tableMapping.ColumnMappings.Add("Column1", "numRec");
tableMapping.ColumnMappings.Add("numRec", "numRec");
this._adapter.TableMappings.Add(tableMapping);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
private void InitConnection() {
this._connection = new global::System.Data.SqlClient.SqlConnection();
this._connection.ConnectionString = global::C2P_Data.Properties.Settings.Default.Proxima_C2PConnectionString;
}
[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[0] = new global::System.Data.SqlClient.SqlCommand();
this._commandCollection[0].Connection = this.Connection;
this._commandCollection[0].CommandText = "dbo.stp_checkOffers4Item";
this._commandCollection[0].CommandType = global::System.Data.CommandType.StoredProcedure;
this._commandCollection[0].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[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CodItem", global::System.Data.SqlDbType.NVarChar, 50, global::System.Data.ParameterDirection.Input, 0, 0, null, global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
}
[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.Fill, true)]
public virtual int Fill(DS_Utility.Offers4ItemDataTable dataTable, string CodItem) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((CodItem == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodItem));
}
if ((this.ClearBeforeFill == true)) {
dataTable.Clear();
}
int returnValue = this.Adapter.Fill(dataTable);
return returnValue;
}
[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, true)]
public virtual DS_Utility.Offers4ItemDataTable GetData(string CodItem) {
this.Adapter.SelectCommand = this.CommandCollection[0];
if ((CodItem == null)) {
this.Adapter.SelectCommand.Parameters[1].Value = global::System.DBNull.Value;
}
else {
this.Adapter.SelectCommand.Parameters[1].Value = ((string)(CodItem));
}
DS_Utility.Offers4ItemDataTable dataTable = new DS_Utility.Offers4ItemDataTable();
this.Adapter.Fill(dataTable);
return dataTable;
}
}
/// <summary>
///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
///</summary>
+3
View File
@@ -29,6 +29,7 @@ namespace C2P_Data
taVSItm = new DS_UtilityTableAdapters.v_selItemsTableAdapter();
taVSRM = new DS_UtilityTableAdapters.v_selRawMatTableAdapter();
taRPT = new DS_UtilityTableAdapters.ReportPrintTicketTableAdapter();
taO4I = new DS_UtilityTableAdapters.Offers4ItemTableAdapter();
}
/// <summary>
/// effettua setup dei connection strings da web.config della singola applicazione
@@ -44,6 +45,7 @@ namespace C2P_Data
taVSItm.Connection.ConnectionString = connStr;
taVSRM.Connection.ConnectionString = connStr;
taRPT.Connection.ConnectionString = connStr;
taO4I.Connection.ConnectionString = connStr;
}
#endregion
@@ -57,6 +59,7 @@ namespace C2P_Data
public DS_UtilityTableAdapters.v_selItemsTableAdapter taVSItm;
public DS_UtilityTableAdapters.v_selRawMatTableAdapter taVSRM;
public DS_UtilityTableAdapters.ReportPrintTicketTableAdapter taRPT;
public DS_UtilityTableAdapters.Offers4ItemTableAdapter taO4I;
public static DtProxy man = new DtProxy();
Binary file not shown.
Binary file not shown.
Binary file not shown.