fix add x fam macchine e matricole macchine
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -14,6 +14,9 @@
|
||||
<asp:BoundField DataField="CodFam" HeaderText="Cod.Famiglia" ReadOnly="false" SortExpression="CodFam" />
|
||||
<asp:BoundField DataField="DescrFam" HeaderText="Descrizione" SortExpression="DescrFam" />
|
||||
<asp:TemplateField ShowHeader="False">
|
||||
<HeaderTemplate>
|
||||
<asp:LinkButton ID="lbAddNew" runat="server" CausesValidation="false" ToolTip="InsNew" CssClass="fa fa-plus fa-2x" OnClick="lbAddNew_Click" />
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate2" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<asp:LinkButton ID="lbCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using CMS_SC_Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -28,5 +29,17 @@ namespace CMS_SC.WebUserControls
|
||||
grView.PageSize = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta di aggiunta record, tutto a zero!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbAddNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
// inserisco nuovo record
|
||||
DtProxy.man.taEFM.insertQuery("00", "00 Nuova FAMIGLIA");
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,6 +24,9 @@
|
||||
</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" />
|
||||
</HeaderTemplate>
|
||||
<EditItemTemplate>
|
||||
<asp:LinkButton ID="lbUpdate2" runat="server" CausesValidation="True" CommandName="Update" ToolTip="Update" CssClass="fa fa-check fa-2x" />
|
||||
<asp:LinkButton ID="lbCancel2" runat="server" CausesValidation="False" CommandName="Cancel" ToolTip="Cancel" CssClass="fa fa-undo fa-2x" />
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using CMS_SC_Data;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -28,5 +29,17 @@ namespace CMS_SC.WebUserControls
|
||||
grView.PageSize = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// richiesta di aggiunta record, tutto a zero!
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbAddNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
// inserisco nuovo record
|
||||
DtProxy.man.taEM.insertQuery("000000", "000000 Nuova Macchina", "ND", "ND");
|
||||
// update!
|
||||
grView.DataBind();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user