fix insert Scheda collaudo
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -43,5 +43,16 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-10 col-xs-offset-1">
|
||||
Punti aperti:
|
||||
<ul>
|
||||
<li>Menù in testa: quelo che un utente NON HA in auth NON lo vede/ lo deve vedere disabilitato</li>
|
||||
<li>Aggiungere 1 colonna al posto di X/Y/O/C/NX da tabellone x indicare se sia mandatory o optional o M (aggiunta a mano) sia in schema tabellone che in dossier</li>
|
||||
<li>schema tabellone macchina: aggiungi nuovo fa +1 sul numero SE ESISTE GIA'...</li>
|
||||
<li>...</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</asp:Content>
|
||||
|
||||
@@ -38,7 +38,14 @@
|
||||
</div>
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="NomeMisura" HeaderText="NomeMisura" SortExpression="NomeMisura" />
|
||||
<asp:TemplateField HeaderText="NomeMisura" SortExpression="NomeMisura">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("NomeMisura") %>' Width="20em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# Bind("NomeMisura") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="TipoValMisura" SortExpression="TipoValMisura">
|
||||
<EditItemTemplate>
|
||||
<asp:DropDownList ID="ddlTipoValMisura" runat="server" SelectedValue='<%# Bind("TipoValMisura") %>' DataSourceID="odsTipoVal" DataTextField="label" DataValueField="value">
|
||||
@@ -48,7 +55,14 @@
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# Bind("TipoValMisura") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:BoundField DataField="NomePar" HeaderText="NomePar" SortExpression="NomePar" />
|
||||
<asp:TemplateField HeaderText="NomePar" SortExpression="NomePar">
|
||||
<EditItemTemplate>
|
||||
<asp:TextBox ID="txtNomePar" runat="server" Text='<%# Bind("NomePar") %>' Width="20em" />
|
||||
</EditItemTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblNomePar" runat="server" Text='<%# Eval("NomePar") %>' />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbAddNew" runat="server" CausesValidation="false" ToolTip="InsNew" CssClass="fa fa-plus fa-2x" OnClick="lbAddNew_Click" />
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace CMS_SC.WebUserControls
|
||||
// inserisco nuovo record SE HO una selezione da URL
|
||||
if (memLayer.ML.QSS("CodSchedaVers") != "")
|
||||
{
|
||||
DtProxy.man.taDS.insertNew(memLayer.ML.QSS("CodSchedaVers"), "Nuova Misura");
|
||||
DtProxy.man.taDS.insertNew(memLayer.ML.QSS("CodSchedaVers"), "");
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</asp:TemplateField>
|
||||
</Columns>
|
||||
</asp:GridView>
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.AnagSchedeTableAdapter" FilterExpression=" CodScheda LIKE '%{0}%' OR Descrizione LIKE '%{0}%'" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery">
|
||||
<asp:ObjectDataSource ID="ods" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="CMS_SC_Data.DS_ApplicazioneTableAdapters.AnagSchedeTableAdapter" FilterExpression=" CodScheda LIKE '%{0}%' OR Descrizione LIKE '%{0}%'" DeleteMethod="deleteQuery" InsertMethod="insertQuery" UpdateMethod="updateQuery" OnUpdating="ods_Updating">
|
||||
<DeleteParameters>
|
||||
<asp:Parameter Name="Original_CodScheda" Type="String" />
|
||||
<asp:Parameter Name="Original_Vers" Type="Int32" />
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CMS_SC.WebUserControls
|
||||
protected void lbAddNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
// inserisco nuovo record
|
||||
DtProxy.man.taAF.insertQuery("000000", "000000 Nuova Fase");
|
||||
DtProxy.man.taASC.insertQuery("_CG00000", 0, "000000 Nuova Scheda", "");
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
@@ -82,5 +82,10 @@ namespace CMS_SC.WebUserControls
|
||||
{ }
|
||||
return answ;
|
||||
}
|
||||
|
||||
protected void ods_Updating(object sender, ObjectDataSourceMethodEventArgs e)
|
||||
{
|
||||
if (e.InputParameters["Path"] == null) e.InputParameters["Path"] = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user