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.

159 lines
8.0 KiB
Plaintext

10 months ago
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridEdit.aspx.cs" Inherits="DSWeb.UserSettings.GridEdit" %>
<!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 runat="server">
<title>Grid Edit</title>
<style type="text/css">
html,body{font-size:12px;margin:0px;height:100%;}
.txtTab{border:1px solid #A0A0A4; border-color:#6699CC;}
.btn
{
width:100px;
BORDER-RIGHT: #2C59AA 1px solid;
PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid;
PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5);
BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px;
BORDER-BOTTOM: #2C59AA 1px solid
}
#itemcontainer{
margin:0px 8px 0px 8px;
padding:4px 0px 0px 0px;
height:100%;
width:100%;
}
#itemcontainer ul{
clear:left;
margin:0px;
padding:0px;
border:0px;
list-style-type:none;
text-align:center;
display:inline;
width:100%;
float:left;
padding-left:10px;
}
#itemcontainer li {
float:left;
display:block;
margin:0px;
padding:0px;
text-align:left;
padding-top:5px;
}
</style>
<script src="../js/dhtmlxcommon.js" type="text/javascript"></script>
<script src="../js/json2.js" type="text/javascript"></script>
<script src="../js/GridEdit.js" type="text/javascript"></script>
</head>
<body onload="reInitJs();InitGridEdit();">
<div style="width:100%;height:100%;font-size:12px;" >
<form id="form1" runat="server">
<div style="width:30%;height:200px;float:left; padding-left:10px;">
<div id="dvTypeTitle" style="width:100%;margin-top:10px;">字段类型</div>
<div id="dvType" style="width:100%;height:100%">
<select id="sel_gtype" style="width:100%;height:100%;" multiple class="txtTab" runat="server">
<option value="ro" selected=1>只读项(Read only)</option>
<option value="ch" >选择框(Check)</option>
<option value="ed">可编辑项(Editable)</option>
</select>
</div>
</div>
<div style="width:65%;height:220px;float:left;">
<div id="dvAttrTitle" style="width:100%;margin-top:10px; padding-left:30px;">字段属性</div>
<div id="itemcontainer">
<ul>
<li style="width:15%; text-align:right;">字段标题:</li>
<li style="width:40%"><input type="text" id="txt_title" runat="server" style="width:100%" class="txtTab" onblur="dynamicSave(this,'title')"/></li>
<li style="width:45%"><div id="dvTitleError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
<ul>
<li style="width:15%;text-align:right;">SQL字段值</li>
<li style="width:40%"><input type="text" id="txt_name" runat="server" style="width:100%" class="txtTab" onblur="dynamicSave(this,'name')"/></li>
<li style="width:45%;"><div id="dvNameError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
<ul>
<li style="width:15%;text-align:right;">排序检索值:</li>
<li style="width:40%"><input type="text" id="txt_sort" style="width:100%" class="txtTab" disabled=1/></li>
<li style="width:45%;"><div id="dvSortError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
<ul>
<li style="width:15%;text-align:right;">数据类型:</li>
<li style="width:40%"><select id="sel_type" style="width:100%" class="txtTab">
<option value="str">str</option>
<option value="bool">bool</option>
<option value="int">int</option>
</select></li>
<li style="width:45%;"><div id="dvTypeError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
<ul>
<li style="width:15%;text-align:right;">对齐方式:</li>
<li style="width:40%"><select id="sel_align" style="width:100%" class="txtTab">
<option value="center">居中</option>
<option value="left">向左对齐</option>
<option value="right">向右对齐</option>
</select></li>
<li style="width:45%;"><div id="dvAlignError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
<ul>
<li style="width:15%;text-align:right;">显示宽度:</li>
<li style="width:40%"><input type="text" id="txt_width" style="width:100%" class="txtTab" maxlength="4" onblur="dynamicSave(this,'width')"/></li>
<li style="width:45%;"><div id="dvWidthError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
<ul>
<li style="width:15%;text-align:right;">是否隐藏:</li>
<li style="width:40%"><input type="checkbox" id="ck_hidden" onclick="checkVisible(this);"/></li>
<li style="width:45%;"><div id="dvVisibleError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
<ul>
<li style="width:15%;text-align:right;">顺序编号:</li>
<li style="width:40%"><div id="dvNo" style="width:100%;"></div></li>
<li style="width:45%;"><div id="dvNoError" style="padding-left:10px;padding-top:3px;text-align:left;"></div></li>
</ul>
</div>
</div>
<div style="width:100%;height:200px;float:left; margin-top:10px;padding-left:10px;">
<div style="width:30%;float:left;">
<div id="dvAddedTitle" style="width:100%;">列表字段</div>
<div id="dvAdded" style="width:100%;height:100%">
<select id="sel_added" style="width:100%;height:150px;" multiple="multiple" class="txtTab" onchange="checkItem(this.options[this.options.selectedIndex].value)">
</select>
</div>
</div>
<div style="width:30px;float:left; text-align:center;">
<div style="padding-top:50px;" onclick="itemUp();"><a href="javascript:void(0)" style="list-style-type:none;"><img src="../images/btn_off_up.gif" width="16px" title="顺序向前" style="border:0px;"/></a></div>
<div style="padding-top:10px;" onclick="itemDown();"><a href="javascript:void(0)" style="list-style-type:none;"><img src="../images/btn_off_down.gif" width="16px" title="顺序向后" style="border:0px;"/></a></div>
</div>
<div style="width:30%;float:left;">
<div id="Div1" style="width:100%;">显示字段</div>
<div id="Div2" style="width:100%;height:100%">
<select id="Select1" style="width:100%;height:150px;" multiple="multiple" class="txtTab" onchange="checkItem(this.options[this.options.selectedIndex].value)">
</select>
</div>
</div>
</div>
<div style="width:100%;float:left; padding-top:30px; padding-left:10px;">
<input type="button" id="btn_new" runat="server" class="btn" value="新建" onclick="addItem()"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="btn_save" runat="server" onclick="btn_save_Click" Text="保存" CssClass="btn"/>
</div>
<input type="hidden" id="h_userid" runat="server" />
<input type="hidden" id="h_name" runat="server" />
<input type="hidden" id="h_handle" runat="server" />
<input type="hidden" id="h_origcache" runat="server" />
<input type="hidden" id="h_gridcache" runat="server" />
<input type="hidden" id="h_templatename" runat="server" />
</form>
</div>
<div id="dvResult"></div>
</body>
</html>