<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="Test, MachSol.MachPanel.Web" %>

<asp:Content ID="Content5" ContentPlaceHolderID="CPH_Content" runat="Server">
    <div class="container-fluid">
        <div class="col-xs-12">

            <table style="width: 100%">
                <tr>
                    <td width="20%">
                        <asp:Label ID="Label1" Text="Table Name" runat="server" /></td>
                    <td>
                        <asp:TextBox ID="txtTableName" runat="server" /></td>
                </tr>
                <tr>
                    <td width="20%">
                        <asp:Label ID="Label2" Text="Class Name" runat="server" />
                    </td>
                    <td>
                        <asp:TextBox ID="txtClassName" runat="server" /></td>
                </tr>
                <tr>
                    <td width="20%">
                        <asp:Label ID="Label3" Text="Select Class Type" runat="server" />
                    </td>
                    <td>
                        <asp:RadioButton ID="rdbCSharp" runat="server" Text="C#" GroupName="ClassType" Checked="true" />
                        <asp:RadioButton ID="rdbVB" runat="server" Text="VB" GroupName="ClassType" /></td>
                </tr>
                <tr>
                    <td width="20%">
                        <asp:Button ID="btnGenrateCode" runat="server" Text="Generate" /></td>
                    <td>PK should be single column type of int,bigint or GUID, else you will have to do some modification in Auto Genrated SPs and functions.
                    </td>
                </tr>

            </table>
            <table>
                <tr>
                    <th>Stored Procedures</th>
                    <th>Class</th>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtSPs" runat="server" TextMode="MultiLine" Height="100" Width="500"></asp:TextBox></td>
                    <td>
                        <asp:TextBox ID="txtClass" runat="server" TextMode="MultiLine" Height="100" Width="600"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="2">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="2">
                        <hr />
                        <h1>Page and code behind code generator for a class</h1>
                        <br />

                        Input Full class name with Namespace to generate page code. For example <b>BusinessObjects.Sales.Lead,MachSol.MachPanel.BusinessObjects </b>i.e. Class name with Namespace followed by comma and containing assembly dll file name.
                <asp:TextBox ID="TxBx_ClassName" runat="server"></asp:TextBox>
                        <br />
                        Input "," separated strings to remove from member names, example: Id,Lead:
                <asp:TextBox ID="TxBx_StringstoRemove" runat="server"></asp:TextBox>
                        <asp:Button ID="Btn_GeneratePage" runat="server"
                            Text="Generate Page Code for Display" />
                        <asp:Button ID="Btn_GeneratePageForEdit" runat="server"
                            Text="Generate Page Code for Edit" />
                    </td>

                </tr>
                <tr>
                    <th>Markup</th>
                    <th>Code Behind</th>
                </tr>

                <tr>
                    <td>
                        <asp:TextBox ID="txtASPXDisplay" CssClass="allowhtml" runat="server" TextMode="MultiLine" Height="100" Width="500"></asp:TextBox></td>
                    <td>
                        <asp:TextBox ID="txtASPXVB" runat="server" TextMode="MultiLine" Height="100" Width="600"></asp:TextBox></td>
                </tr>



                <tr>
                    <td colspan="2">
                        <hr />
                        <h1>Resource strings generator.</h1>

                        Input file path to handle resource string, example: C:\Work\MachPanel\Trunk\Dev\Web\Sales\LeadDetail.aspx
                <asp:TextBox ID="TxBx_FiletoHandle" runat="server"></asp:TextBox>
                        <br />
                        Checkout Content.resx and the page before using this feature. This will update Text="English" with resource values and create new resource values if needed.
                <br />
                        Resx file path:
                <asp:TextBox ID="TxBx_ResxPath" runat="server" Text="C:\Work\MachPanel\Trunk\Dev\Web\App_GlobalResources\Content.resx"></asp:TextBox>
                        <asp:Button ID="Btn_HandleResourceStrings" runat="server"
                            Text="Handle Resource string" />
                        <asp:Button ID="Btn_GetResourceConstants" runat="server"
                            Text="Get Resource Constants" Visible="false" />
                    </td>

                </tr>
            </table>


        </div>
    </div>



</asp:Content>

