摘要: #region 更新赋值,前者赋值给后者 public static void ShadowCopy(object a, object b) { if (a == null) return; if (a.GetType() == b.GetType()) { ... 阅读全文
posted @ 2016-12-16 21:38 justqi 阅读(2685) 评论(0) 推荐(0) 编辑
摘要: 1.模型CellItem.h 2.模型CellItem.m 3.TableViewController.m 阅读全文
posted @ 2016-12-16 21:36 justqi 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 自签名证书制作流程 打开终端,输入 openssl genrsa -out ca.key 1024 ,生成名称为ca的秘钥 注:openssl生成的文件皆放在用户文档下(finder菜单栏’前往’ - 电脑 -Macintosh Hd - 用户 - dongxinda) 根据密钥在桌面生成证书: 终端输入 openssl req -x509 -new -key ca.key -out... 阅读全文
posted @ 2016-12-16 21:34 justqi 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: 1.DataSet装换为泛型集合(注意T实体的属性其字段类型与dataset字段类型一一对应) 阅读全文
posted @ 2016-12-14 14:26 justqi 阅读(461) 评论(0) 推荐(0) 编辑
摘要: #region dataset过滤器(修改小数点位数)导出使用 public DataSet ChangeDataSetValue(DataSet dataset) { foreach (DataTable dt in dataset.Tables) //遍历所有的datatable { ... 阅读全文
posted @ 2016-12-13 16:48 justqi 阅读(613) 评论(0) 推荐(0) 编辑
摘要: 1.新建windows服务,名称(WebSendMsgSocket,注意检查属性-版本号) 双击Service1.cs打开设计视图,在设计视图中右键,选择添加安装程序 安装serviceProcessInstaller1和serviceInstaller1组件 2.将serviceProcessIn 阅读全文
posted @ 2016-11-30 23:04 justqi 阅读(749) 评论(0) 推荐(0) 编辑
摘要: B/S架构项目,某一用户登录后执行了某些动作需要向在手机登录的对应的用户推送消息 通过socket实现 1.socket服务器:使用C#的window服务(该服务监听两个端口:比如平台8889,手机8881) 2.平台:在后台接口处理,通过ip以及端口8889连接socket服务,发送数据,格式可以 阅读全文
posted @ 2016-11-30 20:34 justqi 阅读(431) 评论(0) 推荐(0) 编辑
摘要: var url1= "../../Test1.aspx?para=" + escape('中文参数'); var url2 = "....."; urlJS.js 获取该参数 var para = getValueString("para"); function getValueString(name) { var url = location.href; //var ... 阅读全文
posted @ 2016-10-24 11:31 justqi 阅读(1647) 评论(0) 推荐(0) 编辑
摘要: --if语句declare @i int set @i=1 if @i<0 begin set @i=@i+1 print @i end else --循环语句 declare @i int set @i=0 while @i<5 begin set @i= @i+1 insert into grade(classname) values(@i... 阅读全文
posted @ 2016-10-21 12:07 justqi 阅读(6471) 评论(0) 推荐(0) 编辑
摘要: ds.Tables[0].Columns.Add("short_name", System.Type.GetType("System.String"));//直接为表创建一新列 foreach (DataRow dr in ds.Tables[0].Rows)//将新列分别递归添加到对应的行中 ... 阅读全文
posted @ 2016-10-17 17:51 justqi 阅读(270) 评论(0) 推荐(0) 编辑