You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.5 KiB
C#

9 months ago
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using POSV.Entity;
namespace POSV
{
public partial class LoginConfirm : BusinessForm
{
private readonly Authc _authc;
private readonly Worker _worker;
public LoginConfirm(Authc authc,Worker worker)
{
InitializeComponent();
this.BackColor = Color.White;
this.Text = "收银员离线登录确认";
this._authc = authc;
this._worker = worker;
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
this.lblDate.Text = string.Format("{0:yyyy-MM-dd HH:mm:ss dddd}" , DateTime.Now);
this.lblWorker.Text = string.Format("{0} {1}" , this._worker.No,this._worker.Name);
this.lblStore.Text = string.Format("{0} {1}" , this._authc.StoreNo , this._authc.StoreName);
this.lblPos.Text = string.Format("{0}" , this._authc.PosNo);
}
protected void OnEnterClick(object sender , EventArgs e)
{
ButtonX item = (ButtonX)sender;
this.DialogResult = DialogResult.OK;
}
protected void OnEscapeClick(object sender , EventArgs e)
{
ButtonX item = (ButtonX)sender;
this.DialogResult = DialogResult.Cancel;
}
}
}