摘要: 编写了一个简单的串口映射工具,方便调试串口 代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using 阅读全文
posted @ 2015-05-20 13:15 0611163 阅读(1113) 评论(0) 推荐(0)
摘要: 由于是触摸屏,所以需要一款JS虚拟键盘。上网找了一个好用的VirtualKeyboard,作了修改。 修改该插件参考的博客文章:http://www.cnblogs.com/xinggong/archive/2013/02/07/2908534.html 下载链接:JS虚拟键盘Virtual... 阅读全文
posted @ 2015-02-28 10:33 0611163 阅读(1176) 评论(0) 推荐(1)
摘要: JS数字键盘,JS小键盘CSS代码:#numberkeyboard{ border: 1px solid #b3b3b3; background: #f2f3f7; height: 285px; margin: 0; padding: 2px; position:... 阅读全文
posted @ 2015-02-28 09:47 0611163 阅读(875) 评论(0) 推荐(0)
摘要: HTML的select控件美化CSS:.div-select{ border: solid 1px #999; height: 40px; line-height: 40px; cursor: default;}.div-select-text{ float: left... 阅读全文
posted @ 2015-02-08 22:28 0611163 阅读(3282) 评论(2) 推荐(1)
摘要: checkbox和radio的美化checkbox: 测试101 ... 阅读全文
posted @ 2015-02-08 14:27 0611163 阅读(520) 评论(3) 推荐(0)
摘要: 最近写C#串口通信程序,系统是B/S架构。SerialPort类有一个DataReceived事件,用来接收串口返回的数据,但这种方式在C/S架构下很好用,但B/S就不好处理了。所以写了一个同步模式接收返回数据的方法,不使用DataReceived事件。经过测试,可以正常使用。 一、Machi... 阅读全文
posted @ 2015-01-16 21:59 0611163 阅读(11357) 评论(0) 推荐(1)
摘要: 生成验证码的类:using System;using System.Collections.Generic;using System.Drawing;using System.Text;namespace Controllers.Core.Util{ /// /// 验证码 //... 阅读全文
posted @ 2014-12-29 21:05 0611163 阅读(1138) 评论(0) 推荐(0)
摘要: HTML代码:@{ Layout = null;}@using DAL;@using System.Data;@{ AreaDal areaDal = new AreaDal(); string areaId = ViewBag.areaId; DataRow drArea ... 阅读全文
posted @ 2014-12-27 15:19 0611163 阅读(573) 评论(0) 推荐(0)
摘要: 子页面AreaSelect.cshtml页面的Controller代码:public ActionResult AreaSelect(){ return PartialView();}父页面前台代码: @{ ViewDataDictionary data = new Vi... 阅读全文
posted @ 2014-12-26 10:08 0611163 阅读(683) 评论(0) 推荐(0)
摘要: 1、引用JS: <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=87be68605271c5e4cfe712787041be0a"></script> 2、HTML: 东经: <input name= 阅读全文
posted @ 2014-12-25 11:35 0611163 阅读(848) 评论(0) 推荐(0)