摘要: 在程序中建立如下方法。 #region 刷新数据源 /// ///刷新数据源 /// /// dgv that is needed to refresh public void RefreshDataSourceOndgv(DataGridView dgv) ... 阅读全文
posted @ 2016-02-20 14:46 酸辣土豆丝 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 有combox控件,命名为cbxPutStatus,在程序中为其手工定义数据源,并绑定 private void POrderSplitFrm_Load(object sender, EventArgs e) { //绑定定单状态 this.cbxPutStatus.DataSource = DataTableForPutStatus();... 阅读全文
posted @ 2016-01-13 11:30 酸辣土豆丝 阅读(522) 评论(0) 推荐(0) 编辑
摘要: 原理:使用公用表表达式的递归查询 传送门:https://msdn.microsoft.com/zh-cn/library/ms186243 问题:指定一个父级,查询出该父级下面的所有节点。 举例说明:存在表 ComponentI为子,PP_ComponentID为父。 CREATE PROCEDURE [dbo].[PP1_BOMComponentSelectAll2_SEL... 阅读全文
posted @ 2016-01-04 18:26 酸辣土豆丝 阅读(2184) 评论(0) 推荐(0) 编辑