摘要: 解析: /// <summary> /// 获取产品配置规则(重复产品配置,将重复执行) /// </summary> /// <param name="type">类型JingDong,YinTai</param> /// <returns>规则列表</returns> public static IList<Model.LocalRule.ProductRule> GetProductRules(string type) { IList<Model.LocalRule.P... 阅读全文
posted @ 2012-08-26 09:18 z.seven 阅读(328) 评论(0) 推荐(0)
摘要: 电子商务促销,买赠活动配置:规则实例:[2012-08-24 09:30:00~2012-08-27 09:30:00](rg000816)[(5N,{N=}),(,{N-1=})]|(rg001963)[(2N,{2N=bz000022}),(2N-1,{2N-1=bz000022})]解释:商品rg000816在2012-08-24 09:30:00到2012-08-27 09:30:00之间进行买5送一;商品rg001963不限制时间,买一件送一件商品bz000022相关类:ProductRule.csusing System;using System.Collections.Gener 阅读全文
posted @ 2012-08-26 09:12 z.seven 阅读(267) 评论(0) 推荐(0)
摘要: 效果图:一.Form添加全局变量//这里的值是表格行头的初始宽度int rowHeaderWidth = 41;二.DataGridView添加事件 private void dgvReconcile_RowsRemoved(object sender, DataGridViewRowsRemovedEventArgs e) { ChangeRowHeaderWidth(); } private void dgvReconcile_RowsAdded(object sender, DataGridViewRowsAd... 阅读全文
posted @ 2012-02-17 20:36 z.seven 阅读(1958) 评论(0) 推荐(1)
摘要: 复选框单元格:View Code /// <summary> /// 表格控件單元格 /// </summary> public class DataGridViewDisableCheckBoxCell : DataGridViewCheckBoxCell { /// <summary> /// 指示單元格是否可用 /// </summary> public bool Enabled { get; set; } /// <sum... 阅读全文
posted @ 2012-02-15 09:25 z.seven 阅读(593) 评论(0) 推荐(0)
摘要: 文本单元格View Code /// <summary> /// 表格文本单元格 /// </summary> public class DataGridViewColorTextBoxCell : DataGridViewTextBoxCell { /// <summary> /// 是否可用 /// </summary> public bool Enabled { get; set; } /// <summary> ... 阅读全文
posted @ 2012-02-15 09:24 z.seven 阅读(413) 评论(0) 推荐(0)
摘要: 连接单元格:View Code public class DataGridViewColorLinkCell : DataGridViewLinkCell { /// <summary> /// 是否可见 /// </summary> public bool Display { get; set; } /// <summary> /// 头部边框颜色 /// </summary> public Color ... 阅读全文
posted @ 2012-02-15 09:20 z.seven 阅读(713) 评论(0) 推荐(0)
摘要: 表头单元格:View Code /// <summary> /// 表格列头部单元格 /// </summary> public class DataGridViewColorColumnHeaderCell : DataGridViewColumnHeaderCell { /// <summary> /// 顶部边框颜色 /// </summary> public Color TopBorderColor { get; set; } ... 阅读全文
posted @ 2012-02-15 09:19 z.seven 阅读(2217) 评论(0) 推荐(0)