台州海关TD3600上线版本
BIN
JJMediSys/32icon.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
101
JJMediSys/AlertForm.Designer.cs
generated
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class AlertForm
|
||||||
|
{
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
this.lbMsg = new System.Windows.Forms.Label();
|
||||||
|
this.btnPicClose = new System.Windows.Forms.PictureBox();
|
||||||
|
this.picAlertType = new System.Windows.Forms.PictureBox();
|
||||||
|
this.hideTimer = new System.Windows.Forms.Timer(this.components);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.btnPicClose)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.picAlertType)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// lbMsg
|
||||||
|
//
|
||||||
|
this.lbMsg.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.lbMsg.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.lbMsg.Location = new System.Drawing.Point(78, 8);
|
||||||
|
this.lbMsg.Name = "lbMsg";
|
||||||
|
this.lbMsg.Size = new System.Drawing.Size(300, 48);
|
||||||
|
this.lbMsg.TabIndex = 1;
|
||||||
|
this.lbMsg.Text = "label1";
|
||||||
|
this.lbMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// btnPicClose
|
||||||
|
//
|
||||||
|
this.btnPicClose.Image = global::JJMediSys.Properties.Resources.x;
|
||||||
|
this.btnPicClose.Location = new System.Drawing.Point(414, 17);
|
||||||
|
this.btnPicClose.Name = "btnPicClose";
|
||||||
|
this.btnPicClose.Size = new System.Drawing.Size(40, 30);
|
||||||
|
this.btnPicClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.btnPicClose.TabIndex = 2;
|
||||||
|
this.btnPicClose.TabStop = false;
|
||||||
|
this.btnPicClose.Click += new System.EventHandler(this.btnPicClose_Click);
|
||||||
|
//
|
||||||
|
// picAlertType
|
||||||
|
//
|
||||||
|
this.picAlertType.Location = new System.Drawing.Point(21, 12);
|
||||||
|
this.picAlertType.Name = "picAlertType";
|
||||||
|
this.picAlertType.Size = new System.Drawing.Size(38, 38);
|
||||||
|
this.picAlertType.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||||
|
this.picAlertType.TabIndex = 0;
|
||||||
|
this.picAlertType.TabStop = false;
|
||||||
|
//
|
||||||
|
// hideTimer
|
||||||
|
//
|
||||||
|
this.hideTimer.Tick += new System.EventHandler(this.hideTimer_Tick);
|
||||||
|
//
|
||||||
|
// AlertForm
|
||||||
|
//
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||||
|
this.BackColor = System.Drawing.Color.LawnGreen;
|
||||||
|
this.ClientSize = new System.Drawing.Size(465, 65);
|
||||||
|
this.Controls.Add(this.btnPicClose);
|
||||||
|
this.Controls.Add(this.lbMsg);
|
||||||
|
this.Controls.Add(this.picAlertType);
|
||||||
|
this.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "AlertForm";
|
||||||
|
this.ShowIcon = false;
|
||||||
|
this.ShowInTaskbar = false;
|
||||||
|
this.Text = "AlertFrom";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.AlertForm_Load);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.btnPicClose)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.picAlertType)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.PictureBox picAlertType;
|
||||||
|
private System.Windows.Forms.PictureBox btnPicClose;
|
||||||
|
private System.Windows.Forms.Timer hideTimer;
|
||||||
|
public System.Windows.Forms.Label lbMsg;
|
||||||
|
}
|
||||||
|
}
|
||||||
283
JJMediSys/AlertForm.cs
Normal file
@@ -0,0 +1,283 @@
|
|||||||
|
using JJMediSys.Properties;
|
||||||
|
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 JJMediSys
|
||||||
|
{
|
||||||
|
public partial class AlertForm : Form
|
||||||
|
{
|
||||||
|
public enum AlertType
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 成功
|
||||||
|
/// </summary>
|
||||||
|
Success,
|
||||||
|
/// <summary>
|
||||||
|
/// 提示
|
||||||
|
/// </summary>
|
||||||
|
Info,
|
||||||
|
/// <summary>
|
||||||
|
/// 错误
|
||||||
|
/// </summary>
|
||||||
|
Error,
|
||||||
|
/// <summary>
|
||||||
|
/// 警告
|
||||||
|
/// </summary>
|
||||||
|
Warning
|
||||||
|
}
|
||||||
|
public enum ActionType
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 等待
|
||||||
|
/// </summary>
|
||||||
|
wait,
|
||||||
|
/// <summary>
|
||||||
|
/// 开启
|
||||||
|
/// </summary>
|
||||||
|
start,
|
||||||
|
/// <summary>
|
||||||
|
/// 关闭
|
||||||
|
/// </summary>
|
||||||
|
close
|
||||||
|
}
|
||||||
|
public enum ShowDirection
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 头部中心
|
||||||
|
/// </summary>
|
||||||
|
TopCenter,
|
||||||
|
/// <summary>
|
||||||
|
/// 右下角
|
||||||
|
/// </summary>
|
||||||
|
BottomRight,
|
||||||
|
/// <summary>
|
||||||
|
/// 右上角
|
||||||
|
/// </summary>
|
||||||
|
TopRight,
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Alert类型
|
||||||
|
/// </summary>
|
||||||
|
private ActionType action;
|
||||||
|
private int x, y;
|
||||||
|
/// <summary>
|
||||||
|
/// 动画持续的时间
|
||||||
|
/// </summary>
|
||||||
|
private int Duration;
|
||||||
|
/// <summary>
|
||||||
|
/// 弹出的位置
|
||||||
|
/// </summary>
|
||||||
|
private ShowDirection Direction;
|
||||||
|
/// <summary>
|
||||||
|
/// 暴露的方法
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="msg">内容</param>
|
||||||
|
/// <param name="type">弹出类型</param>
|
||||||
|
/// <param name="duration">展示时间 秒</param>
|
||||||
|
/// <param name="direction">位置</param>
|
||||||
|
public static void ShowAlert(string msg, AlertType type,
|
||||||
|
int duration = 3, ShowDirection direction = ShowDirection.TopRight)
|
||||||
|
{
|
||||||
|
AlertForm alert = new AlertForm();
|
||||||
|
if (msg.Length > 30)
|
||||||
|
{
|
||||||
|
if (msg.Length > 90)
|
||||||
|
msg = msg.Substring(0, 90);
|
||||||
|
alert.Size = new Size(465, 50 * (msg.Length / 15));
|
||||||
|
alert.lbMsg.Location = new Point(100, 10);
|
||||||
|
alert.lbMsg.Size = new Size(300, 50 * (msg.Length / 15) - 20);
|
||||||
|
}
|
||||||
|
switch (type)
|
||||||
|
{
|
||||||
|
case AlertType.Success:
|
||||||
|
alert.picAlertType.Image = Resources.Success;
|
||||||
|
alert.BackColor = Color.FromArgb(103, 194, 58);
|
||||||
|
break;
|
||||||
|
case AlertType.Info:
|
||||||
|
alert.picAlertType.Image = Resources.Info;
|
||||||
|
alert.BackColor = Color.FromArgb(64, 158, 255);
|
||||||
|
break;
|
||||||
|
case AlertType.Error:
|
||||||
|
alert.picAlertType.Image = Resources.Error;
|
||||||
|
alert.BackColor = Color.FromArgb(245, 108, 108);
|
||||||
|
break;
|
||||||
|
case AlertType.Warning:
|
||||||
|
alert.picAlertType.Image = Resources.Warning;
|
||||||
|
alert.BackColor = Color.FromArgb(230, 162, 60);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
alert.Duration = duration * 1000;
|
||||||
|
alert.Direction = direction;
|
||||||
|
alert.ShowAlert(msg);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public AlertForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 内部调用显示窗体
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="msg"></param>
|
||||||
|
protected void ShowAlert(string msg)
|
||||||
|
{
|
||||||
|
this.Opacity = 0.0;
|
||||||
|
this.StartPosition = FormStartPosition.Manual;
|
||||||
|
|
||||||
|
string fname;
|
||||||
|
|
||||||
|
for (int i = 1; i < 10; i++)
|
||||||
|
{
|
||||||
|
fname = "alert" + i.ToString() + Direction.ToString();
|
||||||
|
AlertForm frm = (AlertForm)Application.OpenForms[fname];
|
||||||
|
if (frm == null)
|
||||||
|
{
|
||||||
|
this.Name = fname;
|
||||||
|
// 初始位置
|
||||||
|
switch (Direction)
|
||||||
|
{
|
||||||
|
case ShowDirection.TopCenter:
|
||||||
|
this.x = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
|
||||||
|
this.y = Screen.PrimaryScreen.WorkingArea.Height / 2 - (this.Height * i + 5 * i);
|
||||||
|
break;
|
||||||
|
case ShowDirection.BottomRight:
|
||||||
|
this.x = Screen.PrimaryScreen.WorkingArea.Width - this.Width + 15;
|
||||||
|
this.y = Screen.PrimaryScreen.WorkingArea.Height - this.Height * i - 5 * i;
|
||||||
|
break;
|
||||||
|
case ShowDirection.TopRight:
|
||||||
|
this.x = Screen.PrimaryScreen.WorkingArea.Width - this.Width + 15;
|
||||||
|
this.y = this.Height * i + 5 * i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
this.Location = new Point(this.x, this.y);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 横向最后的显示位置 形成滑动距离
|
||||||
|
switch (Direction)
|
||||||
|
{
|
||||||
|
case ShowDirection.BottomRight:
|
||||||
|
case ShowDirection.TopRight:
|
||||||
|
this.x = Screen.PrimaryScreen.WorkingArea.Width - base.Width - 5;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.lbMsg.Text = msg;
|
||||||
|
//字体大小自适应
|
||||||
|
LabelAutoSize();
|
||||||
|
this.Show();
|
||||||
|
this.action = ActionType.start;
|
||||||
|
this.hideTimer.Interval = 1;
|
||||||
|
this.hideTimer.Start();
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// msg文字大小自适应
|
||||||
|
/// </summary>
|
||||||
|
private void LabelAutoSize()
|
||||||
|
{
|
||||||
|
Font font;
|
||||||
|
while (true)
|
||||||
|
{
|
||||||
|
var lbFont = this.lbMsg.Font;
|
||||||
|
if (lbMsg.Right >= this.btnPicClose.Left)
|
||||||
|
{
|
||||||
|
font = new Font(lbFont.Name, lbFont.Size - 1, lbFont.Style);
|
||||||
|
this.lbMsg.Font = font;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var top = (this.Height - this.lbMsg.Height) / 2;
|
||||||
|
lbMsg.Top = top;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnPicClose_Click_1(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.hideTimer.Interval = 1;
|
||||||
|
this.action = ActionType.close;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void btnPicClose_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//this.hideTimer.Interval = 1;
|
||||||
|
// this.action = ActionType.close;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AlertForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void lbMsg_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void hideTimer_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
switch (this.action)
|
||||||
|
{
|
||||||
|
case ActionType.wait:
|
||||||
|
this.hideTimer.Interval = Duration;
|
||||||
|
this.action = ActionType.close;
|
||||||
|
break;
|
||||||
|
case ActionType.start:
|
||||||
|
this.hideTimer.Interval = 1;
|
||||||
|
this.Opacity += 0.1;
|
||||||
|
switch (Direction)
|
||||||
|
{
|
||||||
|
case ShowDirection.TopCenter:
|
||||||
|
if (this.Opacity.Equals(1.0))
|
||||||
|
{
|
||||||
|
this.action = ActionType.wait;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ShowDirection.BottomRight:
|
||||||
|
case ShowDirection.TopRight:
|
||||||
|
if (this.x < this.Location.X)
|
||||||
|
{
|
||||||
|
this.Left--;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (this.Opacity.Equals(1.0))
|
||||||
|
{
|
||||||
|
this.action = ActionType.wait;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case ActionType.close:
|
||||||
|
this.hideTimer.Interval = 1;
|
||||||
|
this.Opacity -= 0.1;
|
||||||
|
if (Direction == ShowDirection.TopCenter)
|
||||||
|
this.Top -= 10;
|
||||||
|
else
|
||||||
|
this.Left -= 3;
|
||||||
|
|
||||||
|
if (base.Opacity == 0.0)
|
||||||
|
base.Close();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
123
JJMediSys/AlertForm.resx
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="hideTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
102
JJMediSys/App.config
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<configSections>
|
||||||
|
<sectionGroup name="GROUP">
|
||||||
|
<section name="SGINFO" type="System.Configuration.NameValueFileSectionHandler">
|
||||||
|
</section>
|
||||||
|
<section name="RECP" type="System.Configuration.NameValueFileSectionHandler">
|
||||||
|
</section>
|
||||||
|
<section name="SGMODULE" type="System.Configuration.NameValueFileSectionHandler">
|
||||||
|
</section>
|
||||||
|
</sectionGroup>
|
||||||
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||||
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||||
|
</configSections>
|
||||||
|
<startup>
|
||||||
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
|
||||||
|
</startup>
|
||||||
|
<appSettings>
|
||||||
|
<add key="DeskName" value="1号窗口" />
|
||||||
|
<add key="WinType" value="Win10" />
|
||||||
|
<add key="Sql" value="server =127.0.0.8; port =3306; user id =root; password =Joju@vip168; database =hospital301; Charset = utf8mb4;Connection Timeout=5;" />
|
||||||
|
<add key="RemPassword" value="1" />
|
||||||
|
<add key="Account" value="0338" />
|
||||||
|
<add key="Password" value="W11ZQVdX" />
|
||||||
|
<add key="ServiceIP" value="127.0.0.1" />
|
||||||
|
<add key="ServicePort" value="5565" />
|
||||||
|
<add key="ComPort" value="COM3" />
|
||||||
|
<add key="baudRate" value="230400" />
|
||||||
|
<add key="dataBit" value="8" />
|
||||||
|
<add key="stopBits" value="1" />
|
||||||
|
<add key="parity" value="0" />
|
||||||
|
<add key="isShare" value="0" />
|
||||||
|
<add key="ShowComLog" value="0" />
|
||||||
|
<add key="TGxx" value="180;7;5" />
|
||||||
|
<add key="AutoClose" value="1" />
|
||||||
|
<!--自动关闭出管弹窗 0不启用 1启用-->
|
||||||
|
<add key="AutoCloseTime" value="5" />
|
||||||
|
<add key="UseBLE" value="1" />
|
||||||
|
<!--蓝牙盒子 0不启用 1启用-->
|
||||||
|
<add key="BoxMaxTubeCount" value="12" />
|
||||||
|
<!--单个盒子最大存管数-->
|
||||||
|
<add key="ExtBLE" value="0" />
|
||||||
|
<!--外部蓝牙服务 0不启用 1启用-->
|
||||||
|
<add key="BLEServer" value="172.16.29.178" />
|
||||||
|
<!--外部蓝牙服务中心 配置了地址后 将使用外部蓝牙地址-->
|
||||||
|
<add key="STATSRules" value="SG^黄管^黄;^其他^1|SG^蓝管^蓝;^其他^1|SG^浅紫管^浅紫;^其他^1|SG^绿管^绿;^其他^1|XM^血沉^全血糖化血红蛋白测定;血常规;^其他^1|XM^胰岛素^胰岛素测定;^其他^0|" />
|
||||||
|
<add key="RecpFormat" value="B075015260060|{pictureBox1}@TB18033172417030|L^{ItemInfo}@TB20280141140030|L^{CardNo}@TB20184142093030|L^{ItemType}@TB20034142150030|L^{OprTime}@TB18318112129030|L^{OprDept}@TB18178112140030|L^{DoDept}@T 20356035051030|L^{Tuble}@TB20145080144030|C^{Barcode}@TB20139111039030|C^{patSex}@TB20034111105030|L^{patName}" />
|
||||||
|
<!--数据统计规则-->
|
||||||
|
</appSettings>
|
||||||
|
<GROUP>
|
||||||
|
<SGINFO>
|
||||||
|
<add key="G1" value="1|标签1| |1004110|红|1782;65;64">
|
||||||
|
</add>
|
||||||
|
<add key="G2" value="1|标签1| |1004150|黄|1782;65;64">
|
||||||
|
</add>
|
||||||
|
<add key="G3" value="1|标签1| |1004130|黄|1782;65;64">
|
||||||
|
</add>
|
||||||
|
<add key="G4" value="1|标签1| |1004110|黄|1782;65;64">
|
||||||
|
</add>
|
||||||
|
<add key="G5" value="1|标签1| |1004105|黄|1782;65;64">
|
||||||
|
</add>
|
||||||
|
<add key="G6" value="1|标签1| |1004130|浅紫|1782;65;64">
|
||||||
|
</add>
|
||||||
|
<add key="G7" value="1|标签1| |1004130|浅紫|1782;65;64">
|
||||||
|
</add>
|
||||||
|
</SGINFO>
|
||||||
|
<RECP>
|
||||||
|
<add key="标签1" value="">
|
||||||
|
</add>
|
||||||
|
<add key="标签2" value="">
|
||||||
|
</add>
|
||||||
|
<add key="标签3" value="">
|
||||||
|
</add>
|
||||||
|
</RECP>
|
||||||
|
<SGMODULE>
|
||||||
|
<add key="1004130" value="">
|
||||||
|
</add>
|
||||||
|
<add key="1004150" value="">
|
||||||
|
</add>
|
||||||
|
<add key="1004110" value="">
|
||||||
|
</add>
|
||||||
|
<add key="1004105" value="">
|
||||||
|
</add>
|
||||||
|
</SGMODULE>
|
||||||
|
</GROUP>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="log4net" publicKeyToken="669e0ddf0bb1aa2a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-3.0.3.0" newVersion="3.0.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-4.1.4.0" newVersion="4.1.4.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
|
</configuration>
|
||||||
741
JJMediSys/DataHistory.Designer.cs
generated
Normal file
@@ -0,0 +1,741 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class DataHistory
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.PicClear4 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.PicClear3 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.PicClear2 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.PicClear1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.TextCAOZY = new System.Windows.Forms.TextBox();
|
||||||
|
this.时间设置 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.RadioZX = new System.Windows.Forms.RadioButton();
|
||||||
|
this.RadioKD = new System.Windows.Forms.RadioButton();
|
||||||
|
this.dateStart = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.label16 = new System.Windows.Forms.Label();
|
||||||
|
this.dateEnd = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.TextSearhName = new System.Windows.Forms.TextBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.TextSearhItemID = new System.Windows.Forms.TextBox();
|
||||||
|
this.label15 = new System.Windows.Forms.Label();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.TextSearhCardNo = new System.Windows.Forms.TextBox();
|
||||||
|
this.BSearch = new System.Windows.Forms.Button();
|
||||||
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
|
this.LabNote = new System.Windows.Forms.Label();
|
||||||
|
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||||
|
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||||
|
this.XH = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatID = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatName = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatAge = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatSex = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Barcode = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Tuble = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemName = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemCount = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Status = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.JYType = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.DoDept = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.OperTime = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.OperDept = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PrintTime = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PrintDev = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemDetails = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.RecpOnly = new DevExpress.XtraEditors.CheckEdit();
|
||||||
|
this.bDistory = new System.Windows.Forms.Button();
|
||||||
|
this.bPrint = new System.Windows.Forms.Button();
|
||||||
|
this.PanelAction = new System.Windows.Forms.Panel();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
this.groupBox1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear4)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear3)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear2)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear1)).BeginInit();
|
||||||
|
this.时间设置.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).BeginInit();
|
||||||
|
this.panel2.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.RecpOnly.Properties)).BeginInit();
|
||||||
|
this.PanelAction.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.Controls.Add(this.groupBox1);
|
||||||
|
this.panel1.Location = new System.Drawing.Point(1, 2);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(1666, 145);
|
||||||
|
this.panel1.TabIndex = 0;
|
||||||
|
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
|
||||||
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Controls.Add(this.PicClear4);
|
||||||
|
this.groupBox1.Controls.Add(this.PicClear3);
|
||||||
|
this.groupBox1.Controls.Add(this.PicClear2);
|
||||||
|
this.groupBox1.Controls.Add(this.PicClear1);
|
||||||
|
this.groupBox1.Controls.Add(this.label4);
|
||||||
|
this.groupBox1.Controls.Add(this.TextCAOZY);
|
||||||
|
this.groupBox1.Controls.Add(this.时间设置);
|
||||||
|
this.groupBox1.Controls.Add(this.label3);
|
||||||
|
this.groupBox1.Controls.Add(this.TextSearhName);
|
||||||
|
this.groupBox1.Controls.Add(this.label2);
|
||||||
|
this.groupBox1.Controls.Add(this.TextSearhItemID);
|
||||||
|
this.groupBox1.Controls.Add(this.label15);
|
||||||
|
this.groupBox1.Controls.Add(this.label1);
|
||||||
|
this.groupBox1.Controls.Add(this.TextSearhCardNo);
|
||||||
|
this.groupBox1.Controls.Add(this.BSearch);
|
||||||
|
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.groupBox1.ForeColor = System.Drawing.Color.DarkTurquoise;
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(1648, 132);
|
||||||
|
this.groupBox1.TabIndex = 4;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
this.groupBox1.Text = "搜索参数设置";
|
||||||
|
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
|
||||||
|
//
|
||||||
|
// PicClear4
|
||||||
|
//
|
||||||
|
this.PicClear4.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PicClear4.BackgroundImage = global::JJMediSys.Properties.Resources.删除__1_;
|
||||||
|
this.PicClear4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicClear4.Location = new System.Drawing.Point(1120, 91);
|
||||||
|
this.PicClear4.Name = "PicClear4";
|
||||||
|
this.PicClear4.Size = new System.Drawing.Size(29, 29);
|
||||||
|
this.PicClear4.TabIndex = 58;
|
||||||
|
this.PicClear4.TabStop = false;
|
||||||
|
this.PicClear4.Click += new System.EventHandler(this.PicClear4_Click);
|
||||||
|
//
|
||||||
|
// PicClear3
|
||||||
|
//
|
||||||
|
this.PicClear3.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PicClear3.BackgroundImage = global::JJMediSys.Properties.Resources.删除__1_;
|
||||||
|
this.PicClear3.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicClear3.Location = new System.Drawing.Point(820, 93);
|
||||||
|
this.PicClear3.Name = "PicClear3";
|
||||||
|
this.PicClear3.Size = new System.Drawing.Size(29, 29);
|
||||||
|
this.PicClear3.TabIndex = 57;
|
||||||
|
this.PicClear3.TabStop = false;
|
||||||
|
this.PicClear3.Click += new System.EventHandler(this.PicClear3_Click);
|
||||||
|
//
|
||||||
|
// PicClear2
|
||||||
|
//
|
||||||
|
this.PicClear2.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PicClear2.BackgroundImage = global::JJMediSys.Properties.Resources.删除__1_;
|
||||||
|
this.PicClear2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicClear2.Location = new System.Drawing.Point(529, 93);
|
||||||
|
this.PicClear2.Name = "PicClear2";
|
||||||
|
this.PicClear2.Size = new System.Drawing.Size(29, 29);
|
||||||
|
this.PicClear2.TabIndex = 56;
|
||||||
|
this.PicClear2.TabStop = false;
|
||||||
|
this.PicClear2.Click += new System.EventHandler(this.PicClear2_Click);
|
||||||
|
//
|
||||||
|
// PicClear1
|
||||||
|
//
|
||||||
|
this.PicClear1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PicClear1.BackgroundImage = global::JJMediSys.Properties.Resources.删除__1_;
|
||||||
|
this.PicClear1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicClear1.Location = new System.Drawing.Point(253, 93);
|
||||||
|
this.PicClear1.Name = "PicClear1";
|
||||||
|
this.PicClear1.Size = new System.Drawing.Size(29, 29);
|
||||||
|
this.PicClear1.TabIndex = 55;
|
||||||
|
this.PicClear1.TabStop = false;
|
||||||
|
this.PicClear1.Click += new System.EventHandler(this.PicClear1_Click);
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label4.Location = new System.Drawing.Point(858, 95);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(74, 25);
|
||||||
|
this.label4.TabIndex = 54;
|
||||||
|
this.label4.Text = "操作员:";
|
||||||
|
this.label4.Click += new System.EventHandler(this.label4_Click);
|
||||||
|
//
|
||||||
|
// TextCAOZY
|
||||||
|
//
|
||||||
|
this.TextCAOZY.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextCAOZY.Location = new System.Drawing.Point(932, 93);
|
||||||
|
this.TextCAOZY.Name = "TextCAOZY";
|
||||||
|
this.TextCAOZY.Size = new System.Drawing.Size(188, 29);
|
||||||
|
this.TextCAOZY.TabIndex = 53;
|
||||||
|
this.TextCAOZY.TextChanged += new System.EventHandler(this.TextCAOZY_TextChanged);
|
||||||
|
//
|
||||||
|
// 时间设置
|
||||||
|
//
|
||||||
|
this.时间设置.Controls.Add(this.RadioZX);
|
||||||
|
this.时间设置.Controls.Add(this.RadioKD);
|
||||||
|
this.时间设置.Controls.Add(this.dateStart);
|
||||||
|
this.时间设置.Controls.Add(this.label16);
|
||||||
|
this.时间设置.Controls.Add(this.dateEnd);
|
||||||
|
this.时间设置.Location = new System.Drawing.Point(105, 12);
|
||||||
|
this.时间设置.Name = "时间设置";
|
||||||
|
this.时间设置.Size = new System.Drawing.Size(416, 78);
|
||||||
|
this.时间设置.TabIndex = 52;
|
||||||
|
this.时间设置.TabStop = false;
|
||||||
|
this.时间设置.Text = "时间设置";
|
||||||
|
this.时间设置.Enter += new System.EventHandler(this.时间设置_Enter);
|
||||||
|
//
|
||||||
|
// RadioZX
|
||||||
|
//
|
||||||
|
this.RadioZX.AutoSize = true;
|
||||||
|
this.RadioZX.Location = new System.Drawing.Point(17, 48);
|
||||||
|
this.RadioZX.Name = "RadioZX";
|
||||||
|
this.RadioZX.Size = new System.Drawing.Size(83, 24);
|
||||||
|
this.RadioZX.TabIndex = 49;
|
||||||
|
this.RadioZX.Text = "执行时间";
|
||||||
|
this.RadioZX.UseVisualStyleBackColor = true;
|
||||||
|
this.RadioZX.CheckedChanged += new System.EventHandler(this.RadioZX_CheckedChanged);
|
||||||
|
//
|
||||||
|
// RadioKD
|
||||||
|
//
|
||||||
|
this.RadioKD.AutoSize = true;
|
||||||
|
this.RadioKD.Location = new System.Drawing.Point(17, 22);
|
||||||
|
this.RadioKD.Name = "RadioKD";
|
||||||
|
this.RadioKD.Size = new System.Drawing.Size(83, 24);
|
||||||
|
this.RadioKD.TabIndex = 48;
|
||||||
|
this.RadioKD.Text = "开单时间";
|
||||||
|
this.RadioKD.UseVisualStyleBackColor = true;
|
||||||
|
this.RadioKD.CheckedChanged += new System.EventHandler(this.RadioKD_CheckedChanged);
|
||||||
|
//
|
||||||
|
// dateStart
|
||||||
|
//
|
||||||
|
this.dateStart.EditValue = null;
|
||||||
|
this.dateStart.Location = new System.Drawing.Point(136, 30);
|
||||||
|
this.dateStart.Name = "dateStart";
|
||||||
|
this.dateStart.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateStart.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateStart.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateStart.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateStart.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateStart.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateStart.TabIndex = 46;
|
||||||
|
this.dateStart.EditValueChanged += new System.EventHandler(this.dateStart_EditValueChanged);
|
||||||
|
//
|
||||||
|
// label16
|
||||||
|
//
|
||||||
|
this.label16.AutoSize = true;
|
||||||
|
this.label16.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label16.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label16.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label16.Location = new System.Drawing.Point(242, 29);
|
||||||
|
this.label16.Name = "label16";
|
||||||
|
this.label16.Size = new System.Drawing.Size(20, 26);
|
||||||
|
this.label16.TabIndex = 45;
|
||||||
|
this.label16.Text = "-";
|
||||||
|
this.label16.Click += new System.EventHandler(this.label16_Click);
|
||||||
|
//
|
||||||
|
// dateEnd
|
||||||
|
//
|
||||||
|
this.dateEnd.EditValue = null;
|
||||||
|
this.dateEnd.Location = new System.Drawing.Point(262, 30);
|
||||||
|
this.dateEnd.Name = "dateEnd";
|
||||||
|
this.dateEnd.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateEnd.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateEnd.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateEnd.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateEnd.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateEnd.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateEnd.TabIndex = 47;
|
||||||
|
this.dateEnd.EditValueChanged += new System.EventHandler(this.dateEnd_EditValueChanged);
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label3.Location = new System.Drawing.Point(286, 95);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label3.TabIndex = 51;
|
||||||
|
this.label3.Text = "姓名:";
|
||||||
|
this.label3.Click += new System.EventHandler(this.label3_Click);
|
||||||
|
//
|
||||||
|
// TextSearhName
|
||||||
|
//
|
||||||
|
this.TextSearhName.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextSearhName.Location = new System.Drawing.Point(341, 94);
|
||||||
|
this.TextSearhName.Name = "TextSearhName";
|
||||||
|
this.TextSearhName.Size = new System.Drawing.Size(188, 29);
|
||||||
|
this.TextSearhName.TabIndex = 50;
|
||||||
|
this.TextSearhName.TextChanged += new System.EventHandler(this.TextSearhName_TextChanged);
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label2.Location = new System.Drawing.Point(558, 96);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(74, 25);
|
||||||
|
this.label2.TabIndex = 49;
|
||||||
|
this.label2.Text = "检验号:";
|
||||||
|
this.label2.Click += new System.EventHandler(this.label2_Click);
|
||||||
|
//
|
||||||
|
// TextSearhItemID
|
||||||
|
//
|
||||||
|
this.TextSearhItemID.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextSearhItemID.Location = new System.Drawing.Point(632, 94);
|
||||||
|
this.TextSearhItemID.Name = "TextSearhItemID";
|
||||||
|
this.TextSearhItemID.Size = new System.Drawing.Size(188, 29);
|
||||||
|
this.TextSearhItemID.TabIndex = 48;
|
||||||
|
this.TextSearhItemID.TextChanged += new System.EventHandler(this.TextSearhItemID_TextChanged);
|
||||||
|
//
|
||||||
|
// label15
|
||||||
|
//
|
||||||
|
this.label15.AutoSize = true;
|
||||||
|
this.label15.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label15.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label15.Location = new System.Drawing.Point(6, 34);
|
||||||
|
this.label15.Name = "label15";
|
||||||
|
this.label15.Size = new System.Drawing.Size(93, 26);
|
||||||
|
this.label15.TabIndex = 44;
|
||||||
|
this.label15.Text = "时间范围:";
|
||||||
|
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
this.label15.Click += new System.EventHandler(this.label15_Click);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(8, 95);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label1.TabIndex = 39;
|
||||||
|
this.label1.Text = "卡号:";
|
||||||
|
this.label1.Click += new System.EventHandler(this.label1_Click);
|
||||||
|
//
|
||||||
|
// TextSearhCardNo
|
||||||
|
//
|
||||||
|
this.TextSearhCardNo.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextSearhCardNo.Location = new System.Drawing.Point(65, 94);
|
||||||
|
this.TextSearhCardNo.Name = "TextSearhCardNo";
|
||||||
|
this.TextSearhCardNo.Size = new System.Drawing.Size(188, 29);
|
||||||
|
this.TextSearhCardNo.TabIndex = 38;
|
||||||
|
this.TextSearhCardNo.TextChanged += new System.EventHandler(this.TextSearhCardNo_TextChanged);
|
||||||
|
//
|
||||||
|
// BSearch
|
||||||
|
//
|
||||||
|
this.BSearch.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BSearch.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BSearch.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSearch.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
||||||
|
this.BSearch.Location = new System.Drawing.Point(1160, 87);
|
||||||
|
this.BSearch.Name = "BSearch";
|
||||||
|
this.BSearch.Size = new System.Drawing.Size(124, 39);
|
||||||
|
this.BSearch.TabIndex = 3;
|
||||||
|
this.BSearch.Text = "搜 索";
|
||||||
|
this.BSearch.UseVisualStyleBackColor = true;
|
||||||
|
this.BSearch.Click += new System.EventHandler(this.BSearch_Click);
|
||||||
|
//
|
||||||
|
// panel2
|
||||||
|
//
|
||||||
|
this.panel2.Controls.Add(this.LabNote);
|
||||||
|
this.panel2.Controls.Add(this.gridControl1);
|
||||||
|
this.panel2.Location = new System.Drawing.Point(1, 154);
|
||||||
|
this.panel2.Name = "panel2";
|
||||||
|
this.panel2.Size = new System.Drawing.Size(1475, 525);
|
||||||
|
this.panel2.TabIndex = 1;
|
||||||
|
this.panel2.Paint += new System.Windows.Forms.PaintEventHandler(this.panel2_Paint);
|
||||||
|
//
|
||||||
|
// LabNote
|
||||||
|
//
|
||||||
|
this.LabNote.AutoSize = true;
|
||||||
|
this.LabNote.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabNote.ForeColor = System.Drawing.Color.SteelBlue;
|
||||||
|
this.LabNote.Location = new System.Drawing.Point(3, 505);
|
||||||
|
this.LabNote.Name = "LabNote";
|
||||||
|
this.LabNote.Size = new System.Drawing.Size(0, 14);
|
||||||
|
this.LabNote.TabIndex = 2;
|
||||||
|
this.LabNote.Click += new System.EventHandler(this.LabNote_Click);
|
||||||
|
//
|
||||||
|
// gridControl1
|
||||||
|
//
|
||||||
|
this.gridControl1.EmbeddedNavigator.AllowDrop = true;
|
||||||
|
this.gridControl1.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.gridControl1.MainView = this.gridView1;
|
||||||
|
this.gridControl1.Name = "gridControl1";
|
||||||
|
this.gridControl1.Size = new System.Drawing.Size(1459, 494);
|
||||||
|
this.gridControl1.TabIndex = 1;
|
||||||
|
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||||
|
this.gridView1});
|
||||||
|
this.gridControl1.Click += new System.EventHandler(this.gridControl1_Click);
|
||||||
|
//
|
||||||
|
// gridView1
|
||||||
|
//
|
||||||
|
this.gridView1.Appearance.EvenRow.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.gridView1.Appearance.EvenRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Appearance.OddRow.BackColor = System.Drawing.Color.AliceBlue;
|
||||||
|
this.gridView1.Appearance.OddRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||||
|
this.XH,
|
||||||
|
this.PatID,
|
||||||
|
this.PatName,
|
||||||
|
this.PatAge,
|
||||||
|
this.PatSex,
|
||||||
|
this.Barcode,
|
||||||
|
this.Tuble,
|
||||||
|
this.ItemName,
|
||||||
|
this.ItemCount,
|
||||||
|
this.Status,
|
||||||
|
this.JYType,
|
||||||
|
this.DoDept,
|
||||||
|
this.OperTime,
|
||||||
|
this.OperDept,
|
||||||
|
this.PrintTime,
|
||||||
|
this.PrintDev,
|
||||||
|
this.ItemDetails});
|
||||||
|
this.gridView1.GridControl = this.gridControl1;
|
||||||
|
this.gridView1.Name = "gridView1";
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsSelection.MultiSelect = true;
|
||||||
|
this.gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsView.ShowGroupPanel = false;
|
||||||
|
this.gridView1.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(this.gridView1_RowCellClick);
|
||||||
|
this.gridView1.RowCellStyle += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(this.gridView1_RowCellStyle);
|
||||||
|
this.gridView1.SelectionChanged += new DevExpress.Data.SelectionChangedEventHandler(this.gridView1_SelectionChanged);
|
||||||
|
this.gridView1.CustomColumnDisplayText += new DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventHandler(this.gridView1_CustomColumnDisplayText);
|
||||||
|
this.gridView1.DoubleClick += new System.EventHandler(this.gridView1_DoubleClick);
|
||||||
|
//
|
||||||
|
// XH
|
||||||
|
//
|
||||||
|
this.XH.Caption = "序号";
|
||||||
|
this.XH.FieldName = "ID";
|
||||||
|
this.XH.Name = "XH";
|
||||||
|
this.XH.Visible = true;
|
||||||
|
this.XH.VisibleIndex = 1;
|
||||||
|
this.XH.Width = 21;
|
||||||
|
//
|
||||||
|
// PatID
|
||||||
|
//
|
||||||
|
this.PatID.Caption = "卡号";
|
||||||
|
this.PatID.FieldName = "PatID";
|
||||||
|
this.PatID.Name = "PatID";
|
||||||
|
this.PatID.Visible = true;
|
||||||
|
this.PatID.VisibleIndex = 2;
|
||||||
|
this.PatID.Width = 48;
|
||||||
|
//
|
||||||
|
// PatName
|
||||||
|
//
|
||||||
|
this.PatName.Caption = "姓名";
|
||||||
|
this.PatName.FieldName = "PatName";
|
||||||
|
this.PatName.Name = "PatName";
|
||||||
|
this.PatName.Visible = true;
|
||||||
|
this.PatName.VisibleIndex = 3;
|
||||||
|
this.PatName.Width = 43;
|
||||||
|
//
|
||||||
|
// PatAge
|
||||||
|
//
|
||||||
|
this.PatAge.Caption = "年龄";
|
||||||
|
this.PatAge.FieldName = "PatAge";
|
||||||
|
this.PatAge.Name = "PatAge";
|
||||||
|
this.PatAge.Visible = true;
|
||||||
|
this.PatAge.VisibleIndex = 4;
|
||||||
|
this.PatAge.Width = 21;
|
||||||
|
//
|
||||||
|
// PatSex
|
||||||
|
//
|
||||||
|
this.PatSex.Caption = "性别";
|
||||||
|
this.PatSex.FieldName = "PatSex";
|
||||||
|
this.PatSex.Name = "PatSex";
|
||||||
|
this.PatSex.Visible = true;
|
||||||
|
this.PatSex.VisibleIndex = 5;
|
||||||
|
this.PatSex.Width = 23;
|
||||||
|
//
|
||||||
|
// Barcode
|
||||||
|
//
|
||||||
|
this.Barcode.Caption = "标本条码";
|
||||||
|
this.Barcode.FieldName = "Barcode";
|
||||||
|
this.Barcode.Name = "Barcode";
|
||||||
|
this.Barcode.Visible = true;
|
||||||
|
this.Barcode.VisibleIndex = 6;
|
||||||
|
this.Barcode.Width = 48;
|
||||||
|
//
|
||||||
|
// Tuble
|
||||||
|
//
|
||||||
|
this.Tuble.Caption = "试管";
|
||||||
|
this.Tuble.FieldName = "Tuble";
|
||||||
|
this.Tuble.Name = "Tuble";
|
||||||
|
this.Tuble.Visible = true;
|
||||||
|
this.Tuble.VisibleIndex = 7;
|
||||||
|
this.Tuble.Width = 33;
|
||||||
|
//
|
||||||
|
// ItemName
|
||||||
|
//
|
||||||
|
this.ItemName.Caption = "检验项目";
|
||||||
|
this.ItemName.FieldName = "ItemName";
|
||||||
|
this.ItemName.Name = "ItemName";
|
||||||
|
this.ItemName.Visible = true;
|
||||||
|
this.ItemName.VisibleIndex = 8;
|
||||||
|
this.ItemName.Width = 127;
|
||||||
|
//
|
||||||
|
// ItemCount
|
||||||
|
//
|
||||||
|
this.ItemCount.Caption = "数量";
|
||||||
|
this.ItemCount.FieldName = "ItemCount";
|
||||||
|
this.ItemCount.Name = "ItemCount";
|
||||||
|
this.ItemCount.Visible = true;
|
||||||
|
this.ItemCount.VisibleIndex = 9;
|
||||||
|
this.ItemCount.Width = 20;
|
||||||
|
//
|
||||||
|
// Status
|
||||||
|
//
|
||||||
|
this.Status.Caption = "执行状态";
|
||||||
|
this.Status.FieldName = "ItemStatus";
|
||||||
|
this.Status.Name = "Status";
|
||||||
|
this.Status.Visible = true;
|
||||||
|
this.Status.VisibleIndex = 10;
|
||||||
|
this.Status.Width = 41;
|
||||||
|
//
|
||||||
|
// JYType
|
||||||
|
//
|
||||||
|
this.JYType.Caption = "样本类型";
|
||||||
|
this.JYType.FieldName = "ItemType";
|
||||||
|
this.JYType.Name = "JYType";
|
||||||
|
this.JYType.Visible = true;
|
||||||
|
this.JYType.VisibleIndex = 11;
|
||||||
|
this.JYType.Width = 33;
|
||||||
|
//
|
||||||
|
// DoDept
|
||||||
|
//
|
||||||
|
this.DoDept.Caption = "执行科室";
|
||||||
|
this.DoDept.FieldName = "DoDept";
|
||||||
|
this.DoDept.Name = "DoDept";
|
||||||
|
this.DoDept.Visible = true;
|
||||||
|
this.DoDept.VisibleIndex = 12;
|
||||||
|
this.DoDept.Width = 34;
|
||||||
|
//
|
||||||
|
// OperTime
|
||||||
|
//
|
||||||
|
this.OperTime.Caption = "开单时间";
|
||||||
|
this.OperTime.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
this.OperTime.FieldName = "OprTime";
|
||||||
|
this.OperTime.Name = "OperTime";
|
||||||
|
this.OperTime.Visible = true;
|
||||||
|
this.OperTime.VisibleIndex = 13;
|
||||||
|
this.OperTime.Width = 99;
|
||||||
|
//
|
||||||
|
// OperDept
|
||||||
|
//
|
||||||
|
this.OperDept.Caption = "开单科室";
|
||||||
|
this.OperDept.FieldName = "OprDept";
|
||||||
|
this.OperDept.Name = "OperDept";
|
||||||
|
this.OperDept.Visible = true;
|
||||||
|
this.OperDept.VisibleIndex = 14;
|
||||||
|
this.OperDept.Width = 69;
|
||||||
|
//
|
||||||
|
// PrintTime
|
||||||
|
//
|
||||||
|
this.PrintTime.Caption = "打印时间";
|
||||||
|
this.PrintTime.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
this.PrintTime.FieldName = "PrintTime";
|
||||||
|
this.PrintTime.Name = "PrintTime";
|
||||||
|
this.PrintTime.Visible = true;
|
||||||
|
this.PrintTime.VisibleIndex = 15;
|
||||||
|
this.PrintTime.Width = 92;
|
||||||
|
//
|
||||||
|
// PrintDev
|
||||||
|
//
|
||||||
|
this.PrintDev.Caption = "打印人";
|
||||||
|
this.PrintDev.FieldName = "PrinterDev";
|
||||||
|
this.PrintDev.Name = "PrintDev";
|
||||||
|
this.PrintDev.Visible = true;
|
||||||
|
this.PrintDev.VisibleIndex = 16;
|
||||||
|
this.PrintDev.Width = 55;
|
||||||
|
//
|
||||||
|
// ItemDetails
|
||||||
|
//
|
||||||
|
this.ItemDetails.Caption = "明细";
|
||||||
|
this.ItemDetails.FieldName = "ItemsDetails";
|
||||||
|
this.ItemDetails.Name = "ItemDetails";
|
||||||
|
//
|
||||||
|
// RecpOnly
|
||||||
|
//
|
||||||
|
this.RecpOnly.Location = new System.Drawing.Point(22, 13);
|
||||||
|
this.RecpOnly.Name = "RecpOnly";
|
||||||
|
this.RecpOnly.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.RecpOnly.Properties.Appearance.ForeColor = System.Drawing.Color.CornflowerBlue;
|
||||||
|
this.RecpOnly.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.RecpOnly.Properties.Appearance.Options.UseForeColor = true;
|
||||||
|
this.RecpOnly.Properties.Caption = "打印不贴标";
|
||||||
|
this.RecpOnly.Size = new System.Drawing.Size(168, 27);
|
||||||
|
this.RecpOnly.TabIndex = 13;
|
||||||
|
this.RecpOnly.CheckedChanged += new System.EventHandler(this.RecpOnly_CheckedChanged);
|
||||||
|
//
|
||||||
|
// bDistory
|
||||||
|
//
|
||||||
|
this.bDistory.BackgroundImage = global::JJMediSys.Properties.Resources.Bt2;
|
||||||
|
this.bDistory.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.bDistory.FlatAppearance.BorderSize = 0;
|
||||||
|
this.bDistory.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.bDistory.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.bDistory.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.bDistory.Location = new System.Drawing.Point(247, 46);
|
||||||
|
this.bDistory.Name = "bDistory";
|
||||||
|
this.bDistory.Size = new System.Drawing.Size(179, 43);
|
||||||
|
this.bDistory.TabIndex = 12;
|
||||||
|
this.bDistory.Text = "一 键 作 废";
|
||||||
|
this.bDistory.UseVisualStyleBackColor = true;
|
||||||
|
this.bDistory.Click += new System.EventHandler(this.bDistory_Click);
|
||||||
|
//
|
||||||
|
// bPrint
|
||||||
|
//
|
||||||
|
this.bPrint.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.bPrint.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.bPrint.FlatAppearance.BorderSize = 0;
|
||||||
|
this.bPrint.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.bPrint.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.bPrint.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.bPrint.Location = new System.Drawing.Point(17, 46);
|
||||||
|
this.bPrint.Name = "bPrint";
|
||||||
|
this.bPrint.Size = new System.Drawing.Size(173, 43);
|
||||||
|
this.bPrint.TabIndex = 11;
|
||||||
|
this.bPrint.Text = "一 键 打 印";
|
||||||
|
this.bPrint.UseVisualStyleBackColor = true;
|
||||||
|
this.bPrint.Click += new System.EventHandler(this.bPrint_Click);
|
||||||
|
//
|
||||||
|
// PanelAction
|
||||||
|
//
|
||||||
|
this.PanelAction.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PanelAction.Controls.Add(this.RecpOnly);
|
||||||
|
this.PanelAction.Controls.Add(this.bPrint);
|
||||||
|
this.PanelAction.Controls.Add(this.bDistory);
|
||||||
|
this.PanelAction.Location = new System.Drawing.Point(4, 685);
|
||||||
|
this.PanelAction.Name = "PanelAction";
|
||||||
|
this.PanelAction.Size = new System.Drawing.Size(487, 100);
|
||||||
|
this.PanelAction.TabIndex = 14;
|
||||||
|
this.PanelAction.Visible = false;
|
||||||
|
this.PanelAction.Paint += new System.Windows.Forms.PaintEventHandler(this.PanelAction_Paint);
|
||||||
|
//
|
||||||
|
// DataHistory
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(1674, 786);
|
||||||
|
this.Controls.Add(this.PanelAction);
|
||||||
|
this.Controls.Add(this.panel2);
|
||||||
|
this.Controls.Add(this.panel1);
|
||||||
|
this.Name = "DataHistory";
|
||||||
|
this.Text = "历史数据查询";
|
||||||
|
this.Load += new System.EventHandler(this.DataHistory_Load);
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
this.groupBox1.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear4)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear3)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear2)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear1)).EndInit();
|
||||||
|
this.时间设置.ResumeLayout(false);
|
||||||
|
this.时间设置.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).EndInit();
|
||||||
|
this.panel2.ResumeLayout(false);
|
||||||
|
this.panel2.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.RecpOnly.Properties)).EndInit();
|
||||||
|
this.PanelAction.ResumeLayout(false);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.Panel panel2;
|
||||||
|
private DevExpress.XtraGrid.GridControl gridControl1;
|
||||||
|
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn XH;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatID;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatName;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatAge;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatSex;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Barcode;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Tuble;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemName;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemCount;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Status;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn JYType;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn DoDept;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn OperTime;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn OperDept;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PrintTime;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PrintDev;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemDetails;
|
||||||
|
private System.Windows.Forms.Button BSearch;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.TextBox TextSearhName;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.TextBox TextSearhItemID;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateEnd;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateStart;
|
||||||
|
private System.Windows.Forms.Label label16;
|
||||||
|
private System.Windows.Forms.Label label15;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.TextBox TextSearhCardNo;
|
||||||
|
private DevExpress.XtraEditors.CheckEdit RecpOnly;
|
||||||
|
private System.Windows.Forms.Button bDistory;
|
||||||
|
private System.Windows.Forms.Button bPrint;
|
||||||
|
private System.Windows.Forms.Panel PanelAction;
|
||||||
|
private System.Windows.Forms.GroupBox 时间设置;
|
||||||
|
private System.Windows.Forms.RadioButton RadioZX;
|
||||||
|
private System.Windows.Forms.RadioButton RadioKD;
|
||||||
|
private System.Windows.Forms.Label LabNote;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.TextBox TextCAOZY;
|
||||||
|
private System.Windows.Forms.PictureBox PicClear4;
|
||||||
|
private System.Windows.Forms.PictureBox PicClear3;
|
||||||
|
private System.Windows.Forms.PictureBox PicClear2;
|
||||||
|
private System.Windows.Forms.PictureBox PicClear1;
|
||||||
|
}
|
||||||
|
}
|
||||||
474
JJMediSys/DataHistory.cs
Normal file
@@ -0,0 +1,474 @@
|
|||||||
|
using JJMediSys.cs;
|
||||||
|
using JJServer;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class DataHistory : Form
|
||||||
|
{
|
||||||
|
public DataHistory()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Recp = "";
|
||||||
|
private void DataHistory_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
gridView1.OptionsBehavior.Editable = false;
|
||||||
|
gridView1.OptionsView.ShowIndicator = false;// 显示最左边空白列
|
||||||
|
|
||||||
|
//dateStart.Properties.ReadOnly = true;
|
||||||
|
//dateEnd.Properties.ReadOnly = true;
|
||||||
|
dateStart.DateTime = DateTime.Now;
|
||||||
|
dateEnd.DateTime = DateTime.Now;
|
||||||
|
PanelAction.Visible = false;
|
||||||
|
RadioZX.Checked = true;
|
||||||
|
Recp = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='RecpFormat']");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BSearch_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
DoSearch();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void DoSearch()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string TJ = "";
|
||||||
|
if (TextSearhItemID.Text.Length > 0)
|
||||||
|
{
|
||||||
|
TJ = " and Barcode ='" + TextSearhItemID.Text + "'";
|
||||||
|
}
|
||||||
|
else if (TextSearhCardNo.Text.Length > 0)
|
||||||
|
{
|
||||||
|
TJ = " and PatID ='" + TextSearhCardNo.Text + "'";
|
||||||
|
}
|
||||||
|
else if (TextSearhName.Text.Length > 0)
|
||||||
|
{
|
||||||
|
TJ = " and PatName ='" + TextSearhName.Text + "'";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (TextCAOZY.Text.Length > 0)
|
||||||
|
{
|
||||||
|
TJ = TJ+" and PrinterDev ='" + TextCAOZY.Text + "'";
|
||||||
|
}
|
||||||
|
|
||||||
|
string Key = "DBExcTime";
|
||||||
|
if (RadioKD.Checked)
|
||||||
|
Key = "OprTime";
|
||||||
|
|
||||||
|
string sql = "select * from trans_history where " + Key + " >'" + dateStart.DateTime.Date.ToString("yyyy-MM-dd") + "' and " + Key + " <='" + dateEnd.DateTime.Date.AddDays(1).ToString("yyyy-MM-dd") + "'" + TJ;
|
||||||
|
MainForm.logger.Info("Mysql sql=" + sql);
|
||||||
|
DataSet dataSet = DoDBMySql.Query(sql);
|
||||||
|
BindingSource bindingSource = new BindingSource();
|
||||||
|
bindingSource.DataSource = dataSet;
|
||||||
|
bindingSource.DataMember = "ds";
|
||||||
|
|
||||||
|
// 将 BindingSource 绑定到 GridControl
|
||||||
|
gridControl1.DataSource = bindingSource;
|
||||||
|
gridControl1.RefreshDataSource();
|
||||||
|
gridView1.RefreshData();
|
||||||
|
LabNote.Text = $"共检索到: {gridView1.DataRowCount} 条记录";
|
||||||
|
}
|
||||||
|
catch(Exception e)
|
||||||
|
{
|
||||||
|
MessageBox.Show(e.Message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Column.Name == "Tuble")
|
||||||
|
{
|
||||||
|
var v = e.CellValue;
|
||||||
|
if (v != null)
|
||||||
|
{
|
||||||
|
e.Appearance.BackColor = Color.FromName(MZCY.GetColorInfo(v.ToString(), false));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (e.Column.Name == "ItemDetails1")
|
||||||
|
{
|
||||||
|
var v = e.CellValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Column.FieldName == "ItemStatus")
|
||||||
|
{
|
||||||
|
if (e.Value != null)
|
||||||
|
{
|
||||||
|
string zsStatus = MZCY.TransItemStatus(e.Value.ToString());
|
||||||
|
e.DisplayText = zsStatus;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Column != null && e.Column.FieldName == "ItemName")
|
||||||
|
{
|
||||||
|
string detailes = gridView1.GetRowCellValue(e.RowHandle, "ItemsDetails").ToString();
|
||||||
|
ItemsShowBox itemsShowBox = new ItemsShowBox(detailes);
|
||||||
|
itemsShowBox.Show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void bPrint_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (gridView1.SelectedRowsCount <= 0)
|
||||||
|
{
|
||||||
|
MessageBox.Show("请先选择需要打印的试管");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
bool ItemStatusExp = false; //项目状态异常 需要进行提示
|
||||||
|
int[] selectedRowHandles = gridView1.GetSelectedRows();
|
||||||
|
// 遍历选中的行
|
||||||
|
PatientDatail patientDatail = new PatientDatail();
|
||||||
|
Patient_Info CurPatientInfo = new Patient_Info();
|
||||||
|
patientDatail.PatientInfo = CurPatientInfo;
|
||||||
|
List<jyData> jyDatas = new List<jyData>();
|
||||||
|
List<OrginData> orginDatas = new List<OrginData>();
|
||||||
|
foreach (int rowHandle in selectedRowHandles)
|
||||||
|
{
|
||||||
|
// 检查行是否有效
|
||||||
|
if (rowHandle >= 0 && rowHandle < gridView1.DataRowCount)
|
||||||
|
{
|
||||||
|
// 获取行数据
|
||||||
|
|
||||||
|
object dataRow = gridView1.GetDataRow(rowHandle);
|
||||||
|
string PatID = gridView1.GetRowCellValue(rowHandle, "PatID").ToString();
|
||||||
|
string PatName = gridView1.GetRowCellValue(rowHandle, "PatName").ToString();
|
||||||
|
string PatAge = gridView1.GetRowCellValue(rowHandle, "PatAge").ToString();
|
||||||
|
string PatSex = gridView1.GetRowCellValue(rowHandle, "PatSex").ToString();
|
||||||
|
if (CurPatientInfo.CardNo == null)
|
||||||
|
{
|
||||||
|
CurPatientInfo.CardNo = PatID;
|
||||||
|
CurPatientInfo.Name = PatName;
|
||||||
|
CurPatientInfo.Sex = PatSex;
|
||||||
|
CurPatientInfo.Age = PatAge;
|
||||||
|
}
|
||||||
|
else if(CurPatientInfo.CardNo!= PatID)
|
||||||
|
{
|
||||||
|
MessageBox.Show("所选试管不属于同一个患者,请确认后重试");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
string Barcode = gridView1.GetRowCellValue(rowHandle, "Barcode").ToString();
|
||||||
|
string Tuble = gridView1.GetRowCellValue(rowHandle, "Tuble").ToString();
|
||||||
|
string ItemName = gridView1.GetRowCellValue(rowHandle, "ItemName").ToString();
|
||||||
|
string ItemCount = gridView1.GetRowCellValue(rowHandle, "ItemCount").ToString();
|
||||||
|
string ItemType = gridView1.GetRowCellValue(rowHandle, "ItemType").ToString();
|
||||||
|
string DoDept = gridView1.GetRowCellValue(rowHandle, "DoDept").ToString();
|
||||||
|
string OprDept = gridView1.GetRowCellValue(rowHandle, "OprDept").ToString();
|
||||||
|
string OprTime = gridView1.GetRowCellValue(rowHandle, "OprTime").ToString();
|
||||||
|
string PrintTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||||
|
string ItemStatus = gridView1.GetRowCellValue(rowHandle, "ItemStatus").ToString(); ;
|
||||||
|
string ItemsDetails = gridView1.GetRowCellValue(rowHandle, "ItemsDetails").ToString();
|
||||||
|
if (!ItemStatus.Equals("未打印"))
|
||||||
|
{
|
||||||
|
ItemStatusExp = true;
|
||||||
|
}
|
||||||
|
jyData mjyData = new jyData();
|
||||||
|
mjyData.sgname = Tuble;
|
||||||
|
mjyData.Barcode = Barcode;
|
||||||
|
mjyData.itemInfo = ItemName;
|
||||||
|
var variables = new Dictionary<string, string>
|
||||||
|
{
|
||||||
|
{ "pictureBox1", Barcode },
|
||||||
|
{ "Barcode", Barcode },
|
||||||
|
{ "ItemInfo", ItemName },
|
||||||
|
{ "CardNo", PatID },
|
||||||
|
{ "ItemType", ItemType },
|
||||||
|
{ "OprTime", DateTime.Now.ToString("yyyy-MM-dd") },
|
||||||
|
{ "OprDept", OprDept },
|
||||||
|
{ "DoDept", DoDept },
|
||||||
|
{ "Tuble", Tuble },
|
||||||
|
{ "patSex", PatSex },
|
||||||
|
{ "patName", PatName }
|
||||||
|
};
|
||||||
|
string bqxx = Regex.Replace(Recp, @"\{(\w+)\}", match =>
|
||||||
|
{
|
||||||
|
string variableName = match.Groups[1].Value;
|
||||||
|
return variables.ContainsKey(variableName) ? variables[variableName] : match.Value;
|
||||||
|
});
|
||||||
|
//string bqxx = "B060010255050|" + mjyData.Barcode + "@TB18320020080040|L^" + Tuble + "@TB18110060220040|L^" + mjyData.Barcode + "@TB18032090400040|L^" + CurPatientInfo.Name + " " + CurPatientInfo.Sex + " " + OprDept + " " + DoDept + "@TB18032120400040|L^" + DateTime.Now.ToString("yyyy-MM-dd") + " " + ItemType + " " + CurPatientInfo.CardNo + "@TB18032150400080|L^" + mjyData.itemInfo;
|
||||||
|
if (!RecpOnly.Checked)
|
||||||
|
{
|
||||||
|
mjyData.sgxx = bqxx;
|
||||||
|
if (MZCY.CanDispense(mjyData.sgname))
|
||||||
|
{
|
||||||
|
mjyData.bqtype = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mjyData.bqtype = 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mjyData.sgxx = bqxx;
|
||||||
|
mjyData.bqtype = 2;
|
||||||
|
}
|
||||||
|
jyDatas.Add(mjyData);
|
||||||
|
OrginData orginData = new OrginData();
|
||||||
|
orginData.PatID = CurPatientInfo.CardNo;
|
||||||
|
orginData.PatName = CurPatientInfo.Name;
|
||||||
|
orginData.PatAge = CurPatientInfo.Age;
|
||||||
|
orginData.PatSex = CurPatientInfo.Sex;
|
||||||
|
orginData.Barcode = Barcode;
|
||||||
|
orginData.Tuble = Tuble;
|
||||||
|
orginData.ItemName = ItemName;
|
||||||
|
orginData.ItemCount = ItemCount;
|
||||||
|
orginData.ItemType = ItemType;
|
||||||
|
orginData.DoDept = DoDept;
|
||||||
|
orginData.OprDept = OprDept;
|
||||||
|
orginData.OprTime = OprTime;
|
||||||
|
orginData.PrintTime = PrintTime;
|
||||||
|
orginData.ItemStatus = "1";
|
||||||
|
orginData.ItemsDetails = ItemsDetails;
|
||||||
|
orginData.PrinterDev = Login.nurseDeskInfo.NurseName;
|
||||||
|
orginDatas.Add(orginData);
|
||||||
|
patientDatail.ItemCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
patientDatail.jyDatas = jyDatas;
|
||||||
|
patientDatail.OrginDatas = orginDatas;
|
||||||
|
if ( ItemStatusExp)
|
||||||
|
{
|
||||||
|
|
||||||
|
DialogResult dialogResult = MessageBox.Show("所选项目部分状态异常,是否确认打印?", "提示", MessageBoxButtons.YesNo);
|
||||||
|
if (dialogResult == DialogResult.No)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SystemSet.systemSet.myServer.ParseData(patientDatail);
|
||||||
|
|
||||||
|
//foreach (OrginData orginData in patientDatail.OrginDatas)
|
||||||
|
//{
|
||||||
|
// DoDBMySql.connectionString = Login.SqlConnect;
|
||||||
|
// string sql = "Insert into trans_history(PatID,PatName,PatAge,PatSex,Barcode,Tuble ,ItemName ,ItemCount,ItemType ,DoDept ,OprDept ,OprTime,PrintTime,ItemStatus,ItemsDetails,PrinterDev)values('" + orginData.PatID + "','" + orginData.PatName + "','" + orginData.PatAge + "','" + orginData.PatSex + "','" + orginData.Barcode + "','" + orginData.Tuble + "','" + orginData.ItemName + "','" + orginData.ItemCount + "','" + orginData.ItemType + "','" + orginData.DoDept + "','" + orginData.OprDept + "','" + orginData.OprTime + "','" + orginData.PrintTime + "','" + orginData.ItemStatus + "','" + orginData.ItemsDetails + "','" + orginData.PrinterDev + "') ON DUPLICATE KEY UPDATE Tuble = VALUES(Tuble),ItemName = VALUES(ItemName),ItemCount = VALUES(ItemCount),ItemType = VALUES(ItemType),OprTime = VALUES(OprTime),OprDept = VALUES(OprDept),DoDept = VALUES(DoDept),PrintTime = VALUES(PrintTime),ItemStatus = VALUES(ItemStatus),ItemsDetails = VALUES(ItemsDetails),PrinterDev = VALUES(PrinterDev)";
|
||||||
|
// int Ret = DoDBMySql.ExecuteSql(sql);
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void bDistory_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (gridView1.SelectedRowsCount <= 0)
|
||||||
|
{
|
||||||
|
MessageBox.Show("请先选择需要作废的试管");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
DialogResult dialogResult = MessageBox.Show($"即将作废选中的{gridView1.SelectedRowsCount}根试管", "警告", MessageBoxButtons.YesNo);
|
||||||
|
if (dialogResult == DialogResult.No)
|
||||||
|
return;
|
||||||
|
|
||||||
|
int[] selectedRowHandles = gridView1.GetSelectedRows();
|
||||||
|
// 遍历选中的行
|
||||||
|
List<string> IDs = new List<string>();
|
||||||
|
foreach (int rowHandle in selectedRowHandles)
|
||||||
|
{
|
||||||
|
// 检查行是否有效
|
||||||
|
if (rowHandle >= 0 && rowHandle < gridView1.DataRowCount)
|
||||||
|
{
|
||||||
|
// 获取行数据
|
||||||
|
object dataRow = gridView1.GetDataRow(rowHandle);
|
||||||
|
IDs.Add(gridView1.GetRowCellValue(rowHandle, "ID").ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (IDs.Count > 0)
|
||||||
|
{
|
||||||
|
string TJ = "";
|
||||||
|
foreach (string str in IDs)
|
||||||
|
{
|
||||||
|
if (TJ == "")
|
||||||
|
{
|
||||||
|
TJ = "'" + str + "'";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TJ = TJ + ",'" + str + "'";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
string sql = "Update trans_history Set ItemStatus='0', PrintTime=NULL ,PrinterDev='' where ID in(" + TJ + ")";
|
||||||
|
MainForm.logger.Info("Mysql sql=" + sql);
|
||||||
|
int Ret = DoDBMySql.ExecuteSql(sql);
|
||||||
|
}
|
||||||
|
DoSearch();
|
||||||
|
}
|
||||||
|
catch(Exception err)
|
||||||
|
{
|
||||||
|
MessageBox.Show(err.Message);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
if(gridView1.SelectedRowsCount<=0)
|
||||||
|
{
|
||||||
|
PanelAction.Visible = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PanelAction.Visible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void gridView1_DoubleClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (gridView1.RowCount > 0 && gridView1.FocusedColumn != null && gridView1.FocusedRowHandle >= 0)
|
||||||
|
{
|
||||||
|
string data = gridView1.GetFocusedRowCellDisplayText(gridView1.FocusedColumn);
|
||||||
|
if (!String.IsNullOrEmpty(data))
|
||||||
|
Clipboard.SetText(data, TextDataFormat.Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void groupBox1_Enter(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label4_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TextCAOZY_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void 时间设置_Enter(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RadioZX_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RadioKD_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void dateStart_EditValueChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label16_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void dateEnd_EditValueChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label3_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TextSearhName_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TextSearhItemID_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label15_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void label1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TextSearhCardNo_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void panel1_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void panel2_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LabNote_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridControl1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RecpOnly_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PanelAction_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PicClear1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TextSearhCardNo.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PicClear2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TextSearhName.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PicClear3_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TextSearhItemID.Clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PicClear4_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TextCAOZY.Clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/DataHistory.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
409
JJMediSys/DaylyHistory.Designer.cs
generated
Normal file
@@ -0,0 +1,409 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class DaylyHistory
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.uiButton1 = new Sunny.UI.UIButton();
|
||||||
|
this.PanelAction = new System.Windows.Forms.Panel();
|
||||||
|
this.RecpOnly = new DevExpress.XtraEditors.CheckEdit();
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
|
this.LabNote = new System.Windows.Forms.Label();
|
||||||
|
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||||
|
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||||
|
this.XH = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatID = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatName = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatAge = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PatSex = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Barcode = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Tuble = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemName = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemCount = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Status = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.JYType = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.DoDept = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.OperTime = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.OperDept = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PrintTime = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PrintDev = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemDetails = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PanelAction.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.RecpOnly.Properties)).BeginInit();
|
||||||
|
this.panel2.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label1.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.ForeColor = System.Drawing.Color.RoyalBlue;
|
||||||
|
this.label1.Location = new System.Drawing.Point(686, 4);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(160, 24);
|
||||||
|
this.label1.TabIndex = 0;
|
||||||
|
this.label1.Text = "当日记录查询";
|
||||||
|
//
|
||||||
|
// uiButton1
|
||||||
|
//
|
||||||
|
this.uiButton1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.uiButton1.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.uiButton1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.uiButton1.Location = new System.Drawing.Point(1282, 4);
|
||||||
|
this.uiButton1.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.uiButton1.Name = "uiButton1";
|
||||||
|
this.uiButton1.Size = new System.Drawing.Size(100, 27);
|
||||||
|
this.uiButton1.TabIndex = 6;
|
||||||
|
this.uiButton1.Text = "刷新列表";
|
||||||
|
this.uiButton1.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.uiButton1.Click += new System.EventHandler(this.BFresh_Click);
|
||||||
|
//
|
||||||
|
// PanelAction
|
||||||
|
//
|
||||||
|
this.PanelAction.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PanelAction.Controls.Add(this.RecpOnly);
|
||||||
|
this.PanelAction.Controls.Add(this.button1);
|
||||||
|
this.PanelAction.Location = new System.Drawing.Point(18, 739);
|
||||||
|
this.PanelAction.Name = "PanelAction";
|
||||||
|
this.PanelAction.Size = new System.Drawing.Size(428, 66);
|
||||||
|
this.PanelAction.TabIndex = 16;
|
||||||
|
this.PanelAction.Visible = false;
|
||||||
|
//
|
||||||
|
// RecpOnly
|
||||||
|
//
|
||||||
|
this.RecpOnly.Location = new System.Drawing.Point(3, 12);
|
||||||
|
this.RecpOnly.Name = "RecpOnly";
|
||||||
|
this.RecpOnly.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.RecpOnly.Properties.Appearance.ForeColor = System.Drawing.Color.CornflowerBlue;
|
||||||
|
this.RecpOnly.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.RecpOnly.Properties.Appearance.Options.UseForeColor = true;
|
||||||
|
this.RecpOnly.Properties.Caption = "只打标签";
|
||||||
|
this.RecpOnly.Size = new System.Drawing.Size(110, 27);
|
||||||
|
this.RecpOnly.TabIndex = 13;
|
||||||
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.button1.FlatAppearance.BorderSize = 0;
|
||||||
|
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.button1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.button1.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.button1.Location = new System.Drawing.Point(139, 5);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(173, 43);
|
||||||
|
this.button1.TabIndex = 11;
|
||||||
|
this.button1.Text = "一 键 补 打";
|
||||||
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
|
this.button1.Click += new System.EventHandler(this.button1_Click_1);
|
||||||
|
//
|
||||||
|
// panel2
|
||||||
|
//
|
||||||
|
this.panel2.Controls.Add(this.LabNote);
|
||||||
|
this.panel2.Controls.Add(this.gridControl1);
|
||||||
|
this.panel2.Location = new System.Drawing.Point(8, 48);
|
||||||
|
this.panel2.Name = "panel2";
|
||||||
|
this.panel2.Size = new System.Drawing.Size(1475, 689);
|
||||||
|
this.panel2.TabIndex = 15;
|
||||||
|
//
|
||||||
|
// LabNote
|
||||||
|
//
|
||||||
|
this.LabNote.AutoSize = true;
|
||||||
|
this.LabNote.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabNote.ForeColor = System.Drawing.Color.SteelBlue;
|
||||||
|
this.LabNote.Location = new System.Drawing.Point(3, 666);
|
||||||
|
this.LabNote.Name = "LabNote";
|
||||||
|
this.LabNote.Size = new System.Drawing.Size(0, 14);
|
||||||
|
this.LabNote.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// gridControl1
|
||||||
|
//
|
||||||
|
this.gridControl1.EmbeddedNavigator.AllowDrop = true;
|
||||||
|
this.gridControl1.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.gridControl1.MainView = this.gridView1;
|
||||||
|
this.gridControl1.Name = "gridControl1";
|
||||||
|
this.gridControl1.Size = new System.Drawing.Size(1459, 656);
|
||||||
|
this.gridControl1.TabIndex = 1;
|
||||||
|
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||||
|
this.gridView1});
|
||||||
|
//
|
||||||
|
// gridView1
|
||||||
|
//
|
||||||
|
this.gridView1.Appearance.EvenRow.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.gridView1.Appearance.EvenRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Appearance.OddRow.BackColor = System.Drawing.Color.AliceBlue;
|
||||||
|
this.gridView1.Appearance.OddRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||||
|
this.XH,
|
||||||
|
this.PatID,
|
||||||
|
this.PatName,
|
||||||
|
this.PatAge,
|
||||||
|
this.PatSex,
|
||||||
|
this.Barcode,
|
||||||
|
this.Tuble,
|
||||||
|
this.ItemName,
|
||||||
|
this.ItemCount,
|
||||||
|
this.Status,
|
||||||
|
this.JYType,
|
||||||
|
this.DoDept,
|
||||||
|
this.OperTime,
|
||||||
|
this.OperDept,
|
||||||
|
this.PrintTime,
|
||||||
|
this.PrintDev,
|
||||||
|
this.ItemDetails});
|
||||||
|
this.gridView1.GridControl = this.gridControl1;
|
||||||
|
this.gridView1.Name = "gridView1";
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsSelection.MultiSelect = true;
|
||||||
|
this.gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsView.ShowGroupPanel = false;
|
||||||
|
this.gridView1.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(this.gridView1_RowCellClick);
|
||||||
|
this.gridView1.RowCellStyle += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(this.gridView1_RowCellStyle);
|
||||||
|
this.gridView1.SelectionChanged += new DevExpress.Data.SelectionChangedEventHandler(this.gridView1_SelectionChanged);
|
||||||
|
this.gridView1.CustomColumnDisplayText += new DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventHandler(this.gridView1_CustomColumnDisplayText);
|
||||||
|
this.gridView1.DoubleClick += new System.EventHandler(this.gridView1_DoubleClick);
|
||||||
|
//
|
||||||
|
// XH
|
||||||
|
//
|
||||||
|
this.XH.Caption = "序号";
|
||||||
|
this.XH.FieldName = "ID";
|
||||||
|
this.XH.Name = "XH";
|
||||||
|
this.XH.Visible = true;
|
||||||
|
this.XH.VisibleIndex = 1;
|
||||||
|
this.XH.Width = 21;
|
||||||
|
//
|
||||||
|
// PatID
|
||||||
|
//
|
||||||
|
this.PatID.Caption = "卡号";
|
||||||
|
this.PatID.FieldName = "PatID";
|
||||||
|
this.PatID.Name = "PatID";
|
||||||
|
this.PatID.Visible = true;
|
||||||
|
this.PatID.VisibleIndex = 2;
|
||||||
|
this.PatID.Width = 48;
|
||||||
|
//
|
||||||
|
// PatName
|
||||||
|
//
|
||||||
|
this.PatName.Caption = "姓名";
|
||||||
|
this.PatName.FieldName = "PatName";
|
||||||
|
this.PatName.Name = "PatName";
|
||||||
|
this.PatName.Visible = true;
|
||||||
|
this.PatName.VisibleIndex = 3;
|
||||||
|
this.PatName.Width = 43;
|
||||||
|
//
|
||||||
|
// PatAge
|
||||||
|
//
|
||||||
|
this.PatAge.Caption = "年龄";
|
||||||
|
this.PatAge.FieldName = "PatAge";
|
||||||
|
this.PatAge.Name = "PatAge";
|
||||||
|
this.PatAge.Visible = true;
|
||||||
|
this.PatAge.VisibleIndex = 4;
|
||||||
|
this.PatAge.Width = 21;
|
||||||
|
//
|
||||||
|
// PatSex
|
||||||
|
//
|
||||||
|
this.PatSex.Caption = "性别";
|
||||||
|
this.PatSex.FieldName = "PatSex";
|
||||||
|
this.PatSex.Name = "PatSex";
|
||||||
|
this.PatSex.Visible = true;
|
||||||
|
this.PatSex.VisibleIndex = 5;
|
||||||
|
this.PatSex.Width = 23;
|
||||||
|
//
|
||||||
|
// Barcode
|
||||||
|
//
|
||||||
|
this.Barcode.Caption = "标本条码";
|
||||||
|
this.Barcode.FieldName = "Barcode";
|
||||||
|
this.Barcode.Name = "Barcode";
|
||||||
|
this.Barcode.Visible = true;
|
||||||
|
this.Barcode.VisibleIndex = 6;
|
||||||
|
this.Barcode.Width = 48;
|
||||||
|
//
|
||||||
|
// Tuble
|
||||||
|
//
|
||||||
|
this.Tuble.Caption = "试管";
|
||||||
|
this.Tuble.FieldName = "Tuble";
|
||||||
|
this.Tuble.Name = "Tuble";
|
||||||
|
this.Tuble.Visible = true;
|
||||||
|
this.Tuble.VisibleIndex = 7;
|
||||||
|
this.Tuble.Width = 33;
|
||||||
|
//
|
||||||
|
// ItemName
|
||||||
|
//
|
||||||
|
this.ItemName.Caption = "检验项目";
|
||||||
|
this.ItemName.FieldName = "ItemName";
|
||||||
|
this.ItemName.Name = "ItemName";
|
||||||
|
this.ItemName.Visible = true;
|
||||||
|
this.ItemName.VisibleIndex = 8;
|
||||||
|
this.ItemName.Width = 127;
|
||||||
|
//
|
||||||
|
// ItemCount
|
||||||
|
//
|
||||||
|
this.ItemCount.Caption = "数量";
|
||||||
|
this.ItemCount.FieldName = "ItemCount";
|
||||||
|
this.ItemCount.Name = "ItemCount";
|
||||||
|
this.ItemCount.Visible = true;
|
||||||
|
this.ItemCount.VisibleIndex = 9;
|
||||||
|
this.ItemCount.Width = 20;
|
||||||
|
//
|
||||||
|
// Status
|
||||||
|
//
|
||||||
|
this.Status.Caption = "执行状态";
|
||||||
|
this.Status.FieldName = "ItemStatus";
|
||||||
|
this.Status.Name = "Status";
|
||||||
|
this.Status.Visible = true;
|
||||||
|
this.Status.VisibleIndex = 10;
|
||||||
|
this.Status.Width = 41;
|
||||||
|
//
|
||||||
|
// JYType
|
||||||
|
//
|
||||||
|
this.JYType.Caption = "样本类型";
|
||||||
|
this.JYType.FieldName = "ItemType";
|
||||||
|
this.JYType.Name = "JYType";
|
||||||
|
this.JYType.Visible = true;
|
||||||
|
this.JYType.VisibleIndex = 11;
|
||||||
|
this.JYType.Width = 33;
|
||||||
|
//
|
||||||
|
// DoDept
|
||||||
|
//
|
||||||
|
this.DoDept.Caption = "执行科室";
|
||||||
|
this.DoDept.FieldName = "DoDept";
|
||||||
|
this.DoDept.Name = "DoDept";
|
||||||
|
this.DoDept.Visible = true;
|
||||||
|
this.DoDept.VisibleIndex = 12;
|
||||||
|
this.DoDept.Width = 34;
|
||||||
|
//
|
||||||
|
// OperTime
|
||||||
|
//
|
||||||
|
this.OperTime.Caption = "开单时间";
|
||||||
|
this.OperTime.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
this.OperTime.FieldName = "OprTime";
|
||||||
|
this.OperTime.Name = "OperTime";
|
||||||
|
this.OperTime.Visible = true;
|
||||||
|
this.OperTime.VisibleIndex = 13;
|
||||||
|
this.OperTime.Width = 99;
|
||||||
|
//
|
||||||
|
// OperDept
|
||||||
|
//
|
||||||
|
this.OperDept.Caption = "开单科室";
|
||||||
|
this.OperDept.FieldName = "OprDept";
|
||||||
|
this.OperDept.Name = "OperDept";
|
||||||
|
this.OperDept.Visible = true;
|
||||||
|
this.OperDept.VisibleIndex = 14;
|
||||||
|
this.OperDept.Width = 69;
|
||||||
|
//
|
||||||
|
// PrintTime
|
||||||
|
//
|
||||||
|
this.PrintTime.Caption = "打印时间";
|
||||||
|
this.PrintTime.DisplayFormat.FormatString = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
this.PrintTime.FieldName = "PrintTime";
|
||||||
|
this.PrintTime.Name = "PrintTime";
|
||||||
|
this.PrintTime.Visible = true;
|
||||||
|
this.PrintTime.VisibleIndex = 15;
|
||||||
|
this.PrintTime.Width = 92;
|
||||||
|
//
|
||||||
|
// PrintDev
|
||||||
|
//
|
||||||
|
this.PrintDev.Caption = "打印人";
|
||||||
|
this.PrintDev.FieldName = "PrinterDev";
|
||||||
|
this.PrintDev.Name = "PrintDev";
|
||||||
|
this.PrintDev.Visible = true;
|
||||||
|
this.PrintDev.VisibleIndex = 16;
|
||||||
|
this.PrintDev.Width = 55;
|
||||||
|
//
|
||||||
|
// ItemDetails
|
||||||
|
//
|
||||||
|
this.ItemDetails.Caption = "明细";
|
||||||
|
this.ItemDetails.FieldName = "ItemsDetails";
|
||||||
|
this.ItemDetails.Name = "ItemDetails";
|
||||||
|
//
|
||||||
|
// DaylyHistory
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ClientSize = new System.Drawing.Size(1513, 876);
|
||||||
|
this.Controls.Add(this.PanelAction);
|
||||||
|
this.Controls.Add(this.panel2);
|
||||||
|
this.Controls.Add(this.uiButton1);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "DaylyHistory";
|
||||||
|
this.Text = "当日记录";
|
||||||
|
this.Load += new System.EventHandler(this.DaylyHistory_Load);
|
||||||
|
this.PanelAction.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.RecpOnly.Properties)).EndInit();
|
||||||
|
this.panel2.ResumeLayout(false);
|
||||||
|
this.panel2.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private Sunny.UI.UIButton uiButton1;
|
||||||
|
private System.Windows.Forms.Panel PanelAction;
|
||||||
|
private DevExpress.XtraEditors.CheckEdit RecpOnly;
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.Panel panel2;
|
||||||
|
private System.Windows.Forms.Label LabNote;
|
||||||
|
private DevExpress.XtraGrid.GridControl gridControl1;
|
||||||
|
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn XH;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatID;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatName;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatAge;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatSex;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Barcode;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Tuble;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemName;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemCount;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Status;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn JYType;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn DoDept;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn OperTime;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn OperDept;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PrintTime;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PrintDev;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemDetails;
|
||||||
|
}
|
||||||
|
}
|
||||||
270
JJMediSys/DaylyHistory.cs
Normal file
@@ -0,0 +1,270 @@
|
|||||||
|
using JJMediSys.cs;
|
||||||
|
using JJServer;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using static JJMediSys.AlertForm;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class DaylyHistory: Form
|
||||||
|
{
|
||||||
|
public double[] tableset = new double[17] { 0.05, 0.08, 0.11, 0.12, 0.29, 0.19, 0.07, 0.07, 0.15,0.01, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07, 0.07 };
|
||||||
|
public string[] tabletitle = new string[17] { "ID", "卡号", "姓名", "年龄", "性别", "条码", "试管", "项目名称", "项目数量" ,"项目类型", "执行科室", "开单科室", "开单时间", "打印时间", "状态", "项目明细", "操作员"};
|
||||||
|
private DataTable dt;
|
||||||
|
private SystemSet parent;
|
||||||
|
string Recp = "";
|
||||||
|
|
||||||
|
|
||||||
|
public DaylyHistory()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
parent = SystemSet.systemSet;
|
||||||
|
dt = parent.myServer.GetHistory();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DaylyHistory_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
Recp = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='RecpFormat']");
|
||||||
|
gridView1.OptionsBehavior.Editable = false;
|
||||||
|
gridView1.OptionsView.ShowIndicator = false;// 显示最左边空白列
|
||||||
|
GetData();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void BFresh_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
GetData();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void GetData()
|
||||||
|
{
|
||||||
|
dt = parent.FreshDBData();
|
||||||
|
BindingSource bindingSource = new BindingSource();
|
||||||
|
bindingSource.DataSource = dt;
|
||||||
|
gridControl1.DataSource = bindingSource;
|
||||||
|
gridControl1.RefreshDataSource();
|
||||||
|
gridView1.RefreshData();
|
||||||
|
LabNote.Text = $"共检索到: {gridView1.DataRowCount} 条记录";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void RecpOnly_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_DoubleClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (gridView1.RowCount > 0 && gridView1.FocusedColumn != null && gridView1.FocusedRowHandle >= 0)
|
||||||
|
{
|
||||||
|
string data = gridView1.GetFocusedRowCellDisplayText(gridView1.FocusedColumn);
|
||||||
|
if (!String.IsNullOrEmpty(data))
|
||||||
|
Clipboard.SetText(data, TextDataFormat.Text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Column.FieldName == "ItemStatus")
|
||||||
|
{
|
||||||
|
if (e.Value != null)
|
||||||
|
{
|
||||||
|
string zsStatus = MZCY.TransItemStatus(e.Value.ToString());
|
||||||
|
e.DisplayText = zsStatus;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Column != null && e.Column.FieldName == "ItemName")
|
||||||
|
{
|
||||||
|
string detailes = gridView1.GetRowCellValue(e.RowHandle, "ItemsDetails").ToString();
|
||||||
|
ItemsShowBox itemsShowBox = new ItemsShowBox(detailes);
|
||||||
|
itemsShowBox.Show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.Column.Name == "Tuble")
|
||||||
|
{
|
||||||
|
var v = e.CellValue;
|
||||||
|
if (v != null)
|
||||||
|
{
|
||||||
|
e.Appearance.BackColor = Color.FromName(MZCY.GetColorInfo(v.ToString(), false));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (e.Column.Name == "ItemDetails1")
|
||||||
|
{
|
||||||
|
var v = e.CellValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
if (gridView1.SelectedRowsCount <= 0)
|
||||||
|
{
|
||||||
|
PanelAction.Visible = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PanelAction.Visible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool CanDispense(string Tube)
|
||||||
|
{
|
||||||
|
if (SystemSet.mTubeLabelTool.canDispenseTubles.Contains(Tube))
|
||||||
|
return true;
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
private void button1_Click_1(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<PatientDatail> patientsOut = new List<PatientDatail>();
|
||||||
|
List<PatientDatail> patientsTotallist = new List<PatientDatail>();
|
||||||
|
int[] selectedRowHandles = gridView1.GetSelectedRows();
|
||||||
|
foreach (int rowHandle in selectedRowHandles)
|
||||||
|
{
|
||||||
|
//PatID, PatName ,PatAge, PatSex ,Barcode , Tuble, ItemName ,ItemCount,ItemType, DoDept,OprDept,OprTime,PrintTime,ItemStatus,ItemsDetails,PrinterDev
|
||||||
|
// 检查行是否有效
|
||||||
|
if (rowHandle >= 0 && rowHandle < gridView1.DataRowCount)
|
||||||
|
{
|
||||||
|
object dataRow = gridView1.GetDataRow(rowHandle);
|
||||||
|
string Barcode = gridView1.GetRowCellValue(rowHandle, "Barcode").ToString();
|
||||||
|
string Tuble = gridView1.GetRowCellValue(rowHandle, "Tuble").ToString();
|
||||||
|
string ItemName = gridView1.GetRowCellValue(rowHandle, "ItemName").ToString();
|
||||||
|
string ItemCount = gridView1.GetRowCellValue(rowHandle, "ItemCount").ToString();
|
||||||
|
string ItemType = gridView1.GetRowCellValue(rowHandle, "ItemType").ToString();
|
||||||
|
string DoDept = gridView1.GetRowCellValue(rowHandle, "DoDept").ToString();
|
||||||
|
string OprDept = gridView1.GetRowCellValue(rowHandle, "OprDept").ToString();
|
||||||
|
string OprTime = gridView1.GetRowCellValue(rowHandle, "OprTime").ToString();
|
||||||
|
string PrintTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
||||||
|
string ItemStatus = gridView1.GetRowCellValue(rowHandle, "ItemStatus").ToString(); ;
|
||||||
|
string ItemsDetails = gridView1.GetRowCellValue(rowHandle, "ItemsDetails").ToString();
|
||||||
|
string Source = "LOCAL";
|
||||||
|
PatientDatail temp = new PatientDatail();
|
||||||
|
temp.jyDatas = new List<jyData>();
|
||||||
|
temp.OrginDatas = new List<OrginData>();
|
||||||
|
Patient_Info patient_Info = new Patient_Info();
|
||||||
|
patient_Info.Name = gridView1.GetRowCellValue(rowHandle, "PatName").ToString();
|
||||||
|
patient_Info.CardNo = gridView1.GetRowCellValue(rowHandle, "PatID").ToString();
|
||||||
|
patient_Info.Sex = gridView1.GetRowCellValue(rowHandle, "PatSex").ToString();
|
||||||
|
patient_Info.Age = gridView1.GetRowCellValue(rowHandle, "PatAge").ToString();
|
||||||
|
patient_Info.BedNo = "";
|
||||||
|
temp.PatientInfo = patient_Info;
|
||||||
|
temp.ItemCount = 1;
|
||||||
|
jyData mjyData = new jyData();
|
||||||
|
mjyData.sgname = Tuble;
|
||||||
|
mjyData.Barcode = Barcode;
|
||||||
|
mjyData.itemInfo = ItemName;
|
||||||
|
|
||||||
|
var variables = new Dictionary<string, string>
|
||||||
|
{
|
||||||
|
{ "pictureBox1", Barcode },
|
||||||
|
{ "Barcode", Barcode },
|
||||||
|
{ "ItemInfo", ItemName },
|
||||||
|
{ "CardNo", patient_Info.CardNo },
|
||||||
|
{ "ItemType", ItemType },
|
||||||
|
{ "Age", patient_Info.Age },
|
||||||
|
{ "PrintTime", PrintTime },
|
||||||
|
{ "OprDept", OprDept },
|
||||||
|
{ "DoDept", DoDept },
|
||||||
|
{ "Tuble", Tuble },
|
||||||
|
{ "patSex", patient_Info.Sex },
|
||||||
|
{ "patName", patient_Info.Name }
|
||||||
|
};
|
||||||
|
string bqxx = Regex.Replace(Recp, @"\{(\w+)\}", match =>
|
||||||
|
{
|
||||||
|
string variableName = match.Groups[1].Value;
|
||||||
|
return variables.ContainsKey(variableName) ? variables[variableName] : match.Value;
|
||||||
|
});
|
||||||
|
|
||||||
|
// string bqxx ="B060010255050|" + mjyData.Barcode + "@TB18320020080040|L^" + Tuble + "@TB18110060220040|L^" + mjyData.Barcode + "@TB18032090400040|L^" + patient_Info.Name + " " + patient_Info.Sex + " " + OprDept + " " + DoDept + "@TB18032120400040|L^" + DateTime.Now.ToString("yyyy-MM-dd") + " " + ItemType + " " + patient_Info.CardNo + "@TB18032150400080|L^" + mjyData.itemInfo;
|
||||||
|
if (!RecpOnly.Checked)
|
||||||
|
{
|
||||||
|
mjyData.sgxx = bqxx;
|
||||||
|
if (CanDispense(mjyData.sgname))
|
||||||
|
{
|
||||||
|
mjyData.bqtype = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mjyData.bqtype = 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mjyData.sgxx = bqxx;
|
||||||
|
mjyData.bqtype = 2;
|
||||||
|
}
|
||||||
|
temp.jyDatas.Add(mjyData);
|
||||||
|
OrginData orginData = new OrginData();
|
||||||
|
orginData.PatID = patient_Info.CardNo;
|
||||||
|
orginData.PatName = patient_Info.Name;
|
||||||
|
orginData.PatAge = patient_Info.Age;
|
||||||
|
orginData.PatSex = patient_Info.Sex;
|
||||||
|
orginData.Barcode = Barcode;
|
||||||
|
orginData.Tuble = Tuble;
|
||||||
|
orginData.ItemName = ItemName;
|
||||||
|
orginData.ItemCount = ItemCount;
|
||||||
|
orginData.ItemType = ItemType;
|
||||||
|
orginData.DoDept = DoDept;
|
||||||
|
orginData.OprDept = OprDept;
|
||||||
|
orginData.OprTime = OprTime;
|
||||||
|
orginData.PrintTime = PrintTime;
|
||||||
|
orginData.ItemStatus = "1";
|
||||||
|
orginData.ItemsDetails = ItemsDetails;
|
||||||
|
orginData.PrinterDev = Login.nurseDeskInfo.NurseName;
|
||||||
|
temp.OrginDatas.Add(orginData);
|
||||||
|
patientsTotallist.Add(temp);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (PatientDatail patientDatail in patientsTotallist)
|
||||||
|
{
|
||||||
|
bool isexist = false;
|
||||||
|
for (int i = 0; i < patientsOut.Count; i++)
|
||||||
|
{
|
||||||
|
PatientDatail PerpatientDatail = patientsOut[i];
|
||||||
|
if (PerpatientDatail.PatientInfo.CardNo == patientDatail.PatientInfo.CardNo)
|
||||||
|
{
|
||||||
|
isexist = true;
|
||||||
|
patientsOut[i].jyDatas.Add(patientDatail.jyDatas[0]);
|
||||||
|
patientsOut[i].OrginDatas.Add(patientDatail.OrginDatas[0]);
|
||||||
|
patientsOut[i].ItemCount += patientDatail.ItemCount;
|
||||||
|
patientsOut[i].RecpCount += patientDatail.RecpCount;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!isexist)
|
||||||
|
{
|
||||||
|
patientDatail.ID = patientsOut.Count;
|
||||||
|
patientsOut.Add(patientDatail);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
parent.MultiDispense(patientsOut);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/DaylyHistory.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
363
JJMediSys/DevParamSet.Designer.cs
generated
Normal file
@@ -0,0 +1,363 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class DevParamSet
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.TextTB = new System.Windows.Forms.TextBox();
|
||||||
|
this.TextQD = new System.Windows.Forms.TextBox();
|
||||||
|
this.TextSM = new System.Windows.Forms.TextBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.label9 = new System.Windows.Forms.Label();
|
||||||
|
this.BRTB = new Sunny.UI.UIButton();
|
||||||
|
this.BSTB = new Sunny.UI.UIButton();
|
||||||
|
this.BRQD = new Sunny.UI.UIButton();
|
||||||
|
this.BSQD = new Sunny.UI.UIButton();
|
||||||
|
this.BRSM = new Sunny.UI.UIButton();
|
||||||
|
this.BSSM = new Sunny.UI.UIButton();
|
||||||
|
this.BSensorInit = new Sunny.UI.UIButton();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.label14 = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// TextTB
|
||||||
|
//
|
||||||
|
this.TextTB.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextTB.ForeColor = System.Drawing.Color.Teal;
|
||||||
|
this.TextTB.Location = new System.Drawing.Point(28, 114);
|
||||||
|
this.TextTB.Name = "TextTB";
|
||||||
|
this.TextTB.Size = new System.Drawing.Size(134, 29);
|
||||||
|
this.TextTB.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// TextQD
|
||||||
|
//
|
||||||
|
this.TextQD.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextQD.ForeColor = System.Drawing.Color.Teal;
|
||||||
|
this.TextQD.Location = new System.Drawing.Point(228, 114);
|
||||||
|
this.TextQD.Name = "TextQD";
|
||||||
|
this.TextQD.Size = new System.Drawing.Size(134, 29);
|
||||||
|
this.TextQD.TabIndex = 4;
|
||||||
|
//
|
||||||
|
// TextSM
|
||||||
|
//
|
||||||
|
this.TextSM.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextSM.ForeColor = System.Drawing.Color.Teal;
|
||||||
|
this.TextSM.Location = new System.Drawing.Point(427, 114);
|
||||||
|
this.TextSM.Name = "TextSM";
|
||||||
|
this.TextSM.Size = new System.Drawing.Size(134, 29);
|
||||||
|
this.TextSM.TabIndex = 7;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label1.Location = new System.Drawing.Point(19, 207);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(196, 14);
|
||||||
|
this.label1.TabIndex = 10;
|
||||||
|
this.label1.Text = "参数1:调整贴标标签边缘位置 ";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label2.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label2.Location = new System.Drawing.Point(19, 243);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(147, 14);
|
||||||
|
this.label2.TabIndex = 11;
|
||||||
|
this.label2.Text = "参数2:调整贴标松紧度";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label3.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label3.Location = new System.Drawing.Point(19, 272);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(189, 14);
|
||||||
|
this.label3.TabIndex = 12;
|
||||||
|
this.label3.Text = "参数3:调整贴标电机抬升角度";
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label4.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label4.Location = new System.Drawing.Point(221, 272);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(189, 14);
|
||||||
|
this.label4.TabIndex = 15;
|
||||||
|
this.label4.Text = "参数3:减少主打印机伸出距离";
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label5.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label5.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label5.Location = new System.Drawing.Point(221, 243);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(147, 14);
|
||||||
|
this.label5.TabIndex = 14;
|
||||||
|
this.label5.Text = "参数2:设置切到后补偿";
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label6.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label6.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label6.Location = new System.Drawing.Point(221, 207);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(147, 14);
|
||||||
|
this.label6.TabIndex = 13;
|
||||||
|
this.label6.Text = "参数1:设置切到前补偿";
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label7.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label7.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label7.Location = new System.Drawing.Point(419, 272);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(77, 14);
|
||||||
|
this.label7.TabIndex = 18;
|
||||||
|
this.label7.Text = "参数3:备用";
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
this.label8.AutoSize = true;
|
||||||
|
this.label8.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label8.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label8.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label8.Location = new System.Drawing.Point(419, 243);
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
this.label8.Size = new System.Drawing.Size(77, 14);
|
||||||
|
this.label8.TabIndex = 17;
|
||||||
|
this.label8.Text = "参数2:备用";
|
||||||
|
//
|
||||||
|
// label9
|
||||||
|
//
|
||||||
|
this.label9.AutoSize = true;
|
||||||
|
this.label9.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label9.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label9.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label9.Location = new System.Drawing.Point(419, 207);
|
||||||
|
this.label9.Name = "label9";
|
||||||
|
this.label9.Size = new System.Drawing.Size(133, 14);
|
||||||
|
this.label9.TabIndex = 16;
|
||||||
|
this.label9.Text = "参数1:试管旋转角度";
|
||||||
|
//
|
||||||
|
// BRTB
|
||||||
|
//
|
||||||
|
this.BRTB.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.BRTB.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BRTB.Location = new System.Drawing.Point(21, 67);
|
||||||
|
this.BRTB.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.BRTB.Name = "BRTB";
|
||||||
|
this.BRTB.Size = new System.Drawing.Size(150, 35);
|
||||||
|
this.BRTB.TabIndex = 19;
|
||||||
|
this.BRTB.Text = "读取贴标参数";
|
||||||
|
this.BRTB.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BRTB.Click += new System.EventHandler(this.BRTB_Click);
|
||||||
|
//
|
||||||
|
// BSTB
|
||||||
|
//
|
||||||
|
this.BSTB.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.BSTB.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSTB.Location = new System.Drawing.Point(21, 152);
|
||||||
|
this.BSTB.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.BSTB.Name = "BSTB";
|
||||||
|
this.BSTB.Size = new System.Drawing.Size(150, 35);
|
||||||
|
this.BSTB.TabIndex = 20;
|
||||||
|
this.BSTB.Text = "设置贴标参数";
|
||||||
|
this.BSTB.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSTB.Click += new System.EventHandler(this.BSTB_Click);
|
||||||
|
//
|
||||||
|
// BRQD
|
||||||
|
//
|
||||||
|
this.BRQD.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.BRQD.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BRQD.Location = new System.Drawing.Point(223, 67);
|
||||||
|
this.BRQD.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.BRQD.Name = "BRQD";
|
||||||
|
this.BRQD.Size = new System.Drawing.Size(150, 35);
|
||||||
|
this.BRQD.TabIndex = 21;
|
||||||
|
this.BRQD.Text = "读取切刀参数";
|
||||||
|
this.BRQD.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BRQD.Click += new System.EventHandler(this.BRQD_Click);
|
||||||
|
//
|
||||||
|
// BSQD
|
||||||
|
//
|
||||||
|
this.BSQD.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.BSQD.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSQD.Location = new System.Drawing.Point(223, 152);
|
||||||
|
this.BSQD.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.BSQD.Name = "BSQD";
|
||||||
|
this.BSQD.Size = new System.Drawing.Size(150, 35);
|
||||||
|
this.BSQD.TabIndex = 22;
|
||||||
|
this.BSQD.Text = "设置切刀参数";
|
||||||
|
this.BSQD.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSQD.Click += new System.EventHandler(this.BSQD_Click);
|
||||||
|
//
|
||||||
|
// BRSM
|
||||||
|
//
|
||||||
|
this.BRSM.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.BRSM.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BRSM.Location = new System.Drawing.Point(422, 67);
|
||||||
|
this.BRSM.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.BRSM.Name = "BRSM";
|
||||||
|
this.BRSM.Size = new System.Drawing.Size(150, 35);
|
||||||
|
this.BRSM.TabIndex = 23;
|
||||||
|
this.BRSM.Text = "读取扫码参数";
|
||||||
|
this.BRSM.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BRSM.Click += new System.EventHandler(this.BRSM_Click);
|
||||||
|
//
|
||||||
|
// BSSM
|
||||||
|
//
|
||||||
|
this.BSSM.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.BSSM.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSSM.Location = new System.Drawing.Point(422, 152);
|
||||||
|
this.BSSM.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.BSSM.Name = "BSSM";
|
||||||
|
this.BSSM.Size = new System.Drawing.Size(150, 35);
|
||||||
|
this.BSSM.TabIndex = 24;
|
||||||
|
this.BSSM.Text = "设置扫码参数";
|
||||||
|
this.BSSM.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSSM.Click += new System.EventHandler(this.BSSM_Click);
|
||||||
|
//
|
||||||
|
// BSensorInit
|
||||||
|
//
|
||||||
|
this.BSensorInit.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||||
|
this.BSensorInit.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSensorInit.Location = new System.Drawing.Point(618, 67);
|
||||||
|
this.BSensorInit.MinimumSize = new System.Drawing.Size(1, 1);
|
||||||
|
this.BSensorInit.Name = "BSensorInit";
|
||||||
|
this.BSensorInit.Size = new System.Drawing.Size(150, 35);
|
||||||
|
this.BSensorInit.TabIndex = 25;
|
||||||
|
this.BSensorInit.Text = "传感器初始化";
|
||||||
|
this.BSensorInit.TipsFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSensorInit.Click += new System.EventHandler(this.BSensorInit_Click);
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
this.label10.AutoSize = true;
|
||||||
|
this.label10.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label10.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label10.ForeColor = System.Drawing.Color.Green;
|
||||||
|
this.label10.Location = new System.Drawing.Point(61, 224);
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
this.label10.Size = new System.Drawing.Size(154, 14);
|
||||||
|
this.label10.TabIndex = 26;
|
||||||
|
this.label10.Text = "调大 贴标位置往后移动";
|
||||||
|
//
|
||||||
|
// label14
|
||||||
|
//
|
||||||
|
this.label14.AutoSize = true;
|
||||||
|
this.label14.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label14.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label14.ForeColor = System.Drawing.Color.RoyalBlue;
|
||||||
|
this.label14.Location = new System.Drawing.Point(299, 9);
|
||||||
|
this.label14.Name = "label14";
|
||||||
|
this.label14.Size = new System.Drawing.Size(135, 20);
|
||||||
|
this.label14.TabIndex = 28;
|
||||||
|
this.label14.Text = "硬件参数设置";
|
||||||
|
//
|
||||||
|
// DevParamSet
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ClientSize = new System.Drawing.Size(787, 321);
|
||||||
|
this.Controls.Add(this.label14);
|
||||||
|
this.Controls.Add(this.label10);
|
||||||
|
this.Controls.Add(this.BSensorInit);
|
||||||
|
this.Controls.Add(this.BSSM);
|
||||||
|
this.Controls.Add(this.BRSM);
|
||||||
|
this.Controls.Add(this.BSQD);
|
||||||
|
this.Controls.Add(this.BRQD);
|
||||||
|
this.Controls.Add(this.BSTB);
|
||||||
|
this.Controls.Add(this.BRTB);
|
||||||
|
this.Controls.Add(this.label7);
|
||||||
|
this.Controls.Add(this.label8);
|
||||||
|
this.Controls.Add(this.label9);
|
||||||
|
this.Controls.Add(this.label4);
|
||||||
|
this.Controls.Add(this.label5);
|
||||||
|
this.Controls.Add(this.label6);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.TextSM);
|
||||||
|
this.Controls.Add(this.TextQD);
|
||||||
|
this.Controls.Add(this.TextTB);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "DevParamSet";
|
||||||
|
this.Text = "系统参数设置";
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
private System.Windows.Forms.TextBox TextTB;
|
||||||
|
private System.Windows.Forms.TextBox TextQD;
|
||||||
|
private System.Windows.Forms.TextBox TextSM;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private System.Windows.Forms.Label label9;
|
||||||
|
private Sunny.UI.UIButton BRTB;
|
||||||
|
private Sunny.UI.UIButton BSTB;
|
||||||
|
private Sunny.UI.UIButton BRQD;
|
||||||
|
private Sunny.UI.UIButton BSQD;
|
||||||
|
private Sunny.UI.UIButton BRSM;
|
||||||
|
private Sunny.UI.UIButton BSSM;
|
||||||
|
private Sunny.UI.UIButton BSensorInit;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.Label label14;
|
||||||
|
}
|
||||||
|
}
|
||||||
157
JJMediSys/DevParamSet.cs
Normal file
@@ -0,0 +1,157 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using static JJMediSys.AlertForm;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class DevParamSet : Form
|
||||||
|
{
|
||||||
|
public DevParamSet()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BRTB_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
byte[] RecvData = new byte[200];
|
||||||
|
if (!SystemSet.mTubeLabelTool.IsDevFree)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("设备正忙,请稍后", AlertType.Warning, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SystemSet.mTubeLabelTool.MechineCtrol("GetTbPargs", null, ref RecvData);
|
||||||
|
string msg = string.Format("{0};{1};{2}", RecvData[3], RecvData[4], RecvData[5]);
|
||||||
|
TextTB.Text = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BSTB_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!SystemSet.mTubeLabelTool.IsDevFree)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("设备正忙,请稍后", AlertType.Warning, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (TextTB.Text.Length > 0 && TextTB.Text.Contains(";"))
|
||||||
|
{
|
||||||
|
string[] pargs = TextTB.Text.Split(';');
|
||||||
|
if (pargs.Length == 3)
|
||||||
|
{
|
||||||
|
byte[] RecvData = new byte[200];
|
||||||
|
byte[] SendData = new byte[3];
|
||||||
|
SendData[0] = (byte)int.Parse(pargs[0]);
|
||||||
|
SendData[1] = (byte)int.Parse(pargs[1]);
|
||||||
|
SendData[2] = (byte)int.Parse(pargs[2]);
|
||||||
|
SystemSet.mTubeLabelTool.MechineCtrol("SetTbPargs", SendData, ref RecvData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("参数错误", AlertType.Error, 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BRQD_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
byte[] RecvData = new byte[200];
|
||||||
|
if (!SystemSet.mTubeLabelTool.IsDevFree)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("设备正忙,请稍后", AlertType.Warning, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SystemSet.mTubeLabelTool.MechineCtrol("GetQdPargs", null, ref RecvData);
|
||||||
|
string msg = string.Format("{0};{1};{2}", RecvData[3], RecvData[4], RecvData[5]);
|
||||||
|
TextQD.Text = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BSQD_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (TextQD.Text.Length > 0 && TextQD.Text.Contains(";"))
|
||||||
|
{
|
||||||
|
string[] pargs = TextQD.Text.Split(';');
|
||||||
|
if (pargs.Length == 3)
|
||||||
|
{
|
||||||
|
byte[] RecvData = new byte[200];
|
||||||
|
byte[] SendData = new byte[3];
|
||||||
|
SendData[0] = (byte)int.Parse(pargs[0]);
|
||||||
|
SendData[1] = (byte)int.Parse(pargs[1]);
|
||||||
|
SendData[2] = (byte)int.Parse(pargs[2]);
|
||||||
|
SystemSet.mTubeLabelTool.MechineCtrol("SetQdPargs", SendData, ref RecvData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("参数错误", AlertType.Error, 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BRSM_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
byte[] RecvData = new byte[200];
|
||||||
|
if (!SystemSet.mTubeLabelTool.IsDevFree)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("设备正忙,请稍后", AlertType.Warning, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SystemSet.mTubeLabelTool.MechineCtrol("GetSmPargs", null, ref RecvData);
|
||||||
|
string msg = string.Format("{0};{1};{2}", RecvData[3], RecvData[4], RecvData[5]);
|
||||||
|
TextSM.Text = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BSSM_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!SystemSet.mTubeLabelTool.IsDevFree)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("设备正忙,请稍后", AlertType.Warning, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (TextSM.Text.Length > 0 && TextSM.Text.Contains(";"))
|
||||||
|
{
|
||||||
|
string[] pargs = TextSM.Text.Split(';');
|
||||||
|
if (pargs.Length == 3)
|
||||||
|
{
|
||||||
|
byte[] RecvData = new byte[200];
|
||||||
|
byte[] SendData = new byte[3];
|
||||||
|
SendData[0] = (byte)int.Parse(pargs[0]);
|
||||||
|
SendData[1] = (byte)int.Parse(pargs[1]);
|
||||||
|
SendData[2] = (byte)int.Parse(pargs[2]);
|
||||||
|
SystemSet.mTubeLabelTool.MechineCtrol("SetSmPargs", SendData, ref RecvData);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("参数错误", AlertType.Error, 3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BSensorInit_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
byte[] RecvData = new byte[200];
|
||||||
|
if (!SystemSet.mTubeLabelTool.IsDevFree)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("设备正忙,请稍后", AlertType.Warning, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
bool result = SystemSet.mTubeLabelTool.MechineCtrol("InitSensor", null, ref RecvData);
|
||||||
|
if (RecvData[3] != 0x00 && result == true)
|
||||||
|
{
|
||||||
|
string msg = string.Format("传感器初始化失败 Code[{0}]", RecvData[3].ToString("X2"));
|
||||||
|
MessageBox.Show(msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/DevParamSet.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
193
JJMediSys/DispenseMsg.Designer.cs
generated
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class DispenseMsg
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.LabErrorInfo = new System.Windows.Forms.Label();
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.BReset = new System.Windows.Forms.Button();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.BNext = new System.Windows.Forms.Button();
|
||||||
|
this.BRetry = new System.Windows.Forms.Button();
|
||||||
|
this.BCancel = new System.Windows.Forms.Button();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// LabErrorInfo
|
||||||
|
//
|
||||||
|
this.LabErrorInfo.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabErrorInfo.Font = new System.Drawing.Font("微软雅黑", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabErrorInfo.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.LabErrorInfo.Location = new System.Drawing.Point(44, 34);
|
||||||
|
this.LabErrorInfo.Name = "LabErrorInfo";
|
||||||
|
this.LabErrorInfo.Size = new System.Drawing.Size(675, 77);
|
||||||
|
this.LabErrorInfo.TabIndex = 17;
|
||||||
|
this.LabErrorInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.panel1.Controls.Add(this.BReset);
|
||||||
|
this.panel1.Controls.Add(this.label6);
|
||||||
|
this.panel1.Controls.Add(this.label5);
|
||||||
|
this.panel1.Controls.Add(this.label4);
|
||||||
|
this.panel1.Location = new System.Drawing.Point(51, 223);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(659, 142);
|
||||||
|
this.panel1.TabIndex = 16;
|
||||||
|
//
|
||||||
|
// BReset
|
||||||
|
//
|
||||||
|
this.BReset.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.BReset.BackgroundImage = global::JJMediSys.Properties.Resources.B4;
|
||||||
|
this.BReset.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BReset.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BReset.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BReset.Location = new System.Drawing.Point(502, 17);
|
||||||
|
this.BReset.Name = "BReset";
|
||||||
|
this.BReset.Size = new System.Drawing.Size(131, 53);
|
||||||
|
this.BReset.TabIndex = 13;
|
||||||
|
this.BReset.UseVisualStyleBackColor = false;
|
||||||
|
this.BReset.Click += new System.EventHandler(this.BReset_Click);
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label6.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.label6.Location = new System.Drawing.Point(3, 89);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(521, 27);
|
||||||
|
this.label6.TabIndex = 13;
|
||||||
|
this.label6.Text = "3.点击“重试”、“取消”、“下一个” 进行下一步操作 ";
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label5.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.label5.Location = new System.Drawing.Point(3, 53);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(309, 27);
|
||||||
|
this.label5.TabIndex = 12;
|
||||||
|
this.label5.Text = "2.点击“复位”按钮等待设备复位";
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label4.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.label4.Location = new System.Drawing.Point(3, 17);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(309, 27);
|
||||||
|
this.label4.TabIndex = 11;
|
||||||
|
this.label4.Text = "1.请先取走贴标部位已打印的标签";
|
||||||
|
//
|
||||||
|
// BNext
|
||||||
|
//
|
||||||
|
this.BNext.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.BNext.BackgroundImage = global::JJMediSys.Properties.Resources.B3;
|
||||||
|
this.BNext.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BNext.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BNext.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BNext.Location = new System.Drawing.Point(553, 147);
|
||||||
|
this.BNext.Name = "BNext";
|
||||||
|
this.BNext.Size = new System.Drawing.Size(131, 53);
|
||||||
|
this.BNext.TabIndex = 15;
|
||||||
|
this.BNext.UseVisualStyleBackColor = false;
|
||||||
|
this.BNext.Click += new System.EventHandler(this.BNext_Click);
|
||||||
|
//
|
||||||
|
// BRetry
|
||||||
|
//
|
||||||
|
this.BRetry.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.BRetry.BackgroundImage = global::JJMediSys.Properties.Resources.B2;
|
||||||
|
this.BRetry.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BRetry.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BRetry.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BRetry.Location = new System.Drawing.Point(77, 146);
|
||||||
|
this.BRetry.Name = "BRetry";
|
||||||
|
this.BRetry.Size = new System.Drawing.Size(131, 53);
|
||||||
|
this.BRetry.TabIndex = 14;
|
||||||
|
this.BRetry.UseVisualStyleBackColor = false;
|
||||||
|
this.BRetry.Click += new System.EventHandler(this.button2_Click);
|
||||||
|
//
|
||||||
|
// BCancel
|
||||||
|
//
|
||||||
|
this.BCancel.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.BCancel.BackgroundImage = global::JJMediSys.Properties.Resources.B1;
|
||||||
|
this.BCancel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BCancel.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BCancel.Location = new System.Drawing.Point(267, 147);
|
||||||
|
this.BCancel.Name = "BCancel";
|
||||||
|
this.BCancel.Size = new System.Drawing.Size(211, 51);
|
||||||
|
this.BCancel.TabIndex = 18;
|
||||||
|
this.BCancel.UseVisualStyleBackColor = false;
|
||||||
|
this.BCancel.Click += new System.EventHandler(this.BCancel_Click);
|
||||||
|
//
|
||||||
|
// DispenseMsg
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.Purple;
|
||||||
|
this.BackgroundImage = global::JJMediSys.Properties.Resources.Err01;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ClientSize = new System.Drawing.Size(759, 387);
|
||||||
|
this.Controls.Add(this.BCancel);
|
||||||
|
this.Controls.Add(this.LabErrorInfo);
|
||||||
|
this.Controls.Add(this.panel1);
|
||||||
|
this.Controls.Add(this.BNext);
|
||||||
|
this.Controls.Add(this.BRetry);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "DispenseMsg";
|
||||||
|
this.Text = "DispenseMsg";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.TransparencyKey = System.Drawing.Color.Purple;
|
||||||
|
this.Load += new System.EventHandler(this.DispenseMsg_Load);
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
this.panel1.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label LabErrorInfo;
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.Button BReset;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Button BNext;
|
||||||
|
private System.Windows.Forms.Button BRetry;
|
||||||
|
private System.Windows.Forms.Button BCancel;
|
||||||
|
}
|
||||||
|
}
|
||||||
157
JJMediSys/DispenseMsg.cs
Normal file
@@ -0,0 +1,157 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class DispenseMsg : Form
|
||||||
|
{
|
||||||
|
Dispensing fordispensing;
|
||||||
|
|
||||||
|
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
|
||||||
|
private static extern IntPtr CreateRoundRectRgn
|
||||||
|
(
|
||||||
|
int nLeftRect, // x-coordinate of upper-left corner
|
||||||
|
int nTopRect, // y-coordinate of upper-left corner
|
||||||
|
int nRightRect, // x-coordinate of lower-right corner
|
||||||
|
int nBottomRect, // y-coordinate of lower-right corner
|
||||||
|
int nWidthEllipse, // height of ellipse
|
||||||
|
int nHeightEllipse // width of ellipse
|
||||||
|
);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref MARGINS pMarInset);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmIsCompositionEnabled(ref int pfEnabled);
|
||||||
|
|
||||||
|
private bool m_aeroEnabled; // variables for box shadow
|
||||||
|
private const int CS_DROPSHADOW = 0x00020000;
|
||||||
|
private const int WM_NCPAINT = 0x0085;
|
||||||
|
private const int WM_ACTIVATEAPP = 0x001C;
|
||||||
|
|
||||||
|
public struct MARGINS // struct for box shadow
|
||||||
|
{
|
||||||
|
public int leftWidth;
|
||||||
|
public int rightWidth;
|
||||||
|
public int topHeight;
|
||||||
|
public int bottomHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
private const int WM_NCHITTEST = 0x84; // variables for dragging the form
|
||||||
|
private const int HTCLIENT = 0x1;
|
||||||
|
private const int HTCAPTION = 0x2;
|
||||||
|
|
||||||
|
protected override CreateParams CreateParams
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
m_aeroEnabled = CheckAeroEnabled();
|
||||||
|
|
||||||
|
CreateParams cp = base.CreateParams;
|
||||||
|
if (!m_aeroEnabled)
|
||||||
|
cp.ClassStyle |= CS_DROPSHADOW;
|
||||||
|
|
||||||
|
return cp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool CheckAeroEnabled()
|
||||||
|
{
|
||||||
|
if (Environment.OSVersion.Version.Major >= 6)
|
||||||
|
{
|
||||||
|
int enabled = 0;
|
||||||
|
DwmIsCompositionEnabled(ref enabled);
|
||||||
|
return (enabled == 1) ? true : false;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void WndProc(ref Message m)
|
||||||
|
{
|
||||||
|
switch (m.Msg)
|
||||||
|
{
|
||||||
|
case WM_NCPAINT: // box shadow
|
||||||
|
if (m_aeroEnabled)
|
||||||
|
{
|
||||||
|
var v = 2;
|
||||||
|
DwmSetWindowAttribute(this.Handle, 2, ref v, 4);
|
||||||
|
MARGINS margins = new MARGINS()
|
||||||
|
{
|
||||||
|
bottomHeight = 1,
|
||||||
|
leftWidth = 1,
|
||||||
|
rightWidth = 1,
|
||||||
|
topHeight = 1
|
||||||
|
};
|
||||||
|
DwmExtendFrameIntoClientArea(this.Handle, ref margins);
|
||||||
|
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
base.WndProc(ref m);
|
||||||
|
|
||||||
|
if (m.Msg == WM_NCHITTEST && (int)m.Result == HTCLIENT) // drag the form
|
||||||
|
m.Result = (IntPtr)HTCAPTION;
|
||||||
|
|
||||||
|
}
|
||||||
|
public DispenseMsg(Dispensing dispensing)
|
||||||
|
{
|
||||||
|
m_aeroEnabled = false;
|
||||||
|
InitializeComponent();
|
||||||
|
fordispensing = dispensing;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void DispenseMsg_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabErrorInfo.Text = fordispensing.ErrorInfoStr;
|
||||||
|
int x = fordispensing.Location.X + (fordispensing.Width - this.Width) / 2;
|
||||||
|
int y = fordispensing.Location.Y + (fordispensing.Height - this.Height) / 2;
|
||||||
|
this.Location = new Point(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void button2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (MessageBox.Show("重发当前患者试管,请作废当前患者已出的试管,请确认已取走贴标单元已打印的标签并复位设备!", "注意", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
|
||||||
|
{
|
||||||
|
fordispensing.DispenseRetry = true;
|
||||||
|
}
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BReset_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
fordispensing.fm1.SysReset();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BNext_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (MessageBox.Show("请确认已取走贴标单元已打印的标签并复位设备!", "注意", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning) == DialogResult.OK)
|
||||||
|
{
|
||||||
|
fordispensing.DispenseNext = true;
|
||||||
|
}
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BCancel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SystemSet.CancelDispensing = true; //手动点击终止后 ,TubeLabelTool.cs中的循环将退出 并返回手动取消状态
|
||||||
|
if (!fordispensing.isStop)//处于可手动终止状态
|
||||||
|
fordispensing.DispenseCancel = true; //
|
||||||
|
//fordispensing.Closewin();
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/DispenseMsg.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
247
JJMediSys/Dispensing.Designer.cs
generated
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class Dispensing
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
this.LabPIdTotal = new System.Windows.Forms.Label();
|
||||||
|
this.LabSGTotal = new System.Windows.Forms.Label();
|
||||||
|
this.LabPIdCur = new System.Windows.Forms.Label();
|
||||||
|
this.LabSgCur = new System.Windows.Forms.Label();
|
||||||
|
this.LabMsg = new System.Windows.Forms.Label();
|
||||||
|
this.timerForClose = new System.Windows.Forms.Timer();
|
||||||
|
this.LabTime = new System.Windows.Forms.Label();
|
||||||
|
this.labCurName = new System.Windows.Forms.Label();
|
||||||
|
this.labcurcount = new System.Windows.Forms.Label();
|
||||||
|
this.ItemDetail = new JJMediSys.MyFlowLayoutPanel();
|
||||||
|
this.labCurBed = new System.Windows.Forms.Label();
|
||||||
|
this.labcurSGcount = new System.Windows.Forms.Label();
|
||||||
|
this.labcurBQcount = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// button1
|
||||||
|
//
|
||||||
|
this.button1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.button1.BackgroundImage = global::JJMediSys.Properties.Resources.B1;
|
||||||
|
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.button1.FlatAppearance.BorderSize = 0;
|
||||||
|
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.button1.Location = new System.Drawing.Point(567, 444);
|
||||||
|
this.button1.Name = "button1";
|
||||||
|
this.button1.Size = new System.Drawing.Size(211, 51);
|
||||||
|
this.button1.TabIndex = 3;
|
||||||
|
this.button1.UseVisualStyleBackColor = false;
|
||||||
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||||
|
//
|
||||||
|
// LabPIdTotal
|
||||||
|
//
|
||||||
|
this.LabPIdTotal.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabPIdTotal.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabPIdTotal.ForeColor = System.Drawing.Color.DodgerBlue;
|
||||||
|
this.LabPIdTotal.Location = new System.Drawing.Point(55, 92);
|
||||||
|
this.LabPIdTotal.Name = "LabPIdTotal";
|
||||||
|
this.LabPIdTotal.Size = new System.Drawing.Size(83, 50);
|
||||||
|
this.LabPIdTotal.TabIndex = 4;
|
||||||
|
this.LabPIdTotal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabSGTotal
|
||||||
|
//
|
||||||
|
this.LabSGTotal.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabSGTotal.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabSGTotal.ForeColor = System.Drawing.Color.Crimson;
|
||||||
|
this.LabSGTotal.Location = new System.Drawing.Point(55, 133);
|
||||||
|
this.LabSGTotal.Name = "LabSGTotal";
|
||||||
|
this.LabSGTotal.Size = new System.Drawing.Size(83, 46);
|
||||||
|
this.LabSGTotal.TabIndex = 5;
|
||||||
|
this.LabSGTotal.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabPIdCur
|
||||||
|
//
|
||||||
|
this.LabPIdCur.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabPIdCur.Font = new System.Drawing.Font("微软雅黑", 42F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabPIdCur.ForeColor = System.Drawing.Color.DodgerBlue;
|
||||||
|
this.LabPIdCur.Location = new System.Drawing.Point(35, 245);
|
||||||
|
this.LabPIdCur.Name = "LabPIdCur";
|
||||||
|
this.LabPIdCur.Size = new System.Drawing.Size(136, 73);
|
||||||
|
this.LabPIdCur.TabIndex = 6;
|
||||||
|
this.LabPIdCur.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabSgCur
|
||||||
|
//
|
||||||
|
this.LabSgCur.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabSgCur.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabSgCur.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(0)))));
|
||||||
|
this.LabSgCur.Location = new System.Drawing.Point(30, 349);
|
||||||
|
this.LabSgCur.Name = "LabSgCur";
|
||||||
|
this.LabSgCur.Size = new System.Drawing.Size(141, 51);
|
||||||
|
this.LabSgCur.TabIndex = 7;
|
||||||
|
this.LabSgCur.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabMsg
|
||||||
|
//
|
||||||
|
this.LabMsg.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabMsg.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabMsg.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.LabMsg.Location = new System.Drawing.Point(12, 453);
|
||||||
|
this.LabMsg.Name = "LabMsg";
|
||||||
|
this.LabMsg.Size = new System.Drawing.Size(526, 39);
|
||||||
|
this.LabMsg.TabIndex = 8;
|
||||||
|
this.LabMsg.Click += new System.EventHandler(this.LabMsg_Click);
|
||||||
|
//
|
||||||
|
// timerForClose
|
||||||
|
//
|
||||||
|
this.timerForClose.Interval = 1000;
|
||||||
|
this.timerForClose.Tick += new System.EventHandler(this.timerForClose_Tick);
|
||||||
|
//
|
||||||
|
// LabTime
|
||||||
|
//
|
||||||
|
this.LabTime.AutoSize = true;
|
||||||
|
this.LabTime.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabTime.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabTime.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.LabTime.Location = new System.Drawing.Point(788, 24);
|
||||||
|
this.LabTime.Name = "LabTime";
|
||||||
|
this.LabTime.Size = new System.Drawing.Size(0, 16);
|
||||||
|
this.LabTime.TabIndex = 14;
|
||||||
|
this.LabTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// labCurName
|
||||||
|
//
|
||||||
|
this.labCurName.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.labCurName.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.labCurName.ForeColor = System.Drawing.Color.DodgerBlue;
|
||||||
|
this.labCurName.Location = new System.Drawing.Point(310, 61);
|
||||||
|
this.labCurName.Name = "labCurName";
|
||||||
|
this.labCurName.Size = new System.Drawing.Size(174, 48);
|
||||||
|
this.labCurName.TabIndex = 15;
|
||||||
|
this.labCurName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// labcurcount
|
||||||
|
//
|
||||||
|
this.labcurcount.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.labcurcount.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.labcurcount.ForeColor = System.Drawing.Color.Crimson;
|
||||||
|
this.labcurcount.Location = new System.Drawing.Point(624, 106);
|
||||||
|
this.labcurcount.Name = "labcurcount";
|
||||||
|
this.labcurcount.Size = new System.Drawing.Size(68, 47);
|
||||||
|
this.labcurcount.TabIndex = 16;
|
||||||
|
this.labcurcount.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// ItemDetail
|
||||||
|
//
|
||||||
|
this.ItemDetail.AllowDrop = true;
|
||||||
|
this.ItemDetail.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.ItemDetail.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||||
|
this.ItemDetail.Location = new System.Drawing.Point(204, 173);
|
||||||
|
this.ItemDetail.Name = "ItemDetail";
|
||||||
|
this.ItemDetail.Size = new System.Drawing.Size(570, 265);
|
||||||
|
this.ItemDetail.TabIndex = 17;
|
||||||
|
//
|
||||||
|
// labCurBed
|
||||||
|
//
|
||||||
|
this.labCurBed.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.labCurBed.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.labCurBed.ForeColor = System.Drawing.Color.DodgerBlue;
|
||||||
|
this.labCurBed.Location = new System.Drawing.Point(559, 61);
|
||||||
|
this.labCurBed.Name = "labCurBed";
|
||||||
|
this.labCurBed.Size = new System.Drawing.Size(174, 48);
|
||||||
|
this.labCurBed.TabIndex = 18;
|
||||||
|
this.labCurBed.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// labcurSGcount
|
||||||
|
//
|
||||||
|
this.labcurSGcount.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.labcurSGcount.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.labcurSGcount.ForeColor = System.Drawing.Color.CornflowerBlue;
|
||||||
|
this.labcurSGcount.Location = new System.Drawing.Point(310, 106);
|
||||||
|
this.labcurSGcount.Name = "labcurSGcount";
|
||||||
|
this.labcurSGcount.Size = new System.Drawing.Size(68, 47);
|
||||||
|
this.labcurSGcount.TabIndex = 19;
|
||||||
|
this.labcurSGcount.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// labcurBQcount
|
||||||
|
//
|
||||||
|
this.labcurBQcount.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.labcurBQcount.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.labcurBQcount.ForeColor = System.Drawing.Color.Orange;
|
||||||
|
this.labcurBQcount.Location = new System.Drawing.Point(490, 106);
|
||||||
|
this.labcurBQcount.Name = "labcurBQcount";
|
||||||
|
this.labcurBQcount.Size = new System.Drawing.Size(68, 47);
|
||||||
|
this.labcurBQcount.TabIndex = 20;
|
||||||
|
this.labcurBQcount.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// Dispensing
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.BackgroundImage = global::JJMediSys.Properties.Resources.Dispensing3;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ClientSize = new System.Drawing.Size(811, 497);
|
||||||
|
this.Controls.Add(this.labcurBQcount);
|
||||||
|
this.Controls.Add(this.labcurSGcount);
|
||||||
|
this.Controls.Add(this.labCurBed);
|
||||||
|
this.Controls.Add(this.ItemDetail);
|
||||||
|
this.Controls.Add(this.labcurcount);
|
||||||
|
this.Controls.Add(this.labCurName);
|
||||||
|
this.Controls.Add(this.LabTime);
|
||||||
|
this.Controls.Add(this.button1);
|
||||||
|
this.Controls.Add(this.LabMsg);
|
||||||
|
this.Controls.Add(this.LabSgCur);
|
||||||
|
this.Controls.Add(this.LabPIdCur);
|
||||||
|
this.Controls.Add(this.LabSGTotal);
|
||||||
|
this.Controls.Add(this.LabPIdTotal);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "Dispensing";
|
||||||
|
this.Text = "Dispensing";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.TransparencyKey = System.Drawing.Color.Navy;
|
||||||
|
this.Load += new System.EventHandler(this.Dispensing_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
private System.Windows.Forms.Button button1;
|
||||||
|
private System.Windows.Forms.Label LabPIdTotal;
|
||||||
|
private System.Windows.Forms.Label LabSGTotal;
|
||||||
|
private System.Windows.Forms.Label LabPIdCur;
|
||||||
|
private System.Windows.Forms.Label LabSgCur;
|
||||||
|
private System.Windows.Forms.Label LabMsg;
|
||||||
|
private System.Windows.Forms.Timer timerForClose;
|
||||||
|
private System.Windows.Forms.Label LabTime;
|
||||||
|
private System.Windows.Forms.Label labCurName;
|
||||||
|
private System.Windows.Forms.Label labcurcount;
|
||||||
|
private MyFlowLayoutPanel ItemDetail;
|
||||||
|
private System.Windows.Forms.Label labCurBed;
|
||||||
|
private System.Windows.Forms.Label labcurSGcount;
|
||||||
|
private System.Windows.Forms.Label labcurBQcount;
|
||||||
|
}
|
||||||
|
}
|
||||||
537
JJMediSys/Dispensing.cs
Normal file
@@ -0,0 +1,537 @@
|
|||||||
|
using JJMediSys.cs;
|
||||||
|
using JJServer;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
//using BLECom;
|
||||||
|
using static JJMediSys.AlertForm;
|
||||||
|
using static JJMediSys.SystemSet;
|
||||||
|
using Timer = System.Windows.Forms.Timer;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class Dispensing : Form
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public static int JyxxId = 0;
|
||||||
|
public const int HTCAPTION = 0x0002;
|
||||||
|
public bool DispenseCancel =false;
|
||||||
|
public bool DispenseRetry = false;
|
||||||
|
public bool DispenseNext = false;
|
||||||
|
public bool isStop = false;
|
||||||
|
public bool WinClose = false;
|
||||||
|
public int TimeDelay = 8;
|
||||||
|
|
||||||
|
public string ErrorInfoStr = "";
|
||||||
|
public SystemSet fm1;
|
||||||
|
public List<PatientDatail> mpatientDatails;
|
||||||
|
|
||||||
|
//public BLECom.JJBLE jJBLE ;
|
||||||
|
Timer timer2;
|
||||||
|
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
|
||||||
|
private static extern IntPtr CreateRoundRectRgn
|
||||||
|
(
|
||||||
|
int nLeftRect, // x-coordinate of upper-left corner
|
||||||
|
int nTopRect, // y-coordinate of upper-left corner
|
||||||
|
int nRightRect, // x-coordinate of lower-right corner
|
||||||
|
int nBottomRect, // y-coordinate of lower-right corner
|
||||||
|
int nWidthEllipse, // height of ellipse
|
||||||
|
int nHeightEllipse // width of ellipse
|
||||||
|
);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref MARGINS pMarInset);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmIsCompositionEnabled(ref int pfEnabled);
|
||||||
|
|
||||||
|
private bool m_aeroEnabled; // variables for box shadow
|
||||||
|
private const int CS_DROPSHADOW = 0x00020000;
|
||||||
|
private const int WM_NCPAINT = 0x0085;
|
||||||
|
private const int WM_ACTIVATEAPP = 0x001C;
|
||||||
|
|
||||||
|
public struct MARGINS // struct for box shadow
|
||||||
|
{
|
||||||
|
public int leftWidth;
|
||||||
|
public int rightWidth;
|
||||||
|
public int topHeight;
|
||||||
|
public int bottomHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
private const int WM_NCHITTEST = 0x84; // variables for dragging the form
|
||||||
|
private const int HTCLIENT = 0x1;
|
||||||
|
|
||||||
|
protected override CreateParams CreateParams
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
m_aeroEnabled = CheckAeroEnabled();
|
||||||
|
|
||||||
|
CreateParams cp = base.CreateParams;
|
||||||
|
if (!m_aeroEnabled)
|
||||||
|
cp.ClassStyle |= CS_DROPSHADOW;
|
||||||
|
|
||||||
|
return cp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool CheckAeroEnabled()
|
||||||
|
{
|
||||||
|
if (Environment.OSVersion.Version.Major >= 6)
|
||||||
|
{
|
||||||
|
int enabled = 0;
|
||||||
|
DwmIsCompositionEnabled(ref enabled);
|
||||||
|
return (enabled == 1) ? true : false;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void WndProc(ref Message m)
|
||||||
|
{
|
||||||
|
switch (m.Msg)
|
||||||
|
{
|
||||||
|
case WM_NCPAINT: // box shadow
|
||||||
|
if (m_aeroEnabled)
|
||||||
|
{
|
||||||
|
var v = 2;
|
||||||
|
DwmSetWindowAttribute(this.Handle, 2, ref v, 4);
|
||||||
|
MARGINS margins = new MARGINS()
|
||||||
|
{
|
||||||
|
bottomHeight = 1,
|
||||||
|
leftWidth = 1,
|
||||||
|
rightWidth = 1,
|
||||||
|
topHeight = 1
|
||||||
|
};
|
||||||
|
DwmExtendFrameIntoClientArea(this.Handle, ref margins);
|
||||||
|
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
base.WndProc(ref m);
|
||||||
|
|
||||||
|
if (m.Msg == WM_NCHITTEST && (int)m.Result == HTCLIENT) // drag the form
|
||||||
|
m.Result = (IntPtr)HTCAPTION;
|
||||||
|
|
||||||
|
}
|
||||||
|
public Dispensing(SystemSet form1,List<PatientDatail> patientDatails)
|
||||||
|
{
|
||||||
|
m_aeroEnabled = false;
|
||||||
|
InitializeComponent();
|
||||||
|
fm1 = form1;
|
||||||
|
mpatientDatails = patientDatails;
|
||||||
|
ItemDetail.GetType().GetProperty
|
||||||
|
("DoubleBuffered", System.Reflection.BindingFlags.Instance
|
||||||
|
| System.Reflection.BindingFlags.NonPublic)
|
||||||
|
.SetValue(ItemDetail, true, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private async void Dispensing_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
IsDispensing = true;
|
||||||
|
logger.Info("IsDispensing = true");
|
||||||
|
|
||||||
|
ItemDetail.AutoScroll = true;
|
||||||
|
// 设置FlowLayoutPanel的内容自动换行
|
||||||
|
ItemDetail.WrapContents = true;
|
||||||
|
if (SystemSet.DispenseWindowLocation.X == 9999)
|
||||||
|
{
|
||||||
|
int x = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
|
||||||
|
int y = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2;
|
||||||
|
SystemSet.DispenseWindowLocation = new Point(x, y);
|
||||||
|
}
|
||||||
|
SystemSet.CancelDispensing = false;
|
||||||
|
// 设置窗口位置
|
||||||
|
this.Location = SystemSet.DispenseWindowLocation;
|
||||||
|
TimeDelay = SystemSet.TimeDelay;
|
||||||
|
Timer timer1 = new Timer();
|
||||||
|
timer1.Interval = 500; // 每隔500毫秒触发一次
|
||||||
|
timer1.Tick += timerforflash_Tick; // 绑定事件处理程序
|
||||||
|
timer1.Start(); // 启动定时器
|
||||||
|
|
||||||
|
int TotalPidCount = 0;
|
||||||
|
int TotalNum = 0;
|
||||||
|
foreach (PatientDatail patientDatail in mpatientDatails)
|
||||||
|
{
|
||||||
|
TotalPidCount++;
|
||||||
|
TotalNum += patientDatail.ItemCount;
|
||||||
|
}
|
||||||
|
LabPIdTotal.Text = TotalPidCount.ToString();
|
||||||
|
LabSGTotal.Text = TotalNum.ToString();
|
||||||
|
LabMsg.Text = "请放入接管盒";
|
||||||
|
|
||||||
|
|
||||||
|
timer2 = new Timer();
|
||||||
|
timer2.Interval = 100; // 每隔500毫秒触发一次
|
||||||
|
timer2.Tick += timerforTask_Tick; // 绑定事件处理程序
|
||||||
|
timer2.Start(); // 启动定时器
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
private void timerforTask_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
timer2.Stop();
|
||||||
|
Dispense();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public async void Dispense()
|
||||||
|
{
|
||||||
|
int CurPersonID = 0;
|
||||||
|
int CurTotalSgCount = 0;
|
||||||
|
for (int i = 0; i < mpatientDatails.Count; i++)
|
||||||
|
{
|
||||||
|
DispenseCancel = false;
|
||||||
|
DispenseRetry = false;
|
||||||
|
DispenseNext = false;
|
||||||
|
PatientDatail patientDatail = mpatientDatails[i];
|
||||||
|
|
||||||
|
|
||||||
|
List<ItemsShow> itemsShows = new List<ItemsShow>();
|
||||||
|
int SGcount = 0;
|
||||||
|
int BQcount = 0;
|
||||||
|
bool isAllRecp = true;
|
||||||
|
foreach (JJServer.jyData jyData in patientDatail.jyDatas)
|
||||||
|
{
|
||||||
|
ItemsShow itemsShow = new ItemsShow(jyData);
|
||||||
|
itemsShows.Add(itemsShow);
|
||||||
|
|
||||||
|
if (jyData.bqtype==2)
|
||||||
|
{
|
||||||
|
BQcount++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SGcount++;
|
||||||
|
isAllRecp = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//fm1.GetDeviceStatusNoUI();
|
||||||
|
|
||||||
|
StartCheckBox:
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
LabMsg.Text = "请放入接管盒";
|
||||||
|
labCurName.Text = patientDatail.PatientInfo.Name;
|
||||||
|
labCurBed.Text = patientDatail.PatientInfo.BedNo;
|
||||||
|
LabPIdCur.Text = (++CurPersonID).ToString();
|
||||||
|
labcurcount.Text = patientDatail.ItemCount.ToString();
|
||||||
|
labcurSGcount.Text = SGcount.ToString();
|
||||||
|
labcurBQcount.Text = BQcount.ToString();
|
||||||
|
ItemDetail.Controls.Clear();
|
||||||
|
ItemDetail.Controls.AddRange(itemsShows.ToArray());
|
||||||
|
ItemDetail.WrapContents = false;
|
||||||
|
this.Update();
|
||||||
|
});
|
||||||
|
if(!isAllRecp)
|
||||||
|
{
|
||||||
|
while (!mTubeLabelTool.WaitTubeTakeBox() && !DispenseCancel)
|
||||||
|
{
|
||||||
|
await Task.Delay(500);
|
||||||
|
}
|
||||||
|
if (DispenseCancel) //手动取消
|
||||||
|
{
|
||||||
|
logger.Info("取消发管!");
|
||||||
|
Task.Run(() => PublicStatic.EventMgr.ExcuteCmd($"insert into EVENTINFOLIST(Msg,Details,Time) Values('{"取消发管"}','发管信息 \r\n患者姓名:{patientDatail.PatientInfo.Name} \r\n试管数量:{ SGcount.ToString()} \r\n标签数量:{ BQcount.ToString()}','{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}')"));
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("取消发管", AlertType.Info, 3);
|
||||||
|
});
|
||||||
|
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
this.Closewin();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
LabMsg.Text = "正在处理中";
|
||||||
|
});
|
||||||
|
//if (SystemSet.UseBle)
|
||||||
|
//{
|
||||||
|
// BleTask bleTask = new BleTask();
|
||||||
|
// if (!fm1.ExtBle)
|
||||||
|
// {
|
||||||
|
// jJBLE = new JJBLE();
|
||||||
|
// //扫码 获取盒子蓝牙地址
|
||||||
|
// JJBLE.BLEConnectionResult bleResult = await jJBLE.Matching(mTubeLabelTool.BleBarcodeStr); //连接蓝牙
|
||||||
|
// if (bleResult != JJBLE.BLEConnectionResult.Success)
|
||||||
|
// {
|
||||||
|
// ErrMsgShow errMsgShow = new ErrMsgShow(this);
|
||||||
|
// ErrorInfoStr = "试管盒蓝牙连接失败,请重试";
|
||||||
|
// DialogResult result = errMsgShow.ShowDialog();
|
||||||
|
// if (result == DialogResult.Retry)
|
||||||
|
// goto StartCheckBox;
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// this.Invoke((MethodInvoker)delegate
|
||||||
|
// {
|
||||||
|
// this.Closewin();
|
||||||
|
// });
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// bleTask.TargDevice = jJBLE.currentDevice;
|
||||||
|
// }
|
||||||
|
// bleTask.MACstr = mTubeLabelTool.BleBarcodeStr.Substring(mTubeLabelTool.BleBarcodeStr.Length - 17, 17);
|
||||||
|
|
||||||
|
// string Bedno = "";
|
||||||
|
// if (patientDatail.PatientInfo.BedNo.Length == 6)
|
||||||
|
// {
|
||||||
|
// Bedno = patientDatail.PatientInfo.BedNo.Substring(3, 2) + "-" + patientDatail.PatientInfo.BedNo.Substring(5, 1);
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// Bedno = patientDatail.PatientInfo.BedNo;
|
||||||
|
|
||||||
|
// bleTask.CodeStr = "D000000125040|#000000@D125000125040|#FF0000@D000045080030|#000000@TB16000010125030|C^#FFFFFF^24楼病区@T 10125002130020|C^#FFFFFF^浙江大学医学院附属@TB16125015130030|C^#FFFFFF^邵逸夫医院@TB16000050080030|R^#FFFFFF^床位号@TB16080050080040|L^#FF0000^" + Bedno + "@TB18150060110060|L^" + patientDatail.PatientInfo.Name + "@TB18120100150040|C^#FF0000^" + SGcount.ToString() + "管" + BQcount.ToString() + "签@B000085120025|J" + patientDatail.PatientInfo.CardNo + "@T 10015110120020|C^J" + patientDatail.PatientInfo.CardNo;
|
||||||
|
// logger.Info("BLEImage:" + bleTask.CodeStr);
|
||||||
|
// SystemSet.bleTaskQueue.Enqueue(bleTask);
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
CurTotalSgCount = CurTotalSgCount + patientDatail.ItemCount;
|
||||||
|
LabSgCur.Text = CurTotalSgCount.ToString();
|
||||||
|
string Result = "";
|
||||||
|
lock (locker)
|
||||||
|
{
|
||||||
|
if(patientDatail.jyDatas[0].bqtype==3)
|
||||||
|
{
|
||||||
|
Result = "0|";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Result = mTubeLabelTool.Dispense(patientDatail);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
string[] Arr = Result.Split('|');
|
||||||
|
if (Arr[0] == "0")
|
||||||
|
{
|
||||||
|
logger.Info("发管成功!");
|
||||||
|
Task.Run(() => PublicStatic.EventMgr.ExcuteCmd($"insert into EVENTINFOLIST(Msg,Details,Time) Values('{"发管成功"}','发管信息 \r\n患者姓名:{patientDatail.PatientInfo.Name} \r\n试管数量:{ SGcount.ToString()} \r\n标签数量:{ BQcount.ToString()}','{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}')"));
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("发管成功", AlertType.Success, 3);
|
||||||
|
});
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
LabMsg.Text = "当前患者发管完成,共【" + patientDatail.ItemCount.ToString() + "】管,请取走接管盒";
|
||||||
|
logger.Info($"发管成功!i={i} mpatientDatails.Count={mpatientDatails.Count-1}");
|
||||||
|
if (fm1.AutoClose && i == mpatientDatails.Count-1)
|
||||||
|
EnableTimer();
|
||||||
|
});
|
||||||
|
|
||||||
|
if(MainForm.ifWindowOpen("门诊采血"))
|
||||||
|
{
|
||||||
|
MZCY.ConformTask conformTask = new MZCY.ConformTask();
|
||||||
|
conformTask.orginDatas = patientDatail.OrginDatas;
|
||||||
|
MZCY.ConformTaskQueue.Enqueue(conformTask);
|
||||||
|
}
|
||||||
|
|
||||||
|
while (!mTubeLabelTool.WaitTubeTakeBoxTaken() && !isCancel() && !isClose())
|
||||||
|
{
|
||||||
|
await Task.Delay(500);
|
||||||
|
}
|
||||||
|
if (isCancel())
|
||||||
|
{
|
||||||
|
logger.Info("取消发管!");
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("取消发管", AlertType.Info, 3);
|
||||||
|
});
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
Closewin();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if(isClose()|| i == mpatientDatails.Count - 1)
|
||||||
|
{
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
logger.Info("CLose Window");
|
||||||
|
Closewin();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (MainForm.ifWindowOpen("门诊采血"))
|
||||||
|
{
|
||||||
|
MZCY.ConformTask conformTask = new MZCY.ConformTask();
|
||||||
|
conformTask.orginDatas = patientDatail.OrginDatas;
|
||||||
|
MZCY.ConformTaskQueue.Enqueue(conformTask);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
logger.Info(string.Format("发管失败:{0}", Arr[1]));
|
||||||
|
Task.Run(() => PublicStatic.EventMgr.ExcuteCmd($"insert into EVENTINFOLIST(Msg,Details,Time) Values('{"发管失败"}','发管信息 \r\n患者姓名:{patientDatail.PatientInfo.Name} \r\n试管数量:{ SGcount.ToString()} \r\n标签数量:{ BQcount.ToString()} \r\n错误信息:{ Arr[1]}','{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}')"));
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert(string.Format("发管失败:{0}", Arr[1]), AlertType.Error, 3);
|
||||||
|
});
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
ErrorInfoStr = Arr[1];// "当前患者发管失败,共【" + patientDatail.ItemCount.ToString() + "】管,请核查";
|
||||||
|
LabMsg.Text = ErrorInfoStr;
|
||||||
|
DispenseMsg dispenseMsg = new DispenseMsg(this);
|
||||||
|
dispenseMsg.Show();
|
||||||
|
});
|
||||||
|
while (!isCancel() && !isRetry() && !isNext())
|
||||||
|
{
|
||||||
|
await Task.Delay(500);
|
||||||
|
}
|
||||||
|
if (isNext())
|
||||||
|
continue;
|
||||||
|
if (isRetry()) //重试
|
||||||
|
{
|
||||||
|
logger.Info("isRetry");
|
||||||
|
i--;
|
||||||
|
LabPIdCur.Text = (--CurPersonID).ToString();
|
||||||
|
CurTotalSgCount = CurTotalSgCount - patientDatail.ItemCount;
|
||||||
|
LabSgCur.Text = CurTotalSgCount.ToString();
|
||||||
|
}
|
||||||
|
if (isCancel())
|
||||||
|
{
|
||||||
|
logger.Info("取消发管!");
|
||||||
|
Task.Run(() => PublicStatic.EventMgr.ExcuteCmd($"insert into EVENTINFOLIST(Msg,Details,Time) Values('{"取消发管"}','发管信息 \r\n患者姓名:{patientDatail.PatientInfo.Name} \r\n试管数量:{ SGcount.ToString()} \r\n标签数量:{ BQcount.ToString()}','{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}')"));
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("取消发管", AlertType.Info, 3);
|
||||||
|
});
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
Closewin();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
Closewin();
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
/*Form1.CancelDispensing = true; //手动点击终止后 ,TubeLabelTool.cs中的循环将退出 并返回手动取消状态
|
||||||
|
if (!isStop)//处于可手动终止状态
|
||||||
|
DispenseCancel = true; //*/
|
||||||
|
|
||||||
|
DispenseCancel = true;
|
||||||
|
//Closewin();
|
||||||
|
}
|
||||||
|
public bool isCancel()
|
||||||
|
{
|
||||||
|
return DispenseCancel;
|
||||||
|
}
|
||||||
|
public bool isRetry()
|
||||||
|
{
|
||||||
|
return DispenseRetry;
|
||||||
|
}
|
||||||
|
public bool isNext()
|
||||||
|
{
|
||||||
|
return DispenseNext;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void EnableTimer()
|
||||||
|
{
|
||||||
|
timerForClose.Enabled = true;
|
||||||
|
}
|
||||||
|
public bool isClose()
|
||||||
|
{
|
||||||
|
return WinClose;
|
||||||
|
}
|
||||||
|
public void Closewin()
|
||||||
|
{
|
||||||
|
SystemSet.DispenseWindowLocation = new Point(this.Location.X, this.Location.Y);
|
||||||
|
IsDispensing = false;
|
||||||
|
logger.Info("IsDispensing = false");
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void timerForClose_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (TimeDelay > 0)
|
||||||
|
{
|
||||||
|
LabTime.Text = TimeDelay.ToString();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WinClose = true;
|
||||||
|
}
|
||||||
|
TimeDelay--;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void timerforflash_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
this.Invoke((MethodInvoker)delegate
|
||||||
|
{
|
||||||
|
if (LabMsg.ForeColor == Color.Red)
|
||||||
|
{
|
||||||
|
LabMsg.ForeColor = Color.Black;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LabMsg.ForeColor = Color.Red;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
catch(Exception ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine("timerforflash:" + ex.Message);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LabMsg_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
126
JJMediSys/Dispensing.resx
Normal file
@@ -0,0 +1,126 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="timerForClose.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>50</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
124
JJMediSys/ErrMsgShow.Designer.cs
generated
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class ErrMsgShow
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.Msg = new System.Windows.Forms.Label();
|
||||||
|
this.BRetry = new System.Windows.Forms.Button();
|
||||||
|
this.BCancel = new System.Windows.Forms.Button();
|
||||||
|
this.ResetBLE = new System.Windows.Forms.Button();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// Msg
|
||||||
|
//
|
||||||
|
this.Msg.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.Msg.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.Msg.ForeColor = System.Drawing.Color.RoyalBlue;
|
||||||
|
this.Msg.Location = new System.Drawing.Point(12, 49);
|
||||||
|
this.Msg.Name = "Msg";
|
||||||
|
this.Msg.Size = new System.Drawing.Size(509, 106);
|
||||||
|
this.Msg.TabIndex = 0;
|
||||||
|
this.Msg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// BRetry
|
||||||
|
//
|
||||||
|
this.BRetry.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BRetry.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BRetry.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BRetry.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BRetry.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BRetry.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.BRetry.Location = new System.Drawing.Point(16, 171);
|
||||||
|
this.BRetry.Name = "BRetry";
|
||||||
|
this.BRetry.Size = new System.Drawing.Size(159, 40);
|
||||||
|
this.BRetry.TabIndex = 1;
|
||||||
|
this.BRetry.Text = "重 试";
|
||||||
|
this.BRetry.UseVisualStyleBackColor = true;
|
||||||
|
this.BRetry.Click += new System.EventHandler(this.BRetry_Click);
|
||||||
|
//
|
||||||
|
// BCancel
|
||||||
|
//
|
||||||
|
this.BCancel.BackgroundImage = global::JJMediSys.Properties.Resources.Bt2;
|
||||||
|
this.BCancel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BCancel.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BCancel.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BCancel.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.BCancel.Location = new System.Drawing.Point(362, 171);
|
||||||
|
this.BCancel.Name = "BCancel";
|
||||||
|
this.BCancel.Size = new System.Drawing.Size(159, 40);
|
||||||
|
this.BCancel.TabIndex = 2;
|
||||||
|
this.BCancel.Text = "取 消";
|
||||||
|
this.BCancel.UseVisualStyleBackColor = true;
|
||||||
|
this.BCancel.Click += new System.EventHandler(this.BCancel_Click);
|
||||||
|
//
|
||||||
|
// ResetBLE
|
||||||
|
//
|
||||||
|
this.ResetBLE.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.ResetBLE.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ResetBLE.FlatAppearance.BorderSize = 0;
|
||||||
|
this.ResetBLE.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.ResetBLE.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.ResetBLE.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.ResetBLE.Location = new System.Drawing.Point(190, 171);
|
||||||
|
this.ResetBLE.Name = "ResetBLE";
|
||||||
|
this.ResetBLE.Size = new System.Drawing.Size(159, 40);
|
||||||
|
this.ResetBLE.TabIndex = 3;
|
||||||
|
this.ResetBLE.Text = "重置蓝牙";
|
||||||
|
this.ResetBLE.UseVisualStyleBackColor = true;
|
||||||
|
this.ResetBLE.Click += new System.EventHandler(this.ResetBLE_Click);
|
||||||
|
//
|
||||||
|
// ErrMsgShow
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackgroundImage = global::JJMediSys.Properties.Resources.ErrorShow;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ClientSize = new System.Drawing.Size(533, 223);
|
||||||
|
this.Controls.Add(this.ResetBLE);
|
||||||
|
this.Controls.Add(this.BCancel);
|
||||||
|
this.Controls.Add(this.BRetry);
|
||||||
|
this.Controls.Add(this.Msg);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "ErrMsgShow";
|
||||||
|
this.Text = "ErrMsgShow";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.ErrMsgShow_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label Msg;
|
||||||
|
private System.Windows.Forms.Button BRetry;
|
||||||
|
private System.Windows.Forms.Button BCancel;
|
||||||
|
private System.Windows.Forms.Button ResetBLE;
|
||||||
|
}
|
||||||
|
}
|
||||||
284
JJMediSys/ErrMsgShow.cs
Normal file
@@ -0,0 +1,284 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Diagnostics;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class ErrMsgShow : Form
|
||||||
|
{
|
||||||
|
|
||||||
|
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")]
|
||||||
|
private static extern IntPtr CreateRoundRectRgn
|
||||||
|
(
|
||||||
|
int nLeftRect, // x-coordinate of upper-left corner
|
||||||
|
int nTopRect, // y-coordinate of upper-left corner
|
||||||
|
int nRightRect, // x-coordinate of lower-right corner
|
||||||
|
int nBottomRect, // y-coordinate of lower-right corner
|
||||||
|
int nWidthEllipse, // height of ellipse
|
||||||
|
int nHeightEllipse // width of ellipse
|
||||||
|
);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref MARGINS pMarInset);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmSetWindowAttribute(IntPtr hwnd, int attr, ref int attrValue, int attrSize);
|
||||||
|
|
||||||
|
[DllImport("dwmapi.dll")]
|
||||||
|
public static extern int DwmIsCompositionEnabled(ref int pfEnabled);
|
||||||
|
|
||||||
|
private bool m_aeroEnabled; // variables for box shadow
|
||||||
|
private const int CS_DROPSHADOW = 0x00020000;
|
||||||
|
private const int WM_NCPAINT = 0x0085;
|
||||||
|
private const int WM_ACTIVATEAPP = 0x001C;
|
||||||
|
|
||||||
|
public struct MARGINS // struct for box shadow
|
||||||
|
{
|
||||||
|
public int leftWidth;
|
||||||
|
public int rightWidth;
|
||||||
|
public int topHeight;
|
||||||
|
public int bottomHeight;
|
||||||
|
}
|
||||||
|
|
||||||
|
private const int WM_NCHITTEST = 0x84; // variables for dragging the form
|
||||||
|
private const int HTCLIENT = 0x1;
|
||||||
|
private const int HTCAPTION = 0x2;
|
||||||
|
|
||||||
|
protected override CreateParams CreateParams
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
m_aeroEnabled = CheckAeroEnabled();
|
||||||
|
|
||||||
|
CreateParams cp = base.CreateParams;
|
||||||
|
if (!m_aeroEnabled)
|
||||||
|
cp.ClassStyle |= CS_DROPSHADOW;
|
||||||
|
|
||||||
|
return cp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool CheckAeroEnabled()
|
||||||
|
{
|
||||||
|
if (Environment.OSVersion.Version.Major >= 6)
|
||||||
|
{
|
||||||
|
int enabled = 0;
|
||||||
|
DwmIsCompositionEnabled(ref enabled);
|
||||||
|
return (enabled == 1) ? true : false;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void WndProc(ref Message m)
|
||||||
|
{
|
||||||
|
switch (m.Msg)
|
||||||
|
{
|
||||||
|
case WM_NCPAINT: // box shadow
|
||||||
|
if (m_aeroEnabled)
|
||||||
|
{
|
||||||
|
var v = 2;
|
||||||
|
DwmSetWindowAttribute(this.Handle, 2, ref v, 4);
|
||||||
|
MARGINS margins = new MARGINS()
|
||||||
|
{
|
||||||
|
bottomHeight = 1,
|
||||||
|
leftWidth = 1,
|
||||||
|
rightWidth = 1,
|
||||||
|
topHeight = 1
|
||||||
|
};
|
||||||
|
DwmExtendFrameIntoClientArea(this.Handle, ref margins);
|
||||||
|
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
base.WndProc(ref m);
|
||||||
|
|
||||||
|
if (m.Msg == WM_NCHITTEST && (int)m.Result == HTCLIENT) // drag the form
|
||||||
|
m.Result = (IntPtr)HTCAPTION;
|
||||||
|
|
||||||
|
}
|
||||||
|
public Dispensing fordispensing;
|
||||||
|
public ErrMsgShow(Dispensing dispensing)
|
||||||
|
{
|
||||||
|
m_aeroEnabled = false;
|
||||||
|
InitializeComponent();
|
||||||
|
fordispensing = dispensing;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public ErrMsgShow()
|
||||||
|
{
|
||||||
|
m_aeroEnabled = false;
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private void ErrMsgShow_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//int x = fordispensing.Location.X + (fordispensing.Width - this.Width) / 2;
|
||||||
|
//int y = fordispensing.Location.Y + (fordispensing.Height - this.Height) / 2;
|
||||||
|
//this.Location = new Point(x, y);
|
||||||
|
//Msg.Text = fordispensing.ErrorInfoStr;
|
||||||
|
|
||||||
|
Msg.Text = "蓝牙连接失败";
|
||||||
|
if (Msg.Text.Contains("蓝牙11"))
|
||||||
|
{
|
||||||
|
BRetry.Location = new System.Drawing.Point(16, 171);
|
||||||
|
BCancel.Location = new System.Drawing.Point(362, 171);
|
||||||
|
ResetBLE.Visible = true;
|
||||||
|
ResetBLE.Location = new System.Drawing.Point(190, 171);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
BRetry.Location = new System.Drawing.Point(77, 171);
|
||||||
|
BCancel.Location = new System.Drawing.Point(305, 171);
|
||||||
|
ResetBLE.Visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BRetry_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Retry;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BCancel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
DialogResult = DialogResult.Cancel;
|
||||||
|
//Form1.CancelDispensing = true; //手动点击终止后 ,TubeLabelTool.cs中的循环将退出 并返回手动取消状态
|
||||||
|
//if (!fordispensing.isStop)//处于可手动终止状态
|
||||||
|
// fordispensing.DispenseCancel = true; //
|
||||||
|
//fordispensing.Closewin();
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void ResetBLE_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// 停止蓝牙服务
|
||||||
|
await StopBluetoothServiceAsync();
|
||||||
|
|
||||||
|
// 等待几秒钟以确保服务完全停止
|
||||||
|
// await Task.Delay(5000);
|
||||||
|
// 启动蓝牙服务
|
||||||
|
// await StartBluetoothServiceAsync();
|
||||||
|
|
||||||
|
Console.WriteLine("蓝牙服务已成功重启。");
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Console.WriteLine($"发生错误: {ex.Message}");
|
||||||
|
}
|
||||||
|
|
||||||
|
DialogResult = DialogResult.Retry;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
static async Task StopBluetoothServiceAsync()
|
||||||
|
{
|
||||||
|
string scriptPath = @"D:\\BuleToothOff.ps1";
|
||||||
|
|
||||||
|
// 创建 ProcessStartInfo 对象
|
||||||
|
ProcessStartInfo startInfo = new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = "cmd.exe", // 指定 cmd.exe 可执行文件
|
||||||
|
Arguments = $"powershell -ExecutionPolicy Bypass -File {scriptPath}", // 使用 cmd.exe 启动 PowerShell 并运行脚本
|
||||||
|
//RedirectStandardOutput = true, // 重定向标准输出
|
||||||
|
// RedirectStandardError = true, // 重定向标准错误
|
||||||
|
// UseShellExecute = false , // 不使用外壳程序
|
||||||
|
Verb = "runas"
|
||||||
|
//CreateNoWindow = true // 不创建新窗口
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// 创建 Process 对象
|
||||||
|
using (Process process = new Process { StartInfo = startInfo })
|
||||||
|
{
|
||||||
|
// 启动进程
|
||||||
|
process.Start();
|
||||||
|
|
||||||
|
// 读取标准输出
|
||||||
|
string output = process.StandardOutput.ReadToEnd();
|
||||||
|
// 读取标准错误
|
||||||
|
string error = process.StandardError.ReadToEnd();
|
||||||
|
|
||||||
|
// 等待进程退出
|
||||||
|
process.WaitForExit();
|
||||||
|
|
||||||
|
// 输出结果
|
||||||
|
Console.WriteLine("Output:");
|
||||||
|
Console.WriteLine(output);
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(error))
|
||||||
|
{
|
||||||
|
Console.WriteLine("Error:");
|
||||||
|
Console.WriteLine(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("脚本执行完毕。");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static async Task StartBluetoothServiceAsync()
|
||||||
|
{
|
||||||
|
string scriptPath = @".\BuleToothOn.ps1";
|
||||||
|
|
||||||
|
// 创建 ProcessStartInfo 对象
|
||||||
|
ProcessStartInfo startInfo = new ProcessStartInfo
|
||||||
|
{
|
||||||
|
FileName = "powershell.exe", // 指定 PowerShell 可执行文件
|
||||||
|
Arguments = $"-ExecutionPolicy Bypass -File \"{scriptPath}\"", // 指定脚本文件路径
|
||||||
|
RedirectStandardOutput = true, // 重定向标准输出
|
||||||
|
RedirectStandardError = true, // 重定向标准错误
|
||||||
|
UseShellExecute = false, // 不使用外壳程序
|
||||||
|
CreateNoWindow = true // 不创建新窗口
|
||||||
|
};
|
||||||
|
|
||||||
|
// 创建 Process 对象
|
||||||
|
using (Process process = new Process { StartInfo = startInfo })
|
||||||
|
{
|
||||||
|
// 启动进程
|
||||||
|
process.Start();
|
||||||
|
|
||||||
|
// 读取标准输出
|
||||||
|
string output = process.StandardOutput.ReadToEnd();
|
||||||
|
// 读取标准错误
|
||||||
|
string error = process.StandardError.ReadToEnd();
|
||||||
|
|
||||||
|
// 等待进程退出
|
||||||
|
process.WaitForExit();
|
||||||
|
|
||||||
|
// 输出结果
|
||||||
|
Console.WriteLine("Output:");
|
||||||
|
Console.WriteLine(output);
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(error))
|
||||||
|
{
|
||||||
|
Console.WriteLine("Error:");
|
||||||
|
Console.WriteLine(error);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Console.WriteLine("脚本执行完毕。");
|
||||||
|
}
|
||||||
|
|
||||||
|
static async Task<string> ReadOutputAsync(System.IO.StreamReader reader)
|
||||||
|
{
|
||||||
|
return await reader.ReadToEndAsync();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/ErrMsgShow.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
397
JJMediSys/EventLog.Designer.cs
generated
Normal file
@@ -0,0 +1,397 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class EventLog
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.Msg = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Details = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ID = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||||
|
this.Time = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.dateEnd = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.dateStart = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.label16 = new System.Windows.Forms.Label();
|
||||||
|
this.label15 = new System.Windows.Forms.Label();
|
||||||
|
this.BSearch = new System.Windows.Forms.Button();
|
||||||
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
|
this.LabNote = new System.Windows.Forms.Label();
|
||||||
|
this.TextName = new System.Windows.Forms.TextBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.TextDetail = new System.Windows.Forms.TextBox();
|
||||||
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.TextTime = new System.Windows.Forms.TextBox();
|
||||||
|
this.BClearLogs = new System.Windows.Forms.Button();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
this.groupBox1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).BeginInit();
|
||||||
|
this.panel2.SuspendLayout();
|
||||||
|
this.groupBox2.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// Msg
|
||||||
|
//
|
||||||
|
this.Msg.Caption = "事件名";
|
||||||
|
this.Msg.FieldName = "Msg";
|
||||||
|
this.Msg.Name = "Msg";
|
||||||
|
this.Msg.Visible = true;
|
||||||
|
this.Msg.VisibleIndex = 1;
|
||||||
|
this.Msg.Width = 170;
|
||||||
|
//
|
||||||
|
// Details
|
||||||
|
//
|
||||||
|
this.Details.Caption = "明细";
|
||||||
|
this.Details.FieldName = "Details";
|
||||||
|
this.Details.Name = "Details";
|
||||||
|
this.Details.Visible = true;
|
||||||
|
this.Details.VisibleIndex = 2;
|
||||||
|
this.Details.Width = 714;
|
||||||
|
//
|
||||||
|
// ID
|
||||||
|
//
|
||||||
|
this.ID.Caption = "序号";
|
||||||
|
this.ID.FieldName = "ID";
|
||||||
|
this.ID.Name = "ID";
|
||||||
|
this.ID.Visible = true;
|
||||||
|
this.ID.VisibleIndex = 0;
|
||||||
|
this.ID.Width = 67;
|
||||||
|
//
|
||||||
|
// gridView1
|
||||||
|
//
|
||||||
|
this.gridView1.Appearance.EvenRow.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.gridView1.Appearance.EvenRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Appearance.OddRow.BackColor = System.Drawing.Color.AliceBlue;
|
||||||
|
this.gridView1.Appearance.OddRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||||
|
this.ID,
|
||||||
|
this.Msg,
|
||||||
|
this.Details,
|
||||||
|
this.Time});
|
||||||
|
this.gridView1.GridControl = this.gridControl1;
|
||||||
|
this.gridView1.Name = "gridView1";
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsView.ShowGroupPanel = false;
|
||||||
|
this.gridView1.SelectionChanged += new DevExpress.Data.SelectionChangedEventHandler(this.gridView1_SelectionChanged);
|
||||||
|
this.gridView1.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.gridView1_FocusedRowChanged);
|
||||||
|
//
|
||||||
|
// Time
|
||||||
|
//
|
||||||
|
this.Time.Caption = "事件时间";
|
||||||
|
this.Time.FieldName = "Time";
|
||||||
|
this.Time.Name = "Time";
|
||||||
|
this.Time.Visible = true;
|
||||||
|
this.Time.VisibleIndex = 3;
|
||||||
|
this.Time.Width = 194;
|
||||||
|
//
|
||||||
|
// gridControl1
|
||||||
|
//
|
||||||
|
this.gridControl1.EmbeddedNavigator.AllowDrop = true;
|
||||||
|
this.gridControl1.Location = new System.Drawing.Point(0, 3);
|
||||||
|
this.gridControl1.MainView = this.gridView1;
|
||||||
|
this.gridControl1.Name = "gridControl1";
|
||||||
|
this.gridControl1.Size = new System.Drawing.Size(1084, 658);
|
||||||
|
this.gridControl1.TabIndex = 1;
|
||||||
|
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||||
|
this.gridView1});
|
||||||
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.Controls.Add(this.groupBox1);
|
||||||
|
this.panel1.Location = new System.Drawing.Point(1, 2);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(1666, 87);
|
||||||
|
this.panel1.TabIndex = 15;
|
||||||
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Controls.Add(this.BClearLogs);
|
||||||
|
this.groupBox1.Controls.Add(this.dateEnd);
|
||||||
|
this.groupBox1.Controls.Add(this.dateStart);
|
||||||
|
this.groupBox1.Controls.Add(this.label16);
|
||||||
|
this.groupBox1.Controls.Add(this.label15);
|
||||||
|
this.groupBox1.Controls.Add(this.BSearch);
|
||||||
|
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.groupBox1.ForeColor = System.Drawing.Color.DarkTurquoise;
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(1648, 80);
|
||||||
|
this.groupBox1.TabIndex = 4;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
this.groupBox1.Text = "搜索参数设置";
|
||||||
|
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
|
||||||
|
//
|
||||||
|
// dateEnd
|
||||||
|
//
|
||||||
|
this.dateEnd.EditValue = null;
|
||||||
|
this.dateEnd.Location = new System.Drawing.Point(305, 33);
|
||||||
|
this.dateEnd.Name = "dateEnd";
|
||||||
|
this.dateEnd.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateEnd.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateEnd.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateEnd.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateEnd.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateEnd.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateEnd.TabIndex = 43;
|
||||||
|
//
|
||||||
|
// dateStart
|
||||||
|
//
|
||||||
|
this.dateStart.EditValue = null;
|
||||||
|
this.dateStart.Location = new System.Drawing.Point(179, 33);
|
||||||
|
this.dateStart.Name = "dateStart";
|
||||||
|
this.dateStart.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateStart.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateStart.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateStart.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateStart.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateStart.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateStart.TabIndex = 42;
|
||||||
|
//
|
||||||
|
// label16
|
||||||
|
//
|
||||||
|
this.label16.AutoSize = true;
|
||||||
|
this.label16.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label16.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label16.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label16.Location = new System.Drawing.Point(285, 32);
|
||||||
|
this.label16.Name = "label16";
|
||||||
|
this.label16.Size = new System.Drawing.Size(20, 26);
|
||||||
|
this.label16.TabIndex = 41;
|
||||||
|
this.label16.Text = "-";
|
||||||
|
//
|
||||||
|
// label15
|
||||||
|
//
|
||||||
|
this.label15.AutoSize = true;
|
||||||
|
this.label15.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label15.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label15.Location = new System.Drawing.Point(10, 31);
|
||||||
|
this.label15.Name = "label15";
|
||||||
|
this.label15.Size = new System.Drawing.Size(169, 26);
|
||||||
|
this.label15.TabIndex = 40;
|
||||||
|
this.label15.Text = "数据搜索时间范围:";
|
||||||
|
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// BSearch
|
||||||
|
//
|
||||||
|
this.BSearch.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BSearch.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BSearch.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSearch.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
||||||
|
this.BSearch.Location = new System.Drawing.Point(443, 26);
|
||||||
|
this.BSearch.Name = "BSearch";
|
||||||
|
this.BSearch.Size = new System.Drawing.Size(124, 39);
|
||||||
|
this.BSearch.TabIndex = 3;
|
||||||
|
this.BSearch.Text = "搜 索";
|
||||||
|
this.BSearch.UseVisualStyleBackColor = true;
|
||||||
|
this.BSearch.Click += new System.EventHandler(this.BSearch_Click);
|
||||||
|
//
|
||||||
|
// panel2
|
||||||
|
//
|
||||||
|
this.panel2.Controls.Add(this.LabNote);
|
||||||
|
this.panel2.Controls.Add(this.gridControl1);
|
||||||
|
this.panel2.Location = new System.Drawing.Point(1, 91);
|
||||||
|
this.panel2.Name = "panel2";
|
||||||
|
this.panel2.Size = new System.Drawing.Size(1097, 691);
|
||||||
|
this.panel2.TabIndex = 16;
|
||||||
|
//
|
||||||
|
// LabNote
|
||||||
|
//
|
||||||
|
this.LabNote.AutoSize = true;
|
||||||
|
this.LabNote.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabNote.ForeColor = System.Drawing.Color.SteelBlue;
|
||||||
|
this.LabNote.Location = new System.Drawing.Point(5, 666);
|
||||||
|
this.LabNote.Name = "LabNote";
|
||||||
|
this.LabNote.Size = new System.Drawing.Size(0, 14);
|
||||||
|
this.LabNote.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// TextName
|
||||||
|
//
|
||||||
|
this.TextName.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextName.Location = new System.Drawing.Point(86, 22);
|
||||||
|
this.TextName.Name = "TextName";
|
||||||
|
this.TextName.Size = new System.Drawing.Size(218, 29);
|
||||||
|
this.TextName.TabIndex = 17;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label2.Location = new System.Drawing.Point(6, 24);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(74, 25);
|
||||||
|
this.label2.TabIndex = 18;
|
||||||
|
this.label2.Text = "事件名:";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label3.Location = new System.Drawing.Point(6, 92);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label3.TabIndex = 20;
|
||||||
|
this.label3.Text = "描述:";
|
||||||
|
//
|
||||||
|
// TextDetail
|
||||||
|
//
|
||||||
|
this.TextDetail.AllowDrop = true;
|
||||||
|
this.TextDetail.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextDetail.Location = new System.Drawing.Point(6, 120);
|
||||||
|
this.TextDetail.Multiline = true;
|
||||||
|
this.TextDetail.Name = "TextDetail";
|
||||||
|
this.TextDetail.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||||
|
this.TextDetail.Size = new System.Drawing.Size(337, 564);
|
||||||
|
this.TextDetail.TabIndex = 19;
|
||||||
|
//
|
||||||
|
// groupBox2
|
||||||
|
//
|
||||||
|
this.groupBox2.Controls.Add(this.label1);
|
||||||
|
this.groupBox2.Controls.Add(this.TextTime);
|
||||||
|
this.groupBox2.Controls.Add(this.label2);
|
||||||
|
this.groupBox2.Controls.Add(this.label3);
|
||||||
|
this.groupBox2.Controls.Add(this.TextName);
|
||||||
|
this.groupBox2.Controls.Add(this.TextDetail);
|
||||||
|
this.groupBox2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.groupBox2.ForeColor = System.Drawing.SystemColors.HotTrack;
|
||||||
|
this.groupBox2.Location = new System.Drawing.Point(1104, 91);
|
||||||
|
this.groupBox2.Name = "groupBox2";
|
||||||
|
this.groupBox2.Size = new System.Drawing.Size(354, 691);
|
||||||
|
this.groupBox2.TabIndex = 21;
|
||||||
|
this.groupBox2.TabStop = false;
|
||||||
|
this.groupBox2.Text = "事件明细";
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(25, 55);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label1.TabIndex = 22;
|
||||||
|
this.label1.Text = "时间:";
|
||||||
|
//
|
||||||
|
// TextTime
|
||||||
|
//
|
||||||
|
this.TextTime.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextTime.Location = new System.Drawing.Point(86, 53);
|
||||||
|
this.TextTime.Name = "TextTime";
|
||||||
|
this.TextTime.Size = new System.Drawing.Size(218, 29);
|
||||||
|
this.TextTime.TabIndex = 21;
|
||||||
|
//
|
||||||
|
// BClearLogs
|
||||||
|
//
|
||||||
|
this.BClearLogs.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BClearLogs.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BClearLogs.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BClearLogs.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BClearLogs.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BClearLogs.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
||||||
|
this.BClearLogs.Location = new System.Drawing.Point(602, 26);
|
||||||
|
this.BClearLogs.Name = "BClearLogs";
|
||||||
|
this.BClearLogs.Size = new System.Drawing.Size(191, 39);
|
||||||
|
this.BClearLogs.TabIndex = 44;
|
||||||
|
this.BClearLogs.Text = "清理30之前的日志";
|
||||||
|
this.BClearLogs.UseVisualStyleBackColor = true;
|
||||||
|
this.BClearLogs.Click += new System.EventHandler(this.BClearLogs_Click);
|
||||||
|
//
|
||||||
|
// EventLog
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(1803, 889);
|
||||||
|
this.Controls.Add(this.groupBox2);
|
||||||
|
this.Controls.Add(this.panel1);
|
||||||
|
this.Controls.Add(this.panel2);
|
||||||
|
this.Name = "EventLog";
|
||||||
|
this.Text = "日志查询";
|
||||||
|
this.Load += new System.EventHandler(this.EventLog_Load);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
this.groupBox1.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).EndInit();
|
||||||
|
this.panel2.ResumeLayout(false);
|
||||||
|
this.panel2.PerformLayout();
|
||||||
|
this.groupBox2.ResumeLayout(false);
|
||||||
|
this.groupBox2.PerformLayout();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Msg;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Details;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ID;
|
||||||
|
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
||||||
|
private DevExpress.XtraGrid.GridControl gridControl1;
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.Button BSearch;
|
||||||
|
private System.Windows.Forms.Panel panel2;
|
||||||
|
private System.Windows.Forms.Label LabNote;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateEnd;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateStart;
|
||||||
|
private System.Windows.Forms.Label label16;
|
||||||
|
private System.Windows.Forms.Label label15;
|
||||||
|
private System.Windows.Forms.TextBox TextName;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.TextBox TextDetail;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Time;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox2;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.TextBox TextTime;
|
||||||
|
private System.Windows.Forms.Button BClearLogs;
|
||||||
|
}
|
||||||
|
}
|
||||||
87
JJMediSys/EventLog.cs
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
using DevExpress.XtraGrid.Views.Grid;
|
||||||
|
using JJMediSys.cs;
|
||||||
|
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 JJMediSys
|
||||||
|
{
|
||||||
|
public partial class EventLog : Form
|
||||||
|
{
|
||||||
|
public EventLog()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void groupBox1_Enter(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EventLog_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
gridView1.OptionsBehavior.Editable = false;
|
||||||
|
gridView1.OptionsView.ShowIndicator = false;// 显示最左边空白列
|
||||||
|
// 禁用多选模式
|
||||||
|
gridView1.OptionsSelection.MultiSelect = false;
|
||||||
|
// 设置选择模式为“按行”
|
||||||
|
gridView1.OptionsSelection.MultiSelectMode = GridMultiSelectMode.RowSelect;
|
||||||
|
dateStart.DateTime = DateTime.Now.AddDays(-1);
|
||||||
|
dateEnd.DateTime = DateTime.Now;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BSearch_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
DataTable dt = PublicStatic.EventMgr.ExcQuery($"select * from EVENTINFOLIST where date(Time) between '{dateStart.DateTime.Date.ToString("yyyy-MM-dd")}' and '{dateEnd.DateTime.Date.AddDays(1).ToString("yyyy-MM-dd")}'");
|
||||||
|
BindingSource bindingSource = new BindingSource();
|
||||||
|
bindingSource.DataSource = dt;
|
||||||
|
gridControl1.DataSource = bindingSource;
|
||||||
|
gridControl1.RefreshDataSource();
|
||||||
|
gridView1.RefreshData();
|
||||||
|
LabNote.Text = $"共检索到: {gridView1.DataRowCount} 条记录";
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
MessageBox.Show(ex.Message);
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
|
||||||
|
{
|
||||||
|
// 获取当前焦点行的数据对象
|
||||||
|
object focusedRow = gridView1.GetFocusedRow();
|
||||||
|
if (focusedRow != null)
|
||||||
|
{
|
||||||
|
DataRowView dataRowView = focusedRow as DataRowView;
|
||||||
|
|
||||||
|
if (dataRowView != null) {
|
||||||
|
TextName.Text = dataRowView["Msg"].ToString();
|
||||||
|
TextTime.Text = dataRowView["Time"].ToString();
|
||||||
|
TextDetail.Text = dataRowView["Details"].ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void BClearLogs_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
await Task.Run(() => PublicStatic.EventMgr.ExcuteCmd($"delete from EVENTINFOLIST where date(Time)<'{DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd")}'"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/EventLog.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
BIN
JJMediSys/Image/32icon.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
JJMediSys/Image/B1.png
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
JJMediSys/Image/B11.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
JJMediSys/Image/B2.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
JJMediSys/Image/B3.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
JJMediSys/Image/B4.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
JJMediSys/Image/B5.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
JJMediSys/Image/Background4.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
JJMediSys/Image/Background5.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
JJMediSys/Image/Background6.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
JJMediSys/Image/Bt1.png
Normal file
|
After Width: | Height: | Size: 635 B |
BIN
JJMediSys/Image/Bt2.png
Normal file
|
After Width: | Height: | Size: 633 B |
BIN
JJMediSys/Image/Dispensing.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
JJMediSys/Image/Dispensing2.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
JJMediSys/Image/Dispensing3.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
JJMediSys/Image/Err01.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
JJMediSys/Image/Error.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
JJMediSys/Image/Error.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
JJMediSys/Image/ErrorShow.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
JJMediSys/Image/Info.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
JJMediSys/Image/Items.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
JJMediSys/Image/LogInBackground.png
Normal file
|
After Width: | Height: | Size: 541 KiB |
BIN
JJMediSys/Image/Mechine.png
Normal file
|
After Width: | Height: | Size: 112 KiB |
BIN
JJMediSys/Image/Mechine2.png
Normal file
|
After Width: | Height: | Size: 112 KiB |
BIN
JJMediSys/Image/Message.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
JJMediSys/Image/Normal.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
JJMediSys/Image/SG.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
JJMediSys/Image/Success.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
JJMediSys/Image/Warning.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
JJMediSys/Image/Wrong.ico
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
JJMediSys/Image/close.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
JJMediSys/Image/dr.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
JJMediSys/Image/exit.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
JJMediSys/Image/logo.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
JJMediSys/Image/logo1.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
JJMediSys/Image/qd.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
JJMediSys/Image/x.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
JJMediSys/Image/修改密码.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
JJMediSys/Image/关闭.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
JJMediSys/Image/刷新 (4).png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
JJMediSys/Image/密码.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
JJMediSys/Image/开关-关.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
JJMediSys/Image/开关-开.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
JJMediSys/Image/故障.png
Normal file
|
After Width: | Height: | Size: 833 B |
BIN
JJMediSys/Image/显示密码.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
JJMediSys/Image/正常.png
Normal file
|
After Width: | Height: | Size: 830 B |
BIN
JJMediSys/Image/设置 (2).png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
JJMediSys/Image/设置 (3).png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
JJMediSys/Image/试管.ico
Normal file
|
After Width: | Height: | Size: 162 KiB |
BIN
JJMediSys/Image/账户.png
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
JJMediSys/Image/账户2.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
JJMediSys/Image/隐藏密码.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
91
JJMediSys/ItemsShow.Designer.cs
generated
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class ItemsShow
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 必需的设计器变量。
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 清理所有正在使用的资源。
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region 组件设计器生成的代码
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设计器支持所需的方法 - 不要修改
|
||||||
|
/// 使用代码编辑器修改此方法的内容。
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.LabID = new System.Windows.Forms.Label();
|
||||||
|
this.LabCode = new System.Windows.Forms.Label();
|
||||||
|
this.LabTube = new System.Windows.Forms.Label();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// LabID
|
||||||
|
//
|
||||||
|
this.LabID.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabID.ForeColor = System.Drawing.Color.Teal;
|
||||||
|
this.LabID.Location = new System.Drawing.Point(7, 4);
|
||||||
|
this.LabID.Name = "LabID";
|
||||||
|
this.LabID.Size = new System.Drawing.Size(43, 42);
|
||||||
|
this.LabID.TabIndex = 0;
|
||||||
|
this.LabID.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabCode
|
||||||
|
//
|
||||||
|
this.LabCode.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabCode.ForeColor = System.Drawing.Color.Teal;
|
||||||
|
this.LabCode.Location = new System.Drawing.Point(56, 4);
|
||||||
|
this.LabCode.Name = "LabCode";
|
||||||
|
this.LabCode.Size = new System.Drawing.Size(230, 42);
|
||||||
|
this.LabCode.TabIndex = 1;
|
||||||
|
this.LabCode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
this.LabCode.Click += new System.EventHandler(this.LabCode_Click);
|
||||||
|
//
|
||||||
|
// LabTube
|
||||||
|
//
|
||||||
|
this.LabTube.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabTube.ForeColor = System.Drawing.Color.Teal;
|
||||||
|
this.LabTube.Location = new System.Drawing.Point(292, 4);
|
||||||
|
this.LabTube.Name = "LabTube";
|
||||||
|
this.LabTube.Size = new System.Drawing.Size(243, 42);
|
||||||
|
this.LabTube.TabIndex = 2;
|
||||||
|
this.LabTube.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||||
|
//
|
||||||
|
// ItemsShow
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.BackgroundImage = global::JJMediSys.Properties.Resources.Items;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.Controls.Add(this.LabTube);
|
||||||
|
this.Controls.Add(this.LabCode);
|
||||||
|
this.Controls.Add(this.LabID);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.Name = "ItemsShow";
|
||||||
|
this.Size = new System.Drawing.Size(545, 54);
|
||||||
|
this.Load += new System.EventHandler(this.ItemsShow_Load);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Label LabID;
|
||||||
|
private System.Windows.Forms.Label LabCode;
|
||||||
|
private System.Windows.Forms.Label LabTube;
|
||||||
|
}
|
||||||
|
}
|
||||||
67
JJMediSys/ItemsShow.cs
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using JJServer;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class ItemsShow : UserControl
|
||||||
|
{
|
||||||
|
public jyData mjyData;
|
||||||
|
public ToolTip _toolTip = new ToolTip();
|
||||||
|
public ItemsShow(jyData jyData)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
mjyData = jyData;
|
||||||
|
SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ItemsShow_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Dispensing.JyxxId++;
|
||||||
|
LabID.Text = Dispensing.JyxxId.ToString();
|
||||||
|
LabCode.Text = mjyData.Barcode;
|
||||||
|
LabTube.Text = mjyData.sgname;
|
||||||
|
_toolTip.AutoPopDelay = 5000;
|
||||||
|
_toolTip.InitialDelay = 1000;
|
||||||
|
_toolTip.ReshowDelay = 500;
|
||||||
|
LabID.MouseMove += (sender1, e1) =>OnChildMouseMove(sender1, e1);
|
||||||
|
LabCode.MouseMove += (sender1, e1) => OnChildMouseMove(sender1, e1);
|
||||||
|
LabTube.MouseMove += (sender1, e1) => OnChildMouseMove(sender1, e1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LabCode_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
protected override void OnMouseMove(MouseEventArgs e)
|
||||||
|
{
|
||||||
|
base.OnMouseMove(e);
|
||||||
|
if (ClientRectangle.Contains(e.Location))
|
||||||
|
{
|
||||||
|
string tooltipText = mjyData.itemInfo;
|
||||||
|
_toolTip.SetToolTip(this, tooltipText);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void OnMouseLeave(EventArgs e)
|
||||||
|
{
|
||||||
|
base.OnMouseLeave(e);
|
||||||
|
_toolTip.RemoveAll();
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void OnChildMouseMove(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
string tooltipText = mjyData.itemInfo;
|
||||||
|
_toolTip.SetToolTip(this, tooltipText);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/ItemsShow.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
123
JJMediSys/ItemsShowBox.Designer.cs
generated
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class ItemsShowBox
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
this.listView1 = new System.Windows.Forms.ListView();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.LabTimeDelay = new System.Windows.Forms.Label();
|
||||||
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.timerforClose = new System.Windows.Forms.Timer(this.components);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// listView1
|
||||||
|
//
|
||||||
|
this.listView1.AllowDrop = true;
|
||||||
|
this.listView1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.listView1.ForeColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.listView1.HideSelection = false;
|
||||||
|
this.listView1.Location = new System.Drawing.Point(2, 40);
|
||||||
|
this.listView1.Name = "listView1";
|
||||||
|
this.listView1.Size = new System.Drawing.Size(404, 477);
|
||||||
|
this.listView1.TabIndex = 0;
|
||||||
|
this.listView1.UseCompatibleStateImageBehavior = false;
|
||||||
|
this.listView1.View = System.Windows.Forms.View.Details;
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.ForeColor = System.Drawing.Color.RoyalBlue;
|
||||||
|
this.label1.Location = new System.Drawing.Point(149, 9);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(88, 26);
|
||||||
|
this.label1.TabIndex = 1;
|
||||||
|
this.label1.Text = "项目明细";
|
||||||
|
//
|
||||||
|
// LabTimeDelay
|
||||||
|
//
|
||||||
|
this.LabTimeDelay.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabTimeDelay.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabTimeDelay.ForeColor = System.Drawing.Color.Tomato;
|
||||||
|
this.LabTimeDelay.Location = new System.Drawing.Point(1, 0);
|
||||||
|
this.LabTimeDelay.Name = "LabTimeDelay";
|
||||||
|
this.LabTimeDelay.Size = new System.Drawing.Size(34, 37);
|
||||||
|
this.LabTimeDelay.TabIndex = 2;
|
||||||
|
this.LabTimeDelay.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// pictureBox1
|
||||||
|
//
|
||||||
|
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.pictureBox1.BackgroundImage = global::JJMediSys.Properties.Resources.close;
|
||||||
|
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.pictureBox1.Location = new System.Drawing.Point(370, 0);
|
||||||
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
|
this.pictureBox1.Size = new System.Drawing.Size(35, 37);
|
||||||
|
this.pictureBox1.TabIndex = 3;
|
||||||
|
this.pictureBox1.TabStop = false;
|
||||||
|
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||||
|
//
|
||||||
|
// timerforClose
|
||||||
|
//
|
||||||
|
this.timerforClose.Enabled = true;
|
||||||
|
this.timerforClose.Interval = 1000;
|
||||||
|
this.timerforClose.Tick += new System.EventHandler(this.timerforClose_Tick);
|
||||||
|
//
|
||||||
|
// ItemsShowBox
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackColor = System.Drawing.Color.LightSkyBlue;
|
||||||
|
this.ClientSize = new System.Drawing.Size(408, 518);
|
||||||
|
this.Controls.Add(this.pictureBox1);
|
||||||
|
this.Controls.Add(this.LabTimeDelay);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.listView1);
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "ItemsShowBox";
|
||||||
|
this.Text = "项目明细";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.ItemsShowBox_Load);
|
||||||
|
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ItemsShowBox_MouseDown);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.ListView listView1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.Label LabTimeDelay;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
|
private System.Windows.Forms.Timer timerforClose;
|
||||||
|
}
|
||||||
|
}
|
||||||
74
JJMediSys/ItemsShowBox.cs
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class ItemsShowBox : Form
|
||||||
|
{
|
||||||
|
[DllImport("user32.dll")]//*********************拖动无窗体的控件
|
||||||
|
public static extern bool ReleaseCapture();
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
|
||||||
|
public const int WM_SYSCOMMAND = 0x0112;
|
||||||
|
public const int SC_MOVE = 0xF010;
|
||||||
|
public const int HTCAPTION = 0x0002;
|
||||||
|
|
||||||
|
public string showmsgstr = "";
|
||||||
|
public int TimeDelay = 9;
|
||||||
|
public ItemsShowBox(string MsgIn)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
showmsgstr = MsgIn;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ItemsShowBox_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
int x = (Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2;
|
||||||
|
int y = (Screen.PrimaryScreen.WorkingArea.Height - this.Height) / 2;
|
||||||
|
this.Location = new Point(x, y);
|
||||||
|
string[] Arr = showmsgstr.Split(';');
|
||||||
|
int i = 0;
|
||||||
|
listView1.Columns.Add("序号", 50); // 第一列,宽度为 100 像素
|
||||||
|
listView1.Columns.Add("项目", 350); // 第二列,宽度为 150 像素
|
||||||
|
foreach (string str in Arr)
|
||||||
|
{
|
||||||
|
if(str!="")
|
||||||
|
{
|
||||||
|
i++;
|
||||||
|
listView1.Items.Add(new ListViewItem(new string[] { i.ToString(), str }));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void timerforClose_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TimeDelay--;
|
||||||
|
LabTimeDelay.Text = TimeDelay.ToString();
|
||||||
|
if (TimeDelay<=0)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ItemsShowBox_MouseDown(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
ReleaseCapture();
|
||||||
|
SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
123
JJMediSys/ItemsShowBox.resx
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="timerforClose.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
523
JJMediSys/JJMediSys.csproj
Normal file
@@ -0,0 +1,523 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
|
<PropertyGroup>
|
||||||
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
|
<ProjectGuid>{08DE49FB-22AA-487F-BC40-86C64BBF5725}</ProjectGuid>
|
||||||
|
<OutputType>WinExe</OutputType>
|
||||||
|
<RootNamespace>JJMediSys</RootNamespace>
|
||||||
|
<AssemblyName>JJMediSys</AssemblyName>
|
||||||
|
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
|
||||||
|
<FileAlignment>512</FileAlignment>
|
||||||
|
<Deterministic>true</Deterministic>
|
||||||
|
<TargetFrameworkProfile />
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugSymbols>true</DebugSymbols>
|
||||||
|
<DebugType>full</DebugType>
|
||||||
|
<Optimize>false</Optimize>
|
||||||
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<DebugType>pdbonly</DebugType>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
|
<ErrorReport>prompt</ErrorReport>
|
||||||
|
<WarningLevel>4</WarningLevel>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<ApplicationIcon>32icon.ico</ApplicationIcon>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup />
|
||||||
|
<ItemGroup>
|
||||||
|
<Reference Include="BarcodeLib">
|
||||||
|
<HintPath>dll\BarcodeLib.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="DevExpress.Data.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.Printing.v17.2.Core, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.SpellChecker.v17.2.Core, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.Utils.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.XtraBars.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.XtraEditors.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.XtraGrid.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||||
|
<Reference Include="DevExpress.XtraLayout.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.XtraNavBar.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||||
|
<Reference Include="DevExpress.XtraPrinting.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.XtraScheduler.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||||
|
<Reference Include="DevExpress.XtraScheduler.v17.2.Core, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
|
||||||
|
<Reference Include="DevExpress.XtraSpellChecker.v17.2, Version=17.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL" />
|
||||||
|
<Reference Include="DotNetSpeech, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
|
<HintPath>bin\Debug\DotNetSpeech.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Google.Protobuf, Version=3.19.4.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Google.Protobuf.3.19.4\lib\net45\Google.Protobuf.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Interop.SpeechLib, Version=11.0.0.0, Culture=neutral, processorArchitecture=x86">
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||||
|
<HintPath>bin\Debug\Interop.SpeechLib.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="K4os.Compression.LZ4, Version=1.2.6.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\K4os.Compression.LZ4.1.2.6\lib\net46\K4os.Compression.LZ4.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="K4os.Compression.LZ4.Streams, Version=1.2.6.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\K4os.Compression.LZ4.Streams.1.2.6\lib\net46\K4os.Compression.LZ4.Streams.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="K4os.Hash.xxHash, Version=1.0.6.0, Culture=neutral, PublicKeyToken=32cd54395057cec3, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\K4os.Hash.xxHash.1.0.6\lib\net46\K4os.Hash.xxHash.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="log4net, Version=3.2.0.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\log4net.3.2.0\lib\netstandard2.0\log4net.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="MySql.Data, Version=8.0.30.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\MySql.Data.8.0.30\lib\net452\MySql.Data.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="SunnyUI, Version=3.5.0.0, Culture=neutral, PublicKeyToken=27d7d2e821d97aeb, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\SunnyUI.3.5.0\lib\net40\SunnyUI.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="SunnyUI.Common, Version=3.5.0.0, Culture=neutral, PublicKeyToken=5a271fb7ba597231, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\SunnyUI.Common.3.5.0\lib\net40\SunnyUI.Common.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System" />
|
||||||
|
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.ComponentModel" />
|
||||||
|
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||||
|
<Reference Include="System.Configuration" />
|
||||||
|
<Reference Include="System.Configuration.ConfigurationManager, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Configuration.ConfigurationManager.4.5.0\lib\net461\System.Configuration.ConfigurationManager.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Configuration.Install" />
|
||||||
|
<Reference Include="System.Core" />
|
||||||
|
<Reference Include="System.Data.OracleClient" />
|
||||||
|
<Reference Include="System.Data.SQLite">
|
||||||
|
<HintPath>dll\System.Data.SQLite.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Data.SQLite.EF6">
|
||||||
|
<HintPath>dll\System.Data.SQLite.EF6.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Data.SQLite.Linq">
|
||||||
|
<HintPath>dll\System.Data.SQLite.Linq.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Design" />
|
||||||
|
<Reference Include="System.Management" />
|
||||||
|
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Messaging" />
|
||||||
|
<Reference Include="System.Net" />
|
||||||
|
<Reference Include="System.Numerics" />
|
||||||
|
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security.AccessControl, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Security.AccessControl.4.5.0\lib\net461\System.Security.AccessControl.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security.Permissions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Security.Permissions.4.5.0\lib\net461\System.Security.Permissions.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.Security.Principal.Windows, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\System.Security.Principal.Windows.4.5.0\lib\net461\System.Security.Principal.Windows.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="System.ServiceProcess" />
|
||||||
|
<Reference Include="System.Speech" />
|
||||||
|
<Reference Include="System.Transactions" />
|
||||||
|
<Reference Include="System.Web" />
|
||||||
|
<Reference Include="System.Web.Extensions" />
|
||||||
|
<Reference Include="System.Xml.Linq" />
|
||||||
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
|
<Reference Include="Microsoft.CSharp" />
|
||||||
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Deployment" />
|
||||||
|
<Reference Include="System.Drawing" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
|
<Reference Include="System.Windows.Forms" />
|
||||||
|
<Reference Include="System.Xml" />
|
||||||
|
<Reference Include="Ubiety.Dns.Core, Version=2.2.1.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\MySql.Data.8.0.30\lib\net452\Ubiety.Dns.Core.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="Windows">
|
||||||
|
<HintPath>dll\Windows.winmd</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="ZstdNet, Version=1.4.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\MySql.Data.8.0.30\lib\net452\ZstdNet.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="zxing, Version=0.16.9.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\ZXing.Net.0.16.9\lib\net461\zxing.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
<Reference Include="zxing.presentation, Version=0.16.9.0, Culture=neutral, PublicKeyToken=4e88037ac681fe60, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\ZXing.Net.0.16.9\lib\net461\zxing.presentation.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="AlertForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="AlertForm.Designer.cs">
|
||||||
|
<DependentUpon>AlertForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="cs\ComTool.cs" />
|
||||||
|
<Compile Include="cs\ConfigFileReader.cs" />
|
||||||
|
<Compile Include="cs\ControlMoveResize.cs" />
|
||||||
|
<Compile Include="cs\PublicStatic.cs" />
|
||||||
|
<Compile Include="cs\RecpCreate.cs" />
|
||||||
|
<Compile Include="cs\SocketClient.cs" />
|
||||||
|
<Compile Include="cs\SqlHelper.cs" />
|
||||||
|
<Compile Include="cs\Sqlite.cs" />
|
||||||
|
<Compile Include="cs\TubeLabelTool.cs" />
|
||||||
|
<Compile Include="DataHistory.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DataHistory.Designer.cs">
|
||||||
|
<DependentUpon>DataHistory.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DaylyHistory.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DaylyHistory.Designer.cs">
|
||||||
|
<DependentUpon>DaylyHistory.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DevParamSet.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DevParamSet.Designer.cs">
|
||||||
|
<DependentUpon>DevParamSet.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DispenseMsg.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DispenseMsg.Designer.cs">
|
||||||
|
<DependentUpon>DispenseMsg.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Dispensing.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Dispensing.Designer.cs">
|
||||||
|
<DependentUpon>Dispensing.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="cs\DoDBMySql.cs" />
|
||||||
|
<Compile Include="ErrMsgShow.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ErrMsgShow.Designer.cs">
|
||||||
|
<DependentUpon>ErrMsgShow.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ItemsShowBox.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ItemsShowBox.Designer.cs">
|
||||||
|
<DependentUpon>ItemsShowBox.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="EventLog.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="EventLog.Designer.cs">
|
||||||
|
<DependentUpon>EventLog.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="LisLog.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="LisLog.Designer.cs">
|
||||||
|
<DependentUpon>LisLog.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Login.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Login.Designer.cs">
|
||||||
|
<DependentUpon>Login.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MyMessageBox.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MyMessageBox.Designer.cs">
|
||||||
|
<DependentUpon>MyMessageBox.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ReadBarcode.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ReadBarcode.Designer.cs">
|
||||||
|
<DependentUpon>ReadBarcode.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="RecpSetCtrol.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="RecpSetCtrol.Designer.cs">
|
||||||
|
<DependentUpon>RecpSetCtrol.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Report.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Report.Designer.cs">
|
||||||
|
<DependentUpon>Report.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SetDB.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SetDB.Designer.cs">
|
||||||
|
<DependentUpon>SetDB.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SetPassword.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SetPassword.Designer.cs">
|
||||||
|
<DependentUpon>SetPassword.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="STATS.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="STATS.Designer.cs">
|
||||||
|
<DependentUpon>STATS.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="STATSRules.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="STATSRules.Designer.cs">
|
||||||
|
<DependentUpon>STATSRules.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SystemSet.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SystemSet.Designer.cs">
|
||||||
|
<DependentUpon>SystemSet.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ItemsShow.cs">
|
||||||
|
<SubType>UserControl</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ItemsShow.Designer.cs">
|
||||||
|
<DependentUpon>ItemsShow.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MainForm.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MainForm.Designer.cs">
|
||||||
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MyFlowLayoutPanel.cs">
|
||||||
|
<SubType>Component</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MZCY.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="MZCY.Designer.cs">
|
||||||
|
<DependentUpon>MZCY.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="cs\NetCom.cs" />
|
||||||
|
<Compile Include="Program.cs" />
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
|
<Compile Include="SetKZM.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SetKZM.Designer.cs">
|
||||||
|
<DependentUpon>SetKZM.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ShowMessage.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="ShowMessage.Designer.cs">
|
||||||
|
<DependentUpon>ShowMessage.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SensorStatus.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="SensorStatus.Designer.cs">
|
||||||
|
<DependentUpon>SensorStatus.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="RecpSetTool.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="RecpSetTool.Designer.cs">
|
||||||
|
<DependentUpon>RecpSetTool.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<EmbeddedResource Include="AlertForm.resx">
|
||||||
|
<DependentUpon>AlertForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="DataHistory.resx">
|
||||||
|
<DependentUpon>DataHistory.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="DaylyHistory.resx">
|
||||||
|
<DependentUpon>DaylyHistory.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="DevParamSet.resx">
|
||||||
|
<DependentUpon>DevParamSet.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="DispenseMsg.resx">
|
||||||
|
<DependentUpon>DispenseMsg.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Dispensing.resx">
|
||||||
|
<DependentUpon>Dispensing.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="ErrMsgShow.resx">
|
||||||
|
<DependentUpon>ErrMsgShow.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="ItemsShowBox.resx">
|
||||||
|
<DependentUpon>ItemsShowBox.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="EventLog.resx">
|
||||||
|
<DependentUpon>EventLog.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="LisLog.resx">
|
||||||
|
<DependentUpon>LisLog.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Login.resx">
|
||||||
|
<DependentUpon>Login.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="MyMessageBox.resx">
|
||||||
|
<DependentUpon>MyMessageBox.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="ReadBarcode.resx">
|
||||||
|
<DependentUpon>ReadBarcode.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="RecpSetCtrol.resx">
|
||||||
|
<DependentUpon>RecpSetCtrol.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Report.resx">
|
||||||
|
<DependentUpon>Report.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="SetDB.resx">
|
||||||
|
<DependentUpon>SetDB.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="SetPassword.resx">
|
||||||
|
<DependentUpon>SetPassword.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="STATS.resx">
|
||||||
|
<DependentUpon>STATS.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="STATSRules.resx">
|
||||||
|
<DependentUpon>STATSRules.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="SystemSet.resx">
|
||||||
|
<DependentUpon>SystemSet.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="ItemsShow.resx">
|
||||||
|
<DependentUpon>ItemsShow.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="MainForm.resx">
|
||||||
|
<DependentUpon>MainForm.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="MZCY.resx">
|
||||||
|
<DependentUpon>MZCY.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="SetKZM.resx">
|
||||||
|
<DependentUpon>SetKZM.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="ShowMessage.resx">
|
||||||
|
<DependentUpon>ShowMessage.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="SensorStatus.resx">
|
||||||
|
<DependentUpon>SensorStatus.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="RecpSetTool.resx">
|
||||||
|
<DependentUpon>RecpSetTool.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<None Include="packages.config" />
|
||||||
|
<None Include="Properties\licenses.licx" />
|
||||||
|
<EmbeddedResource Include="Properties\Resources.resx">
|
||||||
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<Compile Include="Properties\Resources.Designer.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
</Compile>
|
||||||
|
<None Include="Properties\Settings.settings">
|
||||||
|
<Generator>SettingsSingleFileGenerator</Generator>
|
||||||
|
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||||
|
</None>
|
||||||
|
<Compile Include="Properties\Settings.Designer.cs">
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="App.config" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Include="UI\实验室.png" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Content Include="32icon.ico" />
|
||||||
|
<Content Include="Image\B1.png" />
|
||||||
|
<None Include="Image\刷新 %284%29.png" />
|
||||||
|
<None Include="Image\设置 %282%29.png" />
|
||||||
|
<None Include="Image\设置 %283%29.png" />
|
||||||
|
<None Include="Image\故障.png" />
|
||||||
|
<None Include="Image\正常.png" />
|
||||||
|
<None Include="Image\logo.png" />
|
||||||
|
<None Include="UI\删除.png" />
|
||||||
|
<None Include="UI\删除 %281%29.png" />
|
||||||
|
<None Include="UI\ic_launcher.png" />
|
||||||
|
<Content Include="试管.ico" />
|
||||||
|
<None Include="Image\B11.png" />
|
||||||
|
<Content Include="Image\B2.png" />
|
||||||
|
<Content Include="Image\B3.png" />
|
||||||
|
<Content Include="Image\B4.png" />
|
||||||
|
<Content Include="Image\B5.png" />
|
||||||
|
<Content Include="Image\Background4.png" />
|
||||||
|
<Content Include="Image\Background5.png" />
|
||||||
|
<Content Include="Image\Background6.png" />
|
||||||
|
<Content Include="Image\Bt1.png" />
|
||||||
|
<Content Include="Image\Bt2.png" />
|
||||||
|
<None Include="Image\close.png" />
|
||||||
|
<Content Include="Image\Dispensing.png" />
|
||||||
|
<Content Include="Image\Dispensing2.png" />
|
||||||
|
<Content Include="Image\Dispensing3.png" />
|
||||||
|
<None Include="Image\dr.png" />
|
||||||
|
<Content Include="Image\Err01.png" />
|
||||||
|
<Content Include="Image\Error.ico" />
|
||||||
|
<Content Include="Image\Error.png" />
|
||||||
|
<Content Include="Image\ErrorShow.png" />
|
||||||
|
<None Include="Image\exit.png" />
|
||||||
|
<Content Include="Image\Info.png" />
|
||||||
|
<Content Include="Image\Items.png" />
|
||||||
|
<None Include="Image\LogInBackground.png" />
|
||||||
|
<Content Include="Image\Mechine.png" />
|
||||||
|
<Content Include="Image\Mechine2.png" />
|
||||||
|
<Content Include="Image\Message.png" />
|
||||||
|
<Content Include="Image\Normal.ico" />
|
||||||
|
<Content Include="Image\qd.png" />
|
||||||
|
<Content Include="Image\SG.png" />
|
||||||
|
<Content Include="Image\Success.png" />
|
||||||
|
<Content Include="Image\Warning.png" />
|
||||||
|
<Content Include="Image\Wrong.ico" />
|
||||||
|
<Content Include="Image\x.png" />
|
||||||
|
<None Include="Image\账户2.png" />
|
||||||
|
<None Include="Image\账户.png" />
|
||||||
|
<None Include="Image\隐藏密码.png" />
|
||||||
|
<None Include="Image\密码.png" />
|
||||||
|
<None Include="Image\显示密码.png" />
|
||||||
|
<None Include="Image\修改密码.png" />
|
||||||
|
<None Include="Image\关闭.png" />
|
||||||
|
<None Include="Image\开关-关.png" />
|
||||||
|
<None Include="Image\开关-开.png" />
|
||||||
|
<Content Include="Image\试管.ico" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\JJServer\JJServer.csproj">
|
||||||
|
<Project>{7b76ddf5-f6a7-42d5-afe1-c9fc2c151b8e}</Project>
|
||||||
|
<Name>JJServer</Name>
|
||||||
|
</ProjectReference>
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
|
</Project>
|
||||||
374
JJMediSys/LisLog.Designer.cs
generated
Normal file
@@ -0,0 +1,374 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class LisLog
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.PatID = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Req = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Res = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.XH = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||||
|
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||||
|
this.panel1 = new System.Windows.Forms.Panel();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.TextSearhCardNo = new System.Windows.Forms.TextBox();
|
||||||
|
this.BSearch = new System.Windows.Forms.Button();
|
||||||
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
|
this.LabNote = new System.Windows.Forms.Label();
|
||||||
|
this.dateEnd = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.dateStart = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.label16 = new System.Windows.Forms.Label();
|
||||||
|
this.label15 = new System.Windows.Forms.Label();
|
||||||
|
this.TextReq = new System.Windows.Forms.TextBox();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.TextRes = new System.Windows.Forms.TextBox();
|
||||||
|
this.DBExcTime = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||||
|
this.panel1.SuspendLayout();
|
||||||
|
this.groupBox1.SuspendLayout();
|
||||||
|
this.panel2.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// PatID
|
||||||
|
//
|
||||||
|
this.PatID.Caption = "卡号";
|
||||||
|
this.PatID.FieldName = "PatID";
|
||||||
|
this.PatID.Name = "PatID";
|
||||||
|
this.PatID.Visible = true;
|
||||||
|
this.PatID.VisibleIndex = 1;
|
||||||
|
this.PatID.Width = 128;
|
||||||
|
//
|
||||||
|
// Req
|
||||||
|
//
|
||||||
|
this.Req.Caption = "请求";
|
||||||
|
this.Req.FieldName = "Req";
|
||||||
|
this.Req.Name = "Req";
|
||||||
|
this.Req.Visible = true;
|
||||||
|
this.Req.VisibleIndex = 2;
|
||||||
|
this.Req.Width = 501;
|
||||||
|
//
|
||||||
|
// Res
|
||||||
|
//
|
||||||
|
this.Res.Caption = "应答";
|
||||||
|
this.Res.FieldName = "Res";
|
||||||
|
this.Res.Name = "Res";
|
||||||
|
this.Res.Visible = true;
|
||||||
|
this.Res.VisibleIndex = 3;
|
||||||
|
this.Res.Width = 558;
|
||||||
|
//
|
||||||
|
// XH
|
||||||
|
//
|
||||||
|
this.XH.Caption = "序号";
|
||||||
|
this.XH.FieldName = "ID";
|
||||||
|
this.XH.Name = "XH";
|
||||||
|
this.XH.Visible = true;
|
||||||
|
this.XH.VisibleIndex = 0;
|
||||||
|
this.XH.Width = 100;
|
||||||
|
//
|
||||||
|
// gridView1
|
||||||
|
//
|
||||||
|
this.gridView1.Appearance.EvenRow.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.gridView1.Appearance.EvenRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Appearance.OddRow.BackColor = System.Drawing.Color.AliceBlue;
|
||||||
|
this.gridView1.Appearance.OddRow.Font = new System.Drawing.Font("Tahoma", 12F);
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||||
|
this.XH,
|
||||||
|
this.PatID,
|
||||||
|
this.Req,
|
||||||
|
this.Res,
|
||||||
|
this.DBExcTime});
|
||||||
|
this.gridView1.GridControl = this.gridControl1;
|
||||||
|
this.gridView1.Name = "gridView1";
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsView.ShowGroupPanel = false;
|
||||||
|
this.gridView1.SelectionChanged += new DevExpress.Data.SelectionChangedEventHandler(this.gridView1_SelectionChanged);
|
||||||
|
this.gridView1.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(this.gridView1_FocusedRowChanged);
|
||||||
|
//
|
||||||
|
// gridControl1
|
||||||
|
//
|
||||||
|
this.gridControl1.EmbeddedNavigator.AllowDrop = true;
|
||||||
|
this.gridControl1.Location = new System.Drawing.Point(0, 3);
|
||||||
|
this.gridControl1.MainView = this.gridView1;
|
||||||
|
this.gridControl1.Name = "gridControl1";
|
||||||
|
this.gridControl1.Size = new System.Drawing.Size(1459, 494);
|
||||||
|
this.gridControl1.TabIndex = 1;
|
||||||
|
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||||
|
this.gridView1});
|
||||||
|
//
|
||||||
|
// panel1
|
||||||
|
//
|
||||||
|
this.panel1.Controls.Add(this.groupBox1);
|
||||||
|
this.panel1.Location = new System.Drawing.Point(1, 2);
|
||||||
|
this.panel1.Name = "panel1";
|
||||||
|
this.panel1.Size = new System.Drawing.Size(1666, 87);
|
||||||
|
this.panel1.TabIndex = 15;
|
||||||
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Controls.Add(this.dateEnd);
|
||||||
|
this.groupBox1.Controls.Add(this.dateStart);
|
||||||
|
this.groupBox1.Controls.Add(this.label16);
|
||||||
|
this.groupBox1.Controls.Add(this.label15);
|
||||||
|
this.groupBox1.Controls.Add(this.label1);
|
||||||
|
this.groupBox1.Controls.Add(this.TextSearhCardNo);
|
||||||
|
this.groupBox1.Controls.Add(this.BSearch);
|
||||||
|
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.groupBox1.ForeColor = System.Drawing.Color.DarkTurquoise;
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(3, 3);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(1648, 80);
|
||||||
|
this.groupBox1.TabIndex = 4;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
this.groupBox1.Text = "搜索参数设置";
|
||||||
|
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(471, 32);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label1.TabIndex = 39;
|
||||||
|
this.label1.Text = "卡号:";
|
||||||
|
//
|
||||||
|
// TextSearhCardNo
|
||||||
|
//
|
||||||
|
this.TextSearhCardNo.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextSearhCardNo.Location = new System.Drawing.Point(532, 31);
|
||||||
|
this.TextSearhCardNo.Name = "TextSearhCardNo";
|
||||||
|
this.TextSearhCardNo.Size = new System.Drawing.Size(188, 29);
|
||||||
|
this.TextSearhCardNo.TabIndex = 38;
|
||||||
|
//
|
||||||
|
// BSearch
|
||||||
|
//
|
||||||
|
this.BSearch.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BSearch.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BSearch.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BSearch.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSearch.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
||||||
|
this.BSearch.Location = new System.Drawing.Point(763, 25);
|
||||||
|
this.BSearch.Name = "BSearch";
|
||||||
|
this.BSearch.Size = new System.Drawing.Size(124, 39);
|
||||||
|
this.BSearch.TabIndex = 3;
|
||||||
|
this.BSearch.Text = "搜 索";
|
||||||
|
this.BSearch.UseVisualStyleBackColor = true;
|
||||||
|
this.BSearch.Click += new System.EventHandler(this.BSearch_Click);
|
||||||
|
//
|
||||||
|
// panel2
|
||||||
|
//
|
||||||
|
this.panel2.Controls.Add(this.LabNote);
|
||||||
|
this.panel2.Controls.Add(this.gridControl1);
|
||||||
|
this.panel2.Location = new System.Drawing.Point(1, 91);
|
||||||
|
this.panel2.Name = "panel2";
|
||||||
|
this.panel2.Size = new System.Drawing.Size(1475, 525);
|
||||||
|
this.panel2.TabIndex = 16;
|
||||||
|
//
|
||||||
|
// LabNote
|
||||||
|
//
|
||||||
|
this.LabNote.AutoSize = true;
|
||||||
|
this.LabNote.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabNote.ForeColor = System.Drawing.Color.SteelBlue;
|
||||||
|
this.LabNote.Location = new System.Drawing.Point(5, 505);
|
||||||
|
this.LabNote.Name = "LabNote";
|
||||||
|
this.LabNote.Size = new System.Drawing.Size(0, 14);
|
||||||
|
this.LabNote.TabIndex = 2;
|
||||||
|
//
|
||||||
|
// dateEnd
|
||||||
|
//
|
||||||
|
this.dateEnd.EditValue = null;
|
||||||
|
this.dateEnd.Location = new System.Drawing.Point(305, 33);
|
||||||
|
this.dateEnd.Name = "dateEnd";
|
||||||
|
this.dateEnd.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateEnd.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateEnd.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateEnd.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateEnd.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateEnd.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateEnd.TabIndex = 43;
|
||||||
|
//
|
||||||
|
// dateStart
|
||||||
|
//
|
||||||
|
this.dateStart.EditValue = null;
|
||||||
|
this.dateStart.Location = new System.Drawing.Point(179, 33);
|
||||||
|
this.dateStart.Name = "dateStart";
|
||||||
|
this.dateStart.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateStart.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateStart.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateStart.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateStart.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateStart.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateStart.TabIndex = 42;
|
||||||
|
//
|
||||||
|
// label16
|
||||||
|
//
|
||||||
|
this.label16.AutoSize = true;
|
||||||
|
this.label16.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label16.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label16.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label16.Location = new System.Drawing.Point(285, 32);
|
||||||
|
this.label16.Name = "label16";
|
||||||
|
this.label16.Size = new System.Drawing.Size(20, 26);
|
||||||
|
this.label16.TabIndex = 41;
|
||||||
|
this.label16.Text = "-";
|
||||||
|
//
|
||||||
|
// label15
|
||||||
|
//
|
||||||
|
this.label15.AutoSize = true;
|
||||||
|
this.label15.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label15.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label15.Location = new System.Drawing.Point(10, 31);
|
||||||
|
this.label15.Name = "label15";
|
||||||
|
this.label15.Size = new System.Drawing.Size(169, 26);
|
||||||
|
this.label15.TabIndex = 40;
|
||||||
|
this.label15.Text = "数据搜索时间范围:";
|
||||||
|
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// TextReq
|
||||||
|
//
|
||||||
|
this.TextReq.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextReq.Location = new System.Drawing.Point(60, 617);
|
||||||
|
this.TextReq.Name = "TextReq";
|
||||||
|
this.TextReq.Size = new System.Drawing.Size(696, 29);
|
||||||
|
this.TextReq.TabIndex = 17;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label2.Location = new System.Drawing.Point(-1, 619);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label2.TabIndex = 18;
|
||||||
|
this.label2.Text = "请求:";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label3.Location = new System.Drawing.Point(-1, 647);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label3.TabIndex = 20;
|
||||||
|
this.label3.Text = "应答:";
|
||||||
|
//
|
||||||
|
// TextRes
|
||||||
|
//
|
||||||
|
this.TextRes.AllowDrop = true;
|
||||||
|
this.TextRes.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextRes.Location = new System.Drawing.Point(60, 652);
|
||||||
|
this.TextRes.Multiline = true;
|
||||||
|
this.TextRes.Name = "TextRes";
|
||||||
|
this.TextRes.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||||
|
this.TextRes.Size = new System.Drawing.Size(1400, 141);
|
||||||
|
this.TextRes.TabIndex = 19;
|
||||||
|
//
|
||||||
|
// DBExcTime
|
||||||
|
//
|
||||||
|
this.DBExcTime.Caption = "执行时间";
|
||||||
|
this.DBExcTime.FieldName = "DBExcTime";
|
||||||
|
this.DBExcTime.Name = "DBExcTime";
|
||||||
|
this.DBExcTime.Visible = true;
|
||||||
|
this.DBExcTime.VisibleIndex = 4;
|
||||||
|
this.DBExcTime.Width = 154;
|
||||||
|
//
|
||||||
|
// LisLog
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(1803, 889);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.TextRes);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.TextReq);
|
||||||
|
this.Controls.Add(this.panel1);
|
||||||
|
this.Controls.Add(this.panel2);
|
||||||
|
this.Name = "LisLog";
|
||||||
|
this.Text = "日志查询";
|
||||||
|
this.Load += new System.EventHandler(this.LisLog_Load);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||||
|
this.panel1.ResumeLayout(false);
|
||||||
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
this.groupBox1.PerformLayout();
|
||||||
|
this.panel2.ResumeLayout(false);
|
||||||
|
this.panel2.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PatID;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Req;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Res;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn XH;
|
||||||
|
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
||||||
|
private DevExpress.XtraGrid.GridControl gridControl1;
|
||||||
|
private System.Windows.Forms.Panel panel1;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.TextBox TextSearhCardNo;
|
||||||
|
private System.Windows.Forms.Button BSearch;
|
||||||
|
private System.Windows.Forms.Panel panel2;
|
||||||
|
private System.Windows.Forms.Label LabNote;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateEnd;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateStart;
|
||||||
|
private System.Windows.Forms.Label label16;
|
||||||
|
private System.Windows.Forms.Label label15;
|
||||||
|
private System.Windows.Forms.TextBox TextReq;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.TextBox TextRes;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn DBExcTime;
|
||||||
|
}
|
||||||
|
}
|
||||||
91
JJMediSys/LisLog.cs
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
using DevExpress.XtraGrid.Views.Grid;
|
||||||
|
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 JJMediSys
|
||||||
|
{
|
||||||
|
public partial class LisLog : Form
|
||||||
|
{
|
||||||
|
public LisLog()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void groupBox1_Enter(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LisLog_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
gridView1.OptionsBehavior.Editable = false;
|
||||||
|
gridView1.OptionsView.ShowIndicator = false;// 显示最左边空白列
|
||||||
|
// 禁用多选模式
|
||||||
|
gridView1.OptionsSelection.MultiSelect = false;
|
||||||
|
// 设置选择模式为“按行”
|
||||||
|
gridView1.OptionsSelection.MultiSelectMode = GridMultiSelectMode.RowSelect;
|
||||||
|
dateStart.DateTime = DateTime.Now.AddDays(-1);
|
||||||
|
dateEnd.DateTime = DateTime.Now;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BSearch_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
string sql = "";
|
||||||
|
if (TextSearhCardNo.Text.Length>0)
|
||||||
|
{
|
||||||
|
sql = "select * from lis_log where PatID ='" + TextSearhCardNo.Text + "' and DBExcTime >'" + dateStart.DateTime.Date.ToString("yyyy-MM-dd") + "' and DBExcTime <='" + dateEnd.DateTime.Date.AddDays(1).ToString("yyyy-MM-dd") + "'";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sql = "select * from lis_log where DBExcTime >'" + dateStart.DateTime.Date.ToString("yyyy-MM-dd") + "' and DBExcTime <='" + dateEnd.DateTime.Date.AddDays(1).ToString("yyyy-MM-dd") + "'";
|
||||||
|
}
|
||||||
|
MainForm.logger.Info("Mysql sql=" + sql);
|
||||||
|
DataSet dataSet = DoDBMySql.Query(sql);
|
||||||
|
BindingSource bindingSource = new BindingSource();
|
||||||
|
bindingSource.DataSource = dataSet;
|
||||||
|
bindingSource.DataMember = "ds";
|
||||||
|
gridControl1.DataSource = bindingSource;
|
||||||
|
gridControl1.RefreshDataSource();
|
||||||
|
gridView1.RefreshData();
|
||||||
|
LabNote.Text = $"共检索到: {gridView1.DataRowCount} 条记录";
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
MessageBox.Show(ex.Message);
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_SelectionChanged(object sender, DevExpress.Data.SelectionChangedEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
|
||||||
|
{
|
||||||
|
// 获取当前焦点行的数据对象
|
||||||
|
object focusedRow = gridView1.GetFocusedRow();
|
||||||
|
if (focusedRow != null)
|
||||||
|
{
|
||||||
|
DataRowView dataRowView = focusedRow as DataRowView;
|
||||||
|
|
||||||
|
if (dataRowView != null) {
|
||||||
|
TextReq.Text = dataRowView["Req"].ToString();
|
||||||
|
TextRes.Text = dataRowView["Res"].ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
120
JJMediSys/LisLog.resx
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
</root>
|
||||||
193
JJMediSys/Login.Designer.cs
generated
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class Login
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login));
|
||||||
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.TextAccount = new System.Windows.Forms.TextBox();
|
||||||
|
this.TextPassword = new System.Windows.Forms.TextBox();
|
||||||
|
this.RemAccount = new System.Windows.Forms.CheckBox();
|
||||||
|
this.BLogin = new System.Windows.Forms.PictureBox();
|
||||||
|
this.pictureBox4 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.PicSetDB = new System.Windows.Forms.PictureBox();
|
||||||
|
this.AutoLogin = new System.Windows.Forms.Timer(this.components);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.BLogin)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicSetDB)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// pictureBox1
|
||||||
|
//
|
||||||
|
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.pictureBox1.BackgroundImage = global::JJMediSys.Properties.Resources.账户2;
|
||||||
|
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.pictureBox1.Location = new System.Drawing.Point(259, 206);
|
||||||
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
|
this.pictureBox1.Size = new System.Drawing.Size(43, 41);
|
||||||
|
this.pictureBox1.TabIndex = 0;
|
||||||
|
this.pictureBox1.TabStop = false;
|
||||||
|
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||||
|
//
|
||||||
|
// pictureBox2
|
||||||
|
//
|
||||||
|
this.pictureBox2.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.pictureBox2.BackgroundImage = global::JJMediSys.Properties.Resources.密码;
|
||||||
|
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.pictureBox2.Location = new System.Drawing.Point(259, 263);
|
||||||
|
this.pictureBox2.Name = "pictureBox2";
|
||||||
|
this.pictureBox2.Size = new System.Drawing.Size(43, 41);
|
||||||
|
this.pictureBox2.TabIndex = 1;
|
||||||
|
this.pictureBox2.TabStop = false;
|
||||||
|
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
|
||||||
|
//
|
||||||
|
// TextAccount
|
||||||
|
//
|
||||||
|
this.TextAccount.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextAccount.Location = new System.Drawing.Point(320, 206);
|
||||||
|
this.TextAccount.Name = "TextAccount";
|
||||||
|
this.TextAccount.Size = new System.Drawing.Size(256, 41);
|
||||||
|
this.TextAccount.TabIndex = 2;
|
||||||
|
this.TextAccount.TextChanged += new System.EventHandler(this.TextAccount_TextChanged);
|
||||||
|
//
|
||||||
|
// TextPassword
|
||||||
|
//
|
||||||
|
this.TextPassword.Font = new System.Drawing.Font("宋体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextPassword.Location = new System.Drawing.Point(320, 263);
|
||||||
|
this.TextPassword.Name = "TextPassword";
|
||||||
|
this.TextPassword.PasswordChar = '*';
|
||||||
|
this.TextPassword.Size = new System.Drawing.Size(256, 41);
|
||||||
|
this.TextPassword.TabIndex = 3;
|
||||||
|
this.TextPassword.MaxLength = 6;
|
||||||
|
this.TextPassword.TextChanged += new System.EventHandler(this.TextPassword_TextChanged);
|
||||||
|
//
|
||||||
|
// RemAccount
|
||||||
|
//
|
||||||
|
this.RemAccount.AutoSize = true;
|
||||||
|
this.RemAccount.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.RemAccount.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.RemAccount.Location = new System.Drawing.Point(259, 326);
|
||||||
|
this.RemAccount.Name = "RemAccount";
|
||||||
|
this.RemAccount.Size = new System.Drawing.Size(91, 20);
|
||||||
|
this.RemAccount.TabIndex = 4;
|
||||||
|
this.RemAccount.Text = "记住密码";
|
||||||
|
this.RemAccount.UseVisualStyleBackColor = false;
|
||||||
|
this.RemAccount.Visible = false;
|
||||||
|
this.RemAccount.CheckedChanged += new System.EventHandler(this.RemAccount_CheckedChanged);
|
||||||
|
//
|
||||||
|
// BLogin
|
||||||
|
//
|
||||||
|
this.BLogin.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.BLogin.BackgroundImage = global::JJMediSys.Properties.Resources.dr;
|
||||||
|
this.BLogin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BLogin.Location = new System.Drawing.Point(320, 362);
|
||||||
|
this.BLogin.Name = "BLogin";
|
||||||
|
this.BLogin.Size = new System.Drawing.Size(231, 48);
|
||||||
|
this.BLogin.TabIndex = 5;
|
||||||
|
this.BLogin.TabStop = false;
|
||||||
|
this.BLogin.Click += new System.EventHandler(this.BLogin_Click);
|
||||||
|
//
|
||||||
|
// pictureBox4
|
||||||
|
//
|
||||||
|
this.pictureBox4.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.pictureBox4.BackgroundImage = global::JJMediSys.Properties.Resources.关闭;
|
||||||
|
this.pictureBox4.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.pictureBox4.Location = new System.Drawing.Point(775, 0);
|
||||||
|
this.pictureBox4.Name = "pictureBox4";
|
||||||
|
this.pictureBox4.Size = new System.Drawing.Size(43, 41);
|
||||||
|
this.pictureBox4.TabIndex = 6;
|
||||||
|
this.pictureBox4.TabStop = false;
|
||||||
|
this.pictureBox4.Click += new System.EventHandler(this.pictureBox4_Click);
|
||||||
|
//
|
||||||
|
// PicSetDB
|
||||||
|
//
|
||||||
|
this.PicSetDB.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PicSetDB.BackgroundImage = global::JJMediSys.Properties.Resources.设置__3_;
|
||||||
|
this.PicSetDB.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicSetDB.Location = new System.Drawing.Point(594, 206);
|
||||||
|
this.PicSetDB.Name = "PicSetDB";
|
||||||
|
this.PicSetDB.Size = new System.Drawing.Size(37, 39);
|
||||||
|
this.PicSetDB.TabIndex = 7;
|
||||||
|
this.PicSetDB.TabStop = false;
|
||||||
|
this.PicSetDB.Click += new System.EventHandler(this.PicSetDB_Click);
|
||||||
|
//
|
||||||
|
// AutoLogin
|
||||||
|
//
|
||||||
|
//this.AutoLogin.Enabled = true;
|
||||||
|
//this.AutoLogin.Interval = 5000;
|
||||||
|
//this.AutoLogin.Tick += new System.EventHandler(this.AutoLogin_Tick);
|
||||||
|
//
|
||||||
|
// Login
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackgroundImage = global::JJMediSys.Properties.Resources.LogInBackground;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ClientSize = new System.Drawing.Size(817, 481);
|
||||||
|
this.Controls.Add(this.PicSetDB);
|
||||||
|
this.Controls.Add(this.pictureBox4);
|
||||||
|
this.Controls.Add(this.BLogin);
|
||||||
|
this.Controls.Add(this.RemAccount);
|
||||||
|
this.Controls.Add(this.TextPassword);
|
||||||
|
this.Controls.Add(this.TextAccount);
|
||||||
|
this.Controls.Add(this.pictureBox2);
|
||||||
|
this.Controls.Add(this.pictureBox1);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.Name = "Login";
|
||||||
|
this.Text = "登入";
|
||||||
|
this.Load += new System.EventHandler(this.Login_Load);
|
||||||
|
this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Login_MouseDown);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.BLogin)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicSetDB)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox2;
|
||||||
|
private System.Windows.Forms.TextBox TextAccount;
|
||||||
|
private System.Windows.Forms.TextBox TextPassword;
|
||||||
|
private System.Windows.Forms.CheckBox RemAccount;
|
||||||
|
private System.Windows.Forms.PictureBox BLogin;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox4;
|
||||||
|
private System.Windows.Forms.PictureBox PicSetDB;
|
||||||
|
private System.Windows.Forms.Timer AutoLogin;
|
||||||
|
}
|
||||||
|
}
|
||||||
243
JJMediSys/Login.cs
Normal file
@@ -0,0 +1,243 @@
|
|||||||
|
using JJMediSys.cs;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Net;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using System.Xml;
|
||||||
|
using static JJMediSys.AlertForm;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class Login : Form
|
||||||
|
{
|
||||||
|
public struct NurseDeskInfo
|
||||||
|
{
|
||||||
|
public string NurseName;
|
||||||
|
public string NurseID;
|
||||||
|
public string NursePass;
|
||||||
|
public string AreaID;
|
||||||
|
public string AreaName;
|
||||||
|
public string SqlConnectStr;
|
||||||
|
public string WindowName;
|
||||||
|
public string PcType;
|
||||||
|
}
|
||||||
|
public static Login loginhandle;
|
||||||
|
public static MainForm frmmian;
|
||||||
|
public static NurseDeskInfo nurseDeskInfo;
|
||||||
|
|
||||||
|
private string GetLocalIp()
|
||||||
|
{
|
||||||
|
///获取本地的IP地址
|
||||||
|
string AddressIP = string.Empty;
|
||||||
|
foreach (IPAddress _IPAddress in Dns.GetHostEntry(Dns.GetHostName()).AddressList)
|
||||||
|
{
|
||||||
|
if (_IPAddress.AddressFamily.ToString() == "InterNetwork")
|
||||||
|
{
|
||||||
|
AddressIP = _IPAddress.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return AddressIP;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Login()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string SqlConnect = "";
|
||||||
|
public string RemPassword = "";
|
||||||
|
public string Account = "";
|
||||||
|
public string Password = "";
|
||||||
|
public string AddrIP = "";
|
||||||
|
private void Login_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
AddrIP = GetLocalIp();
|
||||||
|
SqlConnect = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='Sql']");
|
||||||
|
RemPassword = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='RemPassword']");
|
||||||
|
Account = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='Account']");
|
||||||
|
Password = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='Password']");
|
||||||
|
if (RemPassword != "0")
|
||||||
|
{
|
||||||
|
RemAccount.Checked = true;
|
||||||
|
TextPassword.Text = EncryptDecrypt(Password, "jojubanking", true);
|
||||||
|
}
|
||||||
|
TextAccount.Text = Account;
|
||||||
|
loginhandle = this;
|
||||||
|
Screen screen = Screen.PrimaryScreen;
|
||||||
|
Rectangle rectangle = screen.Bounds;
|
||||||
|
this.Location = new Point((rectangle.Width - this.Width) / 2, (rectangle.Height - this.Height) / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void WindowReload()
|
||||||
|
{
|
||||||
|
if (RemAccount.Checked != true)
|
||||||
|
{
|
||||||
|
TextPassword.Text = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox4_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BLogin_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Dologin();
|
||||||
|
}
|
||||||
|
public void Dologin()
|
||||||
|
{
|
||||||
|
AutoLogin.Enabled = false;
|
||||||
|
string outmsg = "";
|
||||||
|
DataSet dataSet = null;
|
||||||
|
DoDBMySql.connectionString = SqlConnect;
|
||||||
|
|
||||||
|
//LoadingHelper.ShowLoading("正在登录,请稍后...", Form1.Mainform, o =>
|
||||||
|
//{
|
||||||
|
// string sql = "select * from t_mechineinfo left join t_doctorinfo on t_doctorinfo.DOCTORID ='" + TextAccount.Text + "' and t_doctorinfo.PASSWORD='" + TextPassword.Text + "' where t_mechineinfo.IPAddr='" + AddrIP + "' ";
|
||||||
|
// DoDBMySql.connectionString = SqlConnect;
|
||||||
|
// dataSet = DoDBMySql.Query(sql);
|
||||||
|
//});
|
||||||
|
string sql = "select * from user_info where userid ='" + TextAccount.Text + "'";
|
||||||
|
DoDBMySql.connectionString = SqlConnect;
|
||||||
|
dataSet = DoDBMySql.Query(sql);
|
||||||
|
if (dataSet.Tables.Count <= 0 || dataSet.Tables[0].Rows.Count <= 0)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("登入失败,无此用户", AlertType.Error, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
nurseDeskInfo.NurseID = dataSet.Tables[0].Rows[0]["userid"] == null ? "" : dataSet.Tables[0].Rows[0]["userid"].ToString();
|
||||||
|
nurseDeskInfo.NurseName = dataSet.Tables[0].Rows[0]["username"] == null ? "" : dataSet.Tables[0].Rows[0]["username"].ToString();
|
||||||
|
nurseDeskInfo.NursePass = dataSet.Tables[0].Rows[0]["userpass"] == null ? "" : dataSet.Tables[0].Rows[0]["userpass"].ToString();
|
||||||
|
nurseDeskInfo.AreaID = dataSet.Tables[0].Rows[0]["areaid"] == null ? "" : dataSet.Tables[0].Rows[0]["areaid"].ToString();
|
||||||
|
nurseDeskInfo.AreaName = dataSet.Tables[0].Rows[0]["areaname"] == null ? "" : dataSet.Tables[0].Rows[0]["areaname"].ToString();
|
||||||
|
nurseDeskInfo.SqlConnectStr = SqlConnect;
|
||||||
|
if (nurseDeskInfo.NurseName == "")
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("登入失败,请检查账户或密码", AlertType.Error, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
string inputpass = TextPassword.Text;
|
||||||
|
if (nurseDeskInfo.NursePass != inputpass)
|
||||||
|
{
|
||||||
|
AlertForm.ShowAlert("登入失败,密码不正确", AlertType.Error, 3);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
//nurseDeskInfo.NurseID = TextAccount.Text;
|
||||||
|
//nurseDeskInfo.NurseName = TextAccount.Text;
|
||||||
|
//nurseDeskInfo.AreaID = "12";
|
||||||
|
//nurseDeskInfo.AreaName = "住院6F24";
|
||||||
|
nurseDeskInfo.SqlConnectStr = SqlConnect;
|
||||||
|
nurseDeskInfo.WindowName = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='DeskName']");
|
||||||
|
nurseDeskInfo.PcType = ConfigFileReader.GetValue("/configuration/appSettings/add[@key='WinType']");
|
||||||
|
|
||||||
|
ConfigFileReader.SetValue("/configuration/appSettings/add[@key='Account']", TextAccount.Text);
|
||||||
|
if (RemAccount.Checked)
|
||||||
|
{
|
||||||
|
ConfigFileReader.SetValue("/configuration/appSettings/add[@key='Password']", EncryptDecrypt(TextPassword.Text, "jojubanking"));
|
||||||
|
ConfigFileReader.SetValue("/configuration/appSettings/add[@key='RemPassword']", "1");
|
||||||
|
}
|
||||||
|
ConfigFileReader.SetValue("/configuration/appSettings/add[@key='RemPassword']", RemAccount.Checked ? "1" : "0");
|
||||||
|
|
||||||
|
if (frmmian == null)
|
||||||
|
{
|
||||||
|
frmmian = new MainForm();
|
||||||
|
frmmian.Closed += (s, a) => this.Close();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
frmmian.WindowReload();
|
||||||
|
this.Hide();
|
||||||
|
frmmian.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 使用XOR进行加密
|
||||||
|
public static string EncryptDecrypt(string input, string key, bool isDecrypt = false)
|
||||||
|
{
|
||||||
|
byte[] inputBytes;
|
||||||
|
if (isDecrypt)
|
||||||
|
{
|
||||||
|
inputBytes = Convert.FromBase64String(input);
|
||||||
|
byte[] keyBytes = Encoding.UTF8.GetBytes(key);
|
||||||
|
byte[] outputBytes = inputBytes.Select((b, i) => (byte)(b ^ keyBytes[i % keyBytes.Length])).ToArray();
|
||||||
|
return Encoding.UTF8.GetString(outputBytes);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
inputBytes = Encoding.UTF8.GetBytes(input);
|
||||||
|
byte[] keyBytes = Encoding.UTF8.GetBytes(key);
|
||||||
|
byte[] outputBytes = inputBytes.Select((b, i) => (byte)(b ^ keyBytes[i % keyBytes.Length])).ToArray();
|
||||||
|
return Convert.ToBase64String(outputBytes);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void ShowWindow()
|
||||||
|
{
|
||||||
|
loginhandle.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
[DllImport("user32.dll")]//*********************拖动无窗体的控件
|
||||||
|
public static extern bool ReleaseCapture();
|
||||||
|
[DllImport("user32.dll")]
|
||||||
|
public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
|
||||||
|
public const int WM_SYSCOMMAND = 0x0112;
|
||||||
|
public const int SC_MOVE = 0xF010;
|
||||||
|
public const int HTCAPTION = 0x0002;
|
||||||
|
|
||||||
|
private void Login_MouseDown(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
ReleaseCapture();
|
||||||
|
SendMessage(this.Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RemAccount_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TextPassword_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
//AutoLogin.Enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TextAccount_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(TextAccount.Text!= Account)
|
||||||
|
AutoLogin.Enabled = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox2_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PicSetDB_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SetDB setDB = new SetDB();
|
||||||
|
setDB.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AutoLogin_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Dologin();
|
||||||
|
AutoLogin.Enabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
2890
JJMediSys/Login.resx
Normal file
978
JJMediSys/MZCY.Designer.cs
generated
Normal file
@@ -0,0 +1,978 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class MZCY
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
DevExpress.XtraGrid.GridLevelNode gridLevelNode2 = new DevExpress.XtraGrid.GridLevelNode();
|
||||||
|
this.gridControl1 = new DevExpress.XtraGrid.GridControl();
|
||||||
|
this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
|
||||||
|
this.XH = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Barcode = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Tuble = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemName = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemCount = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Status = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.JYType = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.DoDept = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.OperTime = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.OperDept = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PrintTime = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.PrintDev = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.Source = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.ItemDetails = new DevExpress.XtraGrid.Columns.GridColumn();
|
||||||
|
this.panelData = new System.Windows.Forms.Panel();
|
||||||
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.Bcall = new System.Windows.Forms.Button();
|
||||||
|
this.PicClear = new System.Windows.Forms.PictureBox();
|
||||||
|
this.dateEnd = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.dateStart = new DevExpress.XtraEditors.DateEdit();
|
||||||
|
this.label16 = new System.Windows.Forms.Label();
|
||||||
|
this.label15 = new System.Windows.Forms.Label();
|
||||||
|
this.LabDayBQCount = new System.Windows.Forms.Label();
|
||||||
|
this.LabDaySGCount = new System.Windows.Forms.Label();
|
||||||
|
this.LabDayPersonCount = new System.Windows.Forms.Label();
|
||||||
|
this.LabItemSelectBQ = new System.Windows.Forms.Label();
|
||||||
|
this.LabItemSelectSG = new System.Windows.Forms.Label();
|
||||||
|
this.LabItemSelectTotal = new System.Windows.Forms.Label();
|
||||||
|
this.LabItemBQ = new System.Windows.Forms.Label();
|
||||||
|
this.LabItemSG = new System.Windows.Forms.Label();
|
||||||
|
this.LabItemTotal = new System.Windows.Forms.Label();
|
||||||
|
this.label12 = new System.Windows.Forms.Label();
|
||||||
|
this.label13 = new System.Windows.Forms.Label();
|
||||||
|
this.label14 = new System.Windows.Forms.Label();
|
||||||
|
this.label9 = new System.Windows.Forms.Label();
|
||||||
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
|
this.label11 = new System.Windows.Forms.Label();
|
||||||
|
this.label8 = new System.Windows.Forms.Label();
|
||||||
|
this.label7 = new System.Windows.Forms.Label();
|
||||||
|
this.label6 = new System.Windows.Forms.Label();
|
||||||
|
this.LabCurSex = new System.Windows.Forms.Label();
|
||||||
|
this.LabCurAge = new System.Windows.Forms.Label();
|
||||||
|
this.LabCurName = new System.Windows.Forms.Label();
|
||||||
|
this.LabCurCardNo = new System.Windows.Forms.Label();
|
||||||
|
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||||
|
this.RadComp = new System.Windows.Forms.RadioButton();
|
||||||
|
this.RadCanceld = new System.Windows.Forms.RadioButton();
|
||||||
|
this.RadPrinted = new System.Windows.Forms.RadioButton();
|
||||||
|
this.RadUnPrint = new System.Windows.Forms.RadioButton();
|
||||||
|
this.RadAll = new System.Windows.Forms.RadioButton();
|
||||||
|
this.label5 = new System.Windows.Forms.Label();
|
||||||
|
this.label4 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.BGetData = new System.Windows.Forms.Button();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.TextPatCardNo = new System.Windows.Forms.TextBox();
|
||||||
|
this.BSetStatus = new System.Windows.Forms.Button();
|
||||||
|
this.bPrint = new System.Windows.Forms.Button();
|
||||||
|
this.timerForFouce = new System.Windows.Forms.Timer(this.components);
|
||||||
|
this.RecpOnly = new DevExpress.XtraEditors.CheckEdit();
|
||||||
|
this.TimeForCall = new System.Windows.Forms.Timer(this.components);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
|
||||||
|
this.panelData.SuspendLayout();
|
||||||
|
this.groupBox1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).BeginInit();
|
||||||
|
this.groupBox2.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.RecpOnly.Properties)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// gridControl1
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.gridControl1.EmbeddedNavigator.AllowDrop = true;
|
||||||
|
gridLevelNode2.RelationName = "Level1";
|
||||||
|
this.gridControl1.LevelTree.Nodes.AddRange(new DevExpress.XtraGrid.GridLevelNode[] {
|
||||||
|
gridLevelNode2});
|
||||||
|
this.gridControl1.Location = new System.Drawing.Point(0, 4);
|
||||||
|
this.gridControl1.MainView = this.gridView1;
|
||||||
|
this.gridControl1.Name = "gridControl1";
|
||||||
|
this.gridControl1.Size = new System.Drawing.Size(1457, 487);
|
||||||
|
this.gridControl1.TabIndex = 0;
|
||||||
|
this.gridControl1.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] {
|
||||||
|
this.gridView1});
|
||||||
|
this.gridControl1.Click += new System.EventHandler(this.gridControl1_Click);
|
||||||
|
//
|
||||||
|
// gridView1
|
||||||
|
//
|
||||||
|
// 改变列标题字体
|
||||||
|
this.gridView1.Appearance.HeaderPanel.Font = new System.Drawing.Font("Tahoma", 16F);
|
||||||
|
this.gridView1.Appearance.EvenRow.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||||
|
this.gridView1.Appearance.EvenRow.Font = new System.Drawing.Font("Tahoma", 16F);
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.EvenRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Appearance.OddRow.BackColor = System.Drawing.Color.AliceBlue;
|
||||||
|
this.gridView1.Appearance.OddRow.Font = new System.Drawing.Font("Tahoma", 16F);
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseBackColor = true;
|
||||||
|
this.gridView1.Appearance.OddRow.Options.UseFont = true;
|
||||||
|
this.gridView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] {
|
||||||
|
this.XH,
|
||||||
|
this.Barcode,
|
||||||
|
this.Tuble,
|
||||||
|
this.ItemName,
|
||||||
|
this.ItemCount,
|
||||||
|
this.Status,
|
||||||
|
this.JYType,
|
||||||
|
this.DoDept,
|
||||||
|
this.OperTime,
|
||||||
|
this.OperDept,
|
||||||
|
this.PrintTime,
|
||||||
|
this.PrintDev,
|
||||||
|
this.Source,
|
||||||
|
this.ItemDetails});
|
||||||
|
this.gridView1.GridControl = this.gridControl1;
|
||||||
|
this.gridView1.Name = "gridView1";
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsPrint.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsSelection.MultiSelect = true;
|
||||||
|
this.gridView1.OptionsSelection.MultiSelectMode = DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.CheckBoxRowSelect;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceEvenRow = true;
|
||||||
|
this.gridView1.OptionsView.EnableAppearanceOddRow = true;
|
||||||
|
this.gridView1.OptionsView.ShowGroupPanel = false;
|
||||||
|
this.gridView1.RowCellClick += new DevExpress.XtraGrid.Views.Grid.RowCellClickEventHandler(this.gridView1_RowCellClick);
|
||||||
|
this.gridView1.SelectionChanged += new DevExpress.Data.SelectionChangedEventHandler(this.gridView1_SelectionChanged);
|
||||||
|
this.gridView1.DoubleClick += new System.EventHandler(this.gridView1_DoubleClick);
|
||||||
|
//
|
||||||
|
// XH
|
||||||
|
//
|
||||||
|
this.XH.Caption = "序号";
|
||||||
|
this.XH.FieldName = "XH";
|
||||||
|
this.XH.Name = "XH";
|
||||||
|
this.XH.Visible = true;
|
||||||
|
this.XH.VisibleIndex = 1;
|
||||||
|
this.XH.Width = 32;
|
||||||
|
//
|
||||||
|
// Barcode
|
||||||
|
//
|
||||||
|
this.Barcode.Caption = "标本条码";
|
||||||
|
this.Barcode.FieldName = "Barcode";
|
||||||
|
this.Barcode.Name = "Barcode";
|
||||||
|
this.Barcode.Visible = true;
|
||||||
|
this.Barcode.VisibleIndex = 2;
|
||||||
|
this.Barcode.Width = 87;
|
||||||
|
//
|
||||||
|
// Tuble
|
||||||
|
//
|
||||||
|
this.Tuble.Caption = "试管";
|
||||||
|
this.Tuble.FieldName = "Tuble";
|
||||||
|
this.Tuble.Name = "Tuble";
|
||||||
|
this.Tuble.Visible = true;
|
||||||
|
this.Tuble.VisibleIndex = 3;
|
||||||
|
this.Tuble.Width = 47;
|
||||||
|
//
|
||||||
|
// ItemName
|
||||||
|
//
|
||||||
|
this.ItemName.Caption = "检验项目";
|
||||||
|
this.ItemName.FieldName = "ItemName";
|
||||||
|
this.ItemName.Name = "ItemName";
|
||||||
|
this.ItemName.Visible = true;
|
||||||
|
this.ItemName.VisibleIndex = 4;
|
||||||
|
this.ItemName.Width = 144;
|
||||||
|
//
|
||||||
|
// ItemCount
|
||||||
|
//
|
||||||
|
this.ItemCount.Caption = "数量";
|
||||||
|
this.ItemCount.FieldName = "ItemCount";
|
||||||
|
this.ItemCount.Name = "ItemCount";
|
||||||
|
this.ItemCount.Visible = true;
|
||||||
|
this.ItemCount.VisibleIndex = 5;
|
||||||
|
this.ItemCount.Width = 28;
|
||||||
|
//
|
||||||
|
// Status
|
||||||
|
//
|
||||||
|
this.Status.Caption = "执行状态";
|
||||||
|
this.Status.FieldName = "Status";
|
||||||
|
this.Status.Name = "Status";
|
||||||
|
this.Status.Visible = true;
|
||||||
|
this.Status.VisibleIndex = 6;
|
||||||
|
this.Status.Width = 47;
|
||||||
|
//
|
||||||
|
// JYType
|
||||||
|
//
|
||||||
|
this.JYType.Caption = "样本类型";
|
||||||
|
this.JYType.FieldName = "JYType";
|
||||||
|
this.JYType.Name = "JYType";
|
||||||
|
this.JYType.Visible = true;
|
||||||
|
this.JYType.VisibleIndex = 7;
|
||||||
|
this.JYType.Width = 39;
|
||||||
|
//
|
||||||
|
// DoDept
|
||||||
|
//
|
||||||
|
this.DoDept.Caption = "执行科室";
|
||||||
|
this.DoDept.FieldName = "DoDept";
|
||||||
|
this.DoDept.Name = "DoDept";
|
||||||
|
this.DoDept.Visible = true;
|
||||||
|
this.DoDept.VisibleIndex = 8;
|
||||||
|
this.DoDept.Width = 32;
|
||||||
|
//
|
||||||
|
// OperTime
|
||||||
|
//
|
||||||
|
this.OperTime.Caption = "开单时间";
|
||||||
|
this.OperTime.FieldName = "OperTime";
|
||||||
|
this.OperTime.Name = "OperTime";
|
||||||
|
this.OperTime.Visible = true;
|
||||||
|
this.OperTime.VisibleIndex = 9;
|
||||||
|
this.OperTime.Width = 92;
|
||||||
|
//
|
||||||
|
// OperDept
|
||||||
|
//
|
||||||
|
this.OperDept.Caption = "开单科室";
|
||||||
|
this.OperDept.FieldName = "OperDept";
|
||||||
|
this.OperDept.Name = "OperDept";
|
||||||
|
this.OperDept.Visible = true;
|
||||||
|
this.OperDept.VisibleIndex = 10;
|
||||||
|
this.OperDept.Width = 61;
|
||||||
|
//
|
||||||
|
// PrintTime
|
||||||
|
//
|
||||||
|
this.PrintTime.Caption = "打印时间";
|
||||||
|
this.PrintTime.FieldName = "PrintTime";
|
||||||
|
this.PrintTime.Name = "PrintTime";
|
||||||
|
this.PrintTime.Visible = true;
|
||||||
|
this.PrintTime.VisibleIndex = 11;
|
||||||
|
this.PrintTime.Width = 87;
|
||||||
|
//
|
||||||
|
// PrintDev
|
||||||
|
//
|
||||||
|
this.PrintDev.Caption = "打印人";
|
||||||
|
this.PrintDev.FieldName = "PrintDev";
|
||||||
|
this.PrintDev.Name = "PrintDev";
|
||||||
|
this.PrintDev.Visible = true;
|
||||||
|
this.PrintDev.VisibleIndex = 12;
|
||||||
|
this.PrintDev.Width = 38;
|
||||||
|
//
|
||||||
|
// Source
|
||||||
|
//
|
||||||
|
this.Source.Caption = "数据来源";
|
||||||
|
this.Source.FieldName = "Source";
|
||||||
|
this.Source.Name = "Source";
|
||||||
|
this.Source.Visible = true;
|
||||||
|
this.Source.VisibleIndex = 13;
|
||||||
|
this.Source.Width = 123;
|
||||||
|
//
|
||||||
|
// ItemDetails
|
||||||
|
//
|
||||||
|
this.ItemDetails.Caption = "ItemDetails";
|
||||||
|
this.ItemDetails.Name = "ItemDetails";
|
||||||
|
//
|
||||||
|
// panelData
|
||||||
|
//
|
||||||
|
this.panelData.Controls.Add(this.gridControl1);
|
||||||
|
this.panelData.Location = new System.Drawing.Point(4, 210);
|
||||||
|
this.panelData.Name = "panelData";
|
||||||
|
this.panelData.Size = new System.Drawing.Size(1466, 484);
|
||||||
|
this.panelData.TabIndex = 1;
|
||||||
|
this.panelData.Paint += new System.Windows.Forms.PaintEventHandler(this.panelData_Paint);
|
||||||
|
//
|
||||||
|
// groupBox1
|
||||||
|
//
|
||||||
|
this.groupBox1.Controls.Add(this.Bcall);
|
||||||
|
this.groupBox1.Controls.Add(this.PicClear);
|
||||||
|
this.groupBox1.Controls.Add(this.dateEnd);
|
||||||
|
this.groupBox1.Controls.Add(this.dateStart);
|
||||||
|
this.groupBox1.Controls.Add(this.label16);
|
||||||
|
this.groupBox1.Controls.Add(this.label15);
|
||||||
|
this.groupBox1.Controls.Add(this.LabDayBQCount);
|
||||||
|
this.groupBox1.Controls.Add(this.LabDaySGCount);
|
||||||
|
this.groupBox1.Controls.Add(this.LabDayPersonCount);
|
||||||
|
this.groupBox1.Controls.Add(this.LabItemSelectBQ);
|
||||||
|
this.groupBox1.Controls.Add(this.LabItemSelectSG);
|
||||||
|
this.groupBox1.Controls.Add(this.LabItemSelectTotal);
|
||||||
|
this.groupBox1.Controls.Add(this.LabItemBQ);
|
||||||
|
this.groupBox1.Controls.Add(this.LabItemSG);
|
||||||
|
this.groupBox1.Controls.Add(this.LabItemTotal);
|
||||||
|
this.groupBox1.Controls.Add(this.label12);
|
||||||
|
this.groupBox1.Controls.Add(this.label13);
|
||||||
|
this.groupBox1.Controls.Add(this.label14);
|
||||||
|
this.groupBox1.Controls.Add(this.label9);
|
||||||
|
this.groupBox1.Controls.Add(this.label10);
|
||||||
|
this.groupBox1.Controls.Add(this.label11);
|
||||||
|
this.groupBox1.Controls.Add(this.label8);
|
||||||
|
this.groupBox1.Controls.Add(this.label7);
|
||||||
|
this.groupBox1.Controls.Add(this.label6);
|
||||||
|
this.groupBox1.Controls.Add(this.LabCurSex);
|
||||||
|
this.groupBox1.Controls.Add(this.LabCurAge);
|
||||||
|
this.groupBox1.Controls.Add(this.LabCurName);
|
||||||
|
this.groupBox1.Controls.Add(this.LabCurCardNo);
|
||||||
|
this.groupBox1.Controls.Add(this.groupBox2);
|
||||||
|
this.groupBox1.Controls.Add(this.label5);
|
||||||
|
this.groupBox1.Controls.Add(this.label4);
|
||||||
|
this.groupBox1.Controls.Add(this.label3);
|
||||||
|
this.groupBox1.Controls.Add(this.label2);
|
||||||
|
this.groupBox1.Controls.Add(this.BGetData);
|
||||||
|
this.groupBox1.Controls.Add(this.label1);
|
||||||
|
this.groupBox1.Controls.Add(this.TextPatCardNo);
|
||||||
|
this.groupBox1.Location = new System.Drawing.Point(4, 0);
|
||||||
|
this.groupBox1.Name = "groupBox1";
|
||||||
|
this.groupBox1.Size = new System.Drawing.Size(1691, 193);
|
||||||
|
this.groupBox1.TabIndex = 2;
|
||||||
|
this.groupBox1.TabStop = false;
|
||||||
|
//
|
||||||
|
// Bcall
|
||||||
|
//
|
||||||
|
this.Bcall.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.Bcall.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.Bcall.FlatAppearance.BorderSize = 0;
|
||||||
|
this.Bcall.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.Bcall.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.Bcall.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
||||||
|
this.Bcall.Location = new System.Drawing.Point(489, 152);
|
||||||
|
this.Bcall.Name = "Bcall";
|
||||||
|
this.Bcall.Size = new System.Drawing.Size(124, 35);
|
||||||
|
this.Bcall.TabIndex = 39;
|
||||||
|
this.Bcall.Text = "叫 号";
|
||||||
|
this.Bcall.UseVisualStyleBackColor = true;
|
||||||
|
this.Bcall.Click += new System.EventHandler(this.Bcall_Click);
|
||||||
|
//
|
||||||
|
// PicClear
|
||||||
|
//
|
||||||
|
this.PicClear.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.PicClear.BackgroundImage = global::JJMediSys.Properties.Resources.删除__1_;
|
||||||
|
this.PicClear.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicClear.Location = new System.Drawing.Point(277, 145);
|
||||||
|
this.PicClear.Name = "PicClear";
|
||||||
|
this.PicClear.Size = new System.Drawing.Size(29, 29);
|
||||||
|
this.PicClear.TabIndex = 38;
|
||||||
|
this.PicClear.TabStop = false;
|
||||||
|
this.PicClear.Click += new System.EventHandler(this.PicClear_Click);
|
||||||
|
//
|
||||||
|
// dateEnd
|
||||||
|
//
|
||||||
|
this.dateEnd.EditValue = new System.DateTime(2025, 11, 3, 0, 0, 0, 0);
|
||||||
|
this.dateEnd.Location = new System.Drawing.Point(323, 108);
|
||||||
|
this.dateEnd.Name = "dateEnd";
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.dateEnd.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateEnd.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateEnd.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateEnd.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.dateEnd.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateEnd.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateEnd.TabIndex = 37;
|
||||||
|
//
|
||||||
|
// dateStart
|
||||||
|
//
|
||||||
|
this.dateStart.EditValue = new System.DateTime(2025, 11, 3, 0, 0, 0, 0);
|
||||||
|
this.dateStart.Location = new System.Drawing.Point(197, 108);
|
||||||
|
this.dateStart.Name = "dateStart";
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.dateStart.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.dateStart.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.dateStart.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Office2003;
|
||||||
|
this.dateStart.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.dateStart.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
|
||||||
|
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
|
||||||
|
this.dateStart.Size = new System.Drawing.Size(103, 26);
|
||||||
|
this.dateStart.TabIndex = 36;
|
||||||
|
//
|
||||||
|
// label16
|
||||||
|
//
|
||||||
|
this.label16.AutoSize = true;
|
||||||
|
this.label16.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label16.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label16.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label16.Location = new System.Drawing.Point(303, 107);
|
||||||
|
this.label16.Name = "label16";
|
||||||
|
this.label16.Size = new System.Drawing.Size(20, 26);
|
||||||
|
this.label16.TabIndex = 35;
|
||||||
|
this.label16.Text = "-";
|
||||||
|
//
|
||||||
|
// label15
|
||||||
|
//
|
||||||
|
this.label15.AutoSize = true;
|
||||||
|
this.label15.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label15.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label15.Location = new System.Drawing.Point(28, 106);
|
||||||
|
this.label15.Name = "label15";
|
||||||
|
this.label15.Size = new System.Drawing.Size(169, 26);
|
||||||
|
this.label15.TabIndex = 34;
|
||||||
|
this.label15.Text = "数据搜索时间范围:";
|
||||||
|
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// LabDayBQCount
|
||||||
|
//
|
||||||
|
this.LabDayBQCount.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabDayBQCount.ForeColor = System.Drawing.Color.Chocolate;
|
||||||
|
this.LabDayBQCount.Location = new System.Drawing.Point(319, 47);
|
||||||
|
this.LabDayBQCount.Name = "LabDayBQCount";
|
||||||
|
this.LabDayBQCount.Size = new System.Drawing.Size(95, 49);
|
||||||
|
this.LabDayBQCount.TabIndex = 31;
|
||||||
|
this.LabDayBQCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabDaySGCount
|
||||||
|
//
|
||||||
|
this.LabDaySGCount.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabDaySGCount.ForeColor = System.Drawing.Color.SlateBlue;
|
||||||
|
this.LabDaySGCount.Location = new System.Drawing.Point(179, 47);
|
||||||
|
this.LabDaySGCount.Name = "LabDaySGCount";
|
||||||
|
this.LabDaySGCount.Size = new System.Drawing.Size(94, 49);
|
||||||
|
this.LabDaySGCount.TabIndex = 30;
|
||||||
|
this.LabDaySGCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabDayPersonCount
|
||||||
|
//
|
||||||
|
this.LabDayPersonCount.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabDayPersonCount.ForeColor = System.Drawing.Color.DarkOrange;
|
||||||
|
this.LabDayPersonCount.Location = new System.Drawing.Point(37, 47);
|
||||||
|
this.LabDayPersonCount.Name = "LabDayPersonCount";
|
||||||
|
this.LabDayPersonCount.Size = new System.Drawing.Size(70, 49);
|
||||||
|
this.LabDayPersonCount.TabIndex = 29;
|
||||||
|
this.LabDayPersonCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabItemSelectBQ
|
||||||
|
//
|
||||||
|
this.LabItemSelectBQ.AutoSize = true;
|
||||||
|
this.LabItemSelectBQ.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabItemSelectBQ.ForeColor = System.Drawing.Color.DarkMagenta;
|
||||||
|
this.LabItemSelectBQ.Location = new System.Drawing.Point(936, 154);
|
||||||
|
this.LabItemSelectBQ.Name = "LabItemSelectBQ";
|
||||||
|
this.LabItemSelectBQ.Size = new System.Drawing.Size(0, 25);
|
||||||
|
this.LabItemSelectBQ.TabIndex = 28;
|
||||||
|
//
|
||||||
|
// LabItemSelectSG
|
||||||
|
//
|
||||||
|
this.LabItemSelectSG.AutoSize = true;
|
||||||
|
this.LabItemSelectSG.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabItemSelectSG.ForeColor = System.Drawing.Color.DarkMagenta;
|
||||||
|
this.LabItemSelectSG.Location = new System.Drawing.Point(936, 126);
|
||||||
|
this.LabItemSelectSG.Name = "LabItemSelectSG";
|
||||||
|
this.LabItemSelectSG.Size = new System.Drawing.Size(0, 25);
|
||||||
|
this.LabItemSelectSG.TabIndex = 27;
|
||||||
|
//
|
||||||
|
// LabItemSelectTotal
|
||||||
|
//
|
||||||
|
this.LabItemSelectTotal.AutoSize = true;
|
||||||
|
this.LabItemSelectTotal.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabItemSelectTotal.ForeColor = System.Drawing.Color.DarkMagenta;
|
||||||
|
this.LabItemSelectTotal.Location = new System.Drawing.Point(936, 98);
|
||||||
|
this.LabItemSelectTotal.Name = "LabItemSelectTotal";
|
||||||
|
this.LabItemSelectTotal.Size = new System.Drawing.Size(0, 25);
|
||||||
|
this.LabItemSelectTotal.TabIndex = 26;
|
||||||
|
//
|
||||||
|
// LabItemBQ
|
||||||
|
//
|
||||||
|
this.LabItemBQ.AutoSize = true;
|
||||||
|
this.LabItemBQ.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabItemBQ.ForeColor = System.Drawing.Color.DarkMagenta;
|
||||||
|
this.LabItemBQ.Location = new System.Drawing.Point(743, 154);
|
||||||
|
this.LabItemBQ.Name = "LabItemBQ";
|
||||||
|
this.LabItemBQ.Size = new System.Drawing.Size(0, 25);
|
||||||
|
this.LabItemBQ.TabIndex = 25;
|
||||||
|
//
|
||||||
|
// LabItemSG
|
||||||
|
//
|
||||||
|
this.LabItemSG.AutoSize = true;
|
||||||
|
this.LabItemSG.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabItemSG.ForeColor = System.Drawing.Color.DarkMagenta;
|
||||||
|
this.LabItemSG.Location = new System.Drawing.Point(743, 126);
|
||||||
|
this.LabItemSG.Name = "LabItemSG";
|
||||||
|
this.LabItemSG.Size = new System.Drawing.Size(0, 25);
|
||||||
|
this.LabItemSG.TabIndex = 24;
|
||||||
|
//
|
||||||
|
// LabItemTotal
|
||||||
|
//
|
||||||
|
this.LabItemTotal.AutoSize = true;
|
||||||
|
this.LabItemTotal.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabItemTotal.ForeColor = System.Drawing.Color.DarkMagenta;
|
||||||
|
this.LabItemTotal.Location = new System.Drawing.Point(743, 98);
|
||||||
|
this.LabItemTotal.Name = "LabItemTotal";
|
||||||
|
this.LabItemTotal.Size = new System.Drawing.Size(0, 25);
|
||||||
|
this.LabItemTotal.TabIndex = 23;
|
||||||
|
//
|
||||||
|
// label12
|
||||||
|
//
|
||||||
|
this.label12.AutoSize = true;
|
||||||
|
this.label12.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label12.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label12.Location = new System.Drawing.Point(837, 153);
|
||||||
|
this.label12.Name = "label12";
|
||||||
|
this.label12.Size = new System.Drawing.Size(93, 25);
|
||||||
|
this.label12.TabIndex = 22;
|
||||||
|
this.label12.Text = "已选标签:";
|
||||||
|
//
|
||||||
|
// label13
|
||||||
|
//
|
||||||
|
this.label13.AutoSize = true;
|
||||||
|
this.label13.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label13.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label13.Location = new System.Drawing.Point(837, 126);
|
||||||
|
this.label13.Name = "label13";
|
||||||
|
this.label13.Size = new System.Drawing.Size(93, 25);
|
||||||
|
this.label13.TabIndex = 21;
|
||||||
|
this.label13.Text = "已选试管:";
|
||||||
|
//
|
||||||
|
// label14
|
||||||
|
//
|
||||||
|
this.label14.AutoSize = true;
|
||||||
|
this.label14.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label14.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label14.Location = new System.Drawing.Point(837, 98);
|
||||||
|
this.label14.Name = "label14";
|
||||||
|
this.label14.Size = new System.Drawing.Size(93, 25);
|
||||||
|
this.label14.TabIndex = 20;
|
||||||
|
this.label14.Text = "已选项目:";
|
||||||
|
//
|
||||||
|
// label9
|
||||||
|
//
|
||||||
|
this.label9.AutoSize = true;
|
||||||
|
this.label9.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label9.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label9.Location = new System.Drawing.Point(644, 153);
|
||||||
|
this.label9.Name = "label9";
|
||||||
|
this.label9.Size = new System.Drawing.Size(93, 25);
|
||||||
|
this.label9.TabIndex = 19;
|
||||||
|
this.label9.Text = "标签总数:";
|
||||||
|
//
|
||||||
|
// label10
|
||||||
|
//
|
||||||
|
this.label10.AutoSize = true;
|
||||||
|
this.label10.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label10.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label10.Location = new System.Drawing.Point(644, 126);
|
||||||
|
this.label10.Name = "label10";
|
||||||
|
this.label10.Size = new System.Drawing.Size(93, 25);
|
||||||
|
this.label10.TabIndex = 18;
|
||||||
|
this.label10.Text = "试管总数:";
|
||||||
|
//
|
||||||
|
// label11
|
||||||
|
//
|
||||||
|
this.label11.AutoSize = true;
|
||||||
|
this.label11.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label11.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label11.Location = new System.Drawing.Point(644, 98);
|
||||||
|
this.label11.Name = "label11";
|
||||||
|
this.label11.Size = new System.Drawing.Size(93, 25);
|
||||||
|
this.label11.TabIndex = 17;
|
||||||
|
this.label11.Text = "项目总数:";
|
||||||
|
//
|
||||||
|
// label8
|
||||||
|
//
|
||||||
|
this.label8.AutoSize = true;
|
||||||
|
this.label8.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label8.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label8.Location = new System.Drawing.Point(29, 17);
|
||||||
|
this.label8.Name = "label8";
|
||||||
|
this.label8.Size = new System.Drawing.Size(88, 26);
|
||||||
|
this.label8.TabIndex = 16;
|
||||||
|
this.label8.Text = "采样人数";
|
||||||
|
//
|
||||||
|
// label7
|
||||||
|
//
|
||||||
|
this.label7.AutoSize = true;
|
||||||
|
this.label7.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label7.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label7.Location = new System.Drawing.Point(346, 17);
|
||||||
|
this.label7.Name = "label7";
|
||||||
|
this.label7.Size = new System.Drawing.Size(50, 26);
|
||||||
|
this.label7.TabIndex = 15;
|
||||||
|
this.label7.Text = "标签";
|
||||||
|
//
|
||||||
|
// label6
|
||||||
|
//
|
||||||
|
this.label6.AutoSize = true;
|
||||||
|
this.label6.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label6.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label6.Location = new System.Drawing.Point(203, 17);
|
||||||
|
this.label6.Name = "label6";
|
||||||
|
this.label6.Size = new System.Drawing.Size(50, 26);
|
||||||
|
this.label6.TabIndex = 14;
|
||||||
|
this.label6.Text = "试管";
|
||||||
|
//
|
||||||
|
// LabCurSex
|
||||||
|
//
|
||||||
|
this.LabCurSex.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabCurSex.ForeColor = System.Drawing.Color.DarkOrange;
|
||||||
|
this.LabCurSex.Location = new System.Drawing.Point(1235, 41);
|
||||||
|
this.LabCurSex.Name = "LabCurSex";
|
||||||
|
this.LabCurSex.Size = new System.Drawing.Size(76, 48);
|
||||||
|
this.LabCurSex.TabIndex = 13;
|
||||||
|
this.LabCurSex.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabCurAge
|
||||||
|
//
|
||||||
|
this.LabCurAge.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabCurAge.ForeColor = System.Drawing.Color.DarkOrange;
|
||||||
|
this.LabCurAge.Location = new System.Drawing.Point(1090, 40);
|
||||||
|
this.LabCurAge.Name = "LabCurAge";
|
||||||
|
this.LabCurAge.Size = new System.Drawing.Size(70, 49);
|
||||||
|
this.LabCurAge.TabIndex = 12;
|
||||||
|
this.LabCurAge.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabCurName
|
||||||
|
//
|
||||||
|
this.LabCurName.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabCurName.ForeColor = System.Drawing.Color.DarkOrange;
|
||||||
|
this.LabCurName.Location = new System.Drawing.Point(837, 41);
|
||||||
|
this.LabCurName.Name = "LabCurName";
|
||||||
|
this.LabCurName.Size = new System.Drawing.Size(183, 48);
|
||||||
|
this.LabCurName.TabIndex = 11;
|
||||||
|
this.LabCurName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabCurCardNo
|
||||||
|
//
|
||||||
|
this.LabCurCardNo.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabCurCardNo.ForeColor = System.Drawing.Color.DarkOrange;
|
||||||
|
this.LabCurCardNo.Location = new System.Drawing.Point(631, 41);
|
||||||
|
this.LabCurCardNo.Name = "LabCurCardNo";
|
||||||
|
this.LabCurCardNo.Size = new System.Drawing.Size(197, 48);
|
||||||
|
this.LabCurCardNo.TabIndex = 10;
|
||||||
|
this.LabCurCardNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// groupBox2
|
||||||
|
//
|
||||||
|
this.groupBox2.Controls.Add(this.RadComp);
|
||||||
|
this.groupBox2.Controls.Add(this.RadCanceld);
|
||||||
|
this.groupBox2.Controls.Add(this.RadPrinted);
|
||||||
|
this.groupBox2.Controls.Add(this.RadUnPrint);
|
||||||
|
this.groupBox2.Controls.Add(this.RadAll);
|
||||||
|
this.groupBox2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.groupBox2.ForeColor = System.Drawing.Color.SlateBlue;
|
||||||
|
this.groupBox2.Location = new System.Drawing.Point(483, 13);
|
||||||
|
this.groupBox2.Name = "groupBox2";
|
||||||
|
this.groupBox2.Size = new System.Drawing.Size(142, 138);
|
||||||
|
this.groupBox2.TabIndex = 7;
|
||||||
|
this.groupBox2.TabStop = false;
|
||||||
|
this.groupBox2.Text = "项目状态控制:";
|
||||||
|
//
|
||||||
|
// RadComp
|
||||||
|
//
|
||||||
|
this.RadComp.AutoSize = true;
|
||||||
|
this.RadComp.Location = new System.Drawing.Point(7, 112);
|
||||||
|
this.RadComp.Name = "RadComp";
|
||||||
|
this.RadComp.Size = new System.Drawing.Size(115, 18);
|
||||||
|
this.RadComp.TabIndex = 4;
|
||||||
|
this.RadComp.Text = "已采集已确认";
|
||||||
|
this.RadComp.UseVisualStyleBackColor = true;
|
||||||
|
this.RadComp.CheckedChanged += new System.EventHandler(this.CheckedChanged);
|
||||||
|
//
|
||||||
|
// RadCanceld
|
||||||
|
//
|
||||||
|
this.RadCanceld.AutoSize = true;
|
||||||
|
this.RadCanceld.Location = new System.Drawing.Point(7, 89);
|
||||||
|
this.RadCanceld.Name = "RadCanceld";
|
||||||
|
this.RadCanceld.Size = new System.Drawing.Size(70, 18);
|
||||||
|
this.RadCanceld.TabIndex = 3;
|
||||||
|
this.RadCanceld.Text = "已撤销";
|
||||||
|
this.RadCanceld.UseVisualStyleBackColor = true;
|
||||||
|
this.RadCanceld.CheckedChanged += new System.EventHandler(this.CheckedChanged);
|
||||||
|
//
|
||||||
|
// RadPrinted
|
||||||
|
//
|
||||||
|
this.RadPrinted.AutoSize = true;
|
||||||
|
this.RadPrinted.Location = new System.Drawing.Point(7, 66);
|
||||||
|
this.RadPrinted.Name = "RadPrinted";
|
||||||
|
this.RadPrinted.Size = new System.Drawing.Size(70, 18);
|
||||||
|
this.RadPrinted.TabIndex = 2;
|
||||||
|
this.RadPrinted.Text = "已打印";
|
||||||
|
this.RadPrinted.UseVisualStyleBackColor = true;
|
||||||
|
this.RadPrinted.CheckedChanged += new System.EventHandler(this.CheckedChanged);
|
||||||
|
//
|
||||||
|
// RadUnPrint
|
||||||
|
//
|
||||||
|
this.RadUnPrint.AutoSize = true;
|
||||||
|
this.RadUnPrint.Location = new System.Drawing.Point(7, 44);
|
||||||
|
this.RadUnPrint.Name = "RadUnPrint";
|
||||||
|
this.RadUnPrint.Size = new System.Drawing.Size(70, 18);
|
||||||
|
this.RadUnPrint.TabIndex = 1;
|
||||||
|
this.RadUnPrint.Text = "未打印";
|
||||||
|
this.RadUnPrint.UseVisualStyleBackColor = true;
|
||||||
|
this.RadUnPrint.CheckedChanged += new System.EventHandler(this.CheckedChanged);
|
||||||
|
//
|
||||||
|
// RadAll
|
||||||
|
//
|
||||||
|
this.RadAll.AutoSize = true;
|
||||||
|
this.RadAll.Checked = true;
|
||||||
|
this.RadAll.Location = new System.Drawing.Point(8, 21);
|
||||||
|
this.RadAll.Name = "RadAll";
|
||||||
|
this.RadAll.Size = new System.Drawing.Size(55, 18);
|
||||||
|
this.RadAll.TabIndex = 0;
|
||||||
|
this.RadAll.TabStop = true;
|
||||||
|
this.RadAll.Text = "全部";
|
||||||
|
this.RadAll.UseVisualStyleBackColor = true;
|
||||||
|
this.RadAll.CheckedChanged += new System.EventHandler(this.CheckedChanged);
|
||||||
|
//
|
||||||
|
// label5
|
||||||
|
//
|
||||||
|
this.label5.AutoSize = true;
|
||||||
|
this.label5.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label5.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label5.Location = new System.Drawing.Point(712, 13);
|
||||||
|
this.label5.Name = "label5";
|
||||||
|
this.label5.Size = new System.Drawing.Size(34, 28);
|
||||||
|
this.label5.TabIndex = 6;
|
||||||
|
this.label5.Text = "ID";
|
||||||
|
//
|
||||||
|
// label4
|
||||||
|
//
|
||||||
|
this.label4.AutoSize = true;
|
||||||
|
this.label4.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label4.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label4.Location = new System.Drawing.Point(1246, 12);
|
||||||
|
this.label4.Name = "label4";
|
||||||
|
this.label4.Size = new System.Drawing.Size(54, 28);
|
||||||
|
this.label4.TabIndex = 5;
|
||||||
|
this.label4.Text = "性别";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label3.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label3.Location = new System.Drawing.Point(1100, 12);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(54, 28);
|
||||||
|
this.label3.TabIndex = 4;
|
||||||
|
this.label3.Text = "年龄";
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Font = new System.Drawing.Font("微软雅黑", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label2.ForeColor = System.Drawing.Color.CadetBlue;
|
||||||
|
this.label2.Location = new System.Drawing.Point(903, 13);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(54, 28);
|
||||||
|
this.label2.TabIndex = 3;
|
||||||
|
this.label2.Text = "姓名";
|
||||||
|
//
|
||||||
|
// BGetData
|
||||||
|
//
|
||||||
|
this.BGetData.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BGetData.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BGetData.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BGetData.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BGetData.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BGetData.ForeColor = System.Drawing.SystemColors.ButtonFace;
|
||||||
|
this.BGetData.Location = new System.Drawing.Point(314, 140);
|
||||||
|
this.BGetData.Name = "BGetData";
|
||||||
|
this.BGetData.Size = new System.Drawing.Size(124, 39);
|
||||||
|
this.BGetData.TabIndex = 2;
|
||||||
|
this.BGetData.Text = "查 询";
|
||||||
|
this.BGetData.UseVisualStyleBackColor = true;
|
||||||
|
this.BGetData.Click += new System.EventHandler(this.BGetData_Click);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.Location = new System.Drawing.Point(29, 146);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(55, 25);
|
||||||
|
this.label1.TabIndex = 1;
|
||||||
|
this.label1.Text = "条码:";
|
||||||
|
//
|
||||||
|
// TextPatCardNo
|
||||||
|
//
|
||||||
|
this.TextPatCardNo.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.TextPatCardNo.Location = new System.Drawing.Point(90, 146);
|
||||||
|
this.TextPatCardNo.Name = "TextPatCardNo";
|
||||||
|
this.TextPatCardNo.Size = new System.Drawing.Size(188, 29);
|
||||||
|
this.TextPatCardNo.TabIndex = 0;
|
||||||
|
this.TextPatCardNo.TextChanged += new System.EventHandler(this.TextPatCardNo_TextChanged);
|
||||||
|
this.TextPatCardNo.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextPatCardNo_KeyPress);
|
||||||
|
//
|
||||||
|
// BSetStatus
|
||||||
|
//
|
||||||
|
this.BSetStatus.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BSetStatus.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BSetStatus.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BSetStatus.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BSetStatus.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BSetStatus.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.BSetStatus.Location = new System.Drawing.Point(191, 736);
|
||||||
|
this.BSetStatus.Name = "BSetStatus";
|
||||||
|
this.BSetStatus.Size = new System.Drawing.Size(179, 43);
|
||||||
|
this.BSetStatus.TabIndex = 9;
|
||||||
|
this.BSetStatus.Text = "采 集 确 认";
|
||||||
|
this.BSetStatus.UseVisualStyleBackColor = true;
|
||||||
|
this.BSetStatus.Visible = false;
|
||||||
|
this.BSetStatus.Click += new System.EventHandler(this.BSetStatus_Click);
|
||||||
|
//
|
||||||
|
// bPrint
|
||||||
|
//
|
||||||
|
this.bPrint.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.bPrint.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.bPrint.FlatAppearance.BorderSize = 0;
|
||||||
|
this.bPrint.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.bPrint.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.bPrint.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.bPrint.Location = new System.Drawing.Point(4, 736);
|
||||||
|
this.bPrint.Name = "bPrint";
|
||||||
|
this.bPrint.Size = new System.Drawing.Size(173, 43);
|
||||||
|
this.bPrint.TabIndex = 8;
|
||||||
|
this.bPrint.Text = "一 键 打 印";
|
||||||
|
this.bPrint.UseVisualStyleBackColor = true;
|
||||||
|
this.bPrint.Click += new System.EventHandler(this.bPrint_Click);
|
||||||
|
//
|
||||||
|
// timerForFouce
|
||||||
|
//
|
||||||
|
this.timerForFouce.Enabled = true;
|
||||||
|
this.timerForFouce.Interval = 5000;
|
||||||
|
this.timerForFouce.Tick += new System.EventHandler(this.timerForFouce_Tick);
|
||||||
|
//
|
||||||
|
// RecpOnly
|
||||||
|
//
|
||||||
|
this.RecpOnly.Location = new System.Drawing.Point(12, 701);
|
||||||
|
this.RecpOnly.Name = "RecpOnly";
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
this.RecpOnly.Properties.Appearance.Font = new System.Drawing.Font("Tahoma", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
|
this.RecpOnly.Properties.Appearance.ForeColor = System.Drawing.Color.CornflowerBlue;
|
||||||
|
this.RecpOnly.Properties.Appearance.Options.UseFont = true;
|
||||||
|
this.RecpOnly.Properties.Appearance.Options.UseForeColor = true;
|
||||||
|
this.RecpOnly.Properties.Caption = "打印不贴标";
|
||||||
|
this.RecpOnly.Size = new System.Drawing.Size(168, 27);
|
||||||
|
this.RecpOnly.TabIndex = 10;
|
||||||
|
//
|
||||||
|
// TimeForCall
|
||||||
|
//
|
||||||
|
this.TimeForCall.Enabled = true;
|
||||||
|
this.TimeForCall.Interval = 1000;
|
||||||
|
this.TimeForCall.Tick += new System.EventHandler(this.TimeForCall_Tick);
|
||||||
|
//
|
||||||
|
// MZCY
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(1707, 971);
|
||||||
|
this.Controls.Add(this.RecpOnly);
|
||||||
|
this.Controls.Add(this.groupBox1);
|
||||||
|
this.Controls.Add(this.panelData);
|
||||||
|
this.Controls.Add(this.BSetStatus);
|
||||||
|
this.Controls.Add(this.bPrint);
|
||||||
|
this.Name = "MZCY";
|
||||||
|
this.Text = "MZCY";
|
||||||
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MZCY_FormClosing);
|
||||||
|
this.Load += new System.EventHandler(this.MZCY_Load);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
|
||||||
|
this.panelData.ResumeLayout(false);
|
||||||
|
this.groupBox1.ResumeLayout(false);
|
||||||
|
this.groupBox1.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicClear)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateEnd.Properties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties.CalendarTimeProperties)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.dateStart.Properties)).EndInit();
|
||||||
|
this.groupBox2.ResumeLayout(false);
|
||||||
|
this.groupBox2.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.RecpOnly.Properties)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private DevExpress.XtraGrid.GridControl gridControl1;
|
||||||
|
private DevExpress.XtraGrid.Views.Grid.GridView gridView1;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn XH;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Barcode;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Tuble;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemName;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemCount;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Status;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn JYType;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn DoDept;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn OperTime;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn OperDept;
|
||||||
|
private System.Windows.Forms.Panel panelData;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox1;
|
||||||
|
private System.Windows.Forms.Button BGetData;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.TextBox TextPatCardNo;
|
||||||
|
private System.Windows.Forms.Label label5;
|
||||||
|
private System.Windows.Forms.Label label4;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Button BSetStatus;
|
||||||
|
private System.Windows.Forms.Button bPrint;
|
||||||
|
private System.Windows.Forms.GroupBox groupBox2;
|
||||||
|
private System.Windows.Forms.RadioButton RadComp;
|
||||||
|
private System.Windows.Forms.RadioButton RadCanceld;
|
||||||
|
private System.Windows.Forms.RadioButton RadPrinted;
|
||||||
|
private System.Windows.Forms.RadioButton RadUnPrint;
|
||||||
|
private System.Windows.Forms.RadioButton RadAll;
|
||||||
|
private System.Windows.Forms.Label LabCurSex;
|
||||||
|
private System.Windows.Forms.Label LabCurAge;
|
||||||
|
private System.Windows.Forms.Label LabCurName;
|
||||||
|
private System.Windows.Forms.Label LabCurCardNo;
|
||||||
|
private System.Windows.Forms.Timer timerForFouce;
|
||||||
|
private System.Windows.Forms.Label label12;
|
||||||
|
private System.Windows.Forms.Label label13;
|
||||||
|
private System.Windows.Forms.Label label14;
|
||||||
|
private System.Windows.Forms.Label label9;
|
||||||
|
private System.Windows.Forms.Label label10;
|
||||||
|
private System.Windows.Forms.Label label11;
|
||||||
|
private System.Windows.Forms.Label label8;
|
||||||
|
private System.Windows.Forms.Label label7;
|
||||||
|
private System.Windows.Forms.Label label6;
|
||||||
|
private System.Windows.Forms.Label LabItemSelectBQ;
|
||||||
|
private System.Windows.Forms.Label LabItemSelectSG;
|
||||||
|
private System.Windows.Forms.Label LabItemSelectTotal;
|
||||||
|
private System.Windows.Forms.Label LabItemBQ;
|
||||||
|
private System.Windows.Forms.Label LabItemSG;
|
||||||
|
private System.Windows.Forms.Label LabItemTotal;
|
||||||
|
private DevExpress.XtraEditors.CheckEdit RecpOnly;
|
||||||
|
private System.Windows.Forms.Label LabDayBQCount;
|
||||||
|
private System.Windows.Forms.Label LabDaySGCount;
|
||||||
|
private System.Windows.Forms.Label LabDayPersonCount;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn ItemDetails;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PrintTime;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn Source;
|
||||||
|
private DevExpress.XtraGrid.Columns.GridColumn PrintDev;
|
||||||
|
private System.Windows.Forms.Label label16;
|
||||||
|
private System.Windows.Forms.Label label15;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateEnd;
|
||||||
|
private DevExpress.XtraEditors.DateEdit dateStart;
|
||||||
|
private System.Windows.Forms.PictureBox PicClear;
|
||||||
|
private System.Windows.Forms.Timer TimeForCall;
|
||||||
|
private System.Windows.Forms.Button Bcall;
|
||||||
|
}
|
||||||
|
}
|
||||||
1190
JJMediSys/MZCY.cs
Normal file
147
JJMediSys/MZCY.resx
Normal file
@@ -0,0 +1,147 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="gridControl1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="dateEnd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>144, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="dateStart.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>244, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="dateEnd.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>144, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="dateStart.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>244, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="timerForFouce.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>458, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="RecpOnly.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>350, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="TimeForCall.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>595, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
<value>108</value>
|
||||||
|
</metadata>
|
||||||
|
</root>
|
||||||
320
JJMediSys/MainForm.Designer.cs
generated
Normal file
@@ -0,0 +1,320 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class MainForm
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 必需的设计器变量。
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 清理所有正在使用的资源。
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows 窗体设计器生成的代码
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 设计器支持所需的方法 - 不要修改
|
||||||
|
/// 使用代码编辑器修改此方法的内容。
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
|
||||||
|
this.panelnavbar = new System.Windows.Forms.Panel();
|
||||||
|
this.NavBarCtrol = new DevExpress.XtraNavBar.NavBarControl();
|
||||||
|
this.panelTabpage = new System.Windows.Forms.Panel();
|
||||||
|
this.TabCtrol = new DevExpress.XtraTab.XtraTabControl();
|
||||||
|
this.piclogo = new System.Windows.Forms.PictureBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.defaultLookAndFeel1 = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
|
||||||
|
this.ItemimageList = new System.Windows.Forms.ImageList(this.components);
|
||||||
|
this.PanelUser = new System.Windows.Forms.Panel();
|
||||||
|
this.BLogOut = new System.Windows.Forms.Button();
|
||||||
|
this.LabSqlNote = new System.Windows.Forms.Label();
|
||||||
|
this.BResetPassword = new System.Windows.Forms.Button();
|
||||||
|
this.LabDoctorName = new System.Windows.Forms.Label();
|
||||||
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
|
this.label3 = new System.Windows.Forms.Label();
|
||||||
|
this.PicStatusDev = new System.Windows.Forms.PictureBox();
|
||||||
|
this.PicStatusDB = new System.Windows.Forms.PictureBox();
|
||||||
|
this.StatusFrash = new System.Windows.Forms.Timer(this.components);
|
||||||
|
this.pictureBox2 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||||
|
this.panelnavbar.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.NavBarCtrol)).BeginInit();
|
||||||
|
this.panelTabpage.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.TabCtrol)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.piclogo)).BeginInit();
|
||||||
|
this.PanelUser.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicStatusDev)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicStatusDB)).BeginInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// panelnavbar
|
||||||
|
//
|
||||||
|
this.panelnavbar.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panelnavbar.Controls.Add(this.NavBarCtrol);
|
||||||
|
this.panelnavbar.Location = new System.Drawing.Point(2, 48);
|
||||||
|
this.panelnavbar.Name = "panelnavbar";
|
||||||
|
this.panelnavbar.Size = new System.Drawing.Size(154, 564);
|
||||||
|
this.panelnavbar.TabIndex = 0;
|
||||||
|
//
|
||||||
|
// NavBarCtrol
|
||||||
|
//
|
||||||
|
this.NavBarCtrol.ActiveGroup = null;
|
||||||
|
this.NavBarCtrol.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.NavBarCtrol.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.NavBarCtrol.Name = "NavBarCtrol";
|
||||||
|
this.NavBarCtrol.OptionsNavPane.ExpandedWidth = 152;
|
||||||
|
this.NavBarCtrol.Size = new System.Drawing.Size(152, 562);
|
||||||
|
this.NavBarCtrol.TabIndex = 0;
|
||||||
|
this.NavBarCtrol.Text = "navBarControl1";
|
||||||
|
this.NavBarCtrol.LinkClicked += new DevExpress.XtraNavBar.NavBarLinkEventHandler(this.NavBarCtrol_LinkClicked);
|
||||||
|
//
|
||||||
|
// panelTabpage
|
||||||
|
//
|
||||||
|
this.panelTabpage.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.panelTabpage.Controls.Add(this.TabCtrol);
|
||||||
|
this.panelTabpage.Location = new System.Drawing.Point(161, 48);
|
||||||
|
this.panelTabpage.Name = "panelTabpage";
|
||||||
|
this.panelTabpage.Size = new System.Drawing.Size(976, 564);
|
||||||
|
this.panelTabpage.TabIndex = 1;
|
||||||
|
//
|
||||||
|
// TabCtrol
|
||||||
|
//
|
||||||
|
this.TabCtrol.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InAllTabPageHeaders;
|
||||||
|
this.TabCtrol.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.TabCtrol.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.TabCtrol.Name = "TabCtrol";
|
||||||
|
this.TabCtrol.Size = new System.Drawing.Size(974, 562);
|
||||||
|
this.TabCtrol.TabIndex = 0;
|
||||||
|
this.TabCtrol.SelectedPageChanged += new DevExpress.XtraTab.TabPageChangedEventHandler(this.TabCtrol_SelectedPageChanged);
|
||||||
|
this.TabCtrol.CloseButtonClick += new System.EventHandler(this.TabCtrol_CloseButtonClick);
|
||||||
|
//
|
||||||
|
// piclogo
|
||||||
|
//
|
||||||
|
this.piclogo.BackgroundImage = global::JJMediSys.Properties.Resources.ic_launcher;
|
||||||
|
this.piclogo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.piclogo.Location = new System.Drawing.Point(2, 1);
|
||||||
|
this.piclogo.Name = "piclogo";
|
||||||
|
this.piclogo.Size = new System.Drawing.Size(47, 45);
|
||||||
|
this.piclogo.TabIndex = 2;
|
||||||
|
this.piclogo.TabStop = false;
|
||||||
|
this.piclogo.MouseHover += new System.EventHandler(this.piclogo_MouseHover);
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.AutoSize = true;
|
||||||
|
this.label1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.label1.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.label1.ForeColor = System.Drawing.SystemColors.Highlight;
|
||||||
|
this.label1.Location = new System.Drawing.Point(44, 3);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(307, 39);
|
||||||
|
this.label1.TabIndex = 3;
|
||||||
|
this.label1.Text = "智能采血终端应用软件";
|
||||||
|
//
|
||||||
|
// ItemimageList
|
||||||
|
//
|
||||||
|
this.ItemimageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ItemimageList.ImageStream")));
|
||||||
|
this.ItemimageList.TransparentColor = System.Drawing.Color.Transparent;
|
||||||
|
this.ItemimageList.Images.SetKeyName(0, "静脉采血.png");
|
||||||
|
this.ItemimageList.Images.SetKeyName(1, "参数设置.png");
|
||||||
|
this.ItemimageList.Images.SetKeyName(2, "发染打包.png");
|
||||||
|
this.ItemimageList.Images.SetKeyName(3, "记录查询.png");
|
||||||
|
this.ItemimageList.Images.SetKeyName(4, "系统设置.png");
|
||||||
|
this.ItemimageList.Images.SetKeyName(5, "液压传感器.png");
|
||||||
|
this.ItemimageList.Images.SetKeyName(6, "统计.png");
|
||||||
|
this.ItemimageList.Images.SetKeyName(7, "模版.png");
|
||||||
|
//
|
||||||
|
// PanelUser
|
||||||
|
//
|
||||||
|
this.PanelUser.Controls.Add(this.BLogOut);
|
||||||
|
this.PanelUser.Controls.Add(this.LabSqlNote);
|
||||||
|
this.PanelUser.Controls.Add(this.BResetPassword);
|
||||||
|
this.PanelUser.Controls.Add(this.LabDoctorName);
|
||||||
|
this.PanelUser.Location = new System.Drawing.Point(1060, 5);
|
||||||
|
this.PanelUser.Name = "PanelUser";
|
||||||
|
this.PanelUser.Size = new System.Drawing.Size(233, 38);
|
||||||
|
this.PanelUser.TabIndex = 6;
|
||||||
|
//
|
||||||
|
// BLogOut
|
||||||
|
//
|
||||||
|
this.BLogOut.BackgroundImage = global::JJMediSys.Properties.Resources.exit;
|
||||||
|
this.BLogOut.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BLogOut.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BLogOut.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BLogOut.Location = new System.Drawing.Point(199, 6);
|
||||||
|
this.BLogOut.Name = "BLogOut";
|
||||||
|
this.BLogOut.Size = new System.Drawing.Size(27, 23);
|
||||||
|
this.BLogOut.TabIndex = 2;
|
||||||
|
this.BLogOut.UseVisualStyleBackColor = true;
|
||||||
|
this.BLogOut.Click += new System.EventHandler(this.BLogOut_Click);
|
||||||
|
//
|
||||||
|
// LabSqlNote
|
||||||
|
//
|
||||||
|
this.LabSqlNote.AutoSize = true;
|
||||||
|
this.LabSqlNote.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabSqlNote.ForeColor = System.Drawing.Color.Red;
|
||||||
|
this.LabSqlNote.Location = new System.Drawing.Point(-21, 4);
|
||||||
|
this.LabSqlNote.Name = "LabSqlNote";
|
||||||
|
this.LabSqlNote.Size = new System.Drawing.Size(449, 26);
|
||||||
|
this.LabSqlNote.TabIndex = 11;
|
||||||
|
this.LabSqlNote.Text = "数据库连接失败,数据无法同步,统计查询功能失效";
|
||||||
|
this.LabSqlNote.Visible = false;
|
||||||
|
//
|
||||||
|
// BResetPassword
|
||||||
|
//
|
||||||
|
this.BResetPassword.BackgroundImage = global::JJMediSys.Properties.Resources.修改密码;
|
||||||
|
this.BResetPassword.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BResetPassword.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BResetPassword.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BResetPassword.Location = new System.Drawing.Point(161, 7);
|
||||||
|
this.BResetPassword.Name = "BResetPassword";
|
||||||
|
this.BResetPassword.Size = new System.Drawing.Size(27, 23);
|
||||||
|
this.BResetPassword.TabIndex = 1;
|
||||||
|
this.BResetPassword.UseVisualStyleBackColor = true;
|
||||||
|
this.BResetPassword.Click += new System.EventHandler(this.BResetPassword_Click);
|
||||||
|
//
|
||||||
|
// LabDoctorName
|
||||||
|
//
|
||||||
|
this.LabDoctorName.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabDoctorName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||||
|
this.LabDoctorName.Location = new System.Drawing.Point(3, 2);
|
||||||
|
this.LabDoctorName.Name = "LabDoctorName";
|
||||||
|
this.LabDoctorName.Size = new System.Drawing.Size(140, 30);
|
||||||
|
this.LabDoctorName.TabIndex = 0;
|
||||||
|
this.LabDoctorName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
||||||
|
//
|
||||||
|
// label2
|
||||||
|
//
|
||||||
|
this.label2.AutoSize = true;
|
||||||
|
this.label2.Location = new System.Drawing.Point(726, 15);
|
||||||
|
this.label2.Name = "label2";
|
||||||
|
this.label2.Size = new System.Drawing.Size(128, 16);
|
||||||
|
this.label2.TabIndex = 7;
|
||||||
|
this.label2.Text = "贴标机连接状态:";
|
||||||
|
//
|
||||||
|
// label3
|
||||||
|
//
|
||||||
|
this.label3.AutoSize = true;
|
||||||
|
this.label3.Location = new System.Drawing.Point(880, 15);
|
||||||
|
this.label3.Name = "label3";
|
||||||
|
this.label3.Size = new System.Drawing.Size(128, 16);
|
||||||
|
this.label3.TabIndex = 8;
|
||||||
|
this.label3.Text = "数据库连接状态:";
|
||||||
|
//
|
||||||
|
// PicStatusDev
|
||||||
|
//
|
||||||
|
this.PicStatusDev.BackgroundImage = global::JJMediSys.Properties.Resources.故障;
|
||||||
|
this.PicStatusDev.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicStatusDev.Location = new System.Drawing.Point(849, 8);
|
||||||
|
this.PicStatusDev.Name = "PicStatusDev";
|
||||||
|
this.PicStatusDev.Size = new System.Drawing.Size(30, 29);
|
||||||
|
this.PicStatusDev.TabIndex = 9;
|
||||||
|
this.PicStatusDev.TabStop = false;
|
||||||
|
//
|
||||||
|
// PicStatusDB
|
||||||
|
//
|
||||||
|
this.PicStatusDB.BackgroundImage = global::JJMediSys.Properties.Resources.故障;
|
||||||
|
this.PicStatusDB.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.PicStatusDB.Location = new System.Drawing.Point(1003, 8);
|
||||||
|
this.PicStatusDB.Name = "PicStatusDB";
|
||||||
|
this.PicStatusDB.Size = new System.Drawing.Size(30, 29);
|
||||||
|
this.PicStatusDB.TabIndex = 10;
|
||||||
|
this.PicStatusDB.TabStop = false;
|
||||||
|
//
|
||||||
|
// StatusFrash
|
||||||
|
//
|
||||||
|
this.StatusFrash.Enabled = true;
|
||||||
|
this.StatusFrash.Interval = 3000;
|
||||||
|
this.StatusFrash.Tick += new System.EventHandler(this.StatusFrash_Tick);
|
||||||
|
//
|
||||||
|
// pictureBox2
|
||||||
|
//
|
||||||
|
this.pictureBox2.BackgroundImage = global::JJMediSys.Properties.Resources.logo;
|
||||||
|
this.pictureBox2.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.pictureBox2.Location = new System.Drawing.Point(359, 5);
|
||||||
|
this.pictureBox2.Name = "pictureBox2";
|
||||||
|
this.pictureBox2.Size = new System.Drawing.Size(328, 38);
|
||||||
|
this.pictureBox2.TabIndex = 12;
|
||||||
|
this.pictureBox2.TabStop = false;
|
||||||
|
//
|
||||||
|
// toolTip1
|
||||||
|
//
|
||||||
|
this.toolTip1.Popup += new System.Windows.Forms.PopupEventHandler(this.toolTip1_Popup);
|
||||||
|
//
|
||||||
|
// MainForm
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(1292, 640);
|
||||||
|
this.Controls.Add(this.pictureBox2);
|
||||||
|
this.Controls.Add(this.PicStatusDB);
|
||||||
|
this.Controls.Add(this.PicStatusDev);
|
||||||
|
this.Controls.Add(this.label3);
|
||||||
|
this.Controls.Add(this.label2);
|
||||||
|
this.Controls.Add(this.PanelUser);
|
||||||
|
this.Controls.Add(this.label1);
|
||||||
|
this.Controls.Add(this.piclogo);
|
||||||
|
this.Controls.Add(this.panelTabpage);
|
||||||
|
this.Controls.Add(this.panelnavbar);
|
||||||
|
this.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.Margin = new System.Windows.Forms.Padding(4);
|
||||||
|
this.Name = "MainForm";
|
||||||
|
this.Text = "九聚智能采血终端应用软件v1.0.9.19";
|
||||||
|
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
|
||||||
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
|
||||||
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
||||||
|
this.panelnavbar.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.NavBarCtrol)).EndInit();
|
||||||
|
this.panelTabpage.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.TabCtrol)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.piclogo)).EndInit();
|
||||||
|
this.PanelUser.ResumeLayout(false);
|
||||||
|
this.PanelUser.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicStatusDev)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.PicStatusDB)).EndInit();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.Panel panelnavbar;
|
||||||
|
private DevExpress.XtraNavBar.NavBarControl NavBarCtrol;
|
||||||
|
private System.Windows.Forms.Panel panelTabpage;
|
||||||
|
private DevExpress.XtraTab.XtraTabControl TabCtrol;
|
||||||
|
private System.Windows.Forms.PictureBox piclogo;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private DevExpress.LookAndFeel.DefaultLookAndFeel defaultLookAndFeel1;
|
||||||
|
private System.Windows.Forms.ImageList ItemimageList;
|
||||||
|
private System.Windows.Forms.Panel PanelUser;
|
||||||
|
private System.Windows.Forms.Button BResetPassword;
|
||||||
|
private System.Windows.Forms.Label LabDoctorName;
|
||||||
|
private System.Windows.Forms.Button BLogOut;
|
||||||
|
private System.Windows.Forms.Label label2;
|
||||||
|
private System.Windows.Forms.Label label3;
|
||||||
|
private System.Windows.Forms.PictureBox PicStatusDev;
|
||||||
|
private System.Windows.Forms.PictureBox PicStatusDB;
|
||||||
|
private System.Windows.Forms.Timer StatusFrash;
|
||||||
|
private System.Windows.Forms.Label LabSqlNote;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox2;
|
||||||
|
private System.Windows.Forms.ToolTip toolTip1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
335
JJMediSys/MainForm.cs
Normal file
@@ -0,0 +1,335 @@
|
|||||||
|
using DevExpress.XtraNavBar;
|
||||||
|
using DevExpress.XtraTab;
|
||||||
|
using log4net;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Linq;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel;
|
||||||
|
using System.Data;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
public partial class MainForm : Form
|
||||||
|
{
|
||||||
|
public static ILog logger = LogManager.GetLogger("WebLogger");
|
||||||
|
public static Size TabPageSize;
|
||||||
|
private static Dictionary<string, XtraTabPage> TabPageDic = new Dictionary<string, XtraTabPage>();
|
||||||
|
public string InJsonStr = "{\"Response\": {\"Groups\": [{\"GroupName\": \"常用功能\",\"Items\": [{\"ItemName\": \"门诊采血\",\"Show\": 1,\"iconindex\":0},{\"ItemName\": \"本地当日打印记录\",\"Show\": 1,\"iconindex\":3},{\"ItemName\": \"记录查询\",\"Show\": 1,\"iconindex\":3},{\"ItemName\": \"数据统计\",\"Show\": 1,\"iconindex\":6}]},{\"GroupName\": \"门诊工作站\",\"Items\": [{\"ItemName\": \"门诊采血\",\"Show\": 1,\"iconindex\":0},{\"ItemName\": \"本地当日打印记录\",\"Show\": 1,\"iconindex\":3},{\"ItemName\": \"记录查询\",\"Show\": 1,\"iconindex\":3},{\"ItemName\": \"数据统计\",\"Show\": 1,\"iconindex\":6}]},{\"GroupName\": \"体检工作站\",\"Items\": [{\"ItemName\": \"体检采血\",\"Show\": 1,\"iconindex\":0},{\"ItemName\": \"体检打包\",\"Show\": 1,\"iconindex\":2},{\"ItemName\": \"标签查询\",\"Show\": 1,\"iconindex\":3}]},{\"GroupName\": \"住院工作站\",\"Items\": [{\"ItemName\": \"住院采血\",\"Show\": 1,\"iconindex\":0},{\"ItemName\": \"住院打包\",\"Show\": 1,\"iconindex\":2},{\"ItemName\": \"标签查询\",\"Show\": 1,\"iconindex\":3}]},{\"GroupName\": \"系统设置\",\"Items\": [{\"ItemName\": \"系统参数设置\",\"Show\": 1,\"iconindex\":4},{\"ItemName\": \"查看传感器状态\",\"Show\": 1,\"iconindex\":5},{\"ItemName\": \"硬件参数控制\",\"Show\": 1,\"iconindex\":1},{\"ItemName\": \"标签设置\",\"Show\": 1,\"iconindex\":7},{\"ItemName\": \"Lis日志查询\",\"Show\": 1,\"iconindex\":3},{\"ItemName\": \"设备事件\",\"Show\": 1,\"iconindex\":3}]}]}}";
|
||||||
|
|
||||||
|
public static XtraTabPage selectedTabPage;
|
||||||
|
public static MainForm MainHandle;
|
||||||
|
public static int DevStat = -1;
|
||||||
|
public static int DBStat = -1;
|
||||||
|
public bool TimeFirstin = true;
|
||||||
|
|
||||||
|
public struct STRGroup
|
||||||
|
{
|
||||||
|
public string GroupName { get; set; }
|
||||||
|
public List<STRItem> Items { get; set; }
|
||||||
|
}
|
||||||
|
public struct STRItem
|
||||||
|
{
|
||||||
|
public string ItemName { get; set; }
|
||||||
|
public int Show { get; set; }
|
||||||
|
public int iconindex { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public MainForm()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MainForm_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
MainHandle = this;
|
||||||
|
PanelUser.Location = new Point(this.Width - PanelUser.Width-20, 10);
|
||||||
|
panelnavbar.Size = new Size((int)(this.Width * 0.1), (int)(this.Height * 0.9));
|
||||||
|
panelnavbar.Location = new Point(2, (int)(this.Height * 0.05));
|
||||||
|
panelTabpage.Size = new Size((int)(this.Width * 0.89), (int)(this.Height * 0.9));
|
||||||
|
panelTabpage.Location = new Point(8+ (int)(this.Width * 0.1), (int)(this.Height * 0.05));
|
||||||
|
TabPageSize = panelTabpage.Size;
|
||||||
|
JObject jObject = (JObject)JsonConvert.DeserializeObject(InJsonStr);
|
||||||
|
List<STRGroup> sTRGroups = (List<STRGroup>)JsonConvert.DeserializeObject<List<STRGroup>>(jObject["Response"]["Groups"].ToString());
|
||||||
|
foreach(STRGroup sTRGroup in sTRGroups)
|
||||||
|
{
|
||||||
|
NavBarGroup Group = new NavBarGroup();
|
||||||
|
//Group.Appearance.Options.UseFont = true;
|
||||||
|
|
||||||
|
// Group.Appearance.Font = new Font("微软雅黑", 13);
|
||||||
|
//Group.Appearance.ForeColor = Color.Red;
|
||||||
|
|
||||||
|
Group.Name = sTRGroup.GroupName;
|
||||||
|
Group.Caption = sTRGroup.GroupName;
|
||||||
|
if(Group.Caption.Equals("常用功能"))
|
||||||
|
Group.Expanded = true;
|
||||||
|
else
|
||||||
|
Group.Expanded = false;
|
||||||
|
|
||||||
|
foreach (STRItem sTRItem in sTRGroup.Items)
|
||||||
|
{
|
||||||
|
if(sTRItem.Show==1)
|
||||||
|
{
|
||||||
|
NavBarItem item = new NavBarItem(sTRItem.ItemName);
|
||||||
|
item.LinkClicked += NavBarCtrol_LinkClicked;
|
||||||
|
item.Appearance.Font = new System.Drawing.Font("Segoe UI", 12F);
|
||||||
|
item.Appearance.Options.UseFont = true;
|
||||||
|
item.ImageOptions.SmallImage = ItemimageList.Images[sTRItem.iconindex];
|
||||||
|
Group.ItemLinks.Add(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
NavBarCtrol.Groups.Add(Group);
|
||||||
|
}
|
||||||
|
AddTabpage(TabCtrol, "系统参数设置", "系统参数设置", "JJMediSys.SystemSet");
|
||||||
|
AddTabpage(TabCtrol, "门诊采血", "门诊采血", "JJMediSys.MZCY");
|
||||||
|
LabDoctorName.Text = Login.nurseDeskInfo.NurseName;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void NavBarCtrol_LinkClicked(object sender, NavBarLinkEventArgs e)
|
||||||
|
{
|
||||||
|
if(e.Link.Caption.Equals("门诊采血"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.MZCY");
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("记录查询"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.DataHistory");
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("数据统计"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.STATS");
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("系统参数设置"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.SystemSet");
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("查看传感器状态"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.SensorStatus");
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("硬件参数控制"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.DevParamSet");
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("本地当日打印记录"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.DaylyHistory");
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("标签设置"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.RecpSetTool");
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("Lis日志查询"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.LisLog");
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (e.Link.Caption.Equals("设备事件"))
|
||||||
|
{
|
||||||
|
AddTabpage(TabCtrol, e.Link.Caption, e.Link.Caption, "JJMediSys.EventLog");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 新增选项卡页
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="tabControl">选项卡控件</param>
|
||||||
|
/// <param name="tabPageName">当期选项卡页name名称</param>
|
||||||
|
/// <param name="tabText">当前选项卡页Text标题</param>
|
||||||
|
/// <param name="newFormName">当前选项卡中的新窗体</param>
|
||||||
|
public void AddTabpage(XtraTabControl tabControl, string tabPageName, string tabText, string newFormName)
|
||||||
|
{
|
||||||
|
if (IsTabpageExsit(tabControl, tabPageName))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
XtraTabPage newPage = new XtraTabPage();
|
||||||
|
newPage.Name = tabPageName;
|
||||||
|
newPage.Text = tabText;
|
||||||
|
newPage.Tooltip = tabPageName;
|
||||||
|
newPage.Controls.Add(AddNewForm(newFormName));
|
||||||
|
tabControl.TabPages.Add(newPage);
|
||||||
|
TabPageDic.Add(tabPageName, newPage);
|
||||||
|
tabControl.SelectedTabPage = newPage;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 移除选项卡页
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="tabControl"></param>
|
||||||
|
/// <param name="tabPageName"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
public void RemoveTabPage(XtraTabControl tabControl, EventArgs e)
|
||||||
|
{
|
||||||
|
DevExpress.XtraTab.ViewInfo.ClosePageButtonEventArgs args = (DevExpress.XtraTab.ViewInfo.ClosePageButtonEventArgs)e;
|
||||||
|
|
||||||
|
string name = args.Page.Tooltip;
|
||||||
|
if (name.Equals("系统参数设置"))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
foreach (XtraTabPage item in tabControl.TabPages)
|
||||||
|
{
|
||||||
|
if (item.Name == name)
|
||||||
|
{
|
||||||
|
tabControl.TabPages.Remove(item);
|
||||||
|
item.Dispose();
|
||||||
|
TabPageDic.Remove(name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 判断选项卡是否已经存在
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="tabControl">选项卡控件</param>
|
||||||
|
/// <param name="tabPageName">选项卡名称</param>
|
||||||
|
/// <returns></returns>
|
||||||
|
private bool IsTabpageExsit(XtraTabControl tabControl, string tabPageName)
|
||||||
|
{
|
||||||
|
foreach (var item in TabPageDic)
|
||||||
|
{
|
||||||
|
if (item.Key == tabPageName)
|
||||||
|
{
|
||||||
|
tabControl.SelectedTabPage = item.Value;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 在选项卡中生成窗体
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="form">窗体名称</param>
|
||||||
|
private Form AddNewForm(string formName)
|
||||||
|
{
|
||||||
|
Form newForm = (Form)Assembly.GetExecutingAssembly().CreateInstance(formName);
|
||||||
|
newForm.FormBorderStyle = FormBorderStyle.None;
|
||||||
|
|
||||||
|
|
||||||
|
newForm.TopLevel = false;
|
||||||
|
//newForm.Parent = ((XtraTabControl)sender).SelectedTabPage;
|
||||||
|
newForm.ControlBox = false;
|
||||||
|
newForm.Dock = DockStyle.Fill;
|
||||||
|
newForm.Visible = true;
|
||||||
|
return newForm;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TabCtrol_CloseButtonClick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
RemoveTabPage(TabCtrol, e);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TabCtrol_SelectedPageChanged(object sender, TabPageChangedEventArgs e)
|
||||||
|
{
|
||||||
|
selectedTabPage = TabCtrol.SelectedTabPage;
|
||||||
|
if(selectedTabPage.Name.Equals("系统参数设置")) //调用一次状态刷新
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BResetPassword_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SetPassword setPassword = new SetPassword();
|
||||||
|
setPassword.ShowDialog();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BLogOut_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
DialogResult result = MessageBox.Show("是否退出当前账号", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
||||||
|
if (result == DialogResult.Yes)
|
||||||
|
{
|
||||||
|
this.Hide();
|
||||||
|
Login.loginhandle.WindowReload();
|
||||||
|
Login.loginhandle.Show();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void WindowReload()
|
||||||
|
{
|
||||||
|
LabDoctorName.Text = Login.nurseDeskInfo.NurseName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool ifWindowOpen(string WindName)
|
||||||
|
{
|
||||||
|
foreach (XtraTabPage item in MainHandle.TabCtrol.TabPages)
|
||||||
|
{
|
||||||
|
if (item.Name == WindName)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
this.Hide();
|
||||||
|
if(ifWindowOpen("门诊采血"))
|
||||||
|
{
|
||||||
|
MZCY.ThreadRun = false;
|
||||||
|
}
|
||||||
|
Thread.Sleep(500);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void StatusFrash_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if(TimeFirstin)
|
||||||
|
{
|
||||||
|
StatusFrash.Interval = 10000;
|
||||||
|
TimeFirstin = false;
|
||||||
|
DoDBMySql.IsConnectionValid();
|
||||||
|
}
|
||||||
|
if(DevStat==-1&&PicStatusDev.BackgroundImage!= JJMediSys.Properties.Resources.故障)
|
||||||
|
{
|
||||||
|
PicStatusDev.BackgroundImage = JJMediSys.Properties.Resources.故障;
|
||||||
|
}else if (DevStat == 0 && PicStatusDev.BackgroundImage != JJMediSys.Properties.Resources.正常)
|
||||||
|
{
|
||||||
|
PicStatusDev.BackgroundImage = JJMediSys.Properties.Resources.正常;
|
||||||
|
}
|
||||||
|
if(DBStat==-1)
|
||||||
|
{
|
||||||
|
DoDBMySql.IsConnectionValid();
|
||||||
|
}
|
||||||
|
if (DBStat == -1 && PicStatusDB.BackgroundImage != JJMediSys.Properties.Resources.故障)
|
||||||
|
{
|
||||||
|
LabSqlNote.Visible = true;
|
||||||
|
PicStatusDB.BackgroundImage = JJMediSys.Properties.Resources.故障;
|
||||||
|
}
|
||||||
|
else if (DBStat == 0 && PicStatusDB.BackgroundImage != JJMediSys.Properties.Resources.正常)
|
||||||
|
{
|
||||||
|
LabSqlNote.Visible = false;
|
||||||
|
PicStatusDB.BackgroundImage = JJMediSys.Properties.Resources.正常;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void toolTip1_Popup(object sender, PopupEventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void piclogo_MouseHover(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
toolTip1.SetToolTip(piclogo, "九聚智能采血终端应用软件v2.0");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
296
JJMediSys/MainForm.resx
Normal file
@@ -0,0 +1,296 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<metadata name="NavBarCtrol.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="TabCtrol.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>140, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="defaultLookAndFeel1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>242, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="ItemimageList.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>419, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<data name="ItemimageList.ImageStream" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>
|
||||||
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
|
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAc
|
||||||
|
EQAAAk1TRnQBSQFMAgEBCAEAAdgBAAHYAQABEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
|
||||||
|
AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
|
||||||
|
AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
|
||||||
|
AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
|
||||||
|
AWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYBMwIAAmYCAAFm
|
||||||
|
AZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgACmQIAAZkBzAIAAZkB/wIAAcwDAAHMATMCAAHM
|
||||||
|
AWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZAgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQABZgEA
|
||||||
|
ATMBAAGZAQABMwEAAcwBAAEzAQAB/wEAAf8BMwIAAzMBAAIzAWYBAAIzAZkBAAIzAcwBAAIzAf8BAAEz
|
||||||
|
AWYCAAEzAWYBMwEAATMCZgEAATMBZgGZAQABMwFmAcwBAAEzAWYB/wEAATMBmQIAATMBmQEzAQABMwGZ
|
||||||
|
AWYBAAEzApkBAAEzAZkBzAEAATMBmQH/AQABMwHMAgABMwHMATMBAAEzAcwBZgEAATMBzAGZAQABMwLM
|
||||||
|
AQABMwHMAf8BAAEzAf8BMwEAATMB/wFmAQABMwH/AZkBAAEzAf8BzAEAATMC/wEAAWYDAAFmAQABMwEA
|
||||||
|
AWYBAAFmAQABZgEAAZkBAAFmAQABzAEAAWYBAAH/AQABZgEzAgABZgIzAQABZgEzAWYBAAFmATMBmQEA
|
||||||
|
AWYBMwHMAQABZgEzAf8BAAJmAgACZgEzAQADZgEAAmYBmQEAAmYBzAEAAWYBmQIAAWYBmQEzAQABZgGZ
|
||||||
|
AWYBAAFmApkBAAFmAZkBzAEAAWYBmQH/AQABZgHMAgABZgHMATMBAAFmAcwBmQEAAWYCzAEAAWYBzAH/
|
||||||
|
AQABZgH/AgABZgH/ATMBAAFmAf8BmQEAAWYB/wHMAQABzAEAAf8BAAH/AQABzAEAApkCAAGZATMBmQEA
|
||||||
|
AZkBAAGZAQABmQEAAcwBAAGZAwABmQIzAQABmQEAAWYBAAGZATMBzAEAAZkBAAH/AQABmQFmAgABmQFm
|
||||||
|
ATMBAAGZATMBZgEAAZkBZgGZAQABmQFmAcwBAAGZATMB/wEAApkBMwEAApkBZgEAA5kBAAKZAcwBAAKZ
|
||||||
|
Af8BAAGZAcwCAAGZAcwBMwEAAWYBzAFmAQABmQHMAZkBAAGZAswBAAGZAcwB/wEAAZkB/wIAAZkB/wEz
|
||||||
|
AQABmQHMAWYBAAGZAf8BmQEAAZkB/wHMAQABmQL/AQABzAMAAZkBAAEzAQABzAEAAWYBAAHMAQABmQEA
|
||||||
|
AcwBAAHMAQABmQEzAgABzAIzAQABzAEzAWYBAAHMATMBmQEAAcwBMwHMAQABzAEzAf8BAAHMAWYCAAHM
|
||||||
|
AWYBMwEAAZkCZgEAAcwBZgGZAQABzAFmAcwBAAGZAWYB/wEAAcwBmQIAAcwBmQEzAQABzAGZAWYBAAHM
|
||||||
|
ApkBAAHMAZkBzAEAAcwBmQH/AQACzAIAAswBMwEAAswBZgEAAswBmQEAA8wBAALMAf8BAAHMAf8CAAHM
|
||||||
|
Af8BMwEAAZkB/wFmAQABzAH/AZkBAAHMAf8BzAEAAcwC/wEAAcwBAAEzAQAB/wEAAWYBAAH/AQABmQEA
|
||||||
|
AcwBMwIAAf8CMwEAAf8BMwFmAQAB/wEzAZkBAAH/ATMBzAEAAf8BMwH/AQAB/wFmAgAB/wFmATMBAAHM
|
||||||
|
AmYBAAH/AWYBmQEAAf8BZgHMAQABzAFmAf8BAAH/AZkCAAH/AZkBMwEAAf8BmQFmAQAB/wKZAQAB/wGZ
|
||||||
|
AcwBAAH/AZkB/wEAAf8BzAIAAf8BzAEzAQAB/wHMAWYBAAH/AcwBmQEAAf8CzAEAAf8BzAH/AQAC/wEz
|
||||||
|
AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm
|
||||||
|
AQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gBAAHw
|
||||||
|
AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD//8A/wD/AP8AHAAC/wcA
|
||||||
|
D7IB8wEADPMIAAP0AQAE9AcAAfQB2wTTAdsB9AQAAbIC9AHzAbsBGQEJAboBGQG7AQkB9AIJAfMB/wHz
|
||||||
|
ArIKswHzBQAB/wH0A/MB8AHxAYsCtAH0BQAB8wTTAdsD0wHzAwABsgH0AQAB/wG7AfMBGQG6AfQCCQH/
|
||||||
|
AgkB/wEAAfMBuwEAAQkCuwEJAf8BCQG7AQkBAAG7AfMB9AQAAfQD8wG8AosBtAGuArQB9AMAARkD0wHU
|
||||||
|
AgAB2wPTARkCAAGyAfQBAAH/AbsB8wEZAboB9AIJAf8CCQH/AQAB8wG7AQABsgIJAboB9AG6AQkBsgEA
|
||||||
|
ArsBswHzAgABuwS1AbQBiwG1AZEBtAGLAbQB9AIAAfME0wHaAgABCQTTAfMBAAGyAfQBAAH/AfIB/wEZ
|
||||||
|
AboB9AIJAf8CCQH/AQAB8wG7AQABsgIAAbsB8wG7AQABsgEAAbsB8wG7AfMBAAH0AYsE/wG0AdwBCQGL
|
||||||
|
ArQBiwH0AgAB2wXTAdwBCQXTAdsBAAGyAfQEAAEZAboB9AIJAf8CCQH/AQAB8wG7AQABsgIJAboB8wG7
|
||||||
|
AQABsgEAAbsB8wG7AfMBAAH0AYsF/wG0AdwBCQG1AbQB8QH0AgAG0wHbAQkG0wEAAbIB9AQAARkBugH0
|
||||||
|
AvMB/wIJAf8BAAHzAbsBAAQJAfMBuwEAAbIBAAEJAfMBuwHzAQAB9AKLAf8BtQL/ArQB3AKLAfECAAH/
|
||||||
|
BtMB2wEJBtMB/wGyAfQEAAHzAbsB9AMAAgkB/wEAAfMBuwEABLIB8wG7AQABsgEAAQkB8wG7AfMBAAH0
|
||||||
|
AosFtQH/ArQB8QMAAf8G0wHbAQkG0wH/AbIB9AEAAf8B9AEAAv8BAAL/AQACCQH/AQAB8wG7AQABsgIA
|
||||||
|
AbsB8wG7AQABsgEAAQkB8wG7AfMBAAH0AYsJ/wG1BAAG0wHbAQkG0wEAAbIB9AEAAfQBswEZAgAB/wEJ
|
||||||
|
AfIB/wEZAfMB/wEAAfMBuwEAAbICAAG7AfQBuwEAAbIBAAEJAfMBuwHzAQAB9AKLAfACtQX/AZEEAAHb
|
||||||
|
AtMC2gTTAdQBCQLTAdsBAAGyAfQBAAH/AQkBswEZAf8BCQK6AfMB/wMAAfMBuwEAAbICugGzAfQBswG6
|
||||||
|
AbIBAAEJAfMBuwHzAQAB9AGLCLQBGQGLBAAB8wHTAdoB/wHbA9MC2wH/AQkB0wHzAQABsgH0AgAB/wEJ
|
||||||
|
AboBCQG6ARkBCQG6AfQB/wIAAfMBuwEAAf8C8wH0AQAB9AHzAf8BAAEJAfMBuwHzAQAB9AGLBtwBuwG0
|
||||||
|
AdwBiwUAARkB0wLbAfMB2wMJAdsB0wEZAgABsgH0AwAB/wG7AbMBCQL/AQkBugH/ARkB9AHzA7MGugO7
|
||||||
|
AfMBuwHzAQAB9AqLAa4GAAHzAdMD2wEJAdMB2wHTAfMDAAEZBQAB9AHzAf8CAAH/AbsBugGzAQkBAAH0
|
||||||
|
AfMBuwnzAQABuwHzAgAB/wn0CAAB9AHbBNMB2wH0EAAB9AG6AbMBCQIAAfMKswKyAfMXAAL/EgAB/wG7
|
||||||
|
AbMBsgEZAwAM8wMAAfMB8AHxAf8fAAL/AfMI/wEAARkB2wrUAQkB/wIAAQcBFAHvAewB6wHyDAAB/wH0
|
||||||
|
AgAB8wH/DAAB9APVAfMH/w3UARkBAAHyARQDAAHyARQB8gsAAfABvAIAAewB/wHxAe0B9wHsAf8FAAH/
|
||||||
|
AdUBCQH0AdwB9AEJAdUB8wT/AQkN1AHbAQABvAH3BAAB8gEUAfIJAAH/AewBbQH/AQAB7AH0AewB8wHv
|
||||||
|
AfMB7wMAAf8B3AHdA/8B3AL/AfQBCQHWAfMC/wEJAtQB2wcAAfMC1AHbAQAB8QHsBQAB8gEUAfIIAAHz
|
||||||
|
Ae0B9wHyAQAB7AEHAfAB7wEAAfIBkgH0AQAB3AHdAf8CAAL/AdwE/wH0AQkB1QHzAQkD1AfbAdUC1AHb
|
||||||
|
AQAB/wEUAfcBugGQAoEBuQGRARQB8gcAAf8B7AFtAf8BAAHsAfQB7AH/AQcB8wH3AgABGQQAAv8B3Ab/
|
||||||
|
AQkB/wEJAtQB2wIZAfMB9AP/AfMC1AHbAgAB8AEUAfABBwEUA/QBvAEUAfIHAAHwAbwCAAHsAf8B8AFt
|
||||||
|
AewBbQH0AgABGQIAAf8BAAL/AdwG/wEJAf8BCQPUCAkC1AHbAwAB8AEUAfQB/wEAAfcBvAEAAfIBFAHy
|
||||||
|
BgAB8AG8AgAB7AH/AgAB9AQAAd0CAAEaAQAC/wHcBv8BCQH/AQkC1AHVCAkC1AHbBAAB8AEUAfMBAAHv
|
||||||
|
AQcCAAHyARQB8gH3AQcDAAHwAbwCAAHsAf8CAAFtBAAB8wIAARoBAAH/ARkB1QEZBf8BCQH/AQkN1AHb
|
||||||
|
BQAB8AEUAfMFAAHyARQB9wQAAfABvAIAAesB9AIAAW0EAAHzAgABGgHzAdUBCQHzAQkB1QEZA/8BCQH/
|
||||||
|
AQkF1AIJBtQB2wYAAfABFAHyAwAB8gEUAfcFAAHwAbwBAAEHAe8BbQIAAW0EAAHdAQAB8QGTAQkF/wEZ
|
||||||
|
AdUBGQH/AQkB/wEJBNQBCQL/AQkF1AHbBwAB8QEUAfIBAAHyARQB9wYAAfABvAEAAQcB7AHqAgABbQQA
|
||||||
|
AdwB1gHzAf8BGQHVARkFAAHzAdYB3AEAAQkE1AEJAtUB/wEJBNQB2wgAAfEBFAHyARQB9wcAAfABvAIA
|
||||||
|
AesB9AIAAW0EAAHWAdUB/wMAAfMB3AHdAwAB/wLVAf8BCQfUAdUB/wHbA9QB2wkAAfIBFAH3CAAC8gIA
|
||||||
|
Ae8B/wIAAfcFAAH/AdUB3AH/AwAB9AEJAtwB1QH0AgABCQ3UAdsJAAL3GQAB/wHVAd0B/wEAAf8BCQHV
|
||||||
|
Af8EAAH/DdQBGQkAAQccAAH/AdUB1gHVAf8HAAEZAdsK1AEJAf8BAAFCAU0BPgcAAT4DAAEoAwABQAMA
|
||||||
|
ATADAAEBAQABAQUAAYABARYAA/+BAAL/Af4BfwIAAYABBwH4AYcB8AEPAwABAwHgAQMB4AEHASABAQEg
|
||||||
|
AREB4AEBAcEBgwEgAQEBIAEQAcABAQKBASABAQEsAVABgAEBAYABAQE8AQEBIAFQAYABAQGAAQEBPAEB
|
||||||
|
ASABUAGAAQMCAAE8AXEBIAFQAYABBwIAASQBkQEsAVABgAEHAYABAQEjAQEBLAFQAYABBwGAAQEBIAEH
|
||||||
|
ASABEAGAAQcBgAEBATABAwEhARABgAEHAcABAwE4AwABgAEHAeABBwF8AWABgAEEAcABDwHwAQ8B/wHw
|
||||||
|
AcABAAL/Af4BfwH/AuABAQHDA/8B+AEAAYABAQGBAf8B5gF/AfgCAAEBATgB/wHmAQMB4AIAAQEBPAF/
|
||||||
|
AcIBAwGAAQABDwHhAT4BPwHCAREBGAIAAQEBAAEfAcIBAwF4AgABAQGAAQ8B5gEDAWgCAAEBAcIBRwHm
|
||||||
|
AW8BaAIAAQEB4gFgAeYBbwFoAgABAQLxAeYBbwFgAgABAQH4AeMB5AFvAUACAAEBAfwBRwHkAW8BAQHx
|
||||||
|
AQABAQH+AQ8B5gFvARwBcAEAAQEB/wEfAeYBbwGHAQMBAAEBAf8BPwL/AeEBDwEAAQEB/wF/Av8B+AE/
|
||||||
|
AYABAQs=
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
<metadata name="StatusFrash.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>554, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>673, 17</value>
|
||||||
|
</metadata>
|
||||||
|
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||||
|
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>
|
||||||
|
AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACk1654jMyY/5PP
|
||||||
|
nvGTz57xk8+e8ZPPnvGCyI//0+zYowAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALDc
|
||||||
|
uTKPzpv/kc+d/5LPnv+Sz57/ks+e/3/Hjf+03rz1////EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAJfRo8+OzZv/ks+e/5LPnv+Sz57/hMmR/6ras/////9eAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAo9aufovMmP+Sz57/ks+e/5DPnv+MyZL/xuDA/////7UAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC03sUwlNGp/5TRpf+Rz53/o9Gk/4XIjf992LP/oe/o/7bz
|
||||||
|
6xgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACLyX/TisuU/6fVsf98zJT/KcB3/wbJ
|
||||||
|
oP8AxqL/GNW5YgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIXDWIl4uUr/gcmE/x3C
|
||||||
|
fP8UxpD/H9O6/xrNq/8m1La5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlM50PHTA
|
||||||
|
Sf9CsDr/Gbl9/x3Ywv8h0LH/H8+v/x/Qr/893sgcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAlb9f5XyZPv9bm1j/HtO3/x3Ss/8g0LD/Gs2r/zLZv24AAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAADwsHqVtZJT/2mON/84wJP/FNi//yDQsP8ezq3/JNO0xQAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAMmAABrFbABYxmQAYs15GbXXnF7/i5JB/xyze/8G177/HM+v/wbKpv8AyKP/ZeTTJgAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAMh8AEK/bADFumMA/7lhAP+4XgD/slIA/9F7KP/dmVP/YMOY/wnZv/8Gyqf/H9Cw/5/r
|
||||||
|
3P////96AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAANOVIAa9ZQC1uF4A/7heAP+6YwD/u2QA/7lkAP/BYgD/zFMA/+mXP///////7P///8n0
|
||||||
|
7P/x/Pr//////////88AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAADpyGgWy4Ug57BNAP+5YQD/vGUA/7tkAP+4ZAD/ymQA/8RkA/9zUS3/dYmb/7bh
|
||||||
|
///49f///////////////////////////ywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAA58ZqAtmjPdfYoDr/yIAa/7VYAP+2WQD/uF8A/8FeAP+7XwD/SmSH/yVv
|
||||||
|
0/8+e8v/O5Ht/0+f9v/N5///////////////////////fgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADdrEmb05Qs/9iiPP/cqEL/z44o/8JzDv+9aAT/1GoA/3Ru
|
||||||
|
af8ndNv/Wnyv/1d3qP9gnuT/QJ7//22jx///2mj///PK///////////TAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA47paNNWZMv/XnTf/1503/9eeOf/cqEL/26ZA/9qe
|
||||||
|
NP/dni//YX6l/0Vzuv9Qdav/UnKk/1WZ8P9srun/o5gg/9meAP/3uQf//vrp//////////82AAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOS/YQLcqkad1Jcv/9efOf/Xnjj/1544/9ee
|
||||||
|
OP/YoDr/2580/96iNft0i6enWYbFemGFtq1Qb6H/S5P0/3euz/+xlwD/2KYA//OtAP/88dL/////////
|
||||||
|
/4sAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5rNQRuKcM+fnlyn/5pou/92c
|
||||||
|
NP/Xnjj/1p03/9igOf/eq0rp78RhHgAAAAAAAAAAAAAAAHGQuCpfoerxPJr//4egiP//zBD//eSD////
|
||||||
|
////////////1wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADqpDp61503/8Si
|
||||||
|
RP/KokH/5Jov//yTHv/qoDX/z5Yx/9iaGz4AAAAAAAAAAAAAAAAAAAAAAAAAAGy3+05PnvT/1e3/////
|
||||||
|
////////////////////////////GgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAErE
|
||||||
|
lJk3yqL/IdCw/yXPrf8/yJz/er58/9CVMv/bXQDTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz/
|
||||||
|
/uP46///pVn3/7Nq7//v7fz/sNv6//D3/v////80AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAABdbAnw3Vvf8V07f/E9O4/wXYwv8A4tH/LL2m/6R/J8UAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAA////18SJ8P9vAN3/fwLj/8Gl+f92zvn/4+/8/////zgAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAk0rOLH9Cw/yDQsP8g0LD/H9Gw/yHOrf8kyrv/MMq682nTwgwAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAACHs/yA59f//v9P6/7BB5/+mXfP/8uf5/////////v//oOH7RgAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAC/XvWIg0LD9H8+v/yDQsP8e0bD/Is+w/zvAp/8wwKn/MOHtkQAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAPv/owDc//9H6v///////9OftP+SH07/+LC8/8T8//8AjvLFAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOt3FJCXTtMUbzqz/INCw/x/QsP8e0bD/N8Oq/z2/
|
||||||
|
qP8ezsP/f5FOp+RzACbju1oM/7ImKniqm7UAov//ALv6/2z3////////vHOT/2IAEv/Lfpz/////vyy7
|
||||||
|
+AYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9rAaBnMqf8g0LD/INCw/xvT
|
||||||
|
sf8syKn/RrSf/yTRsv8+1Yf/9pEI//+mCv+rkFT/AFji/xlg6f8Ia/D/tNj6///////16vL/587K////
|
||||||
|
9/////9UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKM6r3R/J
|
||||||
|
n/8ky6L/I8uk/x3Rrv8r1bT/RbC7/2R70f95nJn/WaSX/y2D1f8HaPj/L4fs/wJn7f9uo/T/////////
|
||||||
|
///q1///9N3/ywAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAo6eVIEN7W/xTg1/8U4t//DOrx/wD///9Kie3/rwDq/xxy/v8AuP//D5n7/xxu7/8Uau7/FnHt/7na
|
||||||
|
+////////////8Bo7f+IPOlWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAS9/92AvL//wbz//8K9f//A/b//w279/8ygO3/FJ70/w6o9/8Nqfb/D5Xy/wBz
|
||||||
|
7v9cxvj/7LX2/6FJ6f//+v7/3fv/agKg9FYAtfYOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAT8f1sCe38/wn1/v8K1fb/BM7w/wDh9f8No/b/EqD0/xCk
|
||||||
|
9P8QrPX/Aqj1/yfT+v+lc+//dQDd///i/FoAAAAAALf2ICPC+AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY8v0oDvX+zwfS9f8Ew+//DKzz/xGe
|
||||||
|
9P8QpfT/EKT0/w6h9P8LoPT/AJnz/8Ly/cP8vfgiAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEN/3OA7A
|
||||||
|
85cUo/XREaT07xCk9PkRpfTtE6j1zRSs9ZEBrfYwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
||||||
|
AAAAAAAAAAAAAAAAAAAAAAAA//gP///4D///+A////wH///8B////Af///wD///+A////gP///4B///+
|
||||||
|
Af//4AH//4AA//8AAP/+AAD//AAAf/wAAH/4AQA/+AfAP/gP4D/wD+A/8A/gP/AP4D/4B8Af+AOAP/wA
|
||||||
|
AH/8AAB//gAA//8AAf//gAP//8AH///wH/8=
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
17
JJMediSys/MyFlowLayoutPanel.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
class MyFlowLayoutPanel : FlowLayoutPanel
|
||||||
|
{
|
||||||
|
protected override System.Drawing.Point ScrollToControl(Control activeControl)
|
||||||
|
{
|
||||||
|
return DisplayRectangle.Location;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
145
JJMediSys/MyMessageBox.Designer.cs
generated
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
namespace JJMediSys
|
||||||
|
{
|
||||||
|
partial class MyMessageBox
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Required designer variable.
|
||||||
|
/// </summary>
|
||||||
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing && (components != null))
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#region Windows Form Designer generated code
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.components = new System.ComponentModel.Container();
|
||||||
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||||
|
this.LabTitle = new System.Windows.Forms.Label();
|
||||||
|
this.LabMsg = new System.Windows.Forms.Label();
|
||||||
|
this.BYes = new System.Windows.Forms.Button();
|
||||||
|
this.BNo = new System.Windows.Forms.Button();
|
||||||
|
this.TimeDelay = new System.Windows.Forms.Timer(this.components);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// pictureBox1
|
||||||
|
//
|
||||||
|
this.pictureBox1.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.pictureBox1.BackgroundImage = global::JJMediSys.Properties.Resources.close;
|
||||||
|
this.pictureBox1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.pictureBox1.Location = new System.Drawing.Point(544, 12);
|
||||||
|
this.pictureBox1.Name = "pictureBox1";
|
||||||
|
this.pictureBox1.Size = new System.Drawing.Size(30, 29);
|
||||||
|
this.pictureBox1.TabIndex = 0;
|
||||||
|
this.pictureBox1.TabStop = false;
|
||||||
|
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||||
|
//
|
||||||
|
// LabTitle
|
||||||
|
//
|
||||||
|
this.LabTitle.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabTitle.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabTitle.ForeColor = System.Drawing.Color.Orange;
|
||||||
|
this.LabTitle.Location = new System.Drawing.Point(43, 27);
|
||||||
|
this.LabTitle.Name = "LabTitle";
|
||||||
|
this.LabTitle.Size = new System.Drawing.Size(495, 40);
|
||||||
|
this.LabTitle.TabIndex = 1;
|
||||||
|
this.LabTitle.Text = "提示";
|
||||||
|
this.LabTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// LabMsg
|
||||||
|
//
|
||||||
|
this.LabMsg.BackColor = System.Drawing.Color.Transparent;
|
||||||
|
this.LabMsg.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.LabMsg.ForeColor = System.Drawing.Color.LightSeaGreen;
|
||||||
|
this.LabMsg.Location = new System.Drawing.Point(12, 79);
|
||||||
|
this.LabMsg.Name = "LabMsg";
|
||||||
|
this.LabMsg.Size = new System.Drawing.Size(553, 61);
|
||||||
|
this.LabMsg.TabIndex = 2;
|
||||||
|
this.LabMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||||
|
//
|
||||||
|
// BYes
|
||||||
|
//
|
||||||
|
this.BYes.BackgroundImage = global::JJMediSys.Properties.Resources.Bt1;
|
||||||
|
this.BYes.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BYes.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BYes.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BYes.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BYes.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.BYes.Location = new System.Drawing.Point(358, 143);
|
||||||
|
this.BYes.Name = "BYes";
|
||||||
|
this.BYes.Size = new System.Drawing.Size(146, 50);
|
||||||
|
this.BYes.TabIndex = 3;
|
||||||
|
this.BYes.Text = "是";
|
||||||
|
this.BYes.UseVisualStyleBackColor = true;
|
||||||
|
this.BYes.Click += new System.EventHandler(this.BYes_Click);
|
||||||
|
//
|
||||||
|
// BNo
|
||||||
|
//
|
||||||
|
this.BNo.BackgroundImage = global::JJMediSys.Properties.Resources.Bt2;
|
||||||
|
this.BNo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.BNo.FlatAppearance.BorderSize = 0;
|
||||||
|
this.BNo.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||||
|
this.BNo.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
|
this.BNo.ForeColor = System.Drawing.Color.White;
|
||||||
|
this.BNo.Location = new System.Drawing.Point(72, 143);
|
||||||
|
this.BNo.Name = "BNo";
|
||||||
|
this.BNo.Size = new System.Drawing.Size(146, 50);
|
||||||
|
this.BNo.TabIndex = 4;
|
||||||
|
this.BNo.Text = "否";
|
||||||
|
this.BNo.UseVisualStyleBackColor = true;
|
||||||
|
this.BNo.Click += new System.EventHandler(this.BNo_Click);
|
||||||
|
//
|
||||||
|
// TimeDelay
|
||||||
|
//
|
||||||
|
this.TimeDelay.Interval = 1000;
|
||||||
|
this.TimeDelay.Tick += new System.EventHandler(this.TimeDelay_Tick);
|
||||||
|
//
|
||||||
|
// MyMessageBox
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.BackgroundImage = global::JJMediSys.Properties.Resources.Background5;
|
||||||
|
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
|
||||||
|
this.ClientSize = new System.Drawing.Size(577, 205);
|
||||||
|
this.Controls.Add(this.BNo);
|
||||||
|
this.Controls.Add(this.BYes);
|
||||||
|
this.Controls.Add(this.LabMsg);
|
||||||
|
this.Controls.Add(this.LabTitle);
|
||||||
|
this.Controls.Add(this.pictureBox1);
|
||||||
|
this.DoubleBuffered = true;
|
||||||
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
|
||||||
|
this.Name = "MyMessageBox";
|
||||||
|
this.Text = "MyMessageBox";
|
||||||
|
this.TopMost = true;
|
||||||
|
this.Load += new System.EventHandler(this.MyMessageBox_Load);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
private System.Windows.Forms.PictureBox pictureBox1;
|
||||||
|
private System.Windows.Forms.Label LabTitle;
|
||||||
|
private System.Windows.Forms.Label LabMsg;
|
||||||
|
private System.Windows.Forms.Button BYes;
|
||||||
|
private System.Windows.Forms.Button BNo;
|
||||||
|
private System.Windows.Forms.Timer TimeDelay;
|
||||||
|
}
|
||||||
|
}
|
||||||
75
JJMediSys/MyMessageBox.cs
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
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 JJMediSys
|
||||||
|
{
|
||||||
|
public partial class MyMessageBox : Form
|
||||||
|
{
|
||||||
|
public int DelayTime = 0;
|
||||||
|
public string Titlestr="";
|
||||||
|
public string Notestr = "";
|
||||||
|
public MessageBoxButtons boxButtons;
|
||||||
|
public MyMessageBox(MessageBoxButtons messageBoxButtons , string Title,string Note,int Time)
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
if(Time!=0)
|
||||||
|
{
|
||||||
|
DelayTime = Time;
|
||||||
|
TimeDelay.Enabled = true;
|
||||||
|
}
|
||||||
|
Titlestr = Title;
|
||||||
|
Notestr = Note;
|
||||||
|
boxButtons = messageBoxButtons;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MyMessageBox_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
LabTitle.Text = Titlestr;
|
||||||
|
LabMsg.Text = Notestr;
|
||||||
|
this.CenterToScreen();
|
||||||
|
if (boxButtons!= MessageBoxButtons.YesNo)
|
||||||
|
{
|
||||||
|
BYes.Visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BYes_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TimeDelay.Enabled = false;
|
||||||
|
DialogResult = DialogResult.Yes;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void BNo_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TimeDelay.Enabled = false;
|
||||||
|
DialogResult = DialogResult.No;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void pictureBox1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
TimeDelay.Enabled = false;
|
||||||
|
DialogResult = DialogResult.No;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TimeDelay_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
DelayTime--;
|
||||||
|
if (DelayTime < 0)
|
||||||
|
{
|
||||||
|
TimeDelay.Enabled = false;
|
||||||
|
DialogResult = DialogResult.No;
|
||||||
|
this.Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||