nodyang@aliyun.com 2 days ago
parent 65538a1008
commit 2c76372d37

@ -83,12 +83,12 @@ namespace RfidWeb
void TimeState(Object state)
{
labTime.Text = DateTime.Now.ToFullString();
bool isExit = UserManager.IsExit();
this.Invoke(() =>
{
labTime.Text = DateTime.Now.ToFullString();
this.Invoke(() =>

@ -28,23 +28,23 @@
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmBarCodeGridView));
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
this.panel1 = new System.Windows.Forms.Panel();
this.panelTop = new System.Windows.Forms.Panel();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ucPagerControl21 = new HZH_Controls.Controls.UCPagerControl2();
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.ucDatePickerExt2 = new HZH_Controls.Controls.UCDatePickerExt();
this.ucDatePickerExt1 = new HZH_Controls.Controls.UCDatePickerExt();
this.ucBtnSelect = new HZH_Controls.Controls.UCBtnExt();
this.ucHorizontalList1 = new HZH_Controls.Controls.UCHorizontalList();
this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BarCode = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CreateTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ucDatePickerExt21 = new HZH_Controls.Controls.UCDatePickerExt2();
this.ucDatePickerExt22 = new HZH_Controls.Controls.UCDatePickerExt2();
this.panel1.SuspendLayout();
this.panelTop.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
@ -61,9 +61,9 @@
//
// panelTop
//
this.panelTop.Controls.Add(this.ucDatePickerExt22);
this.panelTop.Controls.Add(this.ucDatePickerExt21);
this.panelTop.Controls.Add(this.ucBtnExt1);
this.panelTop.Controls.Add(this.ucDatePickerExt2);
this.panelTop.Controls.Add(this.ucDatePickerExt1);
this.panelTop.Controls.Add(this.ucBtnSelect);
this.panelTop.Dock = System.Windows.Forms.DockStyle.Top;
this.panelTop.Location = new System.Drawing.Point(0, 47);
@ -75,43 +75,69 @@
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle13.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.ID,
this.BarCode,
this.CreateTime});
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle3;
dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Window;
dataGridViewCellStyle15.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.ControlText;
dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
this.dataGridView1.DefaultCellStyle = dataGridViewCellStyle15;
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 155);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle16.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle16;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(910, 739);
this.dataGridView1.TabIndex = 4;
//
// ID
//
this.ID.DataPropertyName = "ID";
dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.ID.DefaultCellStyle = dataGridViewCellStyle14;
this.ID.HeaderText = "ID";
this.ID.Name = "ID";
this.ID.ReadOnly = true;
this.ID.Visible = false;
//
// BarCode
//
this.BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.BarCode.DataPropertyName = "BarCode";
this.BarCode.HeaderText = "条码";
this.BarCode.Name = "BarCode";
this.BarCode.ReadOnly = true;
//
// CreateTime
//
this.CreateTime.DataPropertyName = "CreateTime";
this.CreateTime.HeaderText = "时间";
this.CreateTime.Name = "CreateTime";
this.CreateTime.ReadOnly = true;
this.CreateTime.Width = 250;
//
// ucPagerControl21
//
this.ucPagerControl21.BackColor = System.Drawing.Color.White;
@ -126,7 +152,7 @@
this.ucPagerControl21.Size = new System.Drawing.Size(910, 41);
this.ucPagerControl21.StartIndex = 1;
this.ucPagerControl21.TabIndex = 3;
this.ucPagerControl21.ShowSourceChanged += new HZH_Controls.Controls.PageControlEventHandler(this.ucPagerControl21_ShowSourceChanged);
//
// ucBtnExt1
//
@ -154,46 +180,6 @@
this.ucBtnExt1.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(101)))), ((int)(((byte)(204)))));
this.ucBtnExt1.TipsText = "";
//
// ucDatePickerExt2
//
this.ucDatePickerExt2.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt2.ConerRadius = 5;
this.ucDatePickerExt2.CurrentTime = new System.DateTime(2024, 11, 22, 0, 54, 0, 0);
this.ucDatePickerExt2.FillColor = System.Drawing.Color.White;
this.ucDatePickerExt2.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt2.IsRadius = true;
this.ucDatePickerExt2.IsShowRect = true;
this.ucDatePickerExt2.Location = new System.Drawing.Point(4, 64);
this.ucDatePickerExt2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt2.Name = "ucDatePickerExt2";
this.ucDatePickerExt2.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
this.ucDatePickerExt2.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt2.RectWidth = 1;
this.ucDatePickerExt2.Size = new System.Drawing.Size(337, 39);
this.ucDatePickerExt2.TabIndex = 4;
this.ucDatePickerExt2.TimeFontSize = 20;
this.ucDatePickerExt2.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
//
// ucDatePickerExt1
//
this.ucDatePickerExt1.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt1.ConerRadius = 5;
this.ucDatePickerExt1.CurrentTime = new System.DateTime(2024, 11, 21, 10, 54, 13, 0);
this.ucDatePickerExt1.FillColor = System.Drawing.Color.White;
this.ucDatePickerExt1.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt1.IsRadius = true;
this.ucDatePickerExt1.IsShowRect = true;
this.ucDatePickerExt1.Location = new System.Drawing.Point(4, 18);
this.ucDatePickerExt1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt1.Name = "ucDatePickerExt1";
this.ucDatePickerExt1.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0);
this.ucDatePickerExt1.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt1.RectWidth = 1;
this.ucDatePickerExt1.Size = new System.Drawing.Size(335, 39);
this.ucDatePickerExt1.TabIndex = 3;
this.ucDatePickerExt1.TimeFontSize = 20;
this.ucDatePickerExt1.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
//
// ucBtnSelect
//
this.ucBtnSelect.BackColor = System.Drawing.Color.White;
@ -232,33 +218,47 @@
this.ucHorizontalList1.SelectedItem = null;
this.ucHorizontalList1.Size = new System.Drawing.Size(596, 44);
this.ucHorizontalList1.TabIndex = 0;
this.ucHorizontalList1.SelectedItemEvent += new System.EventHandler(this.ucHorizontalList1_SelectedItemEvent);
//
// ID
//
this.ID.DataPropertyName = "ID";
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.ID.DefaultCellStyle = dataGridViewCellStyle2;
this.ID.HeaderText = "ID";
this.ID.Name = "ID";
this.ID.ReadOnly = true;
this.ID.Visible = false;
//
// BarCode
// ucDatePickerExt21
//
this.BarCode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
this.BarCode.DataPropertyName = "BarCode";
this.BarCode.HeaderText = "条码";
this.BarCode.Name = "BarCode";
this.BarCode.ReadOnly = true;
this.ucDatePickerExt21.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt21.ConerRadius = 5;
this.ucDatePickerExt21.CurrentTime = new System.DateTime(2024, 11, 21, 13, 14, 42, 0);
this.ucDatePickerExt21.FillColor = System.Drawing.Color.White;
this.ucDatePickerExt21.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt21.IsRadius = true;
this.ucDatePickerExt21.IsShowRect = true;
this.ucDatePickerExt21.Location = new System.Drawing.Point(17, 18);
this.ucDatePickerExt21.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt21.Name = "ucDatePickerExt21";
this.ucDatePickerExt21.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt21.RectWidth = 1;
this.ucDatePickerExt21.SelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucDatePickerExt21.Size = new System.Drawing.Size(336, 39);
this.ucDatePickerExt21.TabIndex = 6;
this.ucDatePickerExt21.TimeFontSize = 20;
this.ucDatePickerExt21.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
//
// CreateTime
// ucDatePickerExt22
//
this.CreateTime.DataPropertyName = "CreateTime";
this.CreateTime.HeaderText = "时间";
this.CreateTime.Name = "CreateTime";
this.CreateTime.ReadOnly = true;
this.CreateTime.Width = 250;
this.ucDatePickerExt22.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt22.ConerRadius = 5;
this.ucDatePickerExt22.CurrentTime = new System.DateTime(2024, 11, 21, 13, 14, 48, 0);
this.ucDatePickerExt22.FillColor = System.Drawing.Color.White;
this.ucDatePickerExt22.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt22.IsRadius = true;
this.ucDatePickerExt22.IsShowRect = true;
this.ucDatePickerExt22.Location = new System.Drawing.Point(17, 61);
this.ucDatePickerExt22.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt22.Name = "ucDatePickerExt22";
this.ucDatePickerExt22.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt22.RectWidth = 1;
this.ucDatePickerExt22.SelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucDatePickerExt22.Size = new System.Drawing.Size(336, 39);
this.ucDatePickerExt22.TabIndex = 7;
this.ucDatePickerExt22.TimeFontSize = 20;
this.ucDatePickerExt22.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
//
// FrmBarCodeGridView
//
@ -283,13 +283,13 @@
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panelTop;
private HZH_Controls.Controls.UCBtnExt ucBtnSelect;
private HZH_Controls.Controls.UCDatePickerExt ucDatePickerExt2;
private HZH_Controls.Controls.UCDatePickerExt ucDatePickerExt1;
private HZH_Controls.Controls.UCBtnExt ucBtnExt1;
private HZH_Controls.Controls.UCPagerControl2 ucPagerControl21;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn ID;
private System.Windows.Forms.DataGridViewTextBoxColumn BarCode;
private System.Windows.Forms.DataGridViewTextBoxColumn CreateTime;
private HZH_Controls.Controls.UCDatePickerExt2 ucDatePickerExt22;
private HZH_Controls.Controls.UCDatePickerExt2 ucDatePickerExt21;
}
}

