tabella edit agenti inserita
This commit is contained in:
Samuele E. Locatelli
2015-05-29 15:41:41 +02:00
parent 44f4e0f1aa
commit afc2fc8b8f
19 changed files with 1502 additions and 32 deletions
+36
View File
@@ -1 +1,37 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/FullPage.master" AutoEventWireup="true" CodeBehind="AgentsMan.aspx.cs" Inherits="C2P.AgentsMan" %>
<%@ Register Src="~/WebUserControls/mod_ricercaGenerica.ascx" TagPrefix="uc1" TagName="mod_ricercaGenerica" %>
<%@ Register Src="~/WebUserControls/mod_righePag.ascx" TagName="mod_righePag" TagPrefix="uc1" %>
<%@ Register Src="~/WebUserControls/mod_AgentsMan.ascx" TagPrefix="uc1" TagName="mod_AgentsMan" %>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
<div class="container-fluid" style="background-color: #cdcdcd; padding-top: 2px; padding-bottom: 2px;">
<div class="container">
<div class="row">
<div class="col-sm-8 col-sm-offset-2 text-center">
<uc1:mod_ricercaGenerica runat="server" ID="mod_ricercaGenerica" />
</div>
<div class="col-sm-2 text-right">
<uc1:mod_righePag ID="mod_righePag" runat="server" />
</div>
</div>
</div>
</div>
<div class="container-fluid" style="padding-top: 2px; padding-bottom: 2px;">
<div class="container">
<div class="row">
<div class="col-sm-12">
<uc1:mod_AgentsMan runat="server" id="mod_AgentsMan" />
</div>
</div>
</div>
</div>
</asp:Content>
+32 -7
View File
@@ -3,15 +3,40 @@
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace C2P
{
public partial class AgentsMan
{
namespace C2P {
public partial class AgentsMan {
/// <summary>
/// mod_ricercaGenerica control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_ricercaGenerica mod_ricercaGenerica;
/// <summary>
/// mod_righePag control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::mod_righePag mod_righePag;
/// <summary>
/// mod_AgentsMan control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::C2P.WebUserControls.mod_AgentsMan mod_AgentsMan;
}
}
+8
View File
@@ -368,6 +368,7 @@
<Content Include="UpdateVoc.aspx" />
<Content Include="UserAdmin.aspx" />
<Content Include="Vocabolario.aspx" />
<Content Include="WebUserControls\mod_AgentsMan.ascx" />
<Content Include="WebUserControls\mod_autocompleteShort.ascx" />
<Content Include="WebUserControls\mod_createNewStdCost.ascx" />
<Content Include="WebUserControls\mod_display.ascx" />
@@ -741,6 +742,13 @@
<Compile Include="Vocabolario.aspx.designer.cs">
<DependentUpon>Vocabolario.aspx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_AgentsMan.ascx.cs">
<DependentUpon>mod_AgentsMan.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="WebUserControls\mod_AgentsMan.ascx.designer.cs">
<DependentUpon>mod_AgentsMan.ascx</DependentUpon>
</Compile>
<Compile Include="WebUserControls\mod_autocomplete.ascx.cs">
<DependentUpon>mod_autocomplete.ascx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
+60
View File
@@ -0,0 +1,60 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_AgentsMan.ascx.cs" Inherits="C2P.WebUserControls.mod_AgentsMan" %>
<div class="row" style="font-size: 8pt;">
<div class="col-sm-12">
<asp:LinkButton ID="lbtNew" runat="server" OnClick="lbtNew_Click" CssClass="btn btn-success"><%: traduci("btnNewAgent") %></asp:LinkButton>
<asp:TextBox ID="txtNewVal" runat="server" />
</div>
<div class="col-sm-12">
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="CodAg" DataSourceID="ods" OnDataBound="grView_DataBound" CssClass="table table-striped table-bordered" OnRowEditing="grView_RowEditing">
<Columns>
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
<EditItemTemplate>
<asp:LinkButton runat="server" ID="lbUpdate" CausesValidation="true" CommandName="Update"><i class="fa fa-check fa-2x"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbCancel" CausesValidation="false" CommandName="Cancel"><i class="fa fa-undo fa-2x"></i></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbEdit" CausesValidation="false" CommandName="Edit" Visible='<%# Eval("CodAg")!="" %>'><i class="fa fa-edit fa-2x"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="CodAg" HeaderText="CodAg" SortExpression="CodAg" />
<asp:BoundField DataField="Lastname" HeaderText="Lastname" SortExpression="Lastname" />
<asp:BoundField DataField="Firstname" HeaderText="Firstname" SortExpression="Firstname" />
<asp:BoundField DataField="QuotaProvvAg" HeaderText="QuotaProvvAg" SortExpression="QuotaProvvAg" />
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center" ItemStyle-Wrap="false">
<EditItemTemplate>
<asp:LinkButton runat="server" ID="lbUpdate2" CausesValidation="true" CommandName="Update"><i class="fa fa-check fa-2x"></i></asp:LinkButton>
<asp:LinkButton runat="server" ID="lbCancel2" CausesValidation="false" CommandName="Cancel"><i class="fa fa-undo fa-2x"></i></asp:LinkButton>
</EditItemTemplate>
<ItemTemplate>
<asp:LinkButton runat="server" ID="lbDelete" CausesValidation="false" CommandName="Delete" OnClientClick='<%# SteamWare.jsUtils.getCBE("confermaDel") %>' Visible='<%# Eval("CodAg")!="" %>'><i class="fa fa-trash-o fa-2x"></i></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataTemplate>
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
</EmptyDataTemplate>
</asp:GridView>
<asp:Label ID="lblNumRec" runat="server" CssClass="didascalia" />
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="GetData" TypeName="C2P_Data.DS_QuotesTableAdapters.AgentsDetTableAdapter" UpdateMethod="updateQuery" DeleteMethod="deleteQuery" OldValuesParameterFormatString="original_{0}" FilterExpression="CodAg LIKE '%{0}%' OR Lastname LIKE '%{0}%' OR Firstname LIKE '%{0}%' " InsertMethod="insertQuery">
<DeleteParameters>
<asp:Parameter Name="Original_CodAg" Type="String" />
</DeleteParameters>
<FilterParameters>
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
</FilterParameters>
<InsertParameters>
<asp:Parameter Name="CodAg" Type="String" />
<asp:Parameter Name="Lastname" Type="String" />
<asp:Parameter Name="Firstname" Type="String" />
<asp:Parameter Name="QuotaProvvAg" Type="Decimal" />
</InsertParameters>
<UpdateParameters>
<asp:Parameter Name="CodAg" Type="String" />
<asp:Parameter Name="Lastname" Type="String" />
<asp:Parameter Name="Firstname" Type="String" />
<asp:Parameter Name="QuotaProvvAg" Type="Decimal" />
<asp:Parameter Name="Original_CodAg" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>
</div>
</div>
+114
View File
@@ -0,0 +1,114 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SteamWare;
using C2P_Data;
namespace C2P.WebUserControls
{
public partial class mod_AgentsMan : SteamWare.UserControl
{
/// <summary>
/// caricamento pagina
/// </summary>
protected void Page_Load()
{
if (!Page.IsPostBack)
{
txtNewVal.Text = "";
}
}
/// <summary>
/// inserisco nel db il nuovo lemma...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbtNew_Click(object sender, EventArgs e)
{
creaNuovo();
}
/// <summary>
/// dimensione pagina grid view
/// </summary>
public int pageSize
{
get
{
return grView.PageSize;
}
set
{
grView.PageSize = value;
}
}
/// <summary>
/// post bind grView
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_DataBound(object sender, EventArgs e)
{
if (grView.Rows.Count > 0)
{
LinkButton lb;
// aggiorno gli headers
foreach (TableCell cella in grView.HeaderRow.Cells)
{
try
{
lb = (LinkButton)cella.Controls[0];
lb.Text = traduci(lb.Text);
}
catch
{ }
}
int totRecord = grView.Rows.Count + grView.PageSize * (grView.PageCount - 1);
lblNumRec.Text = string.Format("{0} ({1})", grView.Rows.Count, totRecord);
}
else
{
lblNumRec.Text = "";
}
}
/// <summary>
/// editing riga
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void grView_RowEditing(object sender, GridViewEditEventArgs e)
{
// seleziono la riga corrente...
grView.SelectedIndex = e.NewEditIndex;
}
/// <summary>
/// resetta la selezione dei valori in caso di modifiche su altri controlli
/// </summary>
public void resetSelezione()
{
grView.SelectedIndex = -1;
grView.DataBind();
}
/// <summary>
/// creazione nuovo lemma
/// </summary>
private void creaNuovo()
{
if (txtNewVal.Text != "")
{
// inserisco
DtProxy.man.taAgent.insertQuery(txtNewVal.Text.Trim(), "-", "-", 0);
// metto in campo ricerca...
memLayer.ML.setSessionVal("valoreCercato", txtNewVal.Text.Trim());
// svuoto campo text
txtNewVal.Text = "";
// riparto...
Response.Redirect(user_std.pagCorrente);
}
}
}
}
+60
View File
@@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace C2P.WebUserControls {
public partial class mod_AgentsMan {
/// <summary>
/// lbtNew 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.LinkButton lbtNew;
/// <summary>
/// txtNewVal 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.TextBox txtNewVal;
/// <summary>
/// grView 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.GridView grView;
/// <summary>
/// lblNumRec 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.Label lblNumRec;
/// <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;
}
}
@@ -7,7 +7,6 @@ using System.Web.UI.WebControls;
using SteamWare;
using C2P_Data;
namespace C2P.WebUserControls
{
public partial class mod_PackageMan : SteamWare.UserControl
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1033
View File
File diff suppressed because it is too large Load Diff
+131
View File
@@ -1594,6 +1594,105 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
</DbSource>
</Sources>
</TableAdapter>
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="AgentsDetTableAdapter" GeneratorDataComponentClassName="AgentsDetTableAdapter" Name="AgentsDet" UserDataComponentName="AgentsDetTableAdapter">
<MainSource>
<DbSource ConnectionRef="C2PConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
<DeleteCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>DELETE FROM [dbo].[AgentsDet] WHERE (([CodAg] = @Original_CodAg) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ([QuotaProvvAg] = @Original_QuotaProvvAg))</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAg" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QuotaProvvAg" Precision="9" ProviderType="Decimal" Scale="6" Size="0" SourceColumn="QuotaProvvAg" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>INSERT INTO [dbo].[AgentsDet] ([CodAg], [Lastname], [Firstname], [QuotaProvvAg]) VALUES (@CodAg, @Lastname, @Firstname, @QuotaProvvAg);
SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM AgentsDet WHERE (CodAg = @CodAg)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAg" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QuotaProvvAg" Precision="9" ProviderType="Decimal" Scale="6" Size="0" SourceColumn="QuotaProvvAg" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM dbo.AgentsDet</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateCommand>
<DbCommand CommandType="Text" ModifiedByUser="false">
<CommandText>UPDATE [dbo].[AgentsDet] SET [CodAg] = @CodAg, [Lastname] = @Lastname, [Firstname] = @Firstname, [QuotaProvvAg] = @QuotaProvvAg WHERE (([CodAg] = @Original_CodAg) AND ([Lastname] = @Original_Lastname) AND ([Firstname] = @Original_Firstname) AND ([QuotaProvvAg] = @Original_QuotaProvvAg));
SELECT CodAg, Lastname, Firstname, QuotaProvvAg FROM AgentsDet WHERE (CodAg = @CodAg)</CommandText>
<Parameters>
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAg" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@QuotaProvvAg" Precision="9" ProviderType="Decimal" Scale="6" Size="0" SourceColumn="QuotaProvvAg" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="CodAg" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Lastname" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Firstname" SourceColumnNullMapping="false" SourceVersion="Original" />
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_QuotaProvvAg" Precision="9" ProviderType="Decimal" Scale="6" Size="0" SourceColumn="QuotaProvvAg" SourceColumnNullMapping="false" SourceVersion="Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="CodAg" DataSetColumn="CodAg" />
<Mapping SourceColumn="Lastname" DataSetColumn="Lastname" />
<Mapping SourceColumn="Firstname" DataSetColumn="Firstname" />
<Mapping SourceColumn="QuotaProvvAg" DataSetColumn="QuotaProvvAg" />
</Mappings>
<Sources>
<DbSource ConnectionRef="C2PConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="deleteQuery" Modifier="Public" Name="deleteQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="deleteQuery">
<DeleteCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_Agent_deleteQuery</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="@Original_CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</DeleteCommand>
</DbSource>
<DbSource ConnectionRef="C2PConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="insertQuery" Modifier="Public" Name="insertQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="insertQuery">
<InsertCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_Agent_insertQuery</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="@CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="decimal" DbType="Decimal" Direction="Input" ParameterName="@QuotaProvvAg" Precision="9" ProviderType="Decimal" Scale="6" Size="5" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</InsertCommand>
</DbSource>
<DbSource ConnectionRef="C2PConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="updateQuery" Modifier="Public" Name="updateQuery" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="updateQuery">
<UpdateCommand>
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
<CommandText>dbo.stp_Agent_updateQuery</CommandText>
<Parameters>
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Lastname" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Firstname" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="decimal" DbType="Decimal" Direction="Input" ParameterName="@QuotaProvvAg" Precision="9" ProviderType="Decimal" Scale="6" Size="5" SourceColumnNullMapping="false" SourceVersion="Current" />
<Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="nvarchar" DbType="String" Direction="Input" ParameterName="@Original_CodAg" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumnNullMapping="false" SourceVersion="Current" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</Sources>
</TableAdapter>
</Tables>
<Sources />
</DataSource>
@@ -2979,6 +3078,34 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="AgentsDet" msprop:Generator_TableClassName="AgentsDetDataTable" msprop:Generator_TableVarName="tableAgentsDet" msprop:Generator_TablePropName="AgentsDet" msprop:Generator_RowDeletingName="AgentsDetRowDeleting" msprop:Generator_RowChangingName="AgentsDetRowChanging" msprop:Generator_RowEvHandlerName="AgentsDetRowChangeEventHandler" msprop:Generator_RowDeletedName="AgentsDetRowDeleted" msprop:Generator_UserTableName="AgentsDet" msprop:Generator_RowChangedName="AgentsDetRowChanged" msprop:Generator_RowEvArgName="AgentsDetRowChangeEvent" msprop:Generator_RowClassName="AgentsDetRow">
<xs:complexType>
<xs:sequence>
<xs:element name="CodAg" msprop:Generator_ColumnVarNameInTable="columnCodAg" msprop:Generator_ColumnPropNameInRow="CodAg" msprop:Generator_ColumnPropNameInTable="CodAgColumn" msprop:Generator_UserColumnName="CodAg">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Lastname" msprop:Generator_ColumnVarNameInTable="columnLastname" msprop:Generator_ColumnPropNameInRow="Lastname" msprop:Generator_ColumnPropNameInTable="LastnameColumn" msprop:Generator_UserColumnName="Lastname">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="Firstname" msprop:Generator_ColumnVarNameInTable="columnFirstname" msprop:Generator_ColumnPropNameInRow="Firstname" msprop:Generator_ColumnPropNameInTable="FirstnameColumn" msprop:Generator_UserColumnName="Firstname">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="QuotaProvvAg" msprop:Generator_ColumnVarNameInTable="columnQuotaProvvAg" msprop:Generator_ColumnPropNameInRow="QuotaProvvAg" msprop:Generator_ColumnPropNameInTable="QuotaProvvAgColumn" msprop:Generator_UserColumnName="QuotaProvvAg" type="xs:decimal" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -3042,6 +3169,10 @@ SELECT CodPackag, PackagDesc, RMCost, RMWeight FROM PackagDet WHERE (CodPackag =
<xs:selector xpath=".//mstns:PackagDet" />
<xs:field xpath="mstns:CodPackag" />
</xs:unique>
<xs:unique name="AgentsDet_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:AgentsDet" />
<xs:field xpath="mstns:CodAg" />
</xs:unique>
</xs:element>
<xs:annotation>
<xs:appinfo>
+21 -20
View File
@@ -4,25 +4,26 @@
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="30" ViewPortY="399" 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="68" ViewPortY="399" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:QuoteList" ZOrder="7" X="462" Y="129" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="275" />
<Shape ID="DesignTable:QuoteRM" ZOrder="17" X="122" Y="271" Height="324" Width="264" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteWorkExt" ZOrder="18" X="102" Y="35" Height="210" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:QuoteWorkInt" ZOrder="16" X="882" Y="11" Height="305" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteParam" ZOrder="14" X="486" Y="720" Height="210" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:QuoteOC" ZOrder="12" X="889" Y="418" Height="305" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteFull_Q" ZOrder="6" X="40" Y="606" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteFull_S" ZOrder="9" X="854" Y="760" Height="305" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:RawMatDet" ZOrder="3" X="375" Y="1008" Height="324" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:StdCostList" ZOrder="8" X="981" Y="1087" Height="343" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:stp_checkValidQuote" ZOrder="5" X="46" Y="1127" Height="96" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:prtQuote" ZOrder="2" X="685" Y="1103" Height="305" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:stp_chekLastRevQuote" ZOrder="4" X="68" Y="1321" Height="96" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:PackagDet" ZOrder="1" X="1120" Y="752" Height="210" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:QuoteList" ZOrder="8" X="462" Y="129" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="275" />
<Shape ID="DesignTable:QuoteRM" ZOrder="18" X="122" Y="271" Height="324" Width="264" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteWorkExt" ZOrder="19" X="102" Y="35" Height="210" Width="230" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:QuoteWorkInt" ZOrder="17" X="882" Y="11" Height="305" Width="228" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteParam" ZOrder="15" X="486" Y="720" Height="210" Width="217" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
<Shape ID="DesignTable:QuoteOC" ZOrder="13" X="889" Y="418" Height="305" Width="197" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteFull_Q" ZOrder="7" X="40" Y="606" Height="457" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:QuoteFull_S" ZOrder="10" X="854" Y="760" Height="305" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:RawMatDet" ZOrder="4" X="375" Y="1008" Height="324" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="197" />
<Shape ID="DesignTable:StdCostList" ZOrder="9" X="981" Y="1087" Height="343" Width="209" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:stp_checkValidQuote" ZOrder="6" X="46" Y="1127" Height="96" Width="223" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:prtQuote" ZOrder="3" X="685" Y="1103" Height="305" Width="198" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
<Shape ID="DesignTable:stp_chekLastRevQuote" ZOrder="5" X="68" Y="1321" Height="96" Width="275" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
<Shape ID="DesignTable:PackagDet" ZOrder="2" X="1120" Y="752" Height="210" Width="231" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
<Shape ID="DesignTable:AgentsDet" ZOrder="1" X="1143" Y="454" Height="210" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_QuoteRM_QuoteList" ZOrder="19" LineWidth="11">
<Connector ID="DesignRelation:FK_QuoteRM_QuoteList" ZOrder="20" LineWidth="11">
<RoutePoints>
<Point>
<X>462</X>
@@ -34,7 +35,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_QuoteWorkExt_QuoteList" ZOrder="10" LineWidth="11">
<Connector ID="DesignRelation:FK_QuoteWorkExt_QuoteList" ZOrder="11" LineWidth="11">
<RoutePoints>
<Point>
<X>462</X>
@@ -46,7 +47,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_QuoteWorkInt_QuoteList" ZOrder="15" LineWidth="11">
<Connector ID="DesignRelation:FK_QuoteWorkInt_QuoteList" ZOrder="16" LineWidth="11">
<RoutePoints>
<Point>
<X>645</X>
@@ -62,7 +63,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_QuoteParam_QuoteList" ZOrder="13" LineWidth="11">
<Connector ID="DesignRelation:FK_QuoteParam_QuoteList" ZOrder="14" LineWidth="11">
<RoutePoints>
<Point>
<X>559</X>
@@ -74,7 +75,7 @@
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_QuoteExtra_QuoteList" ZOrder="11" LineWidth="11">
<Connector ID="DesignRelation:FK_QuoteExtra_QuoteList" ZOrder="12" LineWidth="11">
<RoutePoints>
<Point>
<X>745</X>
+3
View File
@@ -57,6 +57,7 @@ namespace C2P_Data
/// </summary>
protected virtual void avvioTableAdapters()
{
taAgent = new DS_QuotesTableAdapters.AgentsDetTableAdapter();
taPD = new DS_QuotesTableAdapters.PackagDetTableAdapter();
taQL = new DS_QuotesTableAdapters.QuoteListTableAdapter();
taQFQ = new DS_QuotesTableAdapters.QuoteFull_QTableAdapter();
@@ -85,6 +86,7 @@ namespace C2P_Data
{
string connStr = memLayer.ML.confReadString("C2PConnectionString");
// connections del db vocabolario
taAgent.Connection.ConnectionString = connStr;
taPD.Connection.ConnectionString = connStr;
taQL.Connection.ConnectionString = connStr;
taQFQ.Connection.ConnectionString = connStr;
@@ -111,6 +113,7 @@ namespace C2P_Data
#region area public
public DS_QuotesTableAdapters.AgentsDetTableAdapter taAgent;
public DS_QuotesTableAdapters.PackagDetTableAdapter taPD;
public DS_QuotesTableAdapters.QuoteListTableAdapter taQL;
public DS_QuotesTableAdapters.QuoteFull_QTableAdapter taQFQ;
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -5,7 +5,7 @@
using System.Reflection;
[assembly: AssemblyVersion("2.3.191.544")]
[assembly: AssemblyFileVersion("2.3.191.544")]
[assembly: AssemblyVersion("2.3.192.544")]
[assembly: AssemblyFileVersion("2.3.192.544")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-2015")]
[assembly: AssemblyCompany("Steamware")]
+2 -2
View File
@@ -6,8 +6,8 @@
using System.Reflection;
[assembly: AssemblyVersion("2.3.191.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.3.191.<#= this.RevisionNumber #>")]
[assembly: AssemblyVersion("2.3.192.<#= this.RevisionNumber #>")]
[assembly: AssemblyFileVersion("2.3.192.<#= this.RevisionNumber #>")]
[assembly: AssemblyCopyright("Proxima & Steamware © 2013-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]
<#+