统计面板

Former-commit-id: 15dc8a8ba27b418e9ef26b3488cab72e49d764bc
TangShanKaiPing
wanggang 5 years ago
parent 6fc243a1e5
commit 2d6dfbb7b8

@ -80,6 +80,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Data\Entity.cs" />
<Compile Include="Data\GroupData.cs" />
<Compile Include="Data\LoginResponse.cs" />
<Compile Include="Data\MyDbContext.cs" />
<Compile Include="Data\PullResponse.cs" />

@ -0,0 +1,15 @@
namespace CameraCard.Data
{
public class GroupData
{
public string Class { get; set; }
public int Total { get; set; }
public int HasImage { get; set; }
public int NotHasImage { get; set; }
public int HasUpload { get; set; }
public int NotHasUpload { get; set; }
public int IsImageChecked { get; set; }
public int IsNotImageChecked { get; set; }
public float Progress { get; set; }
}
}

@ -3,9 +3,15 @@
public class Student : Entity
{
public string Name { get; set; }
public string Sex { get; set; }
public string Nation { get; set; }
public string IdCardNo { get; set; }
public string Class { get; set; }
public string Number { get; set; }
public string Image { get; set; }
public bool HasUploaded { get; set; }
public bool IsChecked { get; set; }
public bool HasImage { get; set; }
public bool IsImageChecked { get; set; }
public bool HasUpload { get; set; }
public bool HasIdCardChecked { get; set; }
}
}

