You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
5.6 KiB
Plaintext

10 months ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CodeRuleSet.aspx.cs" Inherits="DSWeb.ParameterSet.CodeRuleSet" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>编码规则设置</title>
<link href="../theme/tab.css" type="text/css" rel="stylesheet" />
<link href="../theme/page.css" type="text/css" rel="stylesheet" />
<link href="../theme/button/default/Fee.css" type="text/css" rel="STYLESHEET"/>
<link href="../theme/style.css" type="text/css" rel="Stylesheet" media="screen"/>
<!--按钮条-->
<style type="text/css">
.btn-content0{
width:100%;
height:30px;
background:url("../images/content-header.gif");
cursor:default;
}
</style>
<script type="text/javascript" language="JavaScript">
function $(id)
{
return document.getElementById(id);
}
function cbISCOMPANYChecked()
{
if($("cbISCOMPANY").checked == 1)
{
$("tbRULECONTENT").value+="《COMPANY》";
}
else
{
var ls = $("tbRULECONTENT").value;
$("tbRULECONTENT").value=ls.replace("《COMPANY》","");
}
}
function cbISDEPTChecked()
{
if($("cbISDEPT").checked == 1)
{
$("tbRULECONTENT").value+="《DEPT》";
}
else
{
var lss = $("tbRULECONTENT").value;
$("tbRULECONTENT").value=lss.replace("《DEPT》","");
}
}
</script>
</head>
<body style="background-color: #ECF2FF">
<form id="form1" runat="server">
<div style="width:100%;vertical-align:text-bottom;" class="btn-content0">
<div class="btn-blank"></div>
<div class="xbtn-img">
<asp:ImageButton ID="ibEnter" runat="server" OnClick="btnEnter_Click" ToolTip="保存" ImageUrl="~/images/icons/save.gif" CssClass="btnimg"/>
</div>
</div>
<div>
<table style="height: 100px;">
<tr>
<td>
<asp:CheckBox ID="cbISSTARTUSING" runat="server" Text="启用" CssClass="cssfont" /></td>
<td>
<asp:DropDownList ID="ddlRULETYPE" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlRULETYPE_SelectedIndexChanged"
CssClass="cssfont" Width="100px" Height=22px>
</asp:DropDownList>
</td>
<td>
<asp:DropDownList ID="ddlRULENAME" runat="server" AutoPostBack="True"
onselectedindexchanged="ddlRULENAME_SelectedIndexChanged" CssClass="cssfont" Width="100px" Height=22px>
</asp:DropDownList>
</td>
<td></td>
<td>
<asp:CheckBox ID="cbISALLOWEDITS" runat="server" Text="生成之后允许编辑" CssClass="cssfont" />
</td>
<td>
<asp:CheckBox ID="cbISCLEAREDINEARLY" runat="server" Text="月初清零" CssClass="cssfont" />
</td>
</tr>
<tr>
<td class="cssfont">规则内容
</td>
<td colspan=2>
<asp:TextBox ID="tbRULECONTENT" runat="server" Text="SE" MaxLength="30" CssClass="txtTab9"></asp:TextBox>
</td>
<td></td>
<td>
<asp:CheckBox ID="cbISCOMPANY" runat="server" Text="规则中是否使用分公司代码" onclick="cbISCOMPANYChecked();" Width="170px" CssClass="cssfont"/>
</td>
<td colspan=2>
<asp:CheckBox ID="cbISDEPT" runat="server" Text="规则中是否使用部门代码" onclick="cbISDEPTChecked();" Width="170px" CssClass="cssfont"/>
</td>
</tr>
<tr>
<td class="cssfont">日期选择</td>
<td>
<asp:DropDownList ID="ddlRULEDATE" runat="server" CssClass="cssfont" Height=22px>
</asp:DropDownList>
</td>
<td class="cssfont">年的位数:&nbsp;
<asp:DropDownList ID="ddlRULEYEAR" runat="server" CssClass="cssfont" Height=22px>
<asp:ListItem Selected="True">4</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:DropDownList>
</td>
<td></td>
<td class="cssfont">
<asp:Label ID="Label1" runat="server" Text="序号长度:"></asp:Label>
<asp:TextBox ID="tbRULENOLENGTH" runat="server" Text="4" MaxLength="1" Width="15px" CssClass="cssfont"></asp:TextBox>
</td>
<td>
<asp:Label ID="Label2" runat="server" Text="序号起始号码:"></asp:Label>
</td>
<td>
<asp:TextBox ID="tbRULENOSTART" runat="server" Text="0001" MaxLength="4" Width="40px" CssClass="txtTab" onkeypress= "if ((event.keyCode < 48 || event.keyCode > 57) && (event.keyCode != 8) && event.keyCode!=45 && event.keyCode!=46){event.returnValue=false;}"></asp:TextBox>
</td>
</tr>
</table>
</div>
<div>
<input id="hdGID" type="hidden" runat=server />
</div>
</form>
</body>
</html>