2016年7月15日
摘要: SQL 标量函数----->日期函数 day() 、month()、year()、2009年02月23日 星期一 11:30 SQL 标量函数----->日期函数 day() 、month()、year()、DATEADD()、ATEDIFF()、DATENAME()、DATEPART() GETDATE() 执行实例(表:life_unite_product 有createtime时间字段... 阅读全文
posted @ 2016-07-15 09:51 码 头 阅读(1981) 评论(0) 推荐(0) 编辑
摘要: function SetSize(obj, width, height) { myImage = new Image(); myImage.src = obj.src; if (myImage.width>0 && myImage.height>0) { var rate = 1; if (myImage.width>width || myImage.height>height) ... 阅读全文
posted @ 2016-07-15 09:10 码 头 阅读(251) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Security.Cryptography; using System.Text; namespace AttendService { public static class DESEncrypt { #region ========加密======== private static s... 阅读全文
posted @ 2016-07-15 09:09 码 头 阅读(10093) 评论(0) 推荐(0) 编辑
摘要: using System; class DistrictCode { public static void Main(string[] args) { while(true) { Console.Write("请输入(输入“E”退出):"); string inputString =Console.ReadLine(); if(iSnputString=="e"||... 阅读全文
posted @ 2016-07-15 09:08 码 头 阅读(268) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int[] iA... 阅读全文
posted @ 2016-07-15 09:07 码 头 阅读(464) 评论(0) 推荐(0) 编辑
  2016年4月8日
摘要: 主要是用于记录用户操作动态, 使用方法: 直接在action头上 加多特性[Operation("用户管理", "修改密码")] 就可以获取到用户操作的动作。 阅读全文
posted @ 2016-04-08 16:33 码 头 阅读(3851) 评论(8) 推荐(1) 编辑
  2016年3月17日
摘要: 编辑Ctrl + Space 代码完成 Ctrl + Shift + Space代码完成Ctrl + Alt + Space代码完成Ctrl + P 显示参数信息Alt + Insert 生成构造函数,属性,重载成员函数,实现接口Ctrl + Alt + J 生成if,try..catch,#reg 阅读全文
posted @ 2016-03-17 09:46 码 头 阅读(19464) 评论(0) 推荐(3) 编辑
摘要: 1、 打开PowerDesigner12,在菜单中按照如下方式进行操作file->Reverse Engineer->DataBase 点击后,弹出 New Physical Data Model 的对话框,如下图: 2、 在General选项卡中Model name:模板名字,自己命名。DMBMS 阅读全文
posted @ 2016-03-17 09:27 码 头 阅读(555) 评论(0) 推荐(0) 编辑
  2015年9月15日
摘要: 在开发前端系统时候碰到这种兼容问题,以下是个人解决方案,希望能给其他人带来帮助:var JPlaceHolder = { //检测 _check: function () { return 'placeholder' in document.createElement('i... 阅读全文
posted @ 2015-09-15 16:10 码 头 阅读(277) 评论(0) 推荐(0) 编辑
  2014年2月28日
摘要: ---列举指定时间月份DECLARE @date1 VARCHAR(10) , @date2 VARCHAR(10)SET @date1 = '2010-01-01'SET @date2 = '2010-09-01'SELECT CONVERT(VARCHAR(7), CAST(LTRIM(YEAR(@date1)) + '-' + LTRIM(number) + '-01' AS DATETIME), 120)FROM master..spt_valuesWHERE type = 'p' AND number B 阅读全文
posted @ 2014-02-28 14:00 码 头 阅读(669) 评论(0) 推荐(0) 编辑