commit 77cdc8cb05e1ae9bd1f9d7ed9cb6d894fdf5bc46 Author: editor <@51Aspx.com> Date: Wed Jun 19 18:30:24 2024 +0800 初始化 diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..4cfc60f --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,40 @@ +TREEVIEW实现复选联动及GRIDVIEW导出EXCEL + +一、源码描述 +环境:VS2022  + +二、功能介绍 +YYControls应用之TreeView实现复选联动及GridView导出Excel、Word、Text +联动复选框(复选框的全选和取消全选)。选中指定的父复选框,则设置其所有子复选框为选中状态;取消选中指定的父复选框,则设置其所有子复选框为取消选中状态。 +如果某父复选框的所有子复选框为均选中状态,则设置该父复选框为选中状态;如果某复选框的所有子复选框至少有一个为取消选中状态,则设置该父复选框为取消选中状态 +使用方法(设置属性):AllowCascadeCheckbox - 是否启用联动复选框功能 +YYControls为控件源码,Web为应用站点程序,所有数据为程序自动调用生成 + +三、注意事项 +ctrl+F5运行即可。 + + + + + + +作者: webabcd + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/TreeViewCheck +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: https://www.51aspx.com + 讨论圈: https://club.51aspx.com/ + +平台声明: + +1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用; +2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有; +3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com ); +4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性; + +友情提示: + 一般数据库文件默认在 DB_51Aspx 文件夹下 + 默认账号密码一般均为51Aspx + 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help diff --git a/Backup/YYControls/Enum.cs b/Backup/YYControls/Enum.cs new file mode 100644 index 0000000..b00ed8b --- /dev/null +++ b/Backup/YYControls/Enum.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace YYControls +{ + /// + /// ���Ե�ֵ��λ�� + /// + public enum AttributeValuePosition + { + /// + /// ��ʼ + /// + First, diff --git a/Backup/YYControls/Helper/Common/Attribute.cs b/Backup/YYControls/Helper/Common/Attribute.cs new file mode 100644 index 0000000..a61ba50 --- /dev/null +++ b/Backup/YYControls/Helper/Common/Attribute.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.Helper +{ + /// + /// ����Helper + /// + public partial class Common + { + /// diff --git a/Backup/YYControls/Helper/Common/Control.cs b/Backup/YYControls/Helper/Common/Control.cs new file mode 100644 index 0000000..a61ba50 --- /dev/null +++ b/Backup/YYControls/Helper/Common/Control.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.Helper +{ + /// + /// ����Helper + /// + public partial class Common + { + /// diff --git a/Backup/YYControls/Helper/Common/Export.cs b/Backup/YYControls/Helper/Common/Export.cs new file mode 100644 index 0000000..977c5ea --- /dev/null +++ b/Backup/YYControls/Helper/Common/Export.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Xml; +using System.Xml.Xsl; +using System.Web; +using System.Data; +using System.IO; + +namespace YYControls.Helper +{ + /// + /// ����Helper + /// diff --git a/Backup/YYControls/Helper/Common/String.cs b/Backup/YYControls/Helper/Common/String.cs new file mode 100644 index 0000000..f0068e5 --- /dev/null +++ b/Backup/YYControls/Helper/Common/String.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace YYControls.Helper +{ + /// + /// ����Helper + /// + //5 1 a s p x.com + public partial class Common + { + /// + /// �滻�����ַ� + /// diff --git a/Backup/YYControls/Helper/SmartGridView.cs b/Backup/YYControls/Helper/SmartGridView.cs new file mode 100644 index 0000000..fd33038 --- /dev/null +++ b/Backup/YYControls/Helper/SmartGridView.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.Helper +{ + /// + /// SmartGridView��Helper + /// + // 5_1_a_s_p_x.c_o_m + + public class SmartGridView diff --git a/Backup/YYControls/Properties/AssemblyInfo.cs b/Backup/YYControls/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..a0a7e3f --- /dev/null +++ b/Backup/YYControls/Properties/AssemblyInfo.cs @@ -0,0 +1,15 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +using System.Web.UI; + +// 有关程序集的常规信息通过下列属性集 +// 控制。更改这些属性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("YYControls")] +[assembly: AssemblyDescription("http://webabcd.cnblogs.com")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("http://webabcd.cnblogs.com")] +[assembly: AssemblyProduct("YYControls")] +[assembly: AssemblyCopyright("版权所有 (C) http://webabcd.cnblogs.com 2007")] diff --git a/Backup/YYControls/Resources/Icon.cs b/Backup/YYControls/Resources/Icon.cs new file mode 100644 index 0000000..26491e5 --- /dev/null +++ b/Backup/YYControls/Resources/Icon.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace YYControls.Resources +{ + /// + /// Icon + /// + public class Icon + { + + } +} diff --git a/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckbox.cs b/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckbox.cs new file mode 100644 index 0000000..15c8716 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckbox.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// ������ѡ��ʵ���� + /// + [ToolboxItem(false)] + public class CascadeCheckbox + { diff --git a/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckboxFunction.cs b/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckboxFunction.cs new file mode 100644 index 0000000..0e6d0b5 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckboxFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ�������ѡ�򣨸�ѡ���ȫѡ��ȡ��ȫѡ�� + /// + public class CascadeCheckboxFunction : ExtendFunction + { + /// diff --git a/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckboxes.cs b/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckboxes.cs new file mode 100644 index 0000000..bce6442 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CascadeCheckbox/CascadeCheckboxes.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Collections; +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// CascadeCheckbox������ + /// ע��Ҫ�̳���CollectionBase + /// + [ToolboxItem(false)] diff --git a/Backup/YYControls/SmartGridView/CascadeCheckbox/Property.cs b/Backup/YYControls/SmartGridView/CascadeCheckbox/Property.cs new file mode 100644 index 0000000..8be6928 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CascadeCheckbox/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private CascadeCheckboxes _cascadeCheckboxes; diff --git a/Backup/YYControls/SmartGridView/CheckedRowCssClass/CheckedRowCssClass.cs b/Backup/YYControls/SmartGridView/CheckedRowCssClass/CheckedRowCssClass.cs new file mode 100644 index 0000000..8083973 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CheckedRowCssClass/CheckedRowCssClass.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// �е�ָ����ѡ��ѡ��ʱ�ı��е���ʽʵ���� + /// + [ToolboxItem(false)] + [TypeConverter(typeof(ExpandableObjectConverter))] + public class CheckedRowCssClass diff --git a/Backup/YYControls/SmartGridView/CheckedRowCssClass/CheckedRowCssClassFunction.cs b/Backup/YYControls/SmartGridView/CheckedRowCssClass/CheckedRowCssClassFunction.cs new file mode 100644 index 0000000..caacd47 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CheckedRowCssClass/CheckedRowCssClassFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ��е�ָ����ѡ��ѡ��ʱ�ı��е���ʽ + /// + public class CheckedRowCssClassFunction : ExtendFunction + { + /// diff --git a/Backup/YYControls/SmartGridView/CheckedRowCssClass/Property.cs b/Backup/YYControls/SmartGridView/CheckedRowCssClass/Property.cs new file mode 100644 index 0000000..ced3b10 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CheckedRowCssClass/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private CheckedRowCssClass _checkedRowCssClass; diff --git a/Backup/YYControls/SmartGridView/ClientButton/ClientButton.cs b/Backup/YYControls/SmartGridView/ClientButton/ClientButton.cs new file mode 100644 index 0000000..4ff51ec --- /dev/null +++ b/Backup/YYControls/SmartGridView/ClientButton/ClientButton.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; + +namespace YYControls +{ + /// + /// �ͻ��˰�ťʵ���ࣨ���ݰ�ť��CommandName������ͻ������ԣ� + /// + [ToolboxItem(false)] + [TypeConverter(typeof(ExpandableObjectConverter))] + public class ClientButton + { diff --git a/Backup/YYControls/SmartGridView/ClientButton/ClientButtonFunction.cs b/Backup/YYControls/SmartGridView/ClientButton/ClientButtonFunction.cs new file mode 100644 index 0000000..fec6cfc --- /dev/null +++ b/Backup/YYControls/SmartGridView/ClientButton/ClientButtonFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ����ݰ�ť��CommandName������ͻ������� + /// + public class ClientButtonFunction : ExtendFunction + { + /// diff --git a/Backup/YYControls/SmartGridView/ClientButton/ClientButtons.cs b/Backup/YYControls/SmartGridView/ClientButton/ClientButtons.cs new file mode 100644 index 0000000..eb365b1 --- /dev/null +++ b/Backup/YYControls/SmartGridView/ClientButton/ClientButtons.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Collections; +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// ClientButton������ + /// ע��Ҫ�̳���CollectionBase + /// + [ToolboxItem(false)] diff --git a/Backup/YYControls/SmartGridView/ClientButton/Property.cs b/Backup/YYControls/SmartGridView/ClientButton/Property.cs new file mode 100644 index 0000000..f10d60b --- /dev/null +++ b/Backup/YYControls/SmartGridView/ClientButton/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private ClientButtons _clientButtons; diff --git a/Backup/YYControls/SmartGridView/ContextMenu/ContextMenu.cs b/Backup/YYControls/SmartGridView/ContextMenu/ContextMenu.cs new file mode 100644 index 0000000..2fef5cc --- /dev/null +++ b/Backup/YYControls/SmartGridView/ContextMenu/ContextMenu.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// �Ҽ��˵�ʵ���� + /// + [ToolboxItem(false)] + public class ContextMenu + { diff --git a/Backup/YYControls/SmartGridView/ContextMenu/ContextMenuFunction.cs b/Backup/YYControls/SmartGridView/ContextMenu/ContextMenuFunction.cs new file mode 100644 index 0000000..216fc25 --- /dev/null +++ b/Backup/YYControls/SmartGridView/ContextMenu/ContextMenuFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ��������������Ҽ��˵� + /// + public class ContextMenuFunction : ExtendFunction + { + List _rowRightClickButtonUniqueIdList = new List(); diff --git a/Backup/YYControls/SmartGridView/ContextMenu/ContextMenus.cs b/Backup/YYControls/SmartGridView/ContextMenu/ContextMenus.cs new file mode 100644 index 0000000..712f4e8 --- /dev/null +++ b/Backup/YYControls/SmartGridView/ContextMenu/ContextMenus.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Collections; +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// ContextMenu������ + /// ע��Ҫ�̳���CollectionBase + /// + [ToolboxItem(false)] diff --git a/Backup/YYControls/SmartGridView/ContextMenu/Property.cs b/Backup/YYControls/SmartGridView/ContextMenu/Property.cs new file mode 100644 index 0000000..bf35cc0 --- /dev/null +++ b/Backup/YYControls/SmartGridView/ContextMenu/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private ContextMenus _contextMenus; diff --git a/Backup/YYControls/SmartGridView/CustomPagerSettings/CustomPagerSettings.cs b/Backup/YYControls/SmartGridView/CustomPagerSettings/CustomPagerSettings.cs new file mode 100644 index 0000000..22ae19c --- /dev/null +++ b/Backup/YYControls/SmartGridView/CustomPagerSettings/CustomPagerSettings.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// �Զ����ҳ��ʽʵ���� + /// + [ToolboxItem(false)] + [TypeConverter(typeof(ExpandableObjectConverter))] + public class CustomPagerSettings diff --git a/Backup/YYControls/SmartGridView/CustomPagerSettings/CustomPagerSettingsFunction.cs b/Backup/YYControls/SmartGridView/CustomPagerSettings/CustomPagerSettingsFunction.cs new file mode 100644 index 0000000..6bf598b --- /dev/null +++ b/Backup/YYControls/SmartGridView/CustomPagerSettings/CustomPagerSettingsFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; +using System.ComponentModel; +using System.Collections; +using System.Data; +using System.Web.UI.HtmlControls; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ��Զ����ҳ��ʽ diff --git a/Backup/YYControls/SmartGridView/CustomPagerSettings/Property.cs b/Backup/YYControls/SmartGridView/CustomPagerSettings/Property.cs new file mode 100644 index 0000000..66c50b5 --- /dev/null +++ b/Backup/YYControls/SmartGridView/CustomPagerSettings/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private CustomPagerSettings _customPagerSettings; diff --git a/Backup/YYControls/SmartGridView/Event.cs b/Backup/YYControls/SmartGridView/Event.cs new file mode 100644 index 0000000..f44bb2e --- /dev/null +++ b/Backup/YYControls/SmartGridView/Event.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.ComponentModel; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView����¼����� + /// + public partial class SmartGridView + { diff --git a/Backup/YYControls/SmartGridView/Export/Export.cs b/Backup/YYControls/SmartGridView/Export/Export.cs new file mode 100644 index 0000000..8579432 --- /dev/null +++ b/Backup/YYControls/SmartGridView/Export/Export.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Data; +using System.Web.UI.WebControls; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + /// diff --git a/Backup/YYControls/SmartGridView/ExtendFunction.cs b/Backup/YYControls/SmartGridView/ExtendFunction.cs new file mode 100644 index 0000000..9e9c102 --- /dev/null +++ b/Backup/YYControls/SmartGridView/ExtendFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ�����࣬������ + /// + public abstract class ExtendFunction + { + /// + /// SmartGridView������� + /// + protected SmartGridView _sgv; diff --git a/Backup/YYControls/SmartGridView/FixRowColumn/FixRowColumn.cs b/Backup/YYControls/SmartGridView/FixRowColumn/FixRowColumn.cs new file mode 100644 index 0000000..4b8de15 --- /dev/null +++ b/Backup/YYControls/SmartGridView/FixRowColumn/FixRowColumn.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace YYControls +{ + /// + /// �̶�ָ���С�ָ���е�ʵ���� + /// + [ToolboxItem(false)] + [TypeConverter(typeof(ExpandableObjectConverter))] diff --git a/Backup/YYControls/SmartGridView/FixRowColumn/FixRowColumnFunction.cs b/Backup/YYControls/SmartGridView/FixRowColumn/FixRowColumnFunction.cs new file mode 100644 index 0000000..14a20be --- /dev/null +++ b/Backup/YYControls/SmartGridView/FixRowColumn/FixRowColumnFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ��̶�ָ���С�ָ���� + /// + public class FixRowColumnFunction : ExtendFunction + { + /// diff --git a/Backup/YYControls/SmartGridView/FixRowColumn/Property.cs b/Backup/YYControls/SmartGridView/FixRowColumn/Property.cs new file mode 100644 index 0000000..4a8d0fa --- /dev/null +++ b/Backup/YYControls/SmartGridView/FixRowColumn/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private FixRowColumn _fixRowColumn; diff --git a/Backup/YYControls/SmartGridView/GridViewTableCell.cs b/Backup/YYControls/SmartGridView/GridViewTableCell.cs new file mode 100644 index 0000000..0a71cd1 --- /dev/null +++ b/Backup/YYControls/SmartGridView/GridViewTableCell.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; + +namespace YYControls +{ + /// + /// GridViewTableCell + /// + public class GridViewTableCell + { + private TableCell _tableCell; + private int _columnIndex; diff --git a/Backup/YYControls/SmartGridView/Handler.cs b/Backup/YYControls/SmartGridView/Handler.cs new file mode 100644 index 0000000..0bef7b2 --- /dev/null +++ b/Backup/YYControls/SmartGridView/Handler.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView���ί�в��� + /// + public partial class SmartGridView + { + /// diff --git a/Backup/YYControls/SmartGridView/MouseOverCssClass/MouseOverCssClassFunction.cs b/Backup/YYControls/SmartGridView/MouseOverCssClass/MouseOverCssClassFunction.cs new file mode 100644 index 0000000..57c28ec --- /dev/null +++ b/Backup/YYControls/SmartGridView/MouseOverCssClass/MouseOverCssClassFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ���꾭����ʱ�ı��е���ʽ + /// + public class MouseOverCssClassFunction : ExtendFunction + { + /// + /// ���캯�� diff --git a/Backup/YYControls/SmartGridView/MouseOverCssClass/Property.cs b/Backup/YYControls/SmartGridView/MouseOverCssClass/Property.cs new file mode 100644 index 0000000..99c5063 --- /dev/null +++ b/Backup/YYControls/SmartGridView/MouseOverCssClass/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private string _mouseOverCssClass; + /// diff --git a/Backup/YYControls/SmartGridView/Resources/ScriptLibrary.js b/Backup/YYControls/SmartGridView/Resources/ScriptLibrary.js new file mode 100644 index 0000000..54b99fc --- /dev/null +++ b/Backup/YYControls/SmartGridView/Resources/ScriptLibrary.js @@ -0,0 +1 @@ +function yy_sgv_get(id){return document.getElementById(id);}function yy_sgv_changeCssClass(_2,_3){if(typeof (_2)=="object"){_2.className=_3;}else{if(typeof (_2)=="string"){yy_sgv_get(_2).className=_3;}}}String.prototype.yy_sgv_endsWith=function(s){var _5=new RegExp(s+"$");return _5.test(this);};String.prototype.yy_sgv_startsWith=function(s){var _7=new RegExp("^"+s);return _7.test(this);};function yy_sgv_addEvent(_8,_9,fn){if(_8.addEventListener){_8.addEventListener(_9,fn,true);return true;}else{if(_8.attachEvent){var r=_8.attachEvent("on"+_9,fn);return r;}else{return false;}}}var yy_sgv_originalCssClassName="";function yy_sgv_changeMouseOverCssClass(_c,_d){if(arguments.length==1){yy_sgv_changeCssClass(_c,yy_sgv_originalCssClassName);yy_sgv_originalCssClassName="";}else{yy_sgv_originalCssClassName=_c.className;yy_sgv_changeCssClass(_c,_d);}}var yy_sgv_ccGridView_pre=new Array();var yy_sgv_ccAll_post=new Array();var yy_sgv_ccItem_post=new Array();function yy_sgv_ccCheck(e){var _f=e||window.event;var obj=_f.target||_f.srcElement;var _11=-1;for(var i=0;i";_30+=_31[i];_30+="";}}_30+="";_2f.innerHTML=_30;_2f.style.visibility="visible";_2f.onmousedown=function(e){e=e||window.event;document.all?e.cancelBubble=true:e.stopPropagation();};_2f.onselectstart=function(){return false;};document.body.appendChild(_2f);this.set_menu(_2f);e=e||window.event;var _36=document.documentElement;var x=_36.scrollLeft+e.clientX;var y=_36.scrollTop+e.clientY;if(this.get_menu().clientWidth+e.clientX>_36.clientWidth){x=x-this.get_menu().clientWidth;}if(this.get_menu().clientHeight+e.clientY>_36.clientHeight){y=y-this.get_menu().clientHeight;}this.get_menu().style.left=x+"px";this.get_menu().style.top=y+"px";this.get_menu().style.visibility="visible";this.set_handle(null);this.set_menuItem(null);this.set_target(null);return false;},hidden:function(){if(this.get_menu()!=null){this.get_menu().style.visibility="hidden";}}};if(document.all){window.attachEvent("onload",yy_sgv_rightMenu=new yy_sgv_rightMenu());}else{window.addEventListener("load",yy_sgv_rightMenu=new yy_sgv_rightMenu(),false);}function yy_sgv_setRightMenu(_39,_3a,_3b,_3c){yy_sgv_rightMenu.set_handle(_39);yy_sgv_rightMenu.set_menuItem(_3a);yy_sgv_rightMenu.set_target(_3b);yy_sgv_rightMenu.set_cssClass(_3c);} diff --git a/Backup/YYControls/SmartGridView/Resources/ScriptLibraryDebug.js b/Backup/YYControls/SmartGridView/Resources/ScriptLibraryDebug.js new file mode 100644 index 0000000..c9fb7a1 --- /dev/null +++ b/Backup/YYControls/SmartGridView/Resources/ScriptLibraryDebug.js @@ -0,0 +1,15 @@ +//---------------------------- +// http://webabcd.cnblogs.com/ +//---------------------------- + +/*Helper 开始*/ +function yy_sgv_get(id) +{ +/// $get() + + return document.getElementById(id); +} + +function yy_sgv_changeCssClass(param, cssClass) +{ +/// 根据ID或元素设置其样式 css 类名 diff --git a/Backup/YYControls/SmartGridView/Resources/StyleLibrary.css b/Backup/YYControls/SmartGridView/Resources/StyleLibrary.css new file mode 100644 index 0000000..1f897d0 --- /dev/null +++ b/Backup/YYControls/SmartGridView/Resources/StyleLibrary.css @@ -0,0 +1,15 @@ +/*固定行*/ +.yy_sgv_fixRow +{ + position: relative; top: expression(this.offsetParent.scrollTop - 1); +} +/*固定列*/ +.yy_sgv_fixCol +{ + position: relative; left: expression(this.offsetParent.scrollLeft - 1); +} +/*高优先级的固定*/ +.yy_sgv_fixHigh +{ + z-index: 9999; +} diff --git a/Backup/YYControls/SmartGridView/RowClick/Property.cs b/Backup/YYControls/SmartGridView/RowClick/Property.cs new file mode 100644 index 0000000..e39c953 --- /dev/null +++ b/Backup/YYControls/SmartGridView/RowClick/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private string _boundRowClickCommandName; diff --git a/Backup/YYControls/SmartGridView/RowClick/RowClickFunction.cs b/Backup/YYControls/SmartGridView/RowClick/RowClickFunction.cs new file mode 100644 index 0000000..6b13d97 --- /dev/null +++ b/Backup/YYControls/SmartGridView/RowClick/RowClickFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ���Ӧ�еĵ����¼� + /// + public class RowClickFunction : ExtendFunction + { + List _rowClickButtonUniqueIdList = new List(); diff --git a/Backup/YYControls/SmartGridView/RowDoubleClick/Property.cs b/Backup/YYControls/SmartGridView/RowDoubleClick/Property.cs new file mode 100644 index 0000000..49a0354 --- /dev/null +++ b/Backup/YYControls/SmartGridView/RowDoubleClick/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private string _boundRowDoubleClickCommandName; diff --git a/Backup/YYControls/SmartGridView/RowDoubleClick/RowDoubleClickFunction.cs b/Backup/YYControls/SmartGridView/RowDoubleClick/RowDoubleClickFunction.cs new file mode 100644 index 0000000..3a120f0 --- /dev/null +++ b/Backup/YYControls/SmartGridView/RowDoubleClick/RowDoubleClickFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ���Ӧ�е�˫���¼� + /// + public class RowDoubleClickFunction : ExtendFunction + { + List _rowDoubleClickButtonUniqueIdList = new List(); diff --git a/Backup/YYControls/SmartGridView/SmartGridView.cs b/Backup/YYControls/SmartGridView/SmartGridView.cs new file mode 100644 index 0000000..9ea87a0 --- /dev/null +++ b/Backup/YYControls/SmartGridView/SmartGridView.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; +using YYControls.SmartGridViewFunction; + +[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.Asc.gif", "image/gif")] +[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.Desc.gif", "image/gif")] +[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.Icon.bmp", "image/bmp")] + +[assembly: System.Web.UI.WebResource("YYControls.SmartGridView.Resources.StyleLibrary.css", "text/css")] + +#if DEBUG diff --git a/Backup/YYControls/SmartGridView/SmartSorting/Property.cs b/Backup/YYControls/SmartGridView/SmartSorting/Property.cs new file mode 100644 index 0000000..286f155 --- /dev/null +++ b/Backup/YYControls/SmartGridView/SmartSorting/Property.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// SmartGridView������Բ��� + /// + public partial class SmartGridView + { + private SmartSorting _smartSorting; diff --git a/Backup/YYControls/SmartGridView/SmartSorting/SmartSorting.cs b/Backup/YYControls/SmartGridView/SmartSorting/SmartSorting.cs new file mode 100644 index 0000000..0d19836 --- /dev/null +++ b/Backup/YYControls/SmartGridView/SmartSorting/SmartSorting.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls +{ + /// + /// �߼�������ʵ���� + /// + [ToolboxItem(false)] + [TypeConverter(typeof(ExpandableObjectConverter))] + public class SmartSorting diff --git a/Backup/YYControls/SmartGridView/SmartSorting/SmartSortingFunction.cs b/Backup/YYControls/SmartGridView/SmartSorting/SmartSortingFunction.cs new file mode 100644 index 0000000..96e5234 --- /dev/null +++ b/Backup/YYControls/SmartGridView/SmartSorting/SmartSortingFunction.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.Web.UI.WebControls; +using System.Web.UI; + +namespace YYControls.SmartGridViewFunction +{ + /// + /// ��չ���ܣ��������������״̬��ʾ + /// + public class SmartSortingFunction : ExtendFunction + { + /// diff --git a/Backup/YYControls/SmartGridView/history.txt b/Backup/YYControls/SmartGridView/history.txt new file mode 100644 index 0000000..9da26b4 --- /dev/null +++ b/Backup/YYControls/SmartGridView/history.txt @@ -0,0 +1,7 @@ +2007.08.09 +���BUG +���������޷��������������ʹ�� +BUG�ύ�ߣ����ӣ�http://cancelpj.cnblogs.com/�� + +2007.08.08 +��ʽ�淢�� diff --git a/Backup/YYControls/SmartGridView/readme.txt b/Backup/YYControls/SmartGridView/readme.txt new file mode 100644 index 0000000..0b897d5 --- /dev/null +++ b/Backup/YYControls/SmartGridView/readme.txt @@ -0,0 +1,15 @@ +��չGridView�ؼ���ʽ�� + + +��ϸ���� +http://www.cnblogs.com/webabcd/archive/2007/02/04/639830.html + + +�ؼ�ʹ�� +1����꾭���е�ʱ��ı���е���ʽ������뿪�е�ʱ��ָ����е���ʽ +ʹ�÷������������ԣ��� +MouseOverCssClass - ��꾭����ʱ�е� CSS ���� + +2���Զ���ֶν��и����������򡢽��������״̬��ʾ +ʹ�÷���������SmartSorting�������ԣ��� +AllowSortTip - �Ƿ�����������ʾ diff --git a/Backup/YYControls/SmartGridViewAlpha/ChangeRowCSSByCheckBox.cs b/Backup/YYControls/SmartGridViewAlpha/ChangeRowCSSByCheckBox.cs new file mode 100644 index 0000000..90d1e41 --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/ChangeRowCSSByCheckBox.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// ͨ���е�CheckBox��ѡ��������޸��е���ʽ + /// ʵ���� + /// + [TypeConverter(typeof(ExpandableObjectConverter))] + public class ChangeRowCSSByCheckBox + { diff --git a/Backup/YYControls/SmartGridViewAlpha/CheckboxAll.cs b/Backup/YYControls/SmartGridViewAlpha/CheckboxAll.cs new file mode 100644 index 0000000..f1c535e --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/CheckboxAll.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// CheckboxAll ��ժҪ˵���� + /// + [ToolboxItem(false)] + public class CheckboxAll + { diff --git a/Backup/YYControls/SmartGridViewAlpha/CheckboxAlls.cs b/Backup/YYControls/SmartGridViewAlpha/CheckboxAlls.cs new file mode 100644 index 0000000..b545c8a --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/CheckboxAlls.cs @@ -0,0 +1,15 @@ +using System.Collections; +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// CheckboxAlls ��ժҪ˵���� + /// ע��Ҫ�̳���CollectionBase + /// + [ + ToolboxItem(false), + ParseChildren(true) + ] + public class CheckboxAlls : CollectionBase diff --git a/Backup/YYControls/SmartGridViewAlpha/ConfirmButton.cs b/Backup/YYControls/SmartGridViewAlpha/ConfirmButton.cs new file mode 100644 index 0000000..b71ed4b --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/ConfirmButton.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// ConfirmButton ��ժҪ˵���� + /// + [ToolboxItem(false)] + [TypeConverter(typeof(ConfirmButtonConverter))] + public class ConfirmButton diff --git a/Backup/YYControls/SmartGridViewAlpha/ConfirmButtonConverter.cs b/Backup/YYControls/SmartGridViewAlpha/ConfirmButtonConverter.cs new file mode 100644 index 0000000..694d904 --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/ConfirmButtonConverter.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Globalization; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// ����ת���� + /// + public class ConfirmButtonConverter : ExpandableObjectConverter + { + /// diff --git a/Backup/YYControls/SmartGridViewAlpha/ConfirmButtons.cs b/Backup/YYControls/SmartGridViewAlpha/ConfirmButtons.cs new file mode 100644 index 0000000..3daf11f --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/ConfirmButtons.cs @@ -0,0 +1,15 @@ +using System.Collections; +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// ProjectGroups ��ժҪ˵���� + /// ע��Ҫ�̳���CollectionBase + /// + [ + ToolboxItem(false), + ParseChildren(true) + ] + public class ConfirmButtons : CollectionBase diff --git a/Backup/YYControls/SmartGridViewAlpha/ContextMenu.cs b/Backup/YYControls/SmartGridViewAlpha/ContextMenu.cs new file mode 100644 index 0000000..1bfad8e --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/ContextMenu.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// ContextMenu ��ժҪ˵���� + /// + [ToolboxItem(false)] + public class ContextMenu + { diff --git a/Backup/YYControls/SmartGridViewAlpha/ContextMenus.cs b/Backup/YYControls/SmartGridViewAlpha/ContextMenus.cs new file mode 100644 index 0000000..66bdf06 --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/ContextMenus.cs @@ -0,0 +1,15 @@ +using System.Collections; +using System.ComponentModel; +using System.Web.UI; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// ContextMenus ��ժҪ˵���� + /// ע��Ҫ�̳���CollectionBase + /// + [ + ToolboxItem(false), + ParseChildren(true) + ] + public class ContextMenus : CollectionBase diff --git a/Backup/YYControls/SmartGridViewAlpha/FixRowCol.cs b/Backup/YYControls/SmartGridViewAlpha/FixRowCol.cs new file mode 100644 index 0000000..786fbc3 --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/FixRowCol.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +using System.ComponentModel; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// �̶���ͷ��ָ���л�ָ���е�ʵ���� + /// + [TypeConverter(typeof(ExpandableObjectConverter))] + public class FixRowCol + { + private bool _isFixHeader; diff --git a/Backup/YYControls/SmartGridViewAlpha/JavaScriptConstant.cs b/Backup/YYControls/SmartGridViewAlpha/JavaScriptConstant.cs new file mode 100644 index 0000000..52b8b5a --- /dev/null +++ b/Backup/YYControls/SmartGridViewAlpha/JavaScriptConstant.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace YYControls.SmartGridViewAlpha +{ + /// + /// javascript + /// + public class JavaScriptConstant + { + #region ��ѡ��ȫѡ�Ľű� + internal const string jsCheckAll = @"