@ -29,14 +29,24 @@ namespace RfidWeb.Frm
keyValue.Add(new KeyValuePair<string, string>("C", "废料"));
ucHorizontalList1.DataSource = keyValue;
var dt = DateTime.Now;
this.ucDatePickerExt1.CurrentTime=Convert.ToDateTime(dt.ToString("yyyy-MM-dd 00:00:00"));
this.ucDatePickerExt1.CurrentTime = Convert.ToDateTime(dt.ToString("yyyy-MM-dd 23:59:59"));
var a = Convert.ToDateTime(dt.ToString("yyyy-MM-dd 00:00:00"));
var b = Convert.ToDateTime(dt.ToString("yyyy-MM-dd 23:59:00"));
this.ucDatePickerExt21.CurrentTime = a;
this.ucDatePickerExt22.CurrentTime = b;
this.dataGridView1.AutoGenerateColumns = false;
ucPagerControl21.PageModel = PageModel.PageCount;
ucPagerControl21.PageIndex = 1;
ucPagerControl21.PageSize = 20;
this.ucPagerControl21.ShowSourceChanged +=
new HZH_Controls.Controls.PageControlEventHandler(this.ucPagerControl21_ShowSourceChanged);
this.ucHorizontalList1.SelectedItemEvent += new System.EventHandler(this.ucHorizontalList1_SelectedItemEvent);
ucPagerControl21_ShowSourceChanged(new object());
}
private void Replace()
@ -52,8 +62,8 @@ namespace RfidWeb.Frm
var selectedItemDataSource = ucHorizontalList1.SelectedItem.DataSource;
string key = selectedItemDataSource.Key;
var beginTime = ucDatePickerExt1.CurrentTime;
var endTime = ucDatePickerExt2.CurrentTime;
var beginTime = ucDatePickerExt21.CurrentTime;
var endTime = ucDatePickerExt22.CurrentTime;
int index = ucPagerControl21.PageIndex;
var page = readBufLogService.GetPagedList(ucPagerControl21.PageIndex,
@ -71,5 +81,7 @@ namespace RfidWeb.Frm
{
Replace();
}
}
}

@ -31,6 +31,7 @@
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt2 = new HZH_Controls.Controls.UCBtnExt();
this.ucHorizontalList1 = new HZH_Controls.Controls.UCHorizontalList();
this.ucDatePickerExt21 = new HZH_Controls.Controls.UCDatePickerExt2();
this.SuspendLayout();
//
// ucBtnExt1
@ -98,11 +99,32 @@
this.ucHorizontalList1.Size = new System.Drawing.Size(514, 53);
this.ucHorizontalList1.TabIndex = 2;
//
// ucDatePickerExt21
//
this.ucDatePickerExt21.BackColor = System.Drawing.Color.Transparent;
this.ucDatePickerExt21.ConerRadius = 5;
this.ucDatePickerExt21.CurrentTime = new System.DateTime(2024, 11, 21, 12, 56, 0, 0);
this.ucDatePickerExt21.FillColor = System.Drawing.Color.White;
this.ucDatePickerExt21.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
this.ucDatePickerExt21.IsRadius = true;
this.ucDatePickerExt21.IsShowRect = true;
this.ucDatePickerExt21.Location = new System.Drawing.Point(250, 339);
this.ucDatePickerExt21.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.ucDatePickerExt21.Name = "ucDatePickerExt21";
this.ucDatePickerExt21.RectColor = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220)))));
this.ucDatePickerExt21.RectWidth = 1;
this.ucDatePickerExt21.SelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucDatePickerExt21.Size = new System.Drawing.Size(336, 39);
this.ucDatePickerExt21.TabIndex = 3;
this.ucDatePickerExt21.TimeFontSize = 20;
this.ucDatePickerExt21.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
//
// FromSQl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1106, 758);
this.Controls.Add(this.ucDatePickerExt21);
this.Controls.Add(this.ucHorizontalList1);
this.Controls.Add(this.ucBtnExt2);
this.Controls.Add(this.ucBtnExt1);
@ -118,5 +140,6 @@
private HZH_Controls.Controls.UCBtnExt ucBtnExt1;
private HZH_Controls.Controls.UCBtnExt ucBtnExt2;
private HZH_Controls.Controls.UCHorizontalList ucHorizontalList1;
private HZH_Controls.Controls.UCDatePickerExt2 ucDatePickerExt21;
}
}

@ -104,12 +104,9 @@ namespace RfidWeb
private void ucBtnExt2_BtnClick(object sender, EventArgs e)
{
DbInfo.Init(typeof(UserInfo).Assembly);
UpdateLogService service = new UpdateLogService();
service.AddOrUpdateLog(TestFactory.TestUser(), "test", 1);
var data = DateTime.Now.ToString("yyyy-MM-dd 00:00:00");
var sss= Convert.ToDateTime(data);
ucDatePickerExt21.CurrentTime = sss;
}
}

@ -29,8 +29,10 @@ namespace RfidWeb
AppContext.SetSwitch("Npgsql.DisableDateTimeInfinityConversions", true);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
// Application.Run(new FromSQl());
Application.Run(new FormMain());
// Application.Run(new FromSQl());
//
}
}
}

Loading…
Cancel
Save