Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 2fa3565f
由
LN
编写于
2019-11-02 11:14:39 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
57867627
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
51 行增加
和
15 行删除
source/AssemblyLineClient/FrmAbout.Designer.cs
source/AssemblyLineClient/FrmAbout.cs
source/AssemblyLineClient/FrmBase.cs
source/AssemblyLineClient/FrmLineStore.cs
source/AssemblyLineClient/FrmAbout.Designer.cs
查看文件 @
2fa3565
...
...
@@ -32,6 +32,8 @@
this
.
btnNext
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
lblVersion
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblTime
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
lblCodeName
=
new
System
.
Windows
.
Forms
.
Label
();
this
.
btnCopy
=
new
System
.
Windows
.
Forms
.
Button
();
this
.
SuspendLayout
();
//
// btnNext
...
...
@@ -39,7 +41,7 @@
this
.
btnNext
.
Anchor
=
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
;
this
.
btnNext
.
FlatStyle
=
System
.
Windows
.
Forms
.
FlatStyle
.
Flat
;
this
.
btnNext
.
Font
=
new
System
.
Drawing
.
Font
(
"微软雅黑"
,
14.25F
,
System
.
Drawing
.
FontStyle
.
Regular
,
System
.
Drawing
.
GraphicsUnit
.
Point
,
((
byte
)(
134
)));
this
.
btnNext
.
Location
=
new
System
.
Drawing
.
Point
(
152
,
113
);
this
.
btnNext
.
Location
=
new
System
.
Drawing
.
Point
(
210
,
140
);
this
.
btnNext
.
Name
=
"btnNext"
;
this
.
btnNext
.
Size
=
new
System
.
Drawing
.
Size
(
120
,
45
);
this
.
btnNext
.
TabIndex
=
275
;
...
...
@@ -51,9 +53,9 @@
//
this
.
lblVersion
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblVersion
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
3
3
);
this
.
lblVersion
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
3
6
);
this
.
lblVersion
.
Name
=
"lblVersion"
;
this
.
lblVersion
.
Size
=
new
System
.
Drawing
.
Size
(
413
,
23
);
this
.
lblVersion
.
Size
=
new
System
.
Drawing
.
Size
(
529
,
23
);
this
.
lblVersion
.
TabIndex
=
276
;
this
.
lblVersion
.
Text
=
"版本号:1.1.0000.0000"
;
this
.
lblVersion
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
...
...
@@ -62,18 +64,41 @@
//
this
.
lblTime
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblTime
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
63
);
this
.
lblTime
.
Location
=
new
System
.
Drawing
.
Point
(
81
,
66
);
this
.
lblTime
.
Name
=
"lblTime"
;
this
.
lblTime
.
Size
=
new
System
.
Drawing
.
Size
(
413
,
23
);
this
.
lblTime
.
Size
=
new
System
.
Drawing
.
Size
(
379
,
23
);
this
.
lblTime
.
TabIndex
=
277
;
this
.
lblTime
.
Text
=
"更新时间:0000-00-00 00:00:00"
;
this
.
lblTime
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// lblCodeName
//
this
.
lblCodeName
.
Anchor
=
((
System
.
Windows
.
Forms
.
AnchorStyles
)(((
System
.
Windows
.
Forms
.
AnchorStyles
.
Top
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Left
)
|
System
.
Windows
.
Forms
.
AnchorStyles
.
Right
)));
this
.
lblCodeName
.
Location
=
new
System
.
Drawing
.
Point
(
12
,
100
);
this
.
lblCodeName
.
Name
=
"lblCodeName"
;
this
.
lblCodeName
.
Size
=
new
System
.
Drawing
.
Size
(
529
,
23
);
this
.
lblCodeName
.
TabIndex
=
278
;
this
.
lblCodeName
.
Text
=
"版本号:1.1.0000.0000"
;
this
.
lblCodeName
.
TextAlign
=
System
.
Drawing
.
ContentAlignment
.
MiddleCenter
;
//
// btnCopy
//
this
.
btnCopy
.
Location
=
new
System
.
Drawing
.
Point
(
466
,
64
);
this
.
btnCopy
.
Name
=
"btnCopy"
;
this
.
btnCopy
.
Size
=
new
System
.
Drawing
.
Size
(
75
,
25
);
this
.
btnCopy
.
TabIndex
=
279
;
this
.
btnCopy
.
Text
=
"复制"
;
this
.
btnCopy
.
UseVisualStyleBackColor
=
true
;
this
.
btnCopy
.
Click
+=
new
System
.
EventHandler
(
this
.
btnCopy_Click
);
//
// FrmAbout
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
7F
,
17F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
437
,
186
);
this
.
ClientSize
=
new
System
.
Drawing
.
Size
(
553
,
222
);
this
.
Controls
.
Add
(
this
.
btnCopy
);
this
.
Controls
.
Add
(
this
.
lblCodeName
);
this
.
Controls
.
Add
(
this
.
lblTime
);
this
.
Controls
.
Add
(
this
.
lblVersion
);
this
.
Controls
.
Add
(
this
.
btnNext
);
...
...
@@ -91,5 +116,7 @@
private
System
.
Windows
.
Forms
.
Button
btnNext
;
private
System
.
Windows
.
Forms
.
Label
lblVersion
;
private
System
.
Windows
.
Forms
.
Label
lblTime
;
private
System
.
Windows
.
Forms
.
Label
lblCodeName
;
private
System
.
Windows
.
Forms
.
Button
btnCopy
;
}
}
\ No newline at end of file
source/AssemblyLineClient/FrmAbout.cs
查看文件 @
2fa3565
...
...
@@ -14,7 +14,7 @@ namespace OnlineStore.AssemblyLine
{
internal
partial
class
FrmAbout
:
FrmBase
{
internal
FrmAbout
(
)
public
FrmAbout
(
)
{
InitializeComponent
();
}
...
...
@@ -23,12 +23,19 @@ namespace OnlineStore.AssemblyLine
{
this
.
DialogResult
=
DialogResult
.
None
;
lblTime
.
Text
=
"更新时间:"
+
GetVersion
();
lblVersion
.
Text
=
"版本号:"
+
System
.
Reflection
.
Assembly
.
GetExecutingAssembly
().
GetName
().
Version
.
ToString
();
lblVersion
.
Text
=
"版本号:"
+
System
.
Reflection
.
Assembly
.
GetExecutingAssembly
().
GetName
().
Version
.
ToString
();
lblCodeName
.
Text
=
"软件编号:"
+
GetCodeNum
();
}
private
void
btnNext_Click
(
object
sender
,
EventArgs
e
)
{
this
.
Close
();
}
private
void
btnCopy_Click
(
object
sender
,
EventArgs
e
)
{
Clipboard
.
SetDataObject
(
GetCodeNum
(),
true
);
}
}
}
source/AssemblyLineClient/FrmBase.cs
查看文件 @
2fa3565
...
...
@@ -38,18 +38,19 @@ namespace OnlineStore.AssemblyLine
str
=
version
;
LogUtil
.
error
(
"解析版本号【"
+
str
+
"】出错:"
+
ex
.
ToString
());
}
LogUtil
.
info
(
"版本号["
+
version
+
"]["
+
str
+
"]"
);
LogUtil
.
info
(
"版本号["
+
version
+
"]["
+
str
+
"]
["
+
GetCodeNum
()+
"]
"
);
return
str
;
}
internal
FrmBase
(
)
internal
static
string
GetCodeNum
(
string
codeName
=
"RC1250-AssemblyLine"
)
{
InitializeComponent
();
//skinEngine1.SkinAllForm = false;
byte
[]
byteArray
=
System
.
Text
.
Encoding
.
ASCII
.
GetBytes
(
codeName
);
string
result
=
""
;
result
=
AcSerialBean
.
ByteToString
(
byteArray
);
return
result
;
}
internal
void
SetSkin
(
FrmBase
preCon
)
internal
FrmBase
(
)
{
//skinEngine1.SkinFile = FormManager.SkinFileName;
//LogUtil.info("当前皮肤:" + skinEngine1.SkinFile);
InitializeComponent
();
}
}
}
source/AssemblyLineClient/FrmLineStore.cs
查看文件 @
2fa3565
...
...
@@ -100,6 +100,7 @@ namespace OnlineStore.AssemblyLine
}
private
void
FrmMain_Load
(
object
sender
,
EventArgs
e
)
{
FrmBase
.
GetVersion
();
if
(!
LineManager
.
Init
())
{
LogUtil
.
error
(
"加载配置失败,直接退出程序"
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论