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


    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();//遍历首页24ControlCollection,寻找是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

                //前台事件处理,调用了JSGetMCUIDInfo()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()

            {

               //遍历首页24ControlCollection,寻找是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 获取相应的自定义报表

            }

        }

    }

     查看更多精彩图片

     

  • 相关阅读:
    修复 XE8 for Android 方向传感器 headingX,Y,Z 不会动的问题
    修复 XE8 for Android 分享图片到 Gmail 权限不足的问题
    Firemonkey 载入 Style 皮肤 (*.fsf 二进制文件) 速度测试
    调整 FMX Android 文字显示「锯齿」效果
    [原创工具] ListView 调色盘 (Free)
    有关Linux的可执行程序
    Android 下配置一个 /dev/fb0 节点出来
    Android下运行Linux可执行程序
    数据库的范式
    rk3128 适配 USB 摄像头
  • 原文地址:https://www.cnblogs.com/Gemgin/p/3136347.html
Copyright © 2020-2023  润新知