@ -29,8 +29,11 @@
private void InitializeComponent()
{
System.Windows.Forms.TabPage tab1;
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
this.idcGroupBox = new System.Windows.Forms.GroupBox();
this.idCard = new CameraCard.IdCard();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.photo = new System.Windows.Forms.PictureBox();
this.shotBtn = new System.Windows.Forms.Button();
@ -42,7 +45,7 @@
this.numberLabel = new System.Windows.Forms.Label();
this.nameValue = new System.Windows.Forms.TextBox();
this.nameLabel = new System.Windows.Forms.Label();
this.classSecletor = new System.Windows.Forms.ComboBox();
this.classSecletor1 = new System.Windows.Forms.ComboBox();
this.classLabel = new System.Windows.Forms.Label();
this.cameraSelector = new System.Windows.Forms.ComboBox();
this.cameraRender = new System.Windows.Forms.PictureBox();
@ -59,6 +62,21 @@
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.versionLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.dataGrid = new System.Windows.Forms.DataGridView();
this.groupGrid = new System.Windows.Forms.DataGridView();
this.classSelector = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.numberInput = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.nameInput = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.label4 = new System.Windows.Forms.Label();
this.totalValue = new System.Windows.Forms.Label();
this.pageSizeSelector = new System.Windows.Forms.ComboBox();
this.idCard = new CameraCard.IdCard();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.pageIndexSelector = new System.Windows.Forms.ComboBox();
tab1 = new System.Windows.Forms.TabPage();
tab1.SuspendLayout();
this.idcGroupBox.SuspendLayout();
@ -67,10 +85,14 @@
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.cameraRender)).BeginInit();
this.tabControl1.SuspendLayout();
this.tab2.SuspendLayout();
this.tab3.SuspendLayout();
this.tab4.SuspendLayout();
this.tabControl2.SuspendLayout();
this.tabPage1.SuspendLayout();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.groupGrid)).BeginInit();
this.SuspendLayout();
//
// tab1
@ -102,13 +124,6 @@
this.idcGroupBox.TabStop = false;
this.idcGroupBox.Text = "身份证";
//
// idCard
//
this.idCard.Location = new System.Drawing.Point(-1, 16);
this.idCard.Name = "idCard";
this.idCard.Size = new System.Drawing.Size(420, 200);
this.idCard.TabIndex = 8;
//
// groupBox1
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@ -164,7 +179,7 @@
this.panel1.Controls.Add(this.numberLabel);
this.panel1.Controls.Add(this.nameValue);
this.panel1.Controls.Add(this.nameLabel);
this.panel1.Controls.Add(this.classSecletor);
this.panel1.Controls.Add(this.classSecletor1);
this.panel1.Controls.Add(this.classLabel);
this.panel1.Location = new System.Drawing.Point(7, 6);
this.panel1.Name = "panel1";
@ -221,13 +236,13 @@
this.nameLabel.TabIndex = 2;
this.nameLabel.Text = "姓名:";
//
// classSecletor
// classSecletor1
//
this.classSecletor.FormattingEnabled = true;
this.classSecletor.Location = new System.Drawing.Point(55, 44);
this.classSecletor.Name = "classSecletor";
this.classSecletor.Size = new System.Drawing.Size(100, 20);
this.classSecletor.TabIndex = 1;
this.classSecletor1.FormattingEnabled = true;
this.classSecletor1.Location = new System.Drawing.Point(55, 44);
this.classSecletor1.Name = "classSecletor1";
this.classSecletor1.Size = new System.Drawing.Size(100, 20);
this.classSecletor1.TabIndex = 1;
//
// classLabel
//
@ -273,9 +288,11 @@
this.tabControl1.Size = new System.Drawing.Size(1008, 729);
this.tabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.tabControl1.TabIndex = 2;
this.tabControl1.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControl1_Selected);
//
// tab2
//
this.tab2.Controls.Add(this.groupGrid);
this.tab2.Location = new System.Drawing.Point(4, 22);
this.tab2.Name = "tab2";
this.tab2.Padding = new System.Windows.Forms.Padding(3);
@ -286,6 +303,19 @@
//
// tab3
//
this.tab3.Controls.Add(this.pageIndexSelector);
this.tab3.Controls.Add(this.flowLayoutPanel1);
this.tab3.Controls.Add(this.pageSizeSelector);
this.tab3.Controls.Add(this.totalValue);
this.tab3.Controls.Add(this.label4);
this.tab3.Controls.Add(this.button1);
this.tab3.Controls.Add(this.nameInput);
this.tab3.Controls.Add(this.label3);
this.tab3.Controls.Add(this.numberInput);
this.tab3.Controls.Add(this.label2);
this.tab3.Controls.Add(this.label1);
this.tab3.Controls.Add(this.classSelector);
this.tab3.Controls.Add(this.dataGrid);
this.tab3.Location = new System.Drawing.Point(4, 22);
this.tab3.Name = "tab3";
this.tab3.Padding = new System.Windows.Forms.Padding(3);
@ -395,6 +425,175 @@
this.versionLabel.Size = new System.Drawing.Size(14, 17);
this.versionLabel.Text = "v";
//
// dataGrid
//
this.dataGrid.AllowUserToAddRows = false;
this.dataGrid.AllowUserToDeleteRows = false;
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.dataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGrid.DefaultCellStyle = dataGridViewCellStyle6;
this.dataGrid.Location = new System.Drawing.Point(-4, 53);
this.dataGrid.Name = "dataGrid";
this.dataGrid.ReadOnly = true;
this.dataGrid.RowTemplate.Height = 23;
this.dataGrid.Size = new System.Drawing.Size(1008, 583);
this.dataGrid.TabIndex = 0;
this.dataGrid.VirtualMode = true;
//
// groupGrid
//
this.groupGrid.AllowUserToAddRows = false;
this.groupGrid.AllowUserToDeleteRows = false;
this.groupGrid.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill;
dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.groupGrid.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7;
this.groupGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle8.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.groupGrid.DefaultCellStyle = dataGridViewCellStyle8;
this.groupGrid.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupGrid.Location = new System.Drawing.Point(3, 3);
this.groupGrid.Name = "groupGrid";
this.groupGrid.ReadOnly = true;
this.groupGrid.RowTemplate.Height = 23;
this.groupGrid.Size = new System.Drawing.Size(994, 697);
this.groupGrid.TabIndex = 0;
//
// classSelector
//
this.classSelector.DisplayMember = "Class";
this.classSelector.FormattingEnabled = true;
this.classSelector.Location = new System.Drawing.Point(56, 21);
this.classSelector.Name = "classSelector";
this.classSelector.Size = new System.Drawing.Size(121, 20);
this.classSelector.TabIndex = 1;
this.classSelector.ValueMember = "Class";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 2;
this.label1.Text = "班级:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(200, 24);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 12);
this.label2.TabIndex = 3;
this.label2.Text = "考籍号:";
//
// numberInput
//
this.numberInput.Location = new System.Drawing.Point(252, 21);
this.numberInput.Name = "numberInput";
this.numberInput.Size = new System.Drawing.Size(120, 21);
this.numberInput.TabIndex = 4;
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(398, 24);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(41, 12);
this.label3.TabIndex = 5;
this.label3.Text = "姓名:";
//
// nameInput
//
this.nameInput.Location = new System.Drawing.Point(457, 20);
this.nameInput.Name = "nameInput";
this.nameInput.Size = new System.Drawing.Size(120, 21);
this.nameInput.TabIndex = 6;
//
// button1
//
this.button1.Location = new System.Drawing.Point(730, 18);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 7;
this.button1.Text = "检索";
this.button1.UseVisualStyleBackColor = true;
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(8, 659);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(29, 12);
this.label4.TabIndex = 8;
this.label4.Text = "共:";
//
// totalValue
//
this.totalValue.AutoSize = true;
this.totalValue.Location = new System.Drawing.Point(43, 659);
this.totalValue.Name = "totalValue";
this.totalValue.Size = new System.Drawing.Size(11, 12);
this.totalValue.TabIndex = 9;
this.totalValue.Text = "0";
//
// pageSizeSelector
//
this.pageSizeSelector.DisplayMember = "Text";
this.pageSizeSelector.FormattingEnabled = true;
this.pageSizeSelector.Location = new System.Drawing.Point(82, 655);
this.pageSizeSelector.Name = "pageSizeSelector";
this.pageSizeSelector.Size = new System.Drawing.Size(74, 20);
this.pageSizeSelector.TabIndex = 10;
this.pageSizeSelector.ValueMember = "Value";
//
// idCard
//
this.idCard.Location = new System.Drawing.Point(-1, 16);
this.idCard.Name = "idCard";
this.idCard.Size = new System.Drawing.Size(420, 200);
this.idCard.TabIndex = 8;
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.Location = new System.Drawing.Point(177, 642);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(689, 40);
this.flowLayoutPanel1.TabIndex = 11;
//
// pageIndexSelector
//
this.pageIndexSelector.FormattingEnabled = true;
this.pageIndexSelector.Location = new System.Drawing.Point(883, 655);
this.pageIndexSelector.Name = "pageIndexSelector";
this.pageIndexSelector.Size = new System.Drawing.Size(99, 20);
this.pageIndexSelector.TabIndex = 12;
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -418,11 +617,16 @@
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.cameraRender)).EndInit();
this.tabControl1.ResumeLayout(false);
this.tab2.ResumeLayout(false);
this.tab3.ResumeLayout(false);
this.tab3.PerformLayout();
this.tab4.ResumeLayout(false);
this.tabControl2.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.groupGrid)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
@ -440,7 +644,7 @@
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TextBox nameValue;
private System.Windows.Forms.Label nameLabel;
private System.Windows.Forms.ComboBox classSecletor;
private System.Windows.Forms.ComboBox classSecletor1;
private System.Windows.Forms.Label classLabel;
private System.Windows.Forms.Button shotBtn;
private System.Windows.Forms.RichTextBox log;
@ -460,5 +664,19 @@
private System.Windows.Forms.ToolStripStatusLabel versionLabel;
private System.Windows.Forms.ToolStripStatusLabel statusLabel;
private IdCard idCard;
private System.Windows.Forms.DataGridView dataGrid;
private System.Windows.Forms.DataGridView groupGrid;
private System.Windows.Forms.ComboBox classSelector;
private System.Windows.Forms.TextBox nameInput;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox numberInput;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox pageSizeSelector;
private System.Windows.Forms.Label totalValue;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ComboBox pageIndexSelector;
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
}
}

