61 lines
1.9 KiB
C#
61 lines
1.9 KiB
C#
using HL_FristAidPlatform_Public;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace HL_FristAidPlatform_EmergencyTriage
|
|
{
|
|
public partial class Form_TriageProportion : Form
|
|
{
|
|
public Form_TriageProportion()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void Form_TriageProportion_Load(object sender, EventArgs e)
|
|
{
|
|
timeControl1.TimeValue = DateTime.Now.AddMonths(-1).ToString();
|
|
timeControl2.TimeValue = DateTime.Now.ToString();
|
|
Query();
|
|
}
|
|
|
|
private void simpleButton_Query_Click(object sender, EventArgs e)
|
|
{
|
|
Query();
|
|
}
|
|
|
|
private void Query()
|
|
{
|
|
var dt = DBHelpClass.GetDataSet(string.Format("api/service/T_Service_EmergencyStatistics/GetTriageProportion?startTime={0}&endTime={1}", timeControl1.TimeValue.ToString(), timeControl2.TimeValue.ToString()));
|
|
gridControl1.DataSource = dt.Tables["table1"];
|
|
gridControl2.DataSource = dt.Tables["table2"];//三无人员统计
|
|
gridControl3.DataSource = dt.Tables["table4"];
|
|
foreach (DataRow item in dt.Tables["table3"].Rows)
|
|
{
|
|
if (item["Killip"] + "" == "1")
|
|
{
|
|
labelControl7.Text = item["人数"] + "";
|
|
}
|
|
if (item["Killip"] + "" == "2")
|
|
{
|
|
labelControl10.Text = item["人数"] + "";
|
|
}
|
|
if (item["Killip"] + "" == "3")
|
|
{
|
|
labelControl8.Text = item["人数"] + "";
|
|
}
|
|
if (item["Killip"] + "" == "4")
|
|
{
|
|
labelControl9.Text = item["人数"] + "";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|