Ejemplo n.º 1
0
 private void BtnStatistic_Click(object sender, EventArgs e)
 {
     string Parkingkey1 = System.Configuration.ConfigurationManager.AppSettings["PARKINGKEY1"];
     string Parkingkey2 = System.Configuration.ConfigurationManager.AppSettings["PARKINGKEY2"];
     var dict = ExcelHelper.Statistic(dataGridView1.DataSource as DataTable, Parkingkey1);
     var dict2 = ExcelHelper.Statistic2(dataGridView1.DataSource as DataTable, Parkingkey1,Parkingkey2);
     //var sum = ExcelHelper.Statistic2(dataGridView1.DataSource as DataTable, Parkingkey2);
     var form= new Statistic2Form(dict2, dict, "当前框选区域停车场泊车位统计图", "当前框选区域停车场个数统计图");
     //StatisticsForm form = new StatisticsForm(dict, "当前区域内停车设施情况",sum,Father.ParkingName,Parkingkey1);
     form.ShowDialog();
 }
Ejemplo n.º 2
0
 //停车场  行政区统计
 private void XZQStatistic_Click(object sender, EventArgs e)
 {
     var dict = GISHelper.Statistic(ParkingFeatureClass, "ZHENGQU", "BERTHNUM");
     var dict2 = GISHelper.Statistic(ParkingFeatureClass, "ZHENGQU", null);
     var form = new Statistic2Form(dict, dict2, "各个行政区内停车泊位数统计图", "各个行政区内停车场个数统计图");
     form.ShowDialog();
     //StatisticsForm statisticform = new StatisticsForm(dict, "各个行政区的泊位数统计图");
     //statisticform.ShowDialog();
 }