Aggiunta bozza comportamento post salvataggio
git-svn-id: https://keyhammer.ath.cx/svn/WebGIM/trunk@23 3e04ef4b-3b25-4b6c-be27-bb5389ca777b
This commit is contained in:
@@ -1,149 +1,156 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="mod_insertRichiesta.ascx.cs"
|
||||
Inherits="mod_insertRichiesta" %>
|
||||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
|
||||
<div style="width: 100%; background-color: #dedede; font-size: 8pt;">
|
||||
<div style="width: 100%; background-color: #696969; text-align: center;">
|
||||
<div style="font-size: 30px; font-weight: bold; color: White;">
|
||||
<asp:Label runat="server" ID="lblTitolo" />
|
||||
</div>
|
||||
<div style="padding: 5px; text-align: center; width: 615px; color: Yellow;">
|
||||
<div style="width: 200px; float: left;">
|
||||
<asp:Label runat="server" ID="lblDataOra" /><br />
|
||||
<asp:TextBox ReadOnly="true" runat="server" ID="txtDataOra" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="fixedVal" />
|
||||
<asp:Panel ID="pnlMain_InsRichiesta" runat="server">
|
||||
<div style="width: 100%; background-color: #dedede; font-size: 8pt;">
|
||||
<div style="width: 100%; background-color: #696969; text-align: center;">
|
||||
<div style="font-size: 30px; font-weight: bold; color: White;">
|
||||
<asp:Label runat="server" ID="lblTitolo" />
|
||||
</div>
|
||||
<div style="width: 200px; float: left;">
|
||||
<asp:Label runat="server" ID="lblDataLav" /><br />
|
||||
<asp:TextBox ReadOnly="true" runat="server" ID="txtDataLav" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="fixedVal" />
|
||||
</div>
|
||||
<div style="width: 200px; float: left;">
|
||||
<asp:Label runat="server" ID="lblTurnoLav" /><br />
|
||||
<asp:TextBox ReadOnly="true" runat="server" ID="txtTurnoLav" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="fixedVal" />
|
||||
<div style="padding: 5px; text-align: center; width: 615px; color: Yellow;">
|
||||
<div style="width: 200px; float: left;">
|
||||
<asp:Label runat="server" ID="lblDataOra" /><br />
|
||||
<asp:TextBox ReadOnly="true" runat="server" ID="txtDataOra" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="fixedVal" />
|
||||
</div>
|
||||
<div style="width: 200px; float: left;">
|
||||
<asp:Label runat="server" ID="lblDataLav" /><br />
|
||||
<asp:TextBox ReadOnly="true" runat="server" ID="txtDataLav" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="fixedVal" />
|
||||
</div>
|
||||
<div style="width: 200px; float: left;">
|
||||
<asp:Label runat="server" ID="lblTurnoLav" /><br />
|
||||
<asp:TextBox ReadOnly="true" runat="server" ID="txtTurnoLav" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="fixedVal" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblImpianto" /><br />
|
||||
<asp:Panel runat="server" ID="pnlImpianti" ScrollBars="Vertical" Width="220px" Height="500px">
|
||||
<asp:ListBox ID="listImpianti" runat="server" DataSourceID="odsImpianti" DataTextField="label"
|
||||
DataValueField="value" AutoPostBack="true" OnSelectedIndexChanged="listImpianti_SelectedIndexChanged"
|
||||
Height="600px" Width="204px" BackColor="#ddeeff" Font-Size="8pt"></asp:ListBox>
|
||||
<asp:ObjectDataSource ID="odsImpianti" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getImpiantiValidi" TypeName="DS_utilityTableAdapters.v_selImpiantiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
<asp:RequiredFieldValidator ID="rfvReparto" runat="server" ErrorMessage="!!!" ControlToValidate="listImpianti"
|
||||
ValidationGroup="inserimento" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblMacchina" /><br />
|
||||
<asp:Panel runat="server" ID="pnlMacchine" ScrollBars="Vertical" Width="300px" Height="284px">
|
||||
<asp:ListBox ID="listMacchine" runat="server" AutoPostBack="True" DataSourceID="odsMacchine"
|
||||
DataTextField="label" DataValueField="value" Height="400px" Width="284px" BackColor="#ddeeff"
|
||||
<asp:Label runat="server" ID="lblImpianto" /><br />
|
||||
<asp:Panel runat="server" ID="pnlImpianti" ScrollBars="Vertical" Width="220px" Height="500px">
|
||||
<asp:ListBox ID="listImpianti" runat="server" DataSourceID="odsImpianti" DataTextField="label"
|
||||
DataValueField="value" AutoPostBack="true" OnSelectedIndexChanged="listImpianti_SelectedIndexChanged"
|
||||
Height="600px" Width="204px" BackColor="#ddeeff" Font-Size="8pt"></asp:ListBox>
|
||||
<asp:ObjectDataSource ID="odsImpianti" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getImpiantiValidi" TypeName="DS_utilityTableAdapters.v_selImpiantiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
<asp:RequiredFieldValidator ID="rfvReparto" runat="server" ErrorMessage="!!!" ControlToValidate="listImpianti"
|
||||
ValidationGroup="inserimento" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblMacchina" /><br />
|
||||
<asp:Panel runat="server" ID="pnlMacchine" ScrollBars="Vertical" Width="300px" Height="284px">
|
||||
<asp:ListBox ID="listMacchine" runat="server" AutoPostBack="True" DataSourceID="odsMacchine"
|
||||
DataTextField="label" DataValueField="value" Height="400px" Width="284px" BackColor="#ddeeff"
|
||||
Font-Size="8pt"></asp:ListBox>
|
||||
<asp:ObjectDataSource ID="odsMacchine" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="DS_utilityTableAdapters.v_selMacchineTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="listImpianti" DefaultValue="0" Name="conditio" PropertyName="SelectedValue"
|
||||
Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
<asp:RequiredFieldValidator ID="rfvMacchina" runat="server" ErrorMessage="!!!" ControlToValidate="listMacchine"
|
||||
ValidationGroup="inserimento" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Panel runat="server" ID="Panel1" ScrollBars="None" Width="220px" Height="284px">
|
||||
<asp:Label runat="server" ID="lblDettagliGuasto" /><br />
|
||||
<br />
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblMatr" /><br />
|
||||
<asp:TextBox runat="server" ID="txtMatr" Font-Bold="true" Font-Size="10pt" Width="3em"
|
||||
CssClass="textEv_1" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblPrior" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlPrior" DataSourceID="odsPrior" DataTextField="label"
|
||||
DataValueField="value" CssClass="textEv_1" />
|
||||
<asp:ObjectDataSource ID="odsPrior" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selPriorTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblFermaDalleData" /><br />
|
||||
<asp:TextBox runat="server" ID="txtFermaDaData" Font-Bold="true" CssClass="textEv_1"
|
||||
Width="5em" Font-Size="10pt" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtFermaDaData" Format="dd/MM/yy">
|
||||
</cc1:CalendarExtender>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblFermaDalleOra" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlFermaDaOra" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="textEv_1">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblFermaDalleMin" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlFermaDaMin" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="textEv_1" />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:Label runat="server" ID="lblAmbito" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlAmbito" Font-Bold="True" Font-Size="10pt"
|
||||
CssClass="textEv_1" DataSourceID="odsAmbiti" DataTextField="label" DataValueField="value">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsAmbiti" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selAmbitiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:Label runat="server" ID="lblTipoGuasto" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlTipo" Font-Bold="True" Font-Size="10pt" CssClass="textEv_1"
|
||||
DataSourceID="odsTipo" DataTextField="label" DataValueField="value">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipo" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoGuastoTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:CheckBox runat="server" ID="chkImpFermo" />
|
||||
</div>
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:ValidationSummary ID="valSummary" runat="server" ValidationGroup="inserimento" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="Panel2" ScrollBars="None" Width="520px" Height="200px">
|
||||
<asp:Label runat="server" ID="lblDescrGuasto" /><br />
|
||||
<asp:TextBox runat="server" ID="txtDescrizione" TextMode="MultiLine" Rows="10" Width="100%" />
|
||||
</asp:Panel>
|
||||
<asp:Button ID="btnSend" runat="server" Width="300px" Height="30px" OnClick="btnSend_Click"
|
||||
CausesValidation="true" ValidationGroup="inserimento" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Panel runat="server" ID="pnlCausali" ScrollBars="Vertical" Width="300px" Height="500px">
|
||||
<asp:ListBox ID="listCausali" runat="server" DataSourceID="odsCausali" DataTextField="label"
|
||||
DataValueField="value" AutoPostBack="true" Height="600px" Width="284px" BackColor="#ddeeff"
|
||||
Font-Size="8pt"></asp:ListBox>
|
||||
<asp:ObjectDataSource ID="odsMacchine" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="DS_utilityTableAdapters.v_selMacchineTableAdapter">
|
||||
<asp:ObjectDataSource ID="odsCausali" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="DS_utilityTableAdapters.v_selCausaliMacchineTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="listImpianti" DefaultValue="0" Name="conditio" PropertyName="SelectedValue"
|
||||
<asp:ControlParameter ControlID="listMacchine" DefaultValue="0" Name="conditio" PropertyName="SelectedValue"
|
||||
Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
<asp:RequiredFieldValidator ID="rfvMacchina" runat="server" ErrorMessage="!!!" ControlToValidate="listMacchine"
|
||||
ValidationGroup="inserimento" Display="Dynamic"></asp:RequiredFieldValidator>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Panel runat="server" ID="Panel1" ScrollBars="None" Width="220px" Height="284px">
|
||||
<asp:Label runat="server" ID="lblDettagliGuasto" /><br />
|
||||
<br />
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblMatr" /><br />
|
||||
<asp:TextBox runat="server" ID="txtMatr" Font-Bold="true" Font-Size="10pt" Width="3em"
|
||||
CssClass="textEv_1" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblPrior" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlPrior" DataSourceID="odsPrior" DataTextField="label"
|
||||
DataValueField="value" CssClass="textEv_1" />
|
||||
<asp:ObjectDataSource ID="odsPrior" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selPriorTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblFermaDalleData" /><br />
|
||||
<asp:TextBox runat="server" ID="txtFermaDaData" Font-Bold="true" CssClass="textEv_1"
|
||||
Width="5em" Font-Size="10pt" />
|
||||
<cc1:CalendarExtender ID="CalendarExtender1" runat="server" FirstDayOfWeek="Monday"
|
||||
TargetControlID="txtFermaDaData" Format="dd/MM/yy">
|
||||
</cc1:CalendarExtender>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblFermaDalleOra" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlFermaDaOra" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="textEv_1">
|
||||
</asp:DropDownList>
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Label runat="server" ID="lblFermaDalleMin" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlFermaDaMin" Font-Bold="true" Font-Size="10pt"
|
||||
CssClass="textEv_1" />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:Label runat="server" ID="lblAmbito" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlAmbito" Font-Bold="True" Font-Size="10pt"
|
||||
CssClass="textEv_1" DataSourceID="odsAmbiti" DataTextField="label" DataValueField="value">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsAmbiti" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selAmbitiTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:Label runat="server" ID="lblTipoGuasto" /><br />
|
||||
<asp:DropDownList runat="server" ID="ddlTipo" Font-Bold="True" Font-Size="10pt" CssClass="textEv_1"
|
||||
DataSourceID="odsTipo" DataTextField="label" DataValueField="value">
|
||||
</asp:DropDownList>
|
||||
<asp:ObjectDataSource ID="odsTipo" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="GetData" TypeName="DS_utilityTableAdapters.v_selTipoGuastoTableAdapter">
|
||||
</asp:ObjectDataSource>
|
||||
</div>
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:CheckBox runat="server" ID="chkImpFermo" />
|
||||
</div>
|
||||
<div style="clear: both; text-align: right; vertical-align: baseline;">
|
||||
<asp:ValidationSummary ID="valSummary" runat="server" ValidationGroup="inserimento" />
|
||||
</div>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
<asp:Panel runat="server" ID="Panel2" ScrollBars="None" Width="520px" Height="200px">
|
||||
<asp:Label runat="server" ID="lblDescrGuasto" /><br />
|
||||
<asp:TextBox runat="server" ID="txtDescrizione" TextMode="MultiLine" Rows="10" Width="100%" />
|
||||
</asp:Panel>
|
||||
<asp:Button ID="btnSend" runat="server" Width="300px" Height="30px" OnClick="btnSend_Click"
|
||||
CausesValidation="true" ValidationGroup="inserimento" />
|
||||
</div>
|
||||
<div style="float: left;">
|
||||
<asp:Panel runat="server" ID="pnlCausali" ScrollBars="Vertical" Width="300px" Height="500px">
|
||||
<asp:ListBox ID="listCausali" runat="server" DataSourceID="odsCausali" DataTextField="label"
|
||||
DataValueField="value" AutoPostBack="true" Height="600px" Width="284px" BackColor="#ddeeff"
|
||||
Font-Size="8pt"></asp:ListBox>
|
||||
<asp:ObjectDataSource ID="odsCausali" runat="server" OldValuesParameterFormatString="original_{0}"
|
||||
SelectMethod="getByConditio" TypeName="DS_utilityTableAdapters.v_selCausaliMacchineTableAdapter">
|
||||
<SelectParameters>
|
||||
<asp:ControlParameter ControlID="listMacchine" DefaultValue="0" Name="conditio" PropertyName="SelectedValue"
|
||||
Type="Int32" />
|
||||
</SelectParameters>
|
||||
</asp:ObjectDataSource>
|
||||
</asp:Panel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Panel>
|
||||
<asp:Panel ID="pnlMain_ShowTicket" runat="server" Visible="false">
|
||||
numero richiesta generata<br />
|
||||
link a nuova richiesta<br />
|
||||
link ad elenco richieste
|
||||
</asp:Panel>
|
||||
|
||||
@@ -117,6 +117,8 @@ public partial class mod_insertRichiesta : System.Web.UI.UserControl
|
||||
}
|
||||
protected void btnSend_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
// salvare valori, poi mostrare pnl richiesta con "ticket" generato + link x vedere elenco oppure nuova...
|
||||
pnlMain_InsRichiesta.Visible = false;
|
||||
pnlMain_ShowTicket.Visible = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user