• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
素蔓、无暇至永恒
承诺总是那么不堪一击~
博客园    首页    新随笔    联系   管理    订阅  订阅
2012年7月30日
页面通过功能点获取值
摘要: 获取数据: <% String mContractCode = RequestHelper.GetQueryString("ContractCode"); List<DbParam> mDicSysParam = new List<DbParam>(); List<DbParam> mDicInputParam = new List<DbParam>();//从之前页面获取 mDicInputParam.Add(new DbParam("ContractCode", mContractCode)); 阅读全文
posted @ 2012-07-30 17:57 pain1033 阅读(173) 评论(0) 推荐(0)
打印功能
摘要: 定义按钮:<input type="button" id="btnPrint" value="打印" onclick="doprint();" />Copy界面,用于在网页中打开PrintContractModel.aspx主函数:function doprint() { window.open("PrintContractModel.aspx?ContractCode=<%=mContractCode %>") ; }和主界面ContractModel.aspx一样都要 阅读全文
posted @ 2012-07-30 17:57 pain1033 阅读(165) 评论(0) 推荐(0)
数字大写转换
摘要: 主函数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 阅读全文
posted @ 2012-07-30 17:56 pain1033 阅读(290) 评论(0) 推荐(0)
全选,反选(待补充)
摘要: $("#btnAllSelect").toggle(function () { $("[name='OptionSel']").attr("checked", 'true'); //全选 }, function () { $("[name='OptionSel']").removeAttr("checked"); }); //反选 $("#btnUnselected").click(function () { $("i 阅读全文
posted @ 2012-07-30 17:56 pain1033 阅读(182) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3