• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
素蔓、无暇至永恒
承诺总是那么不堪一击~
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 7 下一页
2012年8月27日
sql临时表、转换字段、百分比(金桥总报表)
摘要: --select * from @pt_tballcreate proc Asset_QueryMainlistForReport( @pi_Action varchar(100), @pi_PropertyCode varchar(100), @pi_pageIndex INT, @pi_pageSize INT, @po_recordCount BIGINT OUTPUT)as DECLARE @pt_StartRowIndex INT DECLARE @pt_EndRowIndex INTSET @pt_StartRowIndex = (@pi_pageIndex - 1) * @pi_ 阅读全文
posted @ 2012-08-27 17:20 pain1033 阅读(380) 评论(0) 推荐(0)
SQL日期格式转换大全
摘要: Select CONVERT(varchar(100), GETDATE(), 0): 05 16 2006 10:57AMSelect CONVERT(varchar(100), GETDATE(), 1): 05/16/06Select CONVERT(varchar(100), GETDATE(), 2): 06.05.16Select CONVERT(varchar(100), GETDATE(), 3): 16/05/06Select CONVERT(varchar(100), GETDATE(), 4): 16.05.06Select CONVERT(varchar(100), G 阅读全文
posted @ 2012-08-27 15:53 pain1033 阅读(324) 评论(0) 推荐(0)
2012年8月24日
Sql判断是否为数字类型
摘要: 前景提要:现有一批房屋数据,房屋的计量单位字段定义为Square,字段类型是varchar(50)。为的是便于用户输入资料:房屋单位可能是平米,那输入的数据就是28.5等等之类的数字。亦可能是 1 间。客户要求:有面积的房屋显示面积,没有面积、以间为单位的房屋显示为0.解决方法如下:create proc Asset_QueryFenlistForReport( @pi_Action varchar(100), @pi_PropertyCode varchar(100), @pi_pageIndex INT, @pi_pageSize INT, @po_recordCount BIG... 阅读全文
posted @ 2012-08-24 16:11 pain1033 阅读(5059) 评论(0) 推荐(0)
2012年8月23日
SQL获取当月天数的几种方法
摘要: 日期直接减去int类型的数字 等于 DATEADD(DAY,- 数字,日期)下面三种方法:1,日期加一个月减去当前天数,相当于这个月最后一天的日期。然后获取天数。(注意,不能用这种方式:当前日期减去当前天数,再加一个月,新日期不一定是当前月的最后一天的日期。比如当前月是3月。错误:select day(dateadd(month,1,getdate()-day(getdate()))))select day(dateadd(mm,1,getdate())-day(getdate()))2,convert把日期转换成120格式的是 "2011-1-1"这种格式。 最终也是得到 阅读全文
posted @ 2012-08-23 17:15 pain1033 阅读(6129) 评论(0) 推荐(0)
2012年8月21日
SQL连接问题,用户登录失败
摘要: 前景提要:系统总是崩溃,遂重做了下系统。然后...(此处省去1000字),好了装好VS2010和SQL2005后,运行下程序。修改web.config文件大家都懂得!data source=S-PC;database=JQWYDataBase;Integrated security=true 发现登录不了了~日志文件提示:2012/08/21 14:35:08|用户 'S-PC\S' 登录失败。|127.0.0.1|/AppService/Login/CheckLogin.ashx?cmd=docheck我看不对啊,哥是用的windows身份验证登录的,不存在用户名和密码的问题 阅读全文
posted @ 2012-08-21 14:54 pain1033 阅读(294) 评论(0) 推荐(0)
2012年8月2日
网页转换成Word
摘要: 主函数方法functionOpenWord(){Layer1.style.border=0;word=newActiveXObject('Word.Application');word.Application.Visible=true;varmydoc=word.Documents.Add('',0,1);myRange=mydoc.Range(0,1);varsel=Layer1.document.body.createTextRange();sel.select();Layer1.document.execCommand('Copy');se 阅读全文
posted @ 2012-08-02 10:21 pain1033 阅读(264) 评论(0) 推荐(0)
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)
上一页 1 2 3 4 5 6 7 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3