<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintTemplate_Edit.aspx.cs" Inherits="System_GrfPrinter_PrintTemplate_Edit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../Styles/WebSite.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
	    <table style="margin:auto;">
            <tr>
                <td style="text-align:right">模板ID:</td>
                <td>
                    <asp:TextBox runat="server" ID="prt_id" ReadOnly="true"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="text-align:right">模块编码:</td>
                <td>
                    <asp:TextBox runat="server" ID="module" ReadOnly="true"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="text-align:right">模板名称:</td>
                <td>
                    <asp:TextBox runat="server" ID="template_name"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="text-align:right">是否系统模板:</td>
                <td>
                    <asp:DropDownList ID="is_system" runat="server" Enabled="false">
                        <asp:ListItem Value="0">否</asp:ListItem>
                        <asp:ListItem Value="1">是</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="text-align:right">模板文件:</td>
                <td>
                    <asp:FileUpload ID="grf_file" runat="server" />
                    <asp:Button ID="btnDesign" runat="server" Text="设计模板" onclick="btnDesign_Click"/>
                </td>
            </tr>
            <tr>
                <td style="text-align:right">已上传模板:</td>
                <td>
                    <asp:TextBox runat="server" ID="grf_file_info" Enabled="false" style='width:292px'></asp:TextBox>
                    <%=download_link %>
                </td>
            </tr>
            <tr>
                <td style="text-align:right">条件语句:</td>
                <td>
                    <asp:TextBox runat="server" ID="sql_where" style='width:292px'></asp:TextBox></td>
            </tr>
	    </table>
        <div style="text-align:center;margin-top:5px">
            <asp:Label runat="server" ID="system_tip" ForeColor="Green"></asp:Label><br /><br />
            <asp:Button runat="server" Text="保存" ID="btn_save" onclick="btn_save_Click" />
            <asp:Button ID="btn_back" runat="server" Text="返回" onclick="btn_back_Click"/>
        </div>
        <asp:Label runat="server" ID="msg" style='color:Red'></asp:Label>
    </div>
    </form>
</body>
</html>