File diff suppressed because one or more lines are too long

@ -7,7 +7,7 @@ namespace CameraCard
{
private readonly Action _closed;
public ProgressForm(string title, string status, int min, int max, int width = 0, Action action = null)
public ProgressForm(string title, string status, int min, int max, int width = 0, Action action = null, bool control = true)
{
InitializeComponent();
this.Width = width == 0 ? this.Width : width;
@ -16,7 +16,7 @@ namespace CameraCard
this.progressBar.Minimum = min;
this.progressBar.Maximum = max;
this._closed = action;
//this.ControlBox = this._closed != null;
this.ControlBox = control;
this.FormClosed += ProgressForm_FormClosed;
}

@ -41,7 +41,33 @@ namespace WebApi.Controllers
{
Code = 0,
Data = new List<Student> {
new Student{ Id=Guid.NewGuid().ToString(),Name="小明"}
new Student{
Id=Guid.NewGuid().ToString(),
Name="小明",
Class="1班",
Sex="男",
Nation="汉",
IdCardNo="012345678912345678",
Number="012345678912345678"
},
new Student{
Id=Guid.NewGuid().ToString(),
Name="小红",
Class="1班",
Sex="女",
Nation="汉",
IdCardNo="112345678912345678",
Number="012345678912345678"
},
new Student{
Id=Guid.NewGuid().ToString(),
Name="小丽",
Class="2班",
Sex="女",
Nation="汉",
IdCardNo="112345678912345678",
Number="012345678912345678"
}
}
};
}

@ -4,9 +4,11 @@
{
public string Id { get; set; }
public string Name { get; set; }
public string Sex { get; set; }
public string Nation { get; set; }
public string IdCardNo { get; set; }
public string Class { get; set; }
public string Number { get; set; }
public string Image { get; set; }
public bool HasUploaded { get; set; }
public bool IsChecked { get; set; }
}
}
Loading…
Cancel
Save