层的使用
来源:互联网 发布:淘宝ka商家是什么意思 编辑:程序博客网 时间:2024/05/26 12:01
<%-- 编辑--%>
<div id="divEdit" style="display: none">
<table border="0" cellpadding="0" cellspacing="0" class="formtable" style="margin-top: 5px;
margin-bottom: 80px;">
<tbody>
<tr>
<input type ="hidden" id="hidId"/>
<td class="label1" style="width: 150px;">
地区:
</td>
<td class="field">
<input type="text" id="txtCity" readonly="true" />
</td>
</tr>
<tr>
<td class="label1" style="width: 15%">
最小值:
</td>
<td class="field" style="width: 35%">
<input type="text" id="txtMinValue" />
</td>
</tr>
<tr>
<td class="label1">
最大值:
</td>
<td class="field">
<input type="text" id="txtMaxValue" />
</td>
</tr>
<tr>
<td class="label1">
比例:
</td>
<td class="field">
<input type="text" id="txtPromotion" />
</td>
</tr>
<tr>
<td colspan="2" style="text-align: center">
<input type="button" class="btn" id="btnSubmit" value="确定" onclick="submit(this)" />
<input type="button" class="btn" id="btnClose" value="取消" onclick="closeDialog()" />
</td>
</tr>
</tbody>
</table>
</div>
<%--处理中提示"请稍后"--%>
<div id="divMessage" style="display: none">
<span id="SpanMsg">请稍后...</span>
</div>
<%--层的处理--%>
<script type="text/javascript">
//消息框显示信息,并自动消失
function AlertMessage(Msg, isTimeOut, time) {
$("#SpanMsg").html('');
$("#SpanMsg").append(Msg);
if (isTimeOut)
window.setTimeout(" $(\"#divMessage\").dialog(\"close\");", time);
}
//打开编辑框
function openEdit(id,city,minValue,maxValue,promotion)
{
$("#hidId").attr("value",id);
$("#txtCity").attr("value",city );
$("#txtMinValue").attr("value",minValue );
$("#txtMaxValue").attr("value",maxValue );
$("#txtPromotion").attr("value",promotion );
$("#divEdit").dialog({ title: '编辑比例管理', width: 500, height: 300, modal: true, draggable: true, resizable: false });
}
function closeDialog()
{
$("#divEdit").dialog("close");
}
function submit(obj)
{
var id= $("#hidId").attr("value");
var minValue= $("#txtMinValue").attr("value");
var maxValue= $("#txtMaxValue").attr("value");
var promotion= $("#txtPromotion").attr("value");
if(minValue=="")
{
alert ("最小值不能为空!");
return ;
}
if(maxValue=="")
{
alert ("最大值不能为空!");
return ;
}
if(promotion=="")
{
alert ("比例不能为空!");
return ;
}
$.ajax({
type: "post",
dataType: "html",
url: "/b2c/handlers/Financial/BatterySettlementSettinglistEdit.ashx",
data: { "id": id,"minValue":minValue,"maxValue":maxValue ,"promotion":promotion},
success: function(msg) {
if (msg == "ok") {
alert("保存成功");
window.location=location.href;
}
else
alert ("修改失败");
},
error: function(msg) {
alert ("请求异常");
}
});
}
- 层使用的示例
- DIV 层的使用
- CCLayerColor层的使用
- 层的使用
- 层的使用
- Photoshop使用层的技巧
- Photoshop使用层的技巧
- Windows 层窗口的使用
- 关于MTK层的使用
- MFC路径层的使用
- JavaScript弹出层的使用
- 弹出层layer的使用
- 层的使用:页面载入时提示消息层
- 层的使用:页面载入时提示消息层
- 在驱动层直接使用应用层的空间
- 图层的基本使用 自定义图层 图层属性
- Android开发,透明指示层、引导层、功能说明层的分享及使用
- Expresso持久层的深入使用研究
- NGUI所见即所得之UIPanel
- 决定你是穷人还是富人的12条
- Android中Handler消息传递机制
- Hibernate 调用存储过程 获取输出参数
- SYBASE ASE 存储了解_allocation page、OAM page和GAM page
- 层的使用
- flex4 与报表
- M*N矩阵顺时针旋转90度
- HTML5的神奇
- NGUI所见即所得之UITweener
- HDU 2550 百步穿杨 简单的打印箭格式输出
- 【android】listview改变选中行背景图片
- HDU shǎ崽 OrOrOrOrz Time 2673 排序输出
- 十大基础实用算法之寻找最小(最大)的k个数-线性查找算法