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.
134 lines
5.0 KiB
Plaintext
134 lines
5.0 KiB
Plaintext
<!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>
|
|
<title></title>
|
|
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
<link href="../../../Scripts/easyUI/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
|
|
<link href="../../../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
|
|
<script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
|
|
<script src="../../../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../../../Scripts/CommonUnite.js" type="text/javascript"></script>
|
|
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
<!-- 增加一个配置 -->
|
|
<script src="../../../Scripts/config.js" type="text/javascript" > </script>
|
|
<script src="../../../Comm/Gener.js" type="text/javascript" > </script>
|
|
<script src="../../../Scripts/PinYin.js" type="text/javascript" > </script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
|
|
var Ele_TBName = document.getElementById("TB_Name");
|
|
Ele_TBName.focus();
|
|
|
|
PageTransfer_value = Application.common.getArgsFromHref("DataType"); //取出页面传至
|
|
//给单选赋值
|
|
if (PageTransfer_value == "TextBox") {
|
|
$("#RB_String").attr("checked", true);
|
|
}
|
|
|
|
if (PageTransfer_value == "TextBoxInt") {
|
|
$("#RB_Int").attr("checked", true);
|
|
}
|
|
|
|
if (PageTransfer_value == "TextBoxFloat") {
|
|
$("#RB_Float").attr("checked", true);
|
|
}
|
|
|
|
if (PageTransfer_value == "TextBoxMoney") {
|
|
$("#RB_Money").attr("checked", true);
|
|
}
|
|
|
|
if (PageTransfer_value == "Date") {
|
|
$("#RB_Date").attr("checked", true);
|
|
}
|
|
|
|
if (PageTransfer_value == "DateTime") {
|
|
$("#RB_DateTime").attr("checked", true);
|
|
}
|
|
|
|
if (PageTransfer_value == "CheckBox") {
|
|
$("#RB_Boolen").attr("checked", true);
|
|
}
|
|
|
|
$('#TB_Name').blur(function () //文本失去焦点时触发的事件
|
|
{
|
|
var name = document.getElementById("TB_Name").value;
|
|
var val = $('input:radio[name="RB_qpjp"]:checked').val();
|
|
if (name == "") {
|
|
document.getElementById("TB_KeyOfEn").value = "";
|
|
return;
|
|
}
|
|
|
|
if (val == "ziduanquanpin")
|
|
ParsePinYin(name, true, "TB_KeyOfEn");
|
|
else
|
|
ParsePinYin(name, false, "TB_KeyOfEn");
|
|
return;
|
|
|
|
});
|
|
//点击全拼
|
|
$('input[id=RB_qp]').change(function () {
|
|
var name = document.getElementById("TB_Name").value;
|
|
ParsePinYin(name, true, "TB_KeyOfEn"); //调用PinYin.js
|
|
});
|
|
//点击简拼
|
|
$('input[id=RB_jp]').change(function () {
|
|
var name = document.getElementById("TB_Name").value;
|
|
ParsePinYin(name, false, "TB_KeyOfEn"); //调用PinYin.js
|
|
});
|
|
});
|
|
|
|
//传入父窗体
|
|
function GetFrmInfo() {
|
|
return {
|
|
Name: $.trim($("#TB_Name").val()),
|
|
KeyOfEn: $.trim($("#TB_KeyOfEn").val()),
|
|
IsCreateLabel: $("#CB_scbq").prop("checked"),
|
|
IsHidenField: $("#CB_sfyczd").prop("checked"),
|
|
FieldType: $('input:radio[name=Field_Type]:checked').val()
|
|
};
|
|
}
|
|
//在这里把返回值获取到,放入到对应的文本框里.
|
|
function SelectOne() {
|
|
|
|
var url = "../../FoolFormDesigner/FieldTypeListChoseOneField.htm?FK_MapData=" + GetQueryString("FK_MapData");
|
|
SetHref(url);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form id="from1" action="">
|
|
|
|
<table class="Table" cellpadding="0" cellspacing="0" border="0" style="width: 100%">
|
|
<caption>新建装饰图片</caption>
|
|
<tr>
|
|
<td> 字段中文名称 </td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input id="TB_Name" class="easyui-textbox" style="width: 200px" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>英文字段<font color=gray>(必须以下划线字母开头) </font></td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input id="TB_KeyOfEn" class="easyui-textbox" style="width: 200px" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input id="RB_qp" type="radio" name="RB_qpjp" checked="checked" value="ziduanquanpin" /><label
|
|
for="RB_qp">字段全拼</label>
|
|
<input id="RB_jp" type="radio" name="RB_qpjp" value="ziduanjianpin" /><label for="RB_jp">字段简拼</label>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</body>
|
|
</html>
|