XXXX系统V1.0
源代码
<html>
<head runat="server">
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div align="center">
<table align="center">
<tr align="center">
<td>
<dx:ASPxLabel ID="lblTitle" runat="server" Text="" Font-Size="14px">
</dx:ASPxLabel>
</td>
</tr>
</table>
<asp:Panel ID="Panel1" runat="server" Width="100%" Height="400px" ScrollBars="Auto"
CssClass="GDT">
<dx:ASPxTreeList ID="ASPxTreeList1" runat="server" Width="100%" Height="100%" BackColor="#FFFFFF"
OnDataBound="treeList_DataBound">
<SettingsSelection Enabled="True" AllowSelectAll="true" />
<SettingsBehavior AllowFocusedNode="true" ExpandCollapseAction = "NodeClick"/>
<Settings SuppressOuterGridLines="True" />
</dx:ASPxTreeList>
</asp:Panel>
<table >
<tr align="center">
<td colspan="2" align="right">
<dx:ASPxButton ID="btnSubmit" runat="server" Text="确 定" Width="56px"
Height="22px" onclick="btnSubmit_Click">
<FocusRectPaddings Padding="0px" />
<Paddings Padding="0px" />
</dx:ASPxButton>
</td>
<td colspan="2" align="left">
<dx:ASPxButton ID="btnRevoke" runat="server" Text="取 消" Width="56px" Height="22px"
AutoPostBack="false">
<ClientSideEvents Click="function(s, e) {
window.opener=null;
window.close();
}" />
<FocusRectPaddings Padding="0px" />
<Paddings Padding="0px" />
</dx:ASPxButton>
</td>
</tr>
</table>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Empiresoft.Data.DB;
using DevExpress.Web.ASPxTreeList;
using System.Collections.Generic;
namespace JNJGPT.DNCJJG
{
public partial class AddFCJDB : System.Web.UI.Page
{
#region 页面加载
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.QueryString["N"] != null && Request.QueryString["Y"] !=null)
{
ViewState["Nian"] = Request.QueryString["N"];
ViewState["Yue"] = Request.QueryString["Y"];
}
DateTime _dtNow = GG.PubCommonMethod.GetNow();
if (Convert.ToInt16(ViewState["Nian"]) >= _dtNow.Year && Convert.ToInt16(ViewState["Yue"]) > _dtNow.Month)
{
ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.CurrentHandler, typeof(System.Web.UI.Page),
return;
}
ViewState["JZDB"] = this.GetJZDB();
if (((DataTable)ViewState["JZDB"]).Rows.Count > 0)
{
InitTreeList();
GG.PubCommonControl.BASPxTreeList(this.ASPxTreeList1, (DataTable)ViewState["JZDB"], "JZBH", "SJBH", 0);
发布评论