duplicat promesseODL da ODL...
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
<add name="MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
|
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Donati_MoonPro_IS;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<system.web>
|
<system.web>
|
||||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Jetco_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
<add name="MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Jetco_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Jetco_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Jetco_MoonPro;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
|
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=localhost\sqlexpress;Initial Catalog=Jetco_MoonPro_IS;Persist Security Info=True;User ID=steamware;Password=viadante16" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<system.web>
|
<system.web>
|
||||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||||
|
|||||||
+1
-8
@@ -71,15 +71,8 @@
|
|||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
<add name="MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||||
|
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16" providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<!--
|
|
||||||
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
|
||||||
|
|
||||||
The following attributes can be set on the <httpRuntime> tag.
|
|
||||||
<system.Web>
|
|
||||||
<httpRuntime targetFramework="4.5.2" />
|
|
||||||
</system.Web>
|
|
||||||
-->
|
|
||||||
<system.web>
|
<system.web>
|
||||||
<globalization uiCulture="auto" enableClientBasedCulture="true" />
|
<globalization uiCulture="auto" enableClientBasedCulture="true" />
|
||||||
<compilation debug="true" targetFramework="4.6.2">
|
<compilation debug="true" targetFramework="4.6.2">
|
||||||
|
|||||||
@@ -1 +1,167 @@
|
|||||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestPromODL.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_gestPromODL" %>
|
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestPromODL.ascx.cs" Inherits="MoonProAdmin.WebUserControls.mod_gestPromODL" %>
|
||||||
|
|
||||||
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||||
|
<%@ Register Src="mod_newOdl.ascx" TagName="mod_newOdl" TagPrefix="uc1" %>
|
||||||
|
|
||||||
|
<div style="text-align: center; margin: auto; vertical-align: middle; width: 100%; background: #DCDCDC;">
|
||||||
|
<div class="filtro_2" style="white-space: nowrap; padding: 2px;">
|
||||||
|
<asp:Button runat="server" ID="btnNewOdl" OnClick="btnNewOdl_Click" Text="Nuovo ODL" />
|
||||||
|
<uc1:mod_newodl id="mod_newOdl1" runat="server" />
|
||||||
|
</div>
|
||||||
|
<div id="divEditQta" runat="server" visible="false" class="ctrSelRowStyle" style="white-space: nowrap; padding: 2px;">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<asp:Button runat="server" ID="btnOk" Text="Ok" Width="10em" OnClick="btnOk_Click" />
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
Pezzi ODL:
|
||||||
|
<asp:TextBox runat="server" ID="txtNewQta" Width="6em" />
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
Pezzi Pallet:
|
||||||
|
<asp:TextBox runat="server" ID="txtNewPzPallet" Width="6em" />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-3">
|
||||||
|
<asp:Button runat="server" ID="btnCancel" Text="Annulla" Width="10em" OnClick="btnCancel_Click" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||||
|
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound" PageSize="25"
|
||||||
|
DataKeyNames="IdxODL" DataSourceID="ods" Width="100%">
|
||||||
|
<RowStyle CssClass="ctrRowStyle" />
|
||||||
|
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||||
|
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||||
|
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||||
|
<FooterStyle CssClass="ctrFooter" />
|
||||||
|
<PagerStyle CssClass="active GridPager" />
|
||||||
|
<PagerSettings Mode="NumericFirstLast" />
|
||||||
|
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||||
|
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||||
|
<EmptyDataTemplate>
|
||||||
|
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||||
|
</EmptyDataTemplate>
|
||||||
|
<Columns>
|
||||||
|
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<HeaderTemplate>
|
||||||
|
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click" CausesValidation="false" Visible="true" />
|
||||||
|
</HeaderTemplate>
|
||||||
|
<ItemTemplate>
|
||||||
|
<%--<span style="padding-right: 2px;">
|
||||||
|
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||||
|
ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_s.png" />
|
||||||
|
</span>--%>
|
||||||
|
<span style="padding-right: 2px;">
|
||||||
|
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
|
||||||
|
ToolTip="Modifica num pz" ImageUrl="~/images/edit_s.png" Visible='<%# OdlIsCurrent(Eval("DataInizio"),Eval("DataFine")) %>' />
|
||||||
|
</span>
|
||||||
|
<%--<span style="padding-left: 2px;">
|
||||||
|
<asp:HyperLink runat="server" ID="hlPrintOdl" ToolTip='<%# traduci("getPdfODL") %>'
|
||||||
|
NavigateUrl='<%# formattaUrlOdl(Eval("IdxODL")) %>' ImageUrl="~/images/page_pdf.png" />
|
||||||
|
</span>--%>
|
||||||
|
</ItemTemplate>
|
||||||
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="ODL" SortExpression="IdxOdl">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" ID="txtIdxOdl" Text='<%# Eval("IdxOdl") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="CodArticolo" SortExpression="CodArticolo">
|
||||||
|
<ItemTemplate>
|
||||||
|
<div style="float: left;">
|
||||||
|
<b>
|
||||||
|
<asp:Label runat="server" ID="txtCodArticolo" Text='<%# Eval("CodArticolo") %>' /></b>
|
||||||
|
</div>
|
||||||
|
<div style="float: right; font-size: 0.8em;">
|
||||||
|
<asp:Label runat="server" ID="Label1" Text='<%# Eval("CommessaAs400") %>' />
|
||||||
|
</div>
|
||||||
|
<div style="float: none; clear: both;">
|
||||||
|
<asp:Label runat="server" ID="txtDescArticolo" Text='<%# Eval("DescArticolo") %>' />
|
||||||
|
</div>
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="codMacchina" SortExpression="CodMacchina">
|
||||||
|
<ItemTemplate>
|
||||||
|
<b>
|
||||||
|
<asp:Label runat="server" ID="txtCodMacchina" Text='<%# Eval("CodMacchina") %>' /></b>
|
||||||
|
<br />
|
||||||
|
<asp:Label runat="server" ID="txtNome" Text='<%# Eval("Nome") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="NumPezzi" SortExpression="NumPezzi">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Eval("NumPezzi") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Bind("NumPezzi") %>' />
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="TCAssegnato" SortExpression="TCAssegnato">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" ID="txtTCAssegnato" Text='<%# Eval("TCAssegnato","{0:0.000}") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="PzPallet" SortExpression="PzPallet">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" ID="txtPzPallet" Text='<%# Eval("PzPallet") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
<EditItemTemplate>
|
||||||
|
<%--<asp:Label runat="server" ID="txtPzPallet" Text='<%# Bind("PzPallet") %>' />--%>
|
||||||
|
</EditItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="DataInizio" SortExpression="DataInizio">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" ID="txtDataInizio" Text='<%# Eval("DataInizio") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderText="DataFine" SortExpression="DataFine">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label runat="server" ID="txtDataFine" Text='<%# Eval("DataFine") %>' />
|
||||||
|
</ItemTemplate>
|
||||||
|
</asp:TemplateField>
|
||||||
|
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||||
|
CommandArgument='<%# Eval("IdxODL") %>' ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("IdxODL")) %>'
|
||||||
|
ImageUrl="~/images/elimina_m.png" />
|
||||||
|
<cc1:confirmbuttonextender id="ConfirmButtonExtender1" runat="server" confirmtext='<%# traduci("confermaDel")%>'
|
||||||
|
targetcontrolid="imgDelete"></cc1:confirmbuttonextender>
|
||||||
|
</ItemTemplate>
|
||||||
|
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||||
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||||
|
</asp:TemplateField>
|
||||||
|
</Columns>
|
||||||
|
</asp:GridView>
|
||||||
|
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||||
|
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||||
|
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||||
|
SelectMethod="GetData" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter"
|
||||||
|
OnInserting="recuperaFooter" FilterExpression="CodArticolo LIKE '%{0}%'" OnInserted="ods_Updated"
|
||||||
|
OnUpdated="ods_Updated" DeleteMethod="DeleteQuery" OnDeleted="ods_Updated" InsertMethod="Insert"
|
||||||
|
UpdateMethod="updateQta">
|
||||||
|
<FilterParameters>
|
||||||
|
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||||
|
</FilterParameters>
|
||||||
|
<DeleteParameters>
|
||||||
|
<asp:Parameter Name="Original_IdxODL" Type="Int32" />
|
||||||
|
</DeleteParameters>
|
||||||
|
<UpdateParameters>
|
||||||
|
<asp:Parameter Name="NumPezzi" Type="Int32" />
|
||||||
|
<asp:Parameter Name="Original_IdxODL" Type="Int32" />
|
||||||
|
</UpdateParameters>
|
||||||
|
<InsertParameters>
|
||||||
|
<asp:Parameter Name="CodArticolo" Type="String" />
|
||||||
|
<asp:Parameter Name="IdxMacchina" Type="String" />
|
||||||
|
<asp:Parameter Name="NumPezzi" Type="Int32" />
|
||||||
|
<asp:Parameter Name="TCAssegnato" Type="Decimal" />
|
||||||
|
</InsertParameters>
|
||||||
|
</asp:ObjectDataSource>
|
||||||
|
<div style="text-align: center; margin: auto; vertical-align: middle; padding: 4px 2px; height: 1.5em;">
|
||||||
|
<div style="float: right;">
|
||||||
|
mostra:
|
||||||
|
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using MapoDb;
|
||||||
using System.Collections.Generic;
|
using SteamWare;
|
||||||
using System.Linq;
|
using System;
|
||||||
using System.Web;
|
using System.Data;
|
||||||
using System.Web.UI;
|
using System.Web.UI;
|
||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
@@ -9,9 +9,419 @@ namespace MoonProAdmin.WebUserControls
|
|||||||
{
|
{
|
||||||
public partial class mod_gestPromODL : System.Web.UI.UserControl
|
public partial class mod_gestPromODL : System.Web.UI.UserControl
|
||||||
{
|
{
|
||||||
protected void Page_Load(object sender, EventArgs e)
|
|
||||||
|
/// <summary>
|
||||||
|
/// dimensione pagina
|
||||||
|
/// </summary>
|
||||||
|
public int pageSize
|
||||||
{
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
int answ = 10;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
answ = Convert.ToInt32(txtPageSize.Text);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
return answ;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
txtPageSize.Text = value.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#region area da NON modificare
|
||||||
|
|
||||||
|
#region area protected
|
||||||
|
|
||||||
|
protected string _idxGridView;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// reset della selezione
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnReset_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
resetSelezione();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// gestione cambio selezione valore
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void grView_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// salvo in session il valore selezionato...
|
||||||
|
SteamWare.memLayer.ML.setSessionVal(string.Format("{0}_sel", _idxGridView), grView.SelectedValue, false);
|
||||||
|
// mostro edit quantità...
|
||||||
|
divEditQta.Visible = true;
|
||||||
|
btnNewOdl.Visible = true;
|
||||||
|
mod_newOdl1.Visible = false;
|
||||||
|
var riga = DataLayer.obj.taODL.getByIdx(idxOdlSel, false)[0];
|
||||||
|
numPz = riga.NumPezzi;
|
||||||
|
pzPallet = riga.PzPallet;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// traduce gli header delle colonne
|
||||||
|
/// </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} records of ~ {1}", grView.Rows.Count, totRecord);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lblNumRec.Text = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// recupera i dati di un nuovo record contenuti nel footer di un gridView;
|
||||||
|
/// questi devono esses opportunamente nominati (es: txt{0}, dl{0}, ...)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void recuperaFooter(object sender, ObjectDataSourceMethodEventArgs e)
|
||||||
|
{
|
||||||
|
//recupero la riga footer...
|
||||||
|
DataColumnCollection colonne = colonneObj();
|
||||||
|
string nomeCol;
|
||||||
|
string tipoColonna = "";
|
||||||
|
foreach (DataColumn colonna in colonne)
|
||||||
|
{
|
||||||
|
nomeCol = colonna.ColumnName;
|
||||||
|
// cerco un textbox o quello che sia...
|
||||||
|
if (grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol)) != null)
|
||||||
|
{
|
||||||
|
tipoColonna = "textBox";
|
||||||
|
}
|
||||||
|
else if (grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol)) != null)
|
||||||
|
{
|
||||||
|
tipoColonna = "dropDownList";
|
||||||
|
}
|
||||||
|
else if (grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol)) != null)
|
||||||
|
{
|
||||||
|
tipoColonna = "checkBox";
|
||||||
|
}
|
||||||
|
else if (grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol)) != null)
|
||||||
|
{
|
||||||
|
tipoColonna = "selAjax";
|
||||||
|
}
|
||||||
|
// in base al tipo salvo negli inputparameters dell'ODS
|
||||||
|
switch (tipoColonna)
|
||||||
|
{
|
||||||
|
case "textBox":
|
||||||
|
e.InputParameters[nomeCol] = ((TextBox)grView.FooterRow.FindControl(string.Format("txt{0}", nomeCol))).Text;
|
||||||
|
break;
|
||||||
|
case "dropDownList":
|
||||||
|
e.InputParameters[nomeCol] = ((DropDownList)grView.FooterRow.FindControl(string.Format("dl{0}", nomeCol))).SelectedValue;
|
||||||
|
break;
|
||||||
|
case "checkBox":
|
||||||
|
e.InputParameters[nomeCol] = ((CheckBox)grView.FooterRow.FindControl(string.Format("chk{0}", nomeCol))).Checked;
|
||||||
|
break;
|
||||||
|
//case "selAjax":
|
||||||
|
// e.InputParameters[nomeCol] = ((mod_selettore_ajax)grView.FooterRow.FindControl(string.Format("selAjax_{0}", nomeCol))).valore;
|
||||||
|
// break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
tipoColonna = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// svuoto da cache post update
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void ods_Updated(object sender, ObjectDataSourceStatusEventArgs e)
|
||||||
|
{
|
||||||
|
// evento come nuovo...
|
||||||
|
if (eh_nuovoValore != null)
|
||||||
|
{
|
||||||
|
eh_nuovoValore(this, new EventArgs());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region are public
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// effettua traduzione del lemma
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="lemma"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public string traduci(string lemma)
|
||||||
|
{
|
||||||
|
return user_std.UtSn.Traduci(lemma);
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// effettua traduzione in inglese del lemma
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="lemma"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public string traduciEn(string lemma)
|
||||||
|
{
|
||||||
|
return user_std.UtSn.TraduciEn(lemma);
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// resetta la selezione dei valori in caso di modifiche su altri controlli
|
||||||
|
/// </summary>
|
||||||
|
public void resetSelezione()
|
||||||
|
{
|
||||||
|
SteamWare.memLayer.ML.emptySessionVal(string.Format("{0}_sel", _idxGridView));
|
||||||
|
grView.SelectedIndex = -1;
|
||||||
|
grView.DataBind();
|
||||||
|
divEditQta.Visible = false;
|
||||||
|
mod_newOdl1.Visible = false;
|
||||||
|
btnNewOdl.Visible = true;
|
||||||
|
lblWarning.Visible = false;
|
||||||
|
if (eh_resetSelezione != null)
|
||||||
|
{
|
||||||
|
eh_resetSelezione(this, new EventArgs());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region gestione eventi
|
||||||
|
|
||||||
|
public event EventHandler eh_resetSelezione;
|
||||||
|
public event EventHandler eh_nuovoValore;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region area da modificare
|
||||||
|
|
||||||
|
protected override void OnLoad(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnLoad(e);
|
||||||
|
if (!Page.IsPostBack)
|
||||||
|
{
|
||||||
|
mod_newOdl1.Visible = false;
|
||||||
|
grView.PageSize = pageSize;
|
||||||
|
}
|
||||||
|
mod_newOdl1.eh_nuovoValore += new EventHandler(mod_newOdl1_eh_nuovoValore);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// inizializzazione valori di default
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected override void OnInit(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnInit(e);
|
||||||
|
_idxGridView = "IdxODL";
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// nuovo valore creato...
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
void mod_newOdl1_eh_nuovoValore(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// nascondo controllo e mostro button
|
||||||
|
mod_newOdl1.Visible = false;
|
||||||
|
btnNewOdl.Visible = true;
|
||||||
|
// aggiorno!
|
||||||
|
resetSelezione();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// elenco colonne del datagrid
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
protected DataColumnCollection colonneObj()
|
||||||
|
{
|
||||||
|
MapoDb.DS_ProdTempi.ODLDataTable tabella = new MapoDb.DS_ProdTempi.ODLDataTable();
|
||||||
|
DataColumnCollection colonne = tabella.Columns;
|
||||||
|
return colonne;
|
||||||
|
}
|
||||||
|
public bool delEnabled(object _idxOdl)
|
||||||
|
{
|
||||||
|
bool answ = false;
|
||||||
|
int idxOdl = 0;
|
||||||
|
// controllo non sia già stata iniziata la produzione sennò non posso cancellare...
|
||||||
|
try
|
||||||
|
{
|
||||||
|
idxOdl = Convert.ToInt32(_idxOdl);
|
||||||
|
answ = (MapoDb.DataLayer.obj.taODL.getByIdx(idxOdl, true).Count > 0);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
return answ;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// mostra creazione nuovo ODL
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnNewOdl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// mostro controllo creazione ODL
|
||||||
|
mod_newOdl1.Visible = true;
|
||||||
|
divEditQta.Visible = false;
|
||||||
|
btnNewOdl.Visible = false;
|
||||||
|
grView.SelectedIndex = -1;
|
||||||
|
grView.DataBind();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// formatot url x stampa ODL
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="idx"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public string formattaUrlOdl(object idx)
|
||||||
|
{
|
||||||
|
string answ = String.Format(memLayer.ML.confReadString("exportFormat1"), Convert.ToInt32(reportRichiesto.SchedaODL), idx);
|
||||||
|
return answ;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cambio dim pagina
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void txtPageSize_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
grView.PageSize = pageSize;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// verifica se ODL sia current = aperto (iniziato, NON concluso)
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="DataInizio"></param>
|
||||||
|
/// <param name="DataFine"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public bool OdlIsCurrent(object DataInizio, object DataFine)
|
||||||
|
{
|
||||||
|
bool answ = false;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if ((DataInizio.ToString() == "") && (DataFine.ToString() == ""))
|
||||||
|
{
|
||||||
|
answ = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
if (!answ)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if ((Convert.ToDateTime(DataInizio) <= DateTime.Now) && (DataFine.ToString() == ""))
|
||||||
|
{
|
||||||
|
answ = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
}
|
||||||
|
return answ;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
protected void btnOk_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (idxOdlSel > 0)
|
||||||
|
{
|
||||||
|
DataLayer.obj.taODL.updateQta(numPz, pzPallet, idxOdlSel);
|
||||||
|
}
|
||||||
|
updateCtrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateCtrl()
|
||||||
|
{
|
||||||
|
divEditQta.Visible = false;
|
||||||
|
grView.SelectedIndex = -1;
|
||||||
|
grView.DataBind();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// idxOdl selezionato
|
||||||
|
/// </summary>
|
||||||
|
protected int idxOdlSel
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
int answ = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
answ = Convert.ToInt32(grView.SelectedValue);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
return answ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Nuovo num pz
|
||||||
|
/// </summary>
|
||||||
|
protected int numPz
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
int answ = 0;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
answ = Convert.ToInt32(txtNewQta.Text.Trim());
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
return answ;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
txtNewQta.Text = value.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Nuovo num pz per pallet
|
||||||
|
/// </summary>
|
||||||
|
protected int pzPallet
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
int answ = 1;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
answ = Convert.ToInt32(txtNewPzPallet.Text.Trim());
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{ }
|
||||||
|
// controllo sia > 0...
|
||||||
|
if (answ < 1)
|
||||||
|
{
|
||||||
|
answ = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return answ;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
txtNewPzPallet.Text = value.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
protected void btnCancel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
updateCtrl();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+116
-10
@@ -1,17 +1,123 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <generato automaticamente>
|
||||||
// Codice generato da uno strumento.
|
// Codice generato da uno strumento.
|
||||||
//
|
//
|
||||||
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||||
// il codice viene rigenerato.
|
// il codice viene rigenerato.
|
||||||
// </auto-generated>
|
// </generato automaticamente>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace MoonProAdmin.WebUserControls
|
namespace MoonProAdmin.WebUserControls {
|
||||||
{
|
|
||||||
|
|
||||||
|
public partial class mod_gestPromODL {
|
||||||
public partial class mod_gestPromODL
|
|
||||||
{
|
/// <summary>
|
||||||
}
|
/// Controllo btnNewOdl.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Button btnNewOdl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo mod_newOdl1.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::MoonPro_site.WebUserControls.mod_newOdl mod_newOdl1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo divEditQta.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEditQta;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo btnOk.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Button btnOk;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo txtNewQta.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox txtNewQta;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo txtNewPzPallet.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox txtNewPzPallet;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo btnCancel.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Button btnCancel;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo grView.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.GridView grView;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo lblNumRec.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo lblWarning.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo ods.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Controllo txtPageSize.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Campo generato automaticamente.
|
||||||
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox txtPageSize;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,167 +1,167 @@
|
|||||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestioneODL.ascx.cs"
|
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_gestioneODL.ascx.cs"
|
||||||
Inherits="MoonPro_site.WebUserControls.mod_gestioneODL" %>
|
Inherits="MoonPro_site.WebUserControls.mod_gestioneODL" %>
|
||||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||||
<%@ Register Src="mod_newOdl.ascx" TagName="mod_newOdl" TagPrefix="uc1" %>
|
<%@ Register Src="mod_newOdl.ascx" TagName="mod_newOdl" TagPrefix="uc1" %>
|
||||||
|
|
||||||
<div style="text-align: center; margin: auto; vertical-align: middle; width: 100%; background: #DCDCDC;">
|
<div style="text-align: center; margin: auto; vertical-align: middle; width: 100%; background: #DCDCDC;">
|
||||||
<div class="filtro_2" style="white-space: nowrap; padding: 2px;">
|
<div class="filtro_2" style="white-space: nowrap; padding: 2px;">
|
||||||
<asp:Button runat="server" ID="btnNewOdl" OnClick="btnNewOdl_Click" Text="Nuovo ODL" />
|
<asp:Button runat="server" ID="btnNewOdl" OnClick="btnNewOdl_Click" Text="Nuovo ODL" />
|
||||||
<uc1:mod_newOdl ID="mod_newOdl1" runat="server" />
|
<uc1:mod_newOdl ID="mod_newOdl1" runat="server" />
|
||||||
</div>
|
</div>
|
||||||
<div id="divEditQta" runat="server" visible="false" class="ctrSelRowStyle" style="white-space: nowrap; padding: 2px;">
|
<div id="divEditQta" runat="server" visible="false" class="ctrSelRowStyle" style="white-space: nowrap; padding: 2px;">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<asp:Button runat="server" ID="btnOk" Text="Ok" Width="10em" OnClick="btnOk_Click" />
|
<asp:Button runat="server" ID="btnOk" Text="Ok" Width="10em" OnClick="btnOk_Click" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
Pezzi ODL:
|
Pezzi ODL:
|
||||||
<asp:TextBox runat="server" ID="txtNewQta" Width="6em" />
|
<asp:TextBox runat="server" ID="txtNewQta" Width="6em" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
Pezzi Pallet:
|
Pezzi Pallet:
|
||||||
<asp:TextBox runat="server" ID="txtNewPzPallet" Width="6em" />
|
<asp:TextBox runat="server" ID="txtNewPzPallet" Width="6em" />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<asp:Button runat="server" ID="btnCancel" Text="Annulla" Width="10em" OnClick="btnCancel_Click" />
|
<asp:Button runat="server" ID="btnCancel" Text="Annulla" Width="10em" OnClick="btnCancel_Click" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
</div>
|
||||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound" PageSize="25"
|
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||||
DataKeyNames="IdxODL" DataSourceID="ods" Width="100%">
|
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound" PageSize="25"
|
||||||
<RowStyle CssClass="ctrRowStyle" />
|
DataKeyNames="IdxODL" DataSourceID="ods" Width="100%">
|
||||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
<RowStyle CssClass="ctrRowStyle" />
|
||||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||||
<FooterStyle CssClass="ctrFooter" />
|
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||||
<PagerStyle CssClass="active GridPager" />
|
<FooterStyle CssClass="ctrFooter" />
|
||||||
<PagerSettings Mode="NumericFirstLast" />
|
<PagerStyle CssClass="active GridPager" />
|
||||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
<PagerSettings Mode="NumericFirstLast" />
|
||||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||||
<EmptyDataTemplate>
|
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
<EmptyDataTemplate>
|
||||||
</EmptyDataTemplate>
|
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||||
<Columns>
|
</EmptyDataTemplate>
|
||||||
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
<Columns>
|
||||||
<HeaderTemplate>
|
<asp:TemplateField ShowHeader="False" ItemStyle-HorizontalAlign="Center">
|
||||||
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click" CausesValidation="false" Visible="true" />
|
<HeaderTemplate>
|
||||||
</HeaderTemplate>
|
<asp:Button ID="btnReset" runat="server" Text='<%# traduci("Reset") %>' OnClick="btnReset_Click" CausesValidation="false" Visible="true" />
|
||||||
<ItemTemplate>
|
</HeaderTemplate>
|
||||||
<%--<span style="padding-right: 2px;">
|
<ItemTemplate>
|
||||||
|
<%--<span style="padding-right: 2px;">
|
||||||
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
<asp:ImageButton ID="imgSelect" runat="server" CausesValidation="False" CommandName="Select"
|
||||||
ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_s.png" />
|
ToolTip='<%# traduci("Select") %>' ImageUrl="~/images/view_s.png" />
|
||||||
</span>--%>
|
</span>--%>
|
||||||
<span style="padding-right: 2px;">
|
<span style="padding-right: 2px;">
|
||||||
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
|
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" CommandName="Select"
|
||||||
ToolTip="Modifica num pz" ImageUrl="~/images/edit_s.png" Visible='<%# OdlIsCurrent(Eval("DataInizio"),Eval("DataFine")) %>' />
|
ToolTip="Modifica num pz" ImageUrl="~/images/edit_s.png" Visible='<%# OdlIsCurrent(Eval("DataInizio"),Eval("DataFine")) %>' />
|
||||||
</span>
|
</span>
|
||||||
<%--<span style="padding-left: 2px;">
|
<%--<span style="padding-left: 2px;">
|
||||||
<asp:HyperLink runat="server" ID="hlPrintOdl" ToolTip='<%# traduci("getPdfODL") %>'
|
<asp:HyperLink runat="server" ID="hlPrintOdl" ToolTip='<%# traduci("getPdfODL") %>'
|
||||||
NavigateUrl='<%# formattaUrlOdl(Eval("IdxODL")) %>' ImageUrl="~/images/page_pdf.png" />
|
NavigateUrl='<%# formattaUrlOdl(Eval("IdxODL")) %>' ImageUrl="~/images/page_pdf.png" />
|
||||||
</span>--%>
|
</span>--%>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="ODL" SortExpression="IdxOdl">
|
<asp:TemplateField HeaderText="ODL" SortExpression="IdxOdl">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" ID="txtIdxOdl" Text='<%# Eval("IdxOdl") %>' />
|
<asp:Label runat="server" ID="txtIdxOdl" Text='<%# Eval("IdxOdl") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="CodArticolo" SortExpression="CodArticolo">
|
<asp:TemplateField HeaderText="CodArticolo" SortExpression="CodArticolo">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<div style="float: left;">
|
<div style="float: left;">
|
||||||
<b>
|
<b>
|
||||||
<asp:Label runat="server" ID="txtCodArticolo" Text='<%# Eval("CodArticolo") %>' /></b>
|
<asp:Label runat="server" ID="txtCodArticolo" Text='<%# Eval("CodArticolo") %>' /></b>
|
||||||
</div>
|
</div>
|
||||||
<div style="float: right; font-size: 0.8em;">
|
<div style="float: right; font-size: 0.8em;">
|
||||||
<asp:Label runat="server" ID="Label1" Text='<%# Eval("CommessaAs400") %>' />
|
<asp:Label runat="server" ID="Label1" Text='<%# Eval("CommessaAs400") %>' />
|
||||||
</div>
|
</div>
|
||||||
<div style="float: none; clear: both;">
|
<div style="float: none; clear: both;">
|
||||||
<asp:Label runat="server" ID="txtDescArticolo" Text='<%# Eval("DescArticolo") %>' />
|
<asp:Label runat="server" ID="txtDescArticolo" Text='<%# Eval("DescArticolo") %>' />
|
||||||
</div>
|
</div>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="codMacchina" SortExpression="CodMacchina">
|
<asp:TemplateField HeaderText="codMacchina" SortExpression="CodMacchina">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<b>
|
<b>
|
||||||
<asp:Label runat="server" ID="txtCodMacchina" Text='<%# Eval("CodMacchina") %>' /></b>
|
<asp:Label runat="server" ID="txtCodMacchina" Text='<%# Eval("CodMacchina") %>' /></b>
|
||||||
<br />
|
<br />
|
||||||
<asp:Label runat="server" ID="txtNome" Text='<%# Eval("Nome") %>' />
|
<asp:Label runat="server" ID="txtNome" Text='<%# Eval("Nome") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="NumPezzi" SortExpression="NumPezzi">
|
<asp:TemplateField HeaderText="NumPezzi" SortExpression="NumPezzi">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Eval("NumPezzi") %>' />
|
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Eval("NumPezzi") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Bind("NumPezzi") %>' />
|
<asp:Label runat="server" ID="txtNumPezzi" Text='<%# Bind("NumPezzi") %>' />
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="TCAssegnato" SortExpression="TCAssegnato">
|
<asp:TemplateField HeaderText="TCAssegnato" SortExpression="TCAssegnato">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" ID="txtTCAssegnato" Text='<%# Eval("TCAssegnato","{0:0.000}") %>' />
|
<asp:Label runat="server" ID="txtTCAssegnato" Text='<%# Eval("TCAssegnato","{0:0.000}") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="PzPallet" SortExpression="PzPallet">
|
<asp:TemplateField HeaderText="PzPallet" SortExpression="PzPallet">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" ID="txtPzPallet" Text='<%# Eval("PzPallet") %>' />
|
<asp:Label runat="server" ID="txtPzPallet" Text='<%# Eval("PzPallet") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<EditItemTemplate>
|
<EditItemTemplate>
|
||||||
<%--<asp:Label runat="server" ID="txtPzPallet" Text='<%# Bind("PzPallet") %>' />--%>
|
<%--<asp:Label runat="server" ID="txtPzPallet" Text='<%# Bind("PzPallet") %>' />--%>
|
||||||
</EditItemTemplate>
|
</EditItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="DataInizio" SortExpression="DataInizio">
|
<asp:TemplateField HeaderText="DataInizio" SortExpression="DataInizio">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" ID="txtDataInizio" Text='<%# Eval("DataInizio") %>' />
|
<asp:Label runat="server" ID="txtDataInizio" Text='<%# Eval("DataInizio") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderText="DataFine" SortExpression="DataFine">
|
<asp:TemplateField HeaderText="DataFine" SortExpression="DataFine">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:Label runat="server" ID="txtDataFine" Text='<%# Eval("DataFine") %>' />
|
<asp:Label runat="server" ID="txtDataFine" Text='<%# Eval("DataFine") %>' />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
<asp:TemplateField HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
<asp:ImageButton ID="imgDelete" runat="server" CausesValidation="False" CommandName="Delete"
|
||||||
CommandArgument='<%# Eval("IdxODL") %>' ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("IdxODL")) %>'
|
CommandArgument='<%# Eval("IdxODL") %>' ToolTip='<%# traduci("Delete") %>' Visible='<%# delEnabled(Eval("IdxODL")) %>'
|
||||||
ImageUrl="~/images/elimina_m.png" />
|
ImageUrl="~/images/elimina_m.png" />
|
||||||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" ConfirmText='<%# traduci("confermaDel")%>'
|
||||||
TargetControlID="imgDelete"></cc1:ConfirmButtonExtender>
|
TargetControlID="imgDelete"></cc1:ConfirmButtonExtender>
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
|
||||||
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
<ItemStyle HorizontalAlign="Center"></ItemStyle>
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
</Columns>
|
</Columns>
|
||||||
</asp:GridView>
|
</asp:GridView>
|
||||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini" />
|
||||||
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
<asp:Label ID="lblWarning" runat="server" Visible="false" CssClass="erroreMid" />
|
||||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||||
SelectMethod="GetData" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter"
|
SelectMethod="GetData" TypeName="MapoDb.DS_ProdTempiTableAdapters.ODLTableAdapter"
|
||||||
OnInserting="recuperaFooter" FilterExpression="CodArticolo LIKE '%{0}%'" OnInserted="ods_Updated"
|
OnInserting="recuperaFooter" FilterExpression="CodArticolo LIKE '%{0}%'" OnInserted="ods_Updated"
|
||||||
OnUpdated="ods_Updated" DeleteMethod="DeleteQuery" OnDeleted="ods_Updated" InsertMethod="Insert"
|
OnUpdated="ods_Updated" DeleteMethod="DeleteQuery" OnDeleted="ods_Updated" InsertMethod="Insert"
|
||||||
UpdateMethod="updateQta">
|
UpdateMethod="updateQta">
|
||||||
<FilterParameters>
|
<FilterParameters>
|
||||||
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
<asp:SessionParameter DefaultValue="*" Name="ricerca" SessionField="valoreCercato" />
|
||||||
</FilterParameters>
|
</FilterParameters>
|
||||||
<DeleteParameters>
|
<DeleteParameters>
|
||||||
<asp:Parameter Name="Original_IdxODL" Type="Int32" />
|
<asp:Parameter Name="Original_IdxODL" Type="Int32" />
|
||||||
</DeleteParameters>
|
</DeleteParameters>
|
||||||
<UpdateParameters>
|
<UpdateParameters>
|
||||||
<asp:Parameter Name="NumPezzi" Type="Int32" />
|
<asp:Parameter Name="NumPezzi" Type="Int32" />
|
||||||
<asp:Parameter Name="Original_IdxODL" Type="Int32" />
|
<asp:Parameter Name="Original_IdxODL" Type="Int32" />
|
||||||
</UpdateParameters>
|
</UpdateParameters>
|
||||||
<InsertParameters>
|
<InsertParameters>
|
||||||
<asp:Parameter Name="CodArticolo" Type="String" />
|
<asp:Parameter Name="CodArticolo" Type="String" />
|
||||||
<asp:Parameter Name="IdxMacchina" Type="String" />
|
<asp:Parameter Name="IdxMacchina" Type="String" />
|
||||||
<asp:Parameter Name="NumPezzi" Type="Int32" />
|
<asp:Parameter Name="NumPezzi" Type="Int32" />
|
||||||
<asp:Parameter Name="TCAssegnato" Type="Decimal" />
|
<asp:Parameter Name="TCAssegnato" Type="Decimal" />
|
||||||
</InsertParameters>
|
</InsertParameters>
|
||||||
</asp:ObjectDataSource>
|
</asp:ObjectDataSource>
|
||||||
<div style="text-align: center; margin: auto; vertical-align: middle; padding: 4px 2px; height: 1.5em;">
|
<div style="text-align: center; margin: auto; vertical-align: middle; padding: 4px 2px; height: 1.5em;">
|
||||||
<div style="float: right;">
|
<div style="float: right;">
|
||||||
mostra:
|
mostra:
|
||||||
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
<asp:TextBox runat="server" ID="txtPageSize" Text="10" Width="2em" OnTextChanged="txtPageSize_TextChanged" />
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+44
-45
@@ -1,123 +1,122 @@
|
|||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <generato automaticamente>
|
||||||
// This code was generated by a tool.
|
// Codice generato da uno strumento.
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
|
||||||
// the code is regenerated.
|
// il codice viene rigenerato.
|
||||||
// </auto-generated>
|
// </generato automaticamente>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace MoonPro_site.WebUserControls
|
namespace MoonPro_site.WebUserControls {
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
public partial class mod_gestioneODL {
|
public partial class mod_gestioneODL {
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnNewOdl control.
|
/// Controllo btnNewOdl.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Button btnNewOdl;
|
protected global::System.Web.UI.WebControls.Button btnNewOdl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// mod_newOdl1 control.
|
/// Controllo mod_newOdl1.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::MoonPro_site.WebUserControls.mod_newOdl mod_newOdl1;
|
protected global::MoonPro_site.WebUserControls.mod_newOdl mod_newOdl1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// divEditQta control.
|
/// Controllo divEditQta.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEditQta;
|
protected global::System.Web.UI.HtmlControls.HtmlGenericControl divEditQta;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnOk control.
|
/// Controllo btnOk.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Button btnOk;
|
protected global::System.Web.UI.WebControls.Button btnOk;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtNewQta control.
|
/// Controllo txtNewQta.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.TextBox txtNewQta;
|
protected global::System.Web.UI.WebControls.TextBox txtNewQta;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtNewPzPallet control.
|
/// Controllo txtNewPzPallet.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.TextBox txtNewPzPallet;
|
protected global::System.Web.UI.WebControls.TextBox txtNewPzPallet;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnCancel control.
|
/// Controllo btnCancel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Button btnCancel;
|
protected global::System.Web.UI.WebControls.Button btnCancel;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// grView control.
|
/// Controllo grView.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.GridView grView;
|
protected global::System.Web.UI.WebControls.GridView grView;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// lblNumRec control.
|
/// Controllo lblNumRec.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
protected global::System.Web.UI.WebControls.Label lblNumRec;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// lblWarning control.
|
/// Controllo lblWarning.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Label lblWarning;
|
protected global::System.Web.UI.WebControls.Label lblWarning;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ods control.
|
/// Controllo ods.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
protected global::System.Web.UI.WebControls.ObjectDataSource ods;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtPageSize control.
|
/// Controllo txtPageSize.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Auto-generated field.
|
/// Campo generato automaticamente.
|
||||||
/// To modify move field declaration from designer file to code-behind file.
|
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.TextBox txtPageSize;
|
protected global::System.Web.UI.WebControls.TextBox txtPageSize;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--<autogenerated>
|
||||||
|
This code was generated by a tool.
|
||||||
|
Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
the code is regenerated.
|
||||||
|
</autogenerated>-->
|
||||||
|
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
|
<TableUISettings />
|
||||||
|
</DataSetUISetting>
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<xs:schema id="DS_IntServ" targetNamespace="http://tempuri.org/DS_IntServ.xsd" xmlns:mstns="http://tempuri.org/DS_IntServ.xsd" xmlns="http://tempuri.org/DS_IntServ.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
|
||||||
|
<xs:annotation>
|
||||||
|
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
|
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
|
||||||
|
<Connections>
|
||||||
|
<Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="MoonPro_IS_ConnectionString" IsAppSettingsProperty="true" Modifier="Assembly" Name="MoonPro_IS_ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.MapoDb.Properties.Settings.GlobalReference.Default.MoonPro_IS_ConnectionString" Provider="System.Data.SqlClient" />
|
||||||
|
</Connections>
|
||||||
|
<Tables>
|
||||||
|
<TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="TransitoDatiTableAdapter" GeneratorDataComponentClassName="TransitoDatiTableAdapter" Name="TransitoDati" UserDataComponentName="TransitoDatiTableAdapter">
|
||||||
|
<MainSource>
|
||||||
|
<DbSource ConnectionRef="MoonPro_IS_ConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.TransitoDati" DbObjectType="Table" 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].[TransitoDati] WHERE (([IdxRequest] = @Original_IdxRequest) AND ([DtRequest] = @Original_DtRequest) AND ([DataType] = @Original_DataType) AND ([ValueIN] = @Original_ValueIN))</CommandText>
|
||||||
|
<Parameters>
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtRequest" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ValueIN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueIN" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
</Parameters>
|
||||||
|
</DbCommand>
|
||||||
|
</DeleteCommand>
|
||||||
|
<InsertCommand>
|
||||||
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||||
|
<CommandText>INSERT INTO [dbo].[TransitoDati] ([DtRequest], [DataType], [ValueIN], [ValueOUT]) VALUES (@DtRequest, @DataType, @ValueIN, @ValueOUT);
|
||||||
|
SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHERE (IdxRequest = SCOPE_IDENTITY())</CommandText>
|
||||||
|
<Parameters>
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtRequest" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueIN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueIN" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueOUT" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueOUT" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
</Parameters>
|
||||||
|
</DbCommand>
|
||||||
|
</InsertCommand>
|
||||||
|
<SelectCommand>
|
||||||
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||||
|
<CommandText>SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM dbo.TransitoDati</CommandText>
|
||||||
|
<Parameters />
|
||||||
|
</DbCommand>
|
||||||
|
</SelectCommand>
|
||||||
|
<UpdateCommand>
|
||||||
|
<DbCommand CommandType="Text" ModifiedByUser="false">
|
||||||
|
<CommandText>UPDATE [dbo].[TransitoDati] SET [DtRequest] = @DtRequest, [DataType] = @DataType, [ValueIN] = @ValueIN, [ValueOUT] = @ValueOUT WHERE (([IdxRequest] = @Original_IdxRequest) AND ([DtRequest] = @Original_DtRequest) AND ([DataType] = @Original_DataType) AND ([ValueIN] = @Original_ValueIN));
|
||||||
|
SELECT IdxRequest, DtRequest, DataType, ValueIN, ValueOUT FROM TransitoDati WHERE (IdxRequest = @IdxRequest)</CommandText>
|
||||||
|
<Parameters>
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@DtRequest" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueIN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueIN" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@ValueOUT" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueOUT" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IdxRequest" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdxRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_DtRequest" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="DtRequest" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_DataType" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DataType" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_ValueIN" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="ValueIN" SourceColumnNullMapping="false" SourceVersion="Original" />
|
||||||
|
<Parameter AllowDbNull="false" AutogeneratedName="IdxRequest" ColumnName="IdxRequest" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdxRequest" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdxRequest" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
</Parameters>
|
||||||
|
</DbCommand>
|
||||||
|
</UpdateCommand>
|
||||||
|
</DbSource>
|
||||||
|
</MainSource>
|
||||||
|
<Mappings>
|
||||||
|
<Mapping SourceColumn="IdxRequest" DataSetColumn="IdxRequest" />
|
||||||
|
<Mapping SourceColumn="DtRequest" DataSetColumn="DtRequest" />
|
||||||
|
<Mapping SourceColumn="DataType" DataSetColumn="DataType" />
|
||||||
|
<Mapping SourceColumn="ValueIN" DataSetColumn="ValueIN" />
|
||||||
|
<Mapping SourceColumn="ValueOUT" DataSetColumn="ValueOUT" />
|
||||||
|
</Mappings>
|
||||||
|
<Sources>
|
||||||
|
<DbSource ConnectionRef="MoonPro_IS_ColComConnectionString (Settings)" DbObjectName="MoonPro_IS_ColCom.dbo.stp_OrdiniByKey" DbObjectType="StoredProcedure" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="getOrdini" GetMethodModifier="Public" GetMethodName="getOrdini" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="getOrdini" UserSourceName="getOrdini">
|
||||||
|
<SelectCommand>
|
||||||
|
<DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
|
||||||
|
<CommandText>dbo.stp_OrdiniByKey</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="@OrderKey" Precision="0" ProviderType="NVarChar" Scale="0" Size="250" SourceColumnNullMapping="false" SourceVersion="Current" />
|
||||||
|
</Parameters>
|
||||||
|
</DbCommand>
|
||||||
|
</SelectCommand>
|
||||||
|
</DbSource>
|
||||||
|
</Sources>
|
||||||
|
</TableAdapter>
|
||||||
|
</Tables>
|
||||||
|
<Sources />
|
||||||
|
</DataSource>
|
||||||
|
</xs:appinfo>
|
||||||
|
</xs:annotation>
|
||||||
|
<xs:element name="DS_IntServ" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DS_IntServ" msprop:Generator_UserDSName="DS_IntServ">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
||||||
|
<xs:element name="TransitoDati" msprop:Generator_TableClassName="TransitoDatiDataTable" msprop:Generator_TableVarName="tableTransitoDati" msprop:Generator_TablePropName="TransitoDati" msprop:Generator_RowDeletingName="TransitoDatiRowDeleting" msprop:Generator_RowChangingName="TransitoDatiRowChanging" msprop:Generator_RowEvHandlerName="TransitoDatiRowChangeEventHandler" msprop:Generator_RowDeletedName="TransitoDatiRowDeleted" msprop:Generator_UserTableName="TransitoDati" msprop:Generator_RowChangedName="TransitoDatiRowChanged" msprop:Generator_RowEvArgName="TransitoDatiRowChangeEvent" msprop:Generator_RowClassName="TransitoDatiRow">
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
|
<xs:element name="IdxRequest" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnIdxRequest" msprop:Generator_ColumnPropNameInRow="IdxRequest" msprop:Generator_ColumnPropNameInTable="IdxRequestColumn" msprop:Generator_UserColumnName="IdxRequest" type="xs:int" />
|
||||||
|
<xs:element name="DtRequest" msprop:Generator_ColumnVarNameInTable="columnDtRequest" msprop:Generator_ColumnPropNameInRow="DtRequest" msprop:Generator_ColumnPropNameInTable="DtRequestColumn" msprop:Generator_UserColumnName="DtRequest" type="xs:dateTime" />
|
||||||
|
<xs:element name="DataType" msprop:Generator_ColumnVarNameInTable="columnDataType" msprop:Generator_ColumnPropNameInRow="DataType" msprop:Generator_ColumnPropNameInTable="DataTypeColumn" msprop:Generator_UserColumnName="DataType">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="50" />
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="ValueIN" msprop:Generator_ColumnVarNameInTable="columnValueIN" msprop:Generator_ColumnPropNameInRow="ValueIN" msprop:Generator_ColumnPropNameInTable="ValueINColumn" msprop:Generator_UserColumnName="ValueIN">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="50" />
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
|
<xs:element name="ValueOUT" msprop:Generator_ColumnVarNameInTable="columnValueOUT" msprop:Generator_ColumnPropNameInRow="ValueOUT" msprop:Generator_ColumnPropNameInTable="ValueOUTColumn" msprop:Generator_UserColumnName="ValueOUT">
|
||||||
|
<xs:simpleType>
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:maxLength value="2147483647" />
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:sequence>
|
||||||
|
</xs:complexType>
|
||||||
|
</xs:element>
|
||||||
|
</xs:choice>
|
||||||
|
</xs:complexType>
|
||||||
|
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
|
||||||
|
<xs:selector xpath=".//mstns:TransitoDati" />
|
||||||
|
<xs:field xpath="mstns:IdxRequest" />
|
||||||
|
</xs:unique>
|
||||||
|
</xs:element>
|
||||||
|
</xs:schema>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--<autogenerated>
|
||||||
|
This code was generated by a tool to store the dataset designer's layout information.
|
||||||
|
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">
|
||||||
|
<Shapes>
|
||||||
|
<Shape ID="DesignTable:TransitoDati" ZOrder="1" X="143" Y="127" Height="227" Width="255" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="145" />
|
||||||
|
</Shapes>
|
||||||
|
<Connectors />
|
||||||
|
</DiagramLayout>
|
||||||
@@ -131,6 +131,16 @@
|
|||||||
<None Include="DS_applicazione.xss">
|
<None Include="DS_applicazione.xss">
|
||||||
<DependentUpon>DS_applicazione.xsd</DependentUpon>
|
<DependentUpon>DS_applicazione.xsd</DependentUpon>
|
||||||
</None>
|
</None>
|
||||||
|
<None Include="DS_IntServ.xsc">
|
||||||
|
<DependentUpon>DS_IntServ.xsd</DependentUpon>
|
||||||
|
</None>
|
||||||
|
<None Include="DS_IntServ.xsd">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
<Generator>MSDataSetGenerator</Generator>
|
||||||
|
</None>
|
||||||
|
<None Include="DS_IntServ.xss">
|
||||||
|
<DependentUpon>DS_IntServ.xsd</DependentUpon>
|
||||||
|
</None>
|
||||||
<None Include="DS_ProdTempi.xsc">
|
<None Include="DS_ProdTempi.xsc">
|
||||||
<DependentUpon>DS_ProdTempi.xsd</DependentUpon>
|
<DependentUpon>DS_ProdTempi.xsd</DependentUpon>
|
||||||
</None>
|
</None>
|
||||||
|
|||||||
Generated
+12
-1
@@ -12,7 +12,7 @@ namespace MapoDb.Properties {
|
|||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.6.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
@@ -33,5 +33,16 @@ namespace MapoDb.Properties {
|
|||||||
return ((string)(this["MoonProConnectionString"]));
|
return ((string)(this["MoonProConnectionString"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Configuration.ApplicationScopedSettingAttribute()]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.ConnectionString)]
|
||||||
|
[global::System.Configuration.DefaultSettingValueAttribute("Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=Tr" +
|
||||||
|
"ue;User ID=sa;Password=keyhammer16")]
|
||||||
|
public string MoonPro_IS_ConnectionString {
|
||||||
|
get {
|
||||||
|
return ((string)(this["MoonPro_IS_ConnectionString"]));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,5 +10,13 @@
|
|||||||
</SerializableConnectionString></DesignTimeValue>
|
</SerializableConnectionString></DesignTimeValue>
|
||||||
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;</Value>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
<Setting Name="MoonPro_IS_ConnectionString" Type="(Connection string)" Scope="Application">
|
||||||
|
<DesignTimeValue Profile="(Default)"><?xml version="1.0" encoding="utf-16"?>
|
||||||
|
<SerializableConnectionString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<ConnectionString>Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16</ConnectionString>
|
||||||
|
<ProviderName>System.Data.SqlClient</ProviderName>
|
||||||
|
</SerializableConnectionString></DesignTimeValue>
|
||||||
|
<Value Profile="(Default)">Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16</Value>
|
||||||
|
</Setting>
|
||||||
</Settings>
|
</Settings>
|
||||||
</SettingsFile>
|
</SettingsFile>
|
||||||
+6
-1
@@ -3,7 +3,12 @@
|
|||||||
<configSections>
|
<configSections>
|
||||||
</configSections>
|
</configSections>
|
||||||
<connectionStrings>
|
<connectionStrings>
|
||||||
<add name="MapoDb.Properties.Settings.MoonProConnectionString" connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;" providerName="System.Data.SqlClient" />
|
<add name="MapoDb.Properties.Settings.MoonProConnectionString"
|
||||||
|
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro;Persist Security Info=True;User ID=sa;Password=keyhammer16;"
|
||||||
|
providerName="System.Data.SqlClient" />
|
||||||
|
<add name="MapoDb.Properties.Settings.MoonPro_IS_ConnectionString"
|
||||||
|
connectionString="Data Source=SQL2016DEV;Initial Catalog=MoonPro_IS_ColCom;Persist Security Info=True;User ID=sa;Password=keyhammer16"
|
||||||
|
providerName="System.Data.SqlClient" />
|
||||||
</connectionStrings>
|
</connectionStrings>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
|
||||||
|
|||||||
Reference in New Issue
Block a user