基于WebForm+EasyUI的业务管理系统形成之旅 -- 施工计划查询(Ⅷ)

上篇《基于WebForm+EasyUI的业务管理系统形成之旅 -- 施工计划安排》,主要介绍整个施工计划列表与编辑界面。

下面看看施工计划查询(ⅠⅡⅢ ⅣⅤⅥ Ⅶ Ⅷ)

一、施工计划查询


施工计划查询界面,如下图所示。

点击【查询】,按年月得出该年月施工计划,具体代码如下

 1 protected void lbtSearch_Click(object sender, EventArgs e)
 2     {
 3         if (CheckInput())
 4         {
 5             string connValue = DataFactory.BaseConnString;
 6             StiReport report = new StiReport();
 7             SqlConnection conn = new SqlConnection(connValue);
 8             string appDirectory = Utils.GetMapPath(@"/Main/PMC/ReportModules/Reports/ConPlanReport.mrt");
 9             report.Load(appDirectory);
10             report.Dictionary.Databases.Clear();
11             report.Dictionary.Databases.Add(new StiSqlDatabase("BasePermissionV10", connValue));
12             report.Dictionary.DataStore.Clear();
13             report.RegData("BasePermissionV10", conn);
14             report.Compile();
15             report["@sYear"] = this.ddlYear.SelectedValue;
16             report["@sMonth"] = this.ddlMonth.SelectedValue;
17             StiWebViewer1.Report = report;
18         }
19     }

通过报表数据钻取方式,查看详细信息

posted @ 2014-09-19 17:10  M.Zero  阅读(1155)  评论(2编辑  收藏  举报