commit
77cdc8cb05
@ -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")]
|
@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace YYControls.Resources
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Icon
|
||||||
|
/// </summary>
|
||||||
|
public class Icon
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace YYControls
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// GridViewTableCell
|
||||||
|
/// </summary>
|
||||||
|
public class GridViewTableCell
|
||||||
|
{
|
||||||
|
private TableCell _tableCell;
|
||||||
|
private int _columnIndex;
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,15 @@
|
|||||||
|
//----------------------------
|
||||||
|
// http://webabcd.cnblogs.com/
|
||||||
|
//----------------------------
|
||||||
|
|
||||||
|
/*Helper 开始*/
|
||||||
|
function yy_sgv_get(id)
|
||||||
|
{
|
||||||
|
/// <summary>$get()</summary>
|
||||||
|
|
||||||
|
return document.getElementById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
function yy_sgv_changeCssClass(param, cssClass)
|
||||||
|
{
|
||||||
|
/// <summary>根据ID或元素设置其样式 css 类名</summary>
|
@ -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;
|
||||||
|
}
|
@ -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
|
@ -0,0 +1 @@
|
|||||||
|
String.prototype.yy_stv_startsWith=function(s){var _2=new RegExp("^"+s);return _2.test(this);};function yy_stv_addEvent(_3,_4,fn){if(_3.addEventListener){_3.addEventListener(_4,fn,true);return true;}else{if(_3.attachEvent){var r=_3.attachEvent("on"+_4,fn);return r;}else{return false;}}}var yy_stv_ccTreeView_pre=new Array();function yy_stv_ccClickCheckbox(e){var _8=e||window.event;var _9=_8.target||_8.srcElement;yy_stv_checkChildCheckbox(_9);yy_stv_checkCertainCheckbox(_9);}function yy_stv_checkParentCheckbox(_a,_b){var _c=_a.parentNode.parentNode.childNodes;for(var i=1;i<_c.length;i++){if(_c[i]==_a.parentNode){if(typeof (_c[i-1])=="undefined"||typeof (_c[i-1].rows)=="undefined"){return;}for(var j=0;j<_c[i-1].rows[0].cells.length;j++){var _f=_c[i-1].rows[0].cells[j].childNodes[0];if(_f.tagName=="INPUT"&&_f.type=="checkbox"){_f.checked=_b;yy_stv_checkCertainCheckbox(_c[i-1]);return;}}}}}function yy_stv_checkChildCheckbox(obj){var _11;if(obj.tagName=="INPUT"&&obj.type=="checkbox"){_11=obj.checked;do{obj=obj.parentNode;}while(obj.tagName!="TABLE");}var _12=obj.parentNode.childNodes;for(var i=0;i<_12.length-1;i++){if(_12[i]==obj&&_12[i+1].tagName=="DIV"){var _14=_12[i+1].getElementsByTagName("INPUT");for(j=0;j<_14.length;j++){if(_14[j].type=="checkbox"){_14[j].checked=_11;}}}}}function yy_stv_checkCertainCheckbox(obj){var _16=0;var _17=0;if(obj.tagName=="INPUT"&&obj.type=="checkbox"){do{obj=obj.parentNode;}while(obj.tagName!="TABLE");}var _18=obj.parentNode.getElementsByTagName("TABLE");if(typeof (_18)=="undefined"){return;}for(var i=0;i<_18.length;i++){for(var j=0;j<_18[i].rows[0].cells.length;j++){var chk=_18[i].rows[0].cells[j].childNodes[0];if(chk.tagName=="INPUT"&&chk.type=="checkbox"){if(chk.checked){_16++;}else{_17++;}}}}if(_17==0){yy_stv_checkParentCheckbox(obj,true);}else{yy_stv_checkParentCheckbox(obj,false);}}function yy_stv_attachCheckboxClickListener(){var _1c=document.getElementsByTagName("INPUT");for(i=0;i<_1c.length;i++){if(_1c[i].type=="checkbox"){for(j=0;j<yy_stv_ccTreeView_pre.length;j++){if(_1c[i].id.yy_stv_startsWith(yy_stv_ccTreeView_pre[j])){yy_stv_addEvent(_1c[i],"click",yy_stv_ccClickCheckbox);break;}}}}}if(document.all){window.attachEvent("onload",yy_stv_attachCheckboxClickListener);}else{window.addEventListener("load",yy_stv_attachCheckboxClickListener,false);}
|
@ -0,0 +1,15 @@
|
|||||||
|
//----------------------------
|
||||||
|
// http://webabcd.cnblogs.com/
|
||||||
|
//----------------------------
|
||||||
|
|
||||||
|
/*Helper 开始*/
|
||||||
|
String.prototype.yy_stv_startsWith = function(s)
|
||||||
|
{
|
||||||
|
/// <summary>StartsWith()</summary>
|
||||||
|
|
||||||
|
var reg = new RegExp("^" + s);
|
||||||
|
return reg.test(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
function yy_stv_addEvent(obj, evtType, fn)
|
||||||
|
{
|
@ -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 YYControls.SmartTreeViewFunction;
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
[assembly: System.Web.UI.WebResource("YYControls.SmartTreeView.Resources.ScriptLibraryDebug.js", "text/javascript")]
|
||||||
|
#else
|
||||||
|
[assembly: System.Web.UI.WebResource("YYControls.SmartTreeView.Resources.ScriptLibrary.js", "text/javascript")]
|
||||||
|
#endif
|
@ -0,0 +1,15 @@
|
|||||||
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProductVersion>8.0.50727</ProductVersion>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<ProjectGuid>{B542A4FB-3FDF-4A3D-82BD-FB8D86D75055}</ProjectGuid>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
|
<RootNamespace>YYControls</RootNamespace>
|
||||||
|
<AssemblyName>YYControls</AssemblyName>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
@ -0,0 +1,15 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<!-- saved from url=(0014)about:internet -->
|
||||||
|
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-16" http-equiv="Content-Type" /><title _locID="ConversionReport0">
|
||||||
|
Migration Report
|
||||||
|
</title><style>
|
||||||
|
/* Body style, for the entire document */
|
||||||
|
body
|
||||||
|
{
|
||||||
|
background: #F3F3F4;
|
||||||
|
color: #1E1E1F;
|
||||||
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// OjbData 的摘要说明
|
@ -0,0 +1,15 @@
|
|||||||
|
body, table, tr, td
|
||||||
|
{
|
||||||
|
margin: 0;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
textarea,input,select
|
||||||
|
{
|
||||||
|
font-size: 12px; color: #000000; font-weight: normal;
|
||||||
|
border-top-width : 1px; border-right-width : 1px;
|
||||||
|
border-bottom-width : 1px; border-left-width : 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header
|
||||||
|
{
|
||||||
|
width: 100%;
|
@ -0,0 +1,15 @@
|
|||||||
|
.OverRow
|
||||||
|
{
|
||||||
|
background-color: #A1ADF1;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.SelectedRow
|
||||||
|
{
|
||||||
|
background-color: #D1DDF1;
|
||||||
|
color: #333333;
|
||||||
|
font-weight: bold;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.Row
|
||||||
|
{
|
||||||
|
background-color: #EFF3FB;
|
@ -0,0 +1,5 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
|
||||||
|
CodeFile="Default.aspx.cs" Inherits="_Default" Title="YYControls演示" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
|
||||||
|
</asp:Content>
|
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
|
||||||
|
public partial class _Default : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
@ -0,0 +1,15 @@
|
|||||||
|
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<title>YYControls测试</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<div id="header">
|
||||||
|
<div>
|
||||||
|
<asp:Label ID="lblTitle" runat="server" Text="YYControls" CssClass="Title" />
|
||||||
|
<span class="breadcrumb">
|
||||||
|
<asp:SiteMapPath ID="SiteMapPath1" runat="server">
|
||||||
|
</asp:SiteMapPath>
|
||||||
|
<a href="http://webabcd.cnblogs.com" target="_blank">http://webabcd.cnblogs.com</a>
|
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
|
||||||
|
public partial class MasterPage : System.Web.UI.MasterPage
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
@ -0,0 +1,15 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
|
||||||
|
CodeFile="SmartGridView.aspx.cs" Inherits="SmartGridView" Title="SmartGridView测试"
|
||||||
|
EnableViewState="false" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
|
||||||
|
<div id="result" runat="Server">
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
SmartGridView1</div>
|
||||||
|
<div style="margin: 5px 0px">
|
||||||
|
<asp:Button ID="btnExcel" runat="server" Text="导出为Excel" CommandName="ExportExcel"
|
||||||
|
OnCommand="btn_Command" />
|
||||||
|
<asp:Button ID="btnWord" runat="server" Text="导出为Word" CommandName="ExportWord" OnCommand="btn_Command" />
|
||||||
|
<asp:Button ID="btnText" runat="server" Text="导出为Text" CommandName="ExportText" OnCommand="btn_Command" /></div>
|
||||||
|
<yyc:SmartGridView ID="sgv1" runat="server" AllowPaging="True" AllowSorting="true"
|
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
|
||||||
|
public partial class SmartGridView : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
|
||||||
|
public partial class SmartGridViewAlpha : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
@ -0,0 +1,15 @@
|
|||||||
|
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
|
||||||
|
CodeFile="SmartTreeView.aspx.cs" Inherits="SmartTreeView" Title="SmartTreeView测试" %>
|
||||||
|
|
||||||
|
<asp:Content ID="Content1" ContentPlaceHolderID="cph1" runat="Server">
|
||||||
|
<div style="float: left; width: 200px;">
|
||||||
|
SmartTreeView1
|
||||||
|
<yyc:SmartTreeView ID="stv1" runat="server" AllowCascadeCheckbox="True">
|
||||||
|
</yyc:SmartTreeView>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
SmartTreeView2
|
||||||
|
<yyc:SmartTreeView ID="stv2" runat="server" AllowCascadeCheckbox="True">
|
||||||
|
</yyc:SmartTreeView>
|
||||||
|
</div>
|
||||||
|
<p>
|
@ -0,0 +1,15 @@
|
|||||||
|
using System;
|
||||||
|
using System.Data;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Security;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
using System.Web.UI.WebControls.WebParts;
|
||||||
|
using System.Web.UI.HtmlControls;
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
public partial class SmartTreeView : System.Web.UI.Page
|
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<!--
|
||||||
|
注意: 除了手动编辑此文件以外,您还可以使用
|
||||||
|
Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
|
||||||
|
“网站”->“Asp.Net 配置”选项。
|
||||||
|
设置和注释的完整列表在
|
||||||
|
machine.config.comments 中,该文件通常位于
|
||||||
|
\Windows\Microsoft.Net\Framework\v2.x\Config 中
|
||||||
|
-->
|
||||||
|
<configuration>
|
||||||
|
<appSettings/>
|
||||||
|
<connectionStrings/>
|
||||||
|
<!--
|
||||||
|
For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
|
||||||
|
|
@ -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")]
|
@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace YYControls.Resources
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Icon
|
||||||
|
/// </summary>
|
||||||
|
public class Icon
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue