240 lines
18 KiB
Plaintext
240 lines
18 KiB
Plaintext
<%@ Page Title="" Language="C#" MasterPageFile="~/JQMob.Master" AutoEventWireup="true" CodeBehind="AccettazioneEdit.aspx.cs" Inherits="ScheMe.AccettazioneEdit" EnableEventValidation="false" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
|
</asp:Content>
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
|
|
<div style="font-size: 0.8em;">
|
|
<div class="ui-grid-b">
|
|
<div class="ui-block-a">
|
|
<asp:DropDownList runat="server" ID="ddlFiltUno" DataSourceID="odsFiltUno" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlFiltUno_SelectedIndexChanged">
|
|
</asp:DropDownList>
|
|
<asp:ObjectDataSource runat="server" ID="odsFiltUno" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="ScheMe_Data.DS_UtilityTableAdapters.v_selLabelTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="hfMainLblCond" DefaultValue="*" Name="conditio" PropertyName="Value" Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:HiddenField runat="server" ID="hfMainLblCond" />
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<asp:DropDownList runat="server" ID="ddlFiltDue" DataSourceID="odsFiltDue" DataTextField="label" DataValueField="value" AutoPostBack="True" OnSelectedIndexChanged="ddlFiltDue_SelectedIndexChanged">
|
|
</asp:DropDownList>
|
|
<asp:ObjectDataSource runat="server" ID="odsFiltDue" OldValuesParameterFormatString="original_{0}" SelectMethod="getByConditio" TypeName="ScheMe_Data.DS_UtilityTableAdapters.v_selLabelTableAdapter">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="ddlFiltUno" DefaultValue="*" Name="conditio" PropertyName="SelectedValue" Type="String" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
<div class="ui-block-c">
|
|
<asp:Button runat="server" ID="btnSave" CssClass="btn btn-success" Text="Salva Gruppo" Width="100%" Enabled="false" OnClick="btnSave_Click" />
|
|
</div>
|
|
</div>
|
|
<asp:FormView ID="frmView" runat="server" DataSourceID="ods" RenderOuterTable="False" OnModeChanged="frmView_ModeChanged">
|
|
<ItemTemplate>
|
|
ITEM - EMPTY
|
|
</ItemTemplate>
|
|
<InsertItemTemplate>
|
|
<div class="ui-grid-a">
|
|
<div class="ui-block-a">
|
|
<ul data-role="listview" data-inset="true">
|
|
<li class="ui-field-contain">
|
|
<label for="name2">Cognome</label>
|
|
<asp:TextBox runat="server" ID="txtCognome" Text='<%# Bind("Cognome") %>' placeholder="Cognome" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Nome</label>
|
|
<asp:TextBox runat="server" ID="txtNome" Text='<%# Bind("Nome") %>' placeholder="Nome" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="rblSex">Sesso</label>
|
|
<asp:RadioButtonList runat="server" ID="rblSex" SelectedValue='<%# Bind("Sesso") %>' RepeatDirection="Horizontal" data-role="controlgroup" data-type="horizontal">
|
|
<asp:ListItem Value="M" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Value="F"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Data Nascita</label>
|
|
<asp:TextBox runat="server" ID="txtDataNasc" Text='<%# Bind("DataNasc", "{0:dd/MM/yyyy}") %>' placeholder="Data di Nascita gg/mm/aaaa" data-role="date" data-clear-btn="false" />
|
|
<asp:RequiredFieldValidator runat="server" ID="rfvDataNasc" ControlToValidate="txtDataNasc" ErrorMessage="!!!" CssClass="errore" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Luogo Nascita</label>
|
|
<asp:TextBox runat="server" ID="txtLuogoNascita" Text='<%# Bind("LuogoNascita") %>' placeholder="Luogo di Nascita" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Cod Fisc.</label>
|
|
<asp:TextBox runat="server" ID="txtCodF" Text='<%# Bind("CodF") %>' placeholder="Codice Fiscale" data-clear-btn="false" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<ul data-role="listview" data-inset="true">
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Indirizzo</label>
|
|
<asp:TextBox runat="server" ID="txtIndirizzo" Text='<%# Bind("Indirizzo") %>' placeholder="Indirizzo" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Telefono</label>
|
|
<asp:TextBox runat="server" ID="txtRecTel" Text='<%# Bind("RecTel") %>' placeholder="Telefono" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Altezza (cm)</label>
|
|
<asp:TextBox runat="server" ID="txtAltezza" Text='<%# Bind("Altezza") %>' placeholder="Altezza" data-clear-btn="false" />
|
|
<asp:RequiredFieldValidator runat="server" ID="rfvAltezza" ControlToValidate="txtAltezza" ErrorMessage="!!!" CssClass="errore" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Peso (kg)</label>
|
|
<asp:TextBox runat="server" ID="txtPeso" Text='<%# Bind("Peso") %>' placeholder="Peso" data-clear-btn="false" />
|
|
<asp:RequiredFieldValidator runat="server" ID="rfvPeso" ControlToValidate="txtPeso" ErrorMessage="!!!" CssClass="errore" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Medico</label>
|
|
<asp:TextBox runat="server" ID="txtMedico" Text='<%# Bind("Medico") %>' placeholder="Medico curante" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Note</label>
|
|
<asp:TextBox runat="server" ID="txtNote" Text='<%# Bind("Note") %>' placeholder="Note" data-clear-btn="false" TextMode="MultiLine" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="ui-grid-solo">
|
|
<div class="ui-block-a">
|
|
<ul data-role="listview" data-inset="true">
|
|
<li class="ui-body ui-body-b">
|
|
<fieldset class="ui-grid-a">
|
|
<div class="ui-block-a">
|
|
<asp:Button runat="server" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check" ID="btnInsert" CausesValidation="False" CommandName="Insert" Text="Salva" data-theme="a" />
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<asp:Button runat="server" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete" ID="btnCancel" CausesValidation="False" CommandName="Cancel" Text="Cancel" data-theme="b" />
|
|
</div>
|
|
</fieldset>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</InsertItemTemplate>
|
|
<EditItemTemplate>
|
|
<div class="ui-grid-a">
|
|
<div class="ui-block-a">
|
|
<ul data-role="listview" data-inset="true">
|
|
<li class="ui-field-contain">
|
|
<label for="name2">Cognome</label>
|
|
<asp:TextBox runat="server" ID="txtCognome" Text='<%# Bind("Cognome") %>' placeholder="Cognome" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Nome</label>
|
|
<asp:TextBox runat="server" ID="txtNome" Text='<%# Bind("Nome") %>' placeholder="Nome" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="rblSex">Sesso</label>
|
|
<asp:RadioButtonList runat="server" ID="rblSex" SelectedValue='<%# Bind("Sesso") %>' RepeatDirection="Horizontal" data-role="controlgroup" data-type="horizontal">
|
|
<asp:ListItem Value="M" Selected="True"></asp:ListItem>
|
|
<asp:ListItem Value="F"></asp:ListItem>
|
|
</asp:RadioButtonList>
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Data Nascita</label>
|
|
<asp:TextBox runat="server" ID="txtDataNasc" Text='<%# Bind("DataNasc", "{0:dd/MM/yyyy}") %>' data-role="date" data-clear-btn="false" placeholder="Data di Nascita gg/mm/aaaa" />
|
|
<asp:RequiredFieldValidator runat="server" ID="rfvDataNasc" ControlToValidate="txtDataNasc" ErrorMessage="!!!" CssClass="errore" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Luogo Nascita</label>
|
|
<asp:TextBox runat="server" ID="txtLuogoNascita" Text='<%# Bind("LuogoNascita") %>' placeholder="Luogo di Nascita" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Cod Fisc.</label>
|
|
<asp:TextBox runat="server" ID="txtCodF" Text='<%# Bind("CodF") %>' placeholder="Codice Fiscale" data-clear-btn="false" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<ul data-role="listview" data-inset="true">
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Indirizzo</label>
|
|
<asp:TextBox runat="server" ID="txtIndirizzo" Text='<%# Bind("Indirizzo") %>' placeholder="Indirizzo" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Telefono</label>
|
|
<asp:TextBox runat="server" ID="txtRecTel" Text='<%# Bind("RecTel") %>' placeholder="Telefono" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Altezza (cm)</label>
|
|
<asp:TextBox runat="server" ID="txtAltezza" Text='<%# Bind("Altezza") %>' placeholder="Altezza" data-clear-btn="false" />
|
|
<asp:RequiredFieldValidator runat="server" ID="rfvAltezza" ControlToValidate="txtAltezza" ErrorMessage="!!!" CssClass="errore" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Peso (kg)</label>
|
|
<asp:TextBox runat="server" ID="txtPeso" Text='<%# Bind("Peso") %>' placeholder="Peso" data-clear-btn="false" />
|
|
<asp:RequiredFieldValidator runat="server" ID="rfvPeso" ControlToValidate="txtPeso" ErrorMessage="!!!" CssClass="errore" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Medico</label>
|
|
<asp:TextBox runat="server" ID="txtMedico" Text='<%# Bind("Medico") %>' placeholder="Medico curante" data-clear-btn="false" />
|
|
</li>
|
|
<li class="ui-field-contain">
|
|
<label for="textarea2">Note</label>
|
|
<asp:TextBox runat="server" ID="txtNote" Text='<%# Bind("Note") %>' placeholder="Note" data-clear-btn="false" TextMode="MultiLine" />
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="ui-grid-solo">
|
|
<div class="ui-block-a">
|
|
<ul data-role="listview" data-inset="true">
|
|
<li class="ui-body ui-body-b">
|
|
<fieldset class="ui-grid-a">
|
|
<div class="ui-block-a">
|
|
<asp:Button runat="server" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-check" ID="btnUpdate" CausesValidation="False" CommandName="Update" Text="Update" data-theme="a" />
|
|
</div>
|
|
<div class="ui-block-b">
|
|
<asp:Button runat="server" CssClass="ui-btn ui-shadow ui-corner-all ui-icon-delete" ID="btnCancel" CausesValidation="False" CommandName="Cancel" Text="Cancel" data-theme="b" />
|
|
</div>
|
|
</fieldset>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</EditItemTemplate>
|
|
</asp:FormView>
|
|
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="Original_{0}" SelectMethod="getByKey" TypeName="ScheMe_Data.DS_ApplicazioneTableAdapters.AnagPazientiTableAdapter" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery" OnInserted="ods_Inserted">
|
|
<DeleteParameters>
|
|
<asp:Parameter Name="Original_IdxPaziente" Type="Int32" DefaultValue="0" />
|
|
</DeleteParameters>
|
|
<InsertParameters>
|
|
<asp:SessionParameter Name="Gruppo" SessionField="Gruppo" Type="String" DefaultValue="BG" />
|
|
<asp:Parameter Name="Cognome" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Nome" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="DataNasc" Type="DateTime" />
|
|
<asp:Parameter Name="LuogoNascita" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="CodF" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Indirizzo" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Sesso" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Altezza" Type="Double" DefaultValue="1" />
|
|
<asp:Parameter Name="Peso" Type="Double" DefaultValue="1" />
|
|
<asp:Parameter Name="RecTel" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Medico" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Note" Type="string" DefaultValue="-" />
|
|
</InsertParameters>
|
|
<SelectParameters>
|
|
<asp:QueryStringParameter DefaultValue="0" Name="IdxPaziente" QueryStringField="IdxPaziente" Type="Int32" />
|
|
</SelectParameters>
|
|
<UpdateParameters>
|
|
<asp:Parameter Name="Cognome" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Nome" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="DataNasc" Type="DateTime" />
|
|
<asp:Parameter Name="LuogoNascita" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="CodF" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Indirizzo" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Sesso" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Altezza" Type="Double" DefaultValue="1" />
|
|
<asp:Parameter Name="Peso" Type="Double" DefaultValue="1" />
|
|
<asp:Parameter Name="RecTel" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Medico" Type="string" DefaultValue="-" />
|
|
<asp:Parameter Name="Note" Type="string" DefaultValue="-" />
|
|
<asp:QueryStringParameter DefaultValue="0" Name="Original_IdxPaziente" QueryStringField="IdxPaziente" Type="Int32" />
|
|
</UpdateParameters>
|
|
</asp:ObjectDataSource>
|
|
</div>
|
|
</asp:Content>
|