- Update db
- nuova maschera start lavori PS: stored non va ancora come dovrebbe... git-svn-id: https://keyhammer.ath.cx/svn/XPS/trunk@21 43c8e981-f90d-406c-a89a-24a2c4268d51
This commit is contained in:
@@ -11,22 +11,23 @@
|
||||
<tr>
|
||||
<td>
|
||||
<div class="filtro_1">
|
||||
<uc4:mod_filtro ID="Mod_filtroMappa" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsMappa" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoMappaTableAdapter">
|
||||
<uc4:mod_filtro ID="Mod_filtroTipoObj" runat="server" changeCheckEnabled="false"
|
||||
changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsTipoObj" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoObjTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="filtro_2">
|
||||
<uc4:mod_filtro ID="Mod_filtroTipoObj" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsTipoObj" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoObjTableAdapter">
|
||||
<uc4:mod_filtro ID="Mod_filtroMappa" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsMappa" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoMappaTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<uc2:mod_ev2stati ID="Mod_ev2stati1" runat="server" />
|
||||
<uc2:mod_ev2stati ID="Mod_ev2stati1" runat="server" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/AjaxSearch.master" AutoEventWireup="true" CodeFile="elencoComm.aspx.cs" Inherits="elencoComm" Title="Untitled Page" %>
|
||||
|
||||
<%@ Register Src="mod_elencoComm.ascx" TagName="mod_elencoComm" TagPrefix="uc1" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
|
||||
<uc1:mod_elencoComm ID="Mod_elencoComm1" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
|
||||
public partial class elencoComm : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -67,7 +67,7 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="ProcReq" SortExpression="ProcReq" ItemStyle-HorizontalAlign="center">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="TextBox2" runat="server" Checked='<%# Bind("ProcReq") %>' />
|
||||
<asp:CheckBox ID="chkProcReq" runat="server" Checked='<%# Bind("ProcReq") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkProcReq" runat="server" Checked='<%# Eval("ProcReq") %>' Enabled="false" />
|
||||
@@ -78,7 +78,7 @@
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="ExtView" SortExpression="ExtView" ItemStyle-HorizontalAlign="center">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="TextBox3" runat="server" Checked='<%# Bind("ExtView") %>' />
|
||||
<asp:CheckBox ID="chkExtView" runat="server" Checked='<%# Bind("ExtView") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkExtView" runat="server" Checked='<%# Eval("ExtView") %>' Enabled="false" />
|
||||
@@ -87,6 +87,41 @@
|
||||
<asp:CheckBox ID="chkExtView" runat="server" Checked='<%# Bind("ExtView") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Facoltativo" SortExpression="Facoltativo" ItemStyle-HorizontalAlign="center">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkFacoltativo" runat="server" Checked='<%# Bind("Facoltativo") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkFacoltativo" runat="server" Checked='<%# Eval("Facoltativo") %>'
|
||||
Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkFacoltativo" runat="server" Checked='<%# Bind("Facoltativo") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="isLogical" SortExpression="isLogical" ItemStyle-HorizontalAlign="center">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkisLogical" runat="server" Checked='<%# Bind("isLogical") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkisLogical" runat="server" Checked='<%# Eval("isLogical") %>'
|
||||
Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkisLogical" runat="server" Checked='<%# Bind("isLogical") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="isCode" SortExpression="isCode" ItemStyle-HorizontalAlign="center">
|
||||
<EditItemTemplate>
|
||||
<asp:CheckBox ID="chkisCode" runat="server" Checked='<%# Bind("isCode") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="chkisCode" runat="server" Checked='<%# Eval("isCode") %>' Enabled="false" />
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:CheckBox ID="chkisCode" runat="server" Checked='<%# Bind("isCode") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' />
|
||||
|
||||
@@ -280,7 +280,7 @@ public partial class mod_anagTipoObj : ApplicationUserControl
|
||||
resetSelezione();
|
||||
DS_XPSTableAdapters.AnagTipoObjTableAdapter taTipoObj = new DS_XPSTableAdapters.AnagTipoObjTableAdapter();
|
||||
// creo 1 obj vuoto...
|
||||
taTipoObj.Insert("Nuovo Oggetto", 1, false, false);
|
||||
taTipoObj.Insert("Nuovo Oggetto", 1, false, false, true, false, false);
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_anagraficaEventi.ascx.cs"
|
||||
Inherits="mod_anagraficaEventi" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="CodEvento" DataSourceID="ods">
|
||||
|
||||
@@ -90,6 +90,17 @@
|
||||
<asp:TextBox ID="txtMaxOcc" runat="server" Text='<%# Bind("MaxOcc") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Posizione" SortExpression="Posizione">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtPosizione" runat="server" Text='<%# Bind("Posizione") %>' />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Bind("Posizione") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtPosizione" runat="server" Text='<%# Bind("Posizione") %>' />
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' />
|
||||
@@ -129,6 +140,7 @@
|
||||
<asp:Parameter Name="IdxTipoObj" Type="Int32" />
|
||||
<asp:Parameter Name="MinOcc" Type="Int32" />
|
||||
<asp:Parameter Name="MaxOcc" Type="Int32" />
|
||||
<asp:Parameter Name="Posizione" Type="String" />
|
||||
<asp:Parameter Name="Original_IdxSet" Type="String" />
|
||||
<asp:Parameter Name="Original_IdxTipoObj" Type="Int32" />
|
||||
</UpdateParameters>
|
||||
@@ -137,6 +149,7 @@
|
||||
<asp:Parameter Name="IdxTipoObj" Type="Int32" />
|
||||
<asp:Parameter Name="MinOcc" Type="Int32" />
|
||||
<asp:Parameter Name="MaxOcc" Type="Int32" />
|
||||
<asp:Parameter Name="Posizione" Type="String" />
|
||||
</InsertParameters>
|
||||
</asp:ObjectDataSource>
|
||||
<asp:Label ID="lblNumRec" runat="server" CssClass="txtMini"></asp:Label><br />
|
||||
|
||||
@@ -231,7 +231,7 @@ public partial class mod_anagraficaObjSet : ApplicationUserControl
|
||||
lblWarning.Text = traduci("errorNoTipoObjFound");
|
||||
return;
|
||||
}
|
||||
taObjSet.Insert("Nuovo set", IdxTipoObj, 0, 0);
|
||||
taObjSet.Insert("Nuovo set", IdxTipoObj, 0, 0,"A.");
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
|
||||
@@ -4,13 +4,6 @@
|
||||
<%@ Register Src="mod_selettore_ajax.ascx" TagName="mod_selettore_ajax" TagPrefix="uc1" %>
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<div class="filtro_1">
|
||||
<asp:Label runat="server" ID="lblMappe" />
|
||||
<uc1:mod_filtro ID="Mod_filtroMappa" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsMappa" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoMappaTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="filtro_2">
|
||||
<asp:Label runat="server" ID="lblTipo" />
|
||||
<uc1:mod_filtro ID="Mod_filtroTipoObj" runat="server" changeCheckEnabled="false"
|
||||
changeCheckVisible="false" />
|
||||
@@ -18,6 +11,13 @@
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoObjTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div class="filtro_2">
|
||||
<asp:Label runat="server" ID="lblMappe" />
|
||||
<uc1:mod_filtro ID="Mod_filtroMappa" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
<asp:ObjectDataSource ID="odsMappa" runat="server" OldValuesParameterFormatString="Original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoMappaTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<asp:GridView ID="grView" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
|
||||
OnSelectedIndexChanged="grView_SelectedIndexChanged" OnDataBound="grView_DataBound"
|
||||
DataKeyNames="CodMappa,IdxTipoObj,CodStato" DataSourceID="ods">
|
||||
@@ -81,6 +81,39 @@
|
||||
<asp:TextBox ID="txtDescrStato" runat="server" Text='<%# Bind("DescrStato") %>'></asp:TextBox>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="PlugIn" SortExpression="PlugIn">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtPlugIn" runat="server" Text='<%# Bind("PlugIn") %>'></asp:TextBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblPlugIn" runat="server" Text='<%# Bind("PlugIn") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtPlugIn" runat="server" Text='<%# Bind("PlugIn") %>'></asp:TextBox>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Valore" SortExpression="Valore">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtValore" runat="server" Text='<%# Bind("Valore") %>'></asp:TextBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblValore" runat="server" Text='<%# Bind("Valore") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtValore" runat="server" Text='<%# Bind("Valore") %>'></asp:TextBox>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="IdxUM" SortExpression="IdxUM">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtIdxUM" runat="server" Text='<%# Bind("IdxUM") %>'></asp:TextBox>
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblIdxUM" runat="server" Text='<%# Bind("IdxUM") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
<asp:TextBox ID="txtIdxUM" runat="server" Text='<%# Bind("IdxUM") %>'></asp:TextBox>
|
||||
</FooterTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:Button ID="btnNew" runat="server" OnClick="btnNew_Click" Text='<%# traduci("New") %>' />
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_elencoComm.ascx.cs"
|
||||
Inherits="mod_elencoComm" %>
|
||||
<link href="Style.css" rel="stylesheet" type="text/css" />
|
||||
<%@ Register Src="mod_filtro.ascx" TagName="mod_filtro" TagPrefix="uc1" %>
|
||||
<div class="filtro_1">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<uc1:mod_filtro ID="mf_clienti" runat="server" />
|
||||
<asp:ObjectDataSource ID="odsFiltroClienti" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selClientiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</td>
|
||||
<td align="right">
|
||||
<asp:Button ID="btnShowNew" runat="server" OnClick="btnShowNew_Click" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="background: #DEDEDE;">
|
||||
<asp:Panel ID="pnlNew" runat="server" Visible="false">
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label ID="lblCli" runat="server" />
|
||||
</td>
|
||||
<td>
|
||||
<uc1:mod_filtro ID="mf_cliNew" runat="server" changeCheckEnabled="false" changeCheckVisible="false" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label ID="lblNumDDT" runat="server" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtDDT" runat="server"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<asp:Label ID="lblNomeComm" runat="server" />
|
||||
</td>
|
||||
<td>
|
||||
<asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<asp:Button ID="btnNewComm" runat="server" OnClick="btnNewComm_Click" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</asp:Panel>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="ods">
|
||||
<RowStyle CssClass="ctrRowStyle" />
|
||||
<AlternatingRowStyle CssClass="ctrAltRowStyle" />
|
||||
<EditRowStyle CssClass="ctrEditRowStyle" />
|
||||
<SelectedRowStyle CssClass="ctrSelRowStyle" />
|
||||
<FooterStyle CssClass="ctrFooter" />
|
||||
<PagerStyle CssClass="ctrHeaderPager" ForeColor="White" HorizontalAlign="Center" />
|
||||
<HeaderStyle CssClass="ctrHeaderPager" ForeColor="White" Font-Bold="True" />
|
||||
<EmptyDataRowStyle CssClass="ctrRowStyle" />
|
||||
<EmptyDataTemplate>
|
||||
<asp:Label runat="server" ID="lblNoRecord" Text='<%# traduci("noRecord") %>' />
|
||||
<%--<asp:Button ID="btnNew" runat="server" OnClick="btnNewFromEmpty_Click" Text='<%# traduci("New") %>' />--%>
|
||||
</EmptyDataTemplate>
|
||||
<Columns>
|
||||
<asp:BoundField DataField="Cod" HeaderText="Cod" SortExpression="Cod" />
|
||||
<asp:BoundField DataField="Stato" HeaderText="Stato" SortExpression="Stato" />
|
||||
<asp:BoundField DataField="CodCliente" HeaderText="CodCliente" SortExpression="CodCliente" />
|
||||
<asp:BoundField DataField="Cliente" HeaderText="Cliente" SortExpression="Cliente" />
|
||||
<asp:BoundField DataField="CodCli" HeaderText="CodCli" SortExpression="CodCli" />
|
||||
<asp:BoundField DataField="descrizione" HeaderText="descrizione" SortExpression="descrizione" />
|
||||
<asp:BoundField DataField="DDT" HeaderText="DDT" SortExpression="DDT" />
|
||||
<asp:BoundField DataField="DataArrivo" HeaderText="DataArrivo" SortExpression="DataArrivo" />
|
||||
<asp:BoundField DataField="Posizione" HeaderText="Posizione" SortExpression="Posizione" />
|
||||
<asp:BoundField DataField="Qta" HeaderText="Qta" ReadOnly="True" SortExpression="Qta" />
|
||||
<asp:BoundField DataField="Peso" HeaderText="Peso" ReadOnly="True" SortExpression="Peso" />
|
||||
<asp:BoundField DataField="Righe" HeaderText="Righe" SortExpression="Righe" />
|
||||
<asp:BoundField DataField="Colli" HeaderText="Colli" SortExpression="Colli" />
|
||||
<asp:BoundField DataField="DataPrevista" HeaderText="DataPrevista" SortExpression="DataPrevista" />
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_applicazioneTableAdapters.v_commesseTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
<p>
|
||||
Dettaglio del DDT:<br />
|
||||
- pulsanti aggiunta<br />
|
||||
- elenco<br />
|
||||
- stato / btn statusChange?</p>
|
||||
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using SteamWare;
|
||||
|
||||
public partial class mod_elencoComm : ApplicationUserControl
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// inizializzazione valori di default
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
mf_clienti.ods = odsFiltroClienti;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void traduciObj()
|
||||
{
|
||||
base.traduciObj();
|
||||
btnShowNew.Text = traduci("btnShowNew");
|
||||
btnNewComm.Text = traduci("btnNewComm");
|
||||
lblCli.Text = traduci("lblCli");
|
||||
lblNomeComm.Text = traduci("lblNomeComm");
|
||||
lblNumDDT.Text = traduci("lblNumDDT");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// mostra/nasconde pannello nuovo
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnShowNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
scambiaVisibPnlNew();
|
||||
}
|
||||
|
||||
private void scambiaVisibPnlNew()
|
||||
{
|
||||
// in base alla visibilità indico il testo corretto e seleziono o meno il filtro...
|
||||
if (!pnlNew.Visible)
|
||||
{
|
||||
btnShowNew.Text = traduci("btnHideNew");
|
||||
mf_cliNew.ods = odsFiltroClienti;
|
||||
}
|
||||
else
|
||||
{
|
||||
btnShowNew.Text = traduci("btnShowNew");
|
||||
}
|
||||
pnlNew.Visible = !pnlNew.Visible;
|
||||
}
|
||||
/// <summary>
|
||||
/// creazione di un nuovo set...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNewComm_Click(object sender, EventArgs e)
|
||||
{
|
||||
// creazione di un nuovo set...
|
||||
|
||||
|
||||
|
||||
// nascondo tutto...
|
||||
txtNome.Text = "";
|
||||
scambiaVisibPnlNew();
|
||||
}
|
||||
}
|
||||
@@ -239,13 +239,23 @@ public partial class mod_ev2stati : ApplicationUserControl
|
||||
// reset selezione...
|
||||
resetSelezione();
|
||||
DS_XPSTableAdapters.v_ev2statiTableAdapter taEv2Stato = new DS_XPSTableAdapters.v_ev2statiTableAdapter();
|
||||
// creo 1 obj vuoto...
|
||||
taEv2Stato.InsertQuery(memLayer.ML.StringSessionObj("CodMappa_sel"), "0", memLayer.ML.IntSessionObj("IdxTipoObj_sel"), memLayer.ML.StringSessionObj("CodEvento_sel"), "0");
|
||||
grView.DataBind();
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
try
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
// creo 1 obj vuoto...
|
||||
taEv2Stato.InsertQuery(memLayer.ML.StringSessionObj("CodMappa_sel"), "0", memLayer.ML.IntSessionObj("IdxTipoObj_sel"), memLayer.ML.StringSessionObj("CodEvento_sel"), "0");
|
||||
grView.DataBind();
|
||||
lblWarning.Visible = false;
|
||||
// sollevo evento nuovo valore...
|
||||
if (eh_nuovoValore != null)
|
||||
{
|
||||
eh_nuovoValore(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
lblWarning.Visible = true;
|
||||
lblWarning.Text = traduci("erroreSelEvStatiMappe");
|
||||
SteamWare.logger.lg.scriviLog(string.Format("Errore inserimento novo valore da vuoto: {0}", exc), tipoLog.EXCEPTION);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,7 +358,7 @@ public partial class mod_ev2stati : ApplicationUserControl
|
||||
// nascondo...
|
||||
setClonaVisibility();
|
||||
}
|
||||
catch(Exception exc)
|
||||
catch (Exception exc)
|
||||
{
|
||||
lblWarning.Visible = true;
|
||||
lblWarning.Text = traduci("erroreSelDest");
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user