您的位置:首页 > 其它

车辆信息统计报表管理系统--友好界面

2013-06-13 14:32 447 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using System.Data;
using System.Collections;

namespace CarsReports.Web
{
public partial class Youhao : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
SetDatetime();//绑定时间,好像没有用
SetDisabled();//无用
SetDocumentIds();//遍历首页24个ControlCollection,寻找是12个标准报表HyperLink控件
BindLangSortDDL(LangType.Simplified);//简体中文、繁体中文、英文 ddl
BindSortRBL();//绑定日、周、月统计分析图表
SetLangText(LangType.Simplified);//翻译界面
}
SimulateDatatable(); //获取车辆信息,绑定车牌号到控件上
BindVehicleNo();//关联车牌号和Mcuid,以便获取其他的信息
BindListButton(); ////加载已经保存的报表(最大数目:9*2=18)
}
//----------------------------------------------公共函数----------------------------------------
private void SimulateDatatable()
{
//车辆信息: MCUID 车牌号 司机ID 司机名 联系方式(有客户构建dataTable)
//绑定车牌号在首页youhao.aspx
//userID
BLL.PermanentData.PermanentDataTable = DataViewCar.ToTable();
}
private void BindVehicleNo()
{
DataTable dt = PermanentData.PermanentDataTable;
//相当于调用了SimulateDatatable()
//关联Mcuid与车牌号
//----------------CheckBoxList设置--------------------------
//根据Mcuid获取该车牌号所有信息 CheckBoxList1.item value值
//前台事件处理,调用了JS:GetMCUIDInfo()→VehicleNoSelected()。。。。
}
protected void CheckBoxList1_SelectedIndexChanged(object sender, EventArgs e)
{
//CheckBoxList后台事件处理
//车牌号绑定到CheckBoxList
}

private void SetDatetime()
{
//绑定时间
//没有用
}

protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
//自定义报表
//标准报表
//交替显示
}

private void BindSortRBL()
{
// public string Day_StatAnalysis = "日统计分析图表";
// Week_StatAnalysis = "周统计分析图表";
// Month_StatAnalysis = "月统计分析图表";
//翻译绑定
}

private void SetLangText(LangType pLangType)
{
// 翻译
// "日统计分析图表";
// "周统计分析图表";
// "月统计分析图表";
}
private void BindLangSortDDL(LangType pLangType)
{
//绑定
//简体中文、繁体中文、英文 ddl

}

protected void ddlLanguage_SelectedIndexChanged(object sender, EventArgs e)
{
//多语言选择后 各个控件翻译显示
}
//----------------------------------------------标准报表--------------------------------------
private void SetDocumentIds()
{
//遍历首页24个ControlCollection,寻找是12个标准报表HyperLink控件
//GetChart();
}
private string GetChart(string ChartName)
{
//HyperLink控件的ToolTip属性,获取DocumentName
// GetReportSchema();
}
ReportSchema GetReportSchema()
{
//根据DocumentName和函数GetDocumentId()获取DocumentId
}
//----------------------------------------------自定义报表------------------------------------
private void BindListButton()
{
//日、周、月按钮消息响应
//加载已经保存的报表(最大数目:9*2=18)
// GetDocuments();
}
public DataTable GetDocuments()
{
//userid != -1;
//根据TimeType 获取相应的自定义报表
}
}
}
0 && image.height>0){if(image.width>=700){this.width=700;this.height=image.height*700/image.width;}}" style="DISPLAY: block; MARGIN: 0px auto 10px; TEXT-ALIGN: center" alt=查看更多精彩图片 src="http://photo18.hexun.com/p/2009/0805/346127/b_944FF357917A3F4BB7BBFBBBCC28C8B3.jpg" border=0>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