Commit 1ad53a19 LN

增加数据查询,登录界面修改

1 个父辈 04dce19f
......@@ -14,6 +14,8 @@ namespace TSA_V.DeviceLibrary
public class WorkInfo
{
public static int LastDBId = 0;
/// <summary>
/// 是否在工作中,在插件中,会接受信号移动位置
/// </summary>
......@@ -88,12 +90,17 @@ namespace TSA_V.DeviceLibrary
//如果是下一个并且当前是最后一个,其实是切换了新程序,需要减去刚刚的数量
CSVReaderBomManager.DelUseCount(currBoard, currIndex);
}
DeviceStatus deviceStatus = MesUtil.GetCurrStatus();
if (MesUtil.CodeISOk)
{
DeviceStatus deviceStatus = MesUtil.GetCurrStatus();
MesUtil.SendStatus(deviceStatus);
}
deviceStatus.workInfo.ID = LastDBId;
DB.db.AddHistory(deviceStatus.workInfo, out int id);
if (LastDBId < 0)
{
LastDBId = id;
LogUtil.info("保存LastDBId=" + LastDBId);
}
EndWait();
if (currBoard != null)
......
......@@ -121,6 +121,53 @@ namespace TSA_V.DeviceLibrary
#region 数据获取和保存
public static OpInfo GetWorkInfo()
{
OpInfo op = new OpInfo();
if (TSAVBean.Work.IsWorking)
{
BoardInfo board = TSAVBean.Work.currBoard;
op.ProName = board.boardName;
op.ProType = board.boardCode;
if (CodeISOk)
{
op.BarCode = CurrPCBCode;
op.AoiResult = CurrAOIResult;
}
op.BoardWidth = board.boardWidth;
op.BoardLength = board.boardLength;
op.pointList = new List<OpPointInfo>();
int index = 0;
foreach (SMTPointInfo sm in board.smtList)
{
if (index > TSAVBean.Work.currIndex)
{
break;
}
op.pointList.Add(new OpPointInfo(sm.PartNum, sm.pointName));
index++;
}
}
else if (TSAVBean.LineStep.moveType.Equals(1))
{
BoardInfo board = TSAVBean.Work.currBoard;
op.ProName = board.boardName;
op.ProType = board.boardCode;
if (CodeISOk)
{
op.BarCode = CurrPCBCode;
op.AoiResult = CurrAOIResult;
}
op.BoardWidth = board.boardWidth;
op.BoardLength = board.boardLength;
op.pointList = new List<OpPointInfo>();
}
return op;
}
public static DeviceStatus GetCurrStatus()
{
DeviceStatus deviceStatus = new DeviceStatus();
......
......@@ -36,53 +36,56 @@ namespace TSA_V
this.TxtPassword = new System.Windows.Forms.TextBox();
this.BtnLogin = new System.Windows.Forms.Button();
this.BtnExit = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("微软雅黑", 12F);
this.label1.Location = new System.Drawing.Point(82, 40);
this.label1.Location = new System.Drawing.Point(108, 94);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(42, 21);
this.label1.Size = new System.Drawing.Size(95, 21);
this.label1.TabIndex = 0;
this.label1.Text = "账号";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// TxtUsername
//
this.TxtUsername.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TxtUsername.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TxtUsername.ImeMode = System.Windows.Forms.ImeMode.Disable;
this.TxtUsername.Location = new System.Drawing.Point(130, 37);
this.TxtUsername.Location = new System.Drawing.Point(209, 91);
this.TxtUsername.Name = "TxtUsername";
this.TxtUsername.Size = new System.Drawing.Size(179, 29);
this.TxtUsername.Size = new System.Drawing.Size(179, 33);
this.TxtUsername.TabIndex = 1;
//
// label2
//
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("微软雅黑", 12F);
this.label2.Location = new System.Drawing.Point(82, 75);
this.label2.Location = new System.Drawing.Point(108, 149);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(42, 21);
this.label2.Size = new System.Drawing.Size(95, 21);
this.label2.TabIndex = 2;
this.label2.Text = "密码";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// TxtPassword
//
this.TxtPassword.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TxtPassword.Location = new System.Drawing.Point(130, 72);
this.TxtPassword.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.TxtPassword.Location = new System.Drawing.Point(209, 146);
this.TxtPassword.Name = "TxtPassword";
this.TxtPassword.PasswordChar = '*';
this.TxtPassword.Size = new System.Drawing.Size(179, 29);
this.TxtPassword.Size = new System.Drawing.Size(179, 33);
this.TxtPassword.TabIndex = 3;
//
// BtnLogin
//
this.BtnLogin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnLogin.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnLogin.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnLogin.Location = new System.Drawing.Point(173, 142);
this.BtnLogin.Location = new System.Drawing.Point(146, 217);
this.BtnLogin.Name = "BtnLogin";
this.BtnLogin.Size = new System.Drawing.Size(100, 38);
this.BtnLogin.Size = new System.Drawing.Size(120, 45);
this.BtnLogin.TabIndex = 4;
this.BtnLogin.Text = "登录";
this.BtnLogin.UseVisualStyleBackColor = true;
......@@ -90,36 +93,53 @@ namespace TSA_V
//
// BtnExit
//
this.BtnExit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.BtnExit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.BtnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnExit.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.BtnExit.Location = new System.Drawing.Point(279, 142);
this.BtnExit.Location = new System.Drawing.Point(272, 217);
this.BtnExit.Name = "BtnExit";
this.BtnExit.Size = new System.Drawing.Size(100, 38);
this.BtnExit.Size = new System.Drawing.Size(120, 45);
this.BtnExit.TabIndex = 5;
this.BtnExit.Text = "退出";
this.BtnExit.UseVisualStyleBackColor = true;
this.BtnExit.Click += new System.EventHandler(this.BtnExit_Click);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.Transparent;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.button1.Enabled = false;
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.ForeColor = System.Drawing.Color.Black;
this.button1.Location = new System.Drawing.Point(12, 12);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(235, 30);
this.button1.TabIndex = 14;
this.button1.Text = "Smart Workstation";
this.button1.UseVisualStyleBackColor = true;
//
// FrmLogin
//
this.AcceptButton = this.BtnLogin;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = global::TSA_V.Properties.Resources.背景图1;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.CancelButton = this.BtnExit;
this.ClientSize = new System.Drawing.Size(391, 192);
this.ClientSize = new System.Drawing.Size(533, 310);
this.ControlBox = false;
this.Controls.Add(this.button1);
this.Controls.Add(this.BtnExit);
this.Controls.Add(this.BtnLogin);
this.Controls.Add(this.TxtPassword);
this.Controls.Add(this.label2);
this.Controls.Add(this.TxtUsername);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmLogin";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "登录";
this.ResumeLayout(false);
this.PerformLayout();
......@@ -134,5 +154,6 @@ namespace TSA_V
private System.Windows.Forms.TextBox TxtPassword;
private System.Windows.Forms.Button BtnLogin;
private System.Windows.Forms.Button BtnExit;
private System.Windows.Forms.Button button1;
}
}
\ No newline at end of file
......@@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace TSA_V
{
public partial class FrmLogin : Form
public partial class FrmLogin : FrmBase
{
public FrmLogin()
{
......
......@@ -45,7 +45,7 @@ namespace TSA_V
this.btnMaintenance = new System.Windows.Forms.Button();
this.btnCom = new System.Windows.Forms.Button();
this.btnProduct = new System.Windows.Forms.Button();
this.BtnHistory = new System.Windows.Forms.Button();
this.btnHistory = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
......@@ -98,7 +98,7 @@ namespace TSA_V
// panel1
//
this.panel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.panel1.Controls.Add(this.BtnHistory);
this.panel1.Controls.Add(this.btnHistory);
this.panel1.Controls.Add(this.LblUserName);
this.panel1.Controls.Add(this.lblVersion);
this.panel1.Controls.Add(this.btnScreenTest);
......@@ -117,6 +117,7 @@ namespace TSA_V
// LblUserName
//
this.LblUserName.AutoSize = true;
this.LblUserName.BackColor = System.Drawing.Color.Transparent;
this.LblUserName.Location = new System.Drawing.Point(21, 420);
this.LblUserName.Name = "LblUserName";
this.LblUserName.Size = new System.Drawing.Size(41, 12);
......@@ -126,7 +127,7 @@ namespace TSA_V
// btnScreenTest
//
this.btnScreenTest.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnScreenTest.Location = new System.Drawing.Point(640, 310);
this.btnScreenTest.Location = new System.Drawing.Point(640, 131);
this.btnScreenTest.Name = "btnScreenTest";
this.btnScreenTest.Size = new System.Drawing.Size(104, 40);
this.btnScreenTest.TabIndex = 17;
......@@ -154,7 +155,7 @@ namespace TSA_V
this.btnCloseLed.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCloseLed.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCloseLed.ForeColor = System.Drawing.Color.White;
this.btnCloseLed.Location = new System.Drawing.Point(412, 287);
this.btnCloseLed.Location = new System.Drawing.Point(640, 285);
this.btnCloseLed.Name = "btnCloseLed";
this.btnCloseLed.Size = new System.Drawing.Size(107, 81);
this.btnCloseLed.TabIndex = 15;
......@@ -171,7 +172,7 @@ namespace TSA_V
this.btnOpenLed.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnOpenLed.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOpenLed.ForeColor = System.Drawing.Color.White;
this.btnOpenLed.Location = new System.Drawing.Point(412, 287);
this.btnOpenLed.Location = new System.Drawing.Point(640, 285);
this.btnOpenLed.Name = "btnOpenLed";
this.btnOpenLed.Size = new System.Drawing.Size(107, 81);
this.btnOpenLed.TabIndex = 14;
......@@ -203,7 +204,7 @@ namespace TSA_V
this.btnMaintenance.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnMaintenance.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnMaintenance.ForeColor = System.Drawing.Color.White;
this.btnMaintenance.Location = new System.Drawing.Point(527, 196);
this.btnMaintenance.Location = new System.Drawing.Point(527, 285);
this.btnMaintenance.Name = "btnMaintenance";
this.btnMaintenance.Size = new System.Drawing.Size(107, 81);
this.btnMaintenance.TabIndex = 8;
......@@ -219,7 +220,7 @@ namespace TSA_V
this.btnCom.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnCom.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnCom.ForeColor = System.Drawing.Color.White;
this.btnCom.Location = new System.Drawing.Point(412, 196);
this.btnCom.Location = new System.Drawing.Point(412, 285);
this.btnCom.Name = "btnCom";
this.btnCom.Size = new System.Drawing.Size(107, 81);
this.btnCom.TabIndex = 5;
......@@ -242,16 +243,21 @@ namespace TSA_V
this.btnProduct.UseVisualStyleBackColor = false;
this.btnProduct.Click += new System.EventHandler(this.btnProduct_Click);
//
// BtnHistory
//
this.BtnHistory.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.BtnHistory.Location = new System.Drawing.Point(640, 264);
this.BtnHistory.Name = "BtnHistory";
this.BtnHistory.Size = new System.Drawing.Size(104, 40);
this.BtnHistory.TabIndex = 19;
this.BtnHistory.Text = "历史记录查询";
this.BtnHistory.UseVisualStyleBackColor = true;
this.BtnHistory.Click += new System.EventHandler(this.BtnHistory_Click);
// btnHistory
//
this.btnHistory.BackColor = System.Drawing.Color.Transparent;
this.btnHistory.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHistory.BackgroundImage")));
this.btnHistory.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.btnHistory.FlatAppearance.BorderSize = 0;
this.btnHistory.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnHistory.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnHistory.ForeColor = System.Drawing.Color.White;
this.btnHistory.Location = new System.Drawing.Point(412, 195);
this.btnHistory.Name = "btnHistory";
this.btnHistory.Size = new System.Drawing.Size(222, 81);
this.btnHistory.TabIndex = 20;
this.btnHistory.UseVisualStyleBackColor = false;
this.btnHistory.Click += new System.EventHandler(this.BtnHistory_Click);
//
// FrmMenu
//
......@@ -294,6 +300,6 @@ namespace TSA_V
private System.Windows.Forms.Timer timer1;
private System.Windows.Forms.Button btnScreenTest;
private System.Windows.Forms.Label LblUserName;
private System.Windows.Forms.Button BtnHistory;
private System.Windows.Forms.Button btnHistory;
}
}
\ No newline at end of file
......@@ -107,9 +107,12 @@ namespace TSA_V
if (ConfigAppSettings.GetBoolValue("CodeRun")) { }
else
{
Task.Factory.StartNew(delegate
{
IOManager.ConnectionIO();
TSAVBean.StartRun();
timer.Enabled = true;
});
}
LWidthManager.Init();
this.Text = ConfigAppSettings.GetValue(Setting_Init.App_Title);
......@@ -144,6 +147,7 @@ namespace TSA_V
this.btnCom.BackgroundImage = ImageManager.Main_US_元器件;
this.btnOpenLed.BackgroundImage = ImageManager.Menu_US_打开光源;
this.btnCloseLed.BackgroundImage = ImageManager.Menu_US_关闭光源;
this.btnHistory.BackgroundImage = ImageManager.Main_US_历史记录;
}
else
{
......@@ -156,6 +160,7 @@ namespace TSA_V
this.btnCom.BackgroundImage = ImageManager.Main_元器件;
this.btnOpenLed.BackgroundImage = ImageManager.Menu_打开光源;
this.btnCloseLed.BackgroundImage = ImageManager.Menu_关闭光源;
this.btnHistory.BackgroundImage = ImageManager.Main_历史记录;
}
}
......
......@@ -522,6 +522,39 @@
bBQnEm4y4NILvtjgiw3EaIUOxYkKHXCTCTcZWBkHUGZqVxudnQf+fzx1G1A7nkGMAAAAAElFTkSuQmCC
</value>
</data>
<data name="btnHistory.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
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
</value>
</data>
<data name="btnCloseLed.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAJ4AAAB6CAMAAAB5jhrdAAAABGdBTUEAALGPC/xhBQAAAp1QTFRFHJ7t
......
......@@ -32,6 +32,8 @@ namespace TSA_V
public static Image Menu_退出;
public static Image Menu_标题;
public static Image Main_历史记录;
public static Image Main_US_历史记录;
public static Image Main_US_元器件;
public static Image Main_US_程序编辑;
......@@ -96,6 +98,7 @@ namespace TSA_V
Main_MOSCOT = GetImage(Application.StartupPath + "\\image\\CN\\MOSCOT.jpg");
Menu_打开光源 = GetImage(Application.StartupPath + "\\image\\CN\\打开光源.jpg");
Menu_关闭光源 = GetImage(Application.StartupPath + "\\image\\CN\\关闭光源.jpg");
Main_历史记录=GetImage(Application.StartupPath+ "\\image\\CN\\历史记录.gif");
Main_US_元器件 = GetImage(Application.StartupPath + "\\image\\US\\元器件信息.gif");
......@@ -115,6 +118,7 @@ namespace TSA_V
Main_US_MOSCOT = GetImage(Application.StartupPath + "\\image\\US\\MOSCOT.png");
Menu_US_打开光源 = GetImage(Application.StartupPath + "\\image\\US\\打开光源.gif");
Menu_US_关闭光源 = GetImage(Application.StartupPath + "\\image\\US\\关闭光源.gif");
Main_US_历史记录 = GetImage(Application.StartupPath + "\\image\\US\\历史记录.gif");
}
catch (Exception ex)
{
......
......@@ -2197,4 +2197,22 @@
<data name="请输入PCB板条码" xml:space="preserve">
<value>Please enter the PCB bar code</value>
</data>
<data name="FrmLogin_BtnExit_Text" xml:space="preserve">
<value>Exit</value>
</data>
<data name="FrmLogin_BtnLogin_Text" xml:space="preserve">
<value>Login</value>
</data>
<data name="FrmLogin_button1_Text" xml:space="preserve">
<value>Smart Workstation</value>
</data>
<data name="FrmLogin_label1_Text" xml:space="preserve">
<value>UserName</value>
</data>
<data name="FrmLogin_label2_Text" xml:space="preserve">
<value>Password</value>
</data>
<data name="FrmLogin_Text" xml:space="preserve">
<value>Login</value>
</data>
</root>
\ No newline at end of file
......@@ -2211,4 +2211,22 @@
<data name="请输入PCB板条码" xml:space="preserve">
<value>请输入PCB板条码</value>
</data>
<data name="FrmLogin_BtnExit_Text" xml:space="preserve">
<value>退出</value>
</data>
<data name="FrmLogin_BtnLogin_Text" xml:space="preserve">
<value>登录</value>
</data>
<data name="FrmLogin_button1_Text" xml:space="preserve">
<value>Smart Workstation</value>
</data>
<data name="FrmLogin_label1_Text" xml:space="preserve">
<value>用户名</value>
</data>
<data name="FrmLogin_label2_Text" xml:space="preserve">
<value>密码</value>
</data>
<data name="FrmLogin_Text" xml:space="preserve">
<value>登录</value>
</data>
</root>
\ No newline at end of file
......@@ -465,6 +465,9 @@
<Content Include="image\CN\关闭光源.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="image\CN\历史记录.gif">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="image\CN\开始工作.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
......@@ -535,6 +538,9 @@
<Content Include="image\US\关闭光源.gif">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="image\US\历史记录.gif">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="image\US\开始工作.gif">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
......
......@@ -99,6 +99,7 @@ namespace TSA_V
MessageBox.Show(ResourceCulture.GetString(ResourceCulture.CanotFindInfo, "电路板【{0}】没有组装信息,请选择其他程序!", BoardManager.CurrBoard.boardName));
return;
}
WorkInfo.LastDBId = 0;
FrmWork fw = new FrmWork();
this.Hide();
fw.ShowDialog();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!