摘要:
定义按钮:<input type="button" id="btnPrint" value="打印" onclick="doprint();" />Copy界面,用于在网页中打开PrintContractModel.aspx主函数:function doprint() { window.open("PrintContractModel.aspx?ContractCode=<%=mContractCode %>") ; }和主界面ContractModel.aspx一样都要 阅读全文
摘要:
获取数据: <% String mContractCode = RequestHelper.GetQueryString("ContractCode"); List<DbParam> mDicSysParam = new List<DbParam>(); List<DbParam> mDicInputParam = new List<DbParam>();//从之前页面获取 mDicInputParam.Add(new DbParam("ContractCode", mContractCode)); 阅读全文
摘要:
$("#btnAllSelect").toggle(function () { $("[name='OptionSel']").attr("checked", 'true'); //全选 }, function () { $("[name='OptionSel']").removeAttr("checked"); }); //反选 $("#btnUnselected").click(function () { $("i 阅读全文
摘要:
主函数function DX(n) { if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)) return "数据非法"; var unit = "千百拾亿千百拾万千百拾元角分", str = ""; n += "00"; var p = n.indexOf('.'); if (p >= 0) n = n.substring(0, p) + n.substr(p + 1, 2); unit = unit.substr(unit.length - n.length); f 阅读全文