上篇《基於WebForm+EasyUI的業務管理系統造成之旅 -- 施工計劃安排》,主要介紹整個施工計劃列表與編輯界面。html
下面看看施工計劃查詢(ⅠⅡⅢ ⅣⅤⅥ Ⅶ Ⅷ)app
施工計劃查詢界面,以下圖所示。post
點擊【查詢】,按年月得出該年月施工計劃,具體代碼以下this
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 }
經過報表數據鑽取方式,查看詳細信息spa