打赏
摘要: 前言:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->今天在群里有人问起了我一个比较远古的问题:带线的无限级下拉树列表他运行不起来。最关键的又扯上了CYQ.Data 框架,让我一时觉得比较悬,因为文章是08年时写的,而框架最今年才发力完善的,所以两者应该是没啥联系的,不过这一问也好,给了我一个写此文章的机会。ps:他把示例的其它代码当成是CYQ.Data 框架里的代码。本文将对之前的代码进行小小的简化,并为之建立一个完整的应用示例,以下为正式 阅读全文
posted @ 2011-12-03 13:36 pkzeng88 阅读(348) 评论(0) 推荐(0)
摘要: 有时我们会用到下拉树,但有好多下拉树都有问题,比如当节点字符长时会出现双滚动条,我以前找了一个下拉树,自己又改了改,用着还不错,和大家共享一下1、引入ComboBoxTree.js,内容如下:function removeValue(value, container) {if (value.length == 0)return '';//去除前后逗号 value = value.replace(/^;/, '').replace(/;$/, '');container = container.replace(/^;/, '').r 阅读全文
posted @ 2011-12-03 11:57 pkzeng88 阅读(607) 评论(0) 推荐(0)
摘要: public DataTable GetTable(DataRow[] drows) { DataTable tempT = new DataTable(); if (drows.Length == 0) return tempT; tempT = drows[0].Table.Clone();//克隆表结构 DataSet tempDs = new DataSet(); tempDs.Tables.Add(tempT);//添加到辅助数据集中 tempDs.Merge(drows);//利用数据集合并行集到表 return tempDs.Tables[0];//返回此表 } public . 阅读全文
posted @ 2011-12-02 10:36 pkzeng88 阅读(181) 评论(0) 推荐(0)
摘要: public DataTable GetTable(DataRow[] drows) { DataTable tempT = new DataTable(); if (drows.Length == 0) return tempT; tempT = drows[0].Table.Clone();//克隆表结构 DataSet tempDs = new DataSet(); tempDs.Tables.Add(tempT);//添加到辅助数据集中 tempDs.Merge(drows);//利用数据集合并行集到表 return tempDs.Tables[0];//返回此表 }在为DataTa. 阅读全文
posted @ 2011-12-01 15:16 pkzeng88 阅读(842) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication7{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } //保存前一个鼠标进入的节点 private Tre.. 阅读全文
posted @ 2011-11-29 14:46 pkzeng88 阅读(383) 评论(0) 推荐(0)
摘要: 刚学习Windows Phone7开发,遇到这个配置错误,在此记录一下。错误提示:Zune软件未安装Zune software is not installed. Install the latest version of Zune software.遇到这个问题,尝试根据提示,按图索骥,到微软官网找到了Zune下载并安装。安装并运行Zune后,再次调试,错误提示:Zune未启动Zune software is not launched. Retry after making sure that Zune software is launched.即便我打开运行了Zune,同样报错。解决方法很 阅读全文
posted @ 2011-11-27 18:31 pkzeng88 阅读(322) 评论(0) 推荐(0)
摘要: 用SQL语句,删除掉重复项只保留一条在几千条记录里,存在着些相同的记录,如何能用SQL语句,删除掉重复的呢1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 select * from people where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1) 2、删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有rowid最小的记录 delete from people where peopleName in 阅读全文
posted @ 2011-11-24 14:33 pkzeng88 阅读(1677) 评论(0) 推荐(0)
摘要: 总体框架:检验检疫业务工作流程图 入境货物报检、检验检疫及签证流程图卫生检疫行政许可审批流程图出口退税流程图订单处理及发货流程图 阅读全文
posted @ 2011-11-21 08:52 pkzeng88 阅读(681) 评论(0) 推荐(0)
摘要: #region TreeView相关类 /// <summary> /// 根据DATATABLE加载目录树 /// </summary> /// <param name="parentID">最顶级节点父节点的值</param> /// <param name="pNode">一般为NULL</param> /// <param name="dt">存放子父节点的数据表</param> /// <param name="t 阅读全文
posted @ 2011-11-19 10:13 pkzeng88 阅读(256) 评论(0) 推荐(0)
摘要: #region 反射调用功能组件 /// <summary> /// 反射组件通用事件 /// </summary> public class ReflectionFunction { /// <summary> /// 反射调用Mdi窗体 /// </summary> /// <param name="FunctionAssemblyFileName">功能程序集文件名称</param> /// <param name="AssemblyNamespaceAndClass"& 阅读全文
posted @ 2011-11-19 10:11 pkzeng88 阅读(343) 评论(0) 推荐(0)