Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 6c36c99b
由
几米阳光
编写于
2019-01-24 15:22:41 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
中英文修改
1 个父辈
190c39a1
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
34 行增加
和
25 行删除
dll/CodeLibrary.dll
source/ACSingleStore/FrmStoreBox.Designer.cs
source/ACSingleStore/FrmStoreBox.cs
source/ACSingleStore/Properties/Resource.en-US.resx
source/ACSingleStore/ResourceCulture.cs
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
dll/CodeLibrary.dll
查看文件 @
6c36c99
此文件类型无法预览
source/ACSingleStore/FrmStoreBox.Designer.cs
查看文件 @
6c36c99
...
@@ -1809,12 +1809,12 @@
...
@@ -1809,12 +1809,12 @@
// toolStripSeparator10
// toolStripSeparator10
//
//
this
.
toolStripSeparator10
.
Name
=
"toolStripSeparator10"
;
this
.
toolStripSeparator10
.
Name
=
"toolStripSeparator10"
;
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
17
7
,
6
);
this
.
toolStripSeparator10
.
Size
=
new
System
.
Drawing
.
Size
(
17
3
,
6
);
//
//
// 学习二维码ToolStripMenuItem
// 学习二维码ToolStripMenuItem
//
//
this
.
学习二维码
ToolStripMenuItem
.
Name
=
"学习二维码ToolStripMenuItem"
;
this
.
学习二维码
ToolStripMenuItem
.
Name
=
"学习二维码ToolStripMenuItem"
;
this
.
学习二维码
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
80
,
26
);
this
.
学习二维码
ToolStripMenuItem
.
Size
=
new
System
.
Drawing
.
Size
(
1
76
,
26
);
this
.
学习二维码
ToolStripMenuItem
.
Text
=
"学习二维码"
;
this
.
学习二维码
ToolStripMenuItem
.
Text
=
"学习二维码"
;
this
.
学习二维码
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
学习二维码
ToolStripMenuItem_Click
);
this
.
学习二维码
ToolStripMenuItem
.
Click
+=
new
System
.
EventHandler
(
this
.
学习二维码
ToolStripMenuItem_Click
);
//
//
...
@@ -1949,6 +1949,7 @@
...
@@ -1949,6 +1949,7 @@
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
MainMenuStrip
=
this
.
menuStrip1
;
this
.
MainMenuStrip
=
this
.
menuStrip1
;
this
.
Name
=
"FrmStoreBox"
;
this
.
Name
=
"FrmStoreBox"
;
this
.
Opacity
=
0D
;
this
.
Text
=
"AC_SA_料仓"
;
this
.
Text
=
"AC_SA_料仓"
;
this
.
WindowState
=
System
.
Windows
.
Forms
.
FormWindowState
.
Maximized
;
this
.
WindowState
=
System
.
Windows
.
Forms
.
FormWindowState
.
Maximized
;
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmTest_FormClosing
);
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmTest_FormClosing
);
...
...
source/ACSingleStore/FrmStoreBox.cs
查看文件 @
6c36c99
...
@@ -117,8 +117,8 @@ namespace OnlineStore.ACSingleStore
...
@@ -117,8 +117,8 @@ namespace OnlineStore.ACSingleStore
AutoOut
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoOut
,
"自动出库:"
);
AutoOut
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoOut
,
"自动出库:"
);
AutoIn
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoIn
,
"自动入库:"
);
AutoIn
=
ResourceCulture
.
GetString
(
ResourceCulture
.
AutoIn
,
"自动入库:"
);
学习二维码
ToolStripMenuItem
.
Visible
=
CurrLanguage
.
Equals
(
ResourceCulture
.
China
);
//
学习二维码ToolStripMenuItem.Visible = CurrLanguage.Equals(ResourceCulture.China);
toolStripSeparator10
.
Visible
=
CurrLanguage
.
Equals
(
ResourceCulture
.
China
);
//
toolStripSeparator10.Visible = CurrLanguage.Equals(ResourceCulture.China);
// richTextBox1.Visible = CurrLanguage.Equals(ResourceCulture.China);
// richTextBox1.Visible = CurrLanguage.Equals(ResourceCulture.China);
if
(
CurrLanguage
.
Equals
(
ResourceCulture
.
China
))
if
(
CurrLanguage
.
Equals
(
ResourceCulture
.
China
))
{
{
...
@@ -433,6 +433,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -433,6 +433,7 @@ namespace OnlineStore.ACSingleStore
private
void
btnInStore_Click
(
object
sender
,
EventArgs
e
)
private
void
btnInStore_Click
(
object
sender
,
EventArgs
e
)
{
{
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
if
(
store
.
storeRunStatus
>=
StoreRunStatus
.
HomeMoving
)
{
{
string
selectPositionNum
=
cmbPosition
.
Text
;
string
selectPositionNum
=
cmbPosition
.
Text
;
...
@@ -1121,6 +1122,7 @@ namespace OnlineStore.ACSingleStore
...
@@ -1121,6 +1122,7 @@ namespace OnlineStore.ACSingleStore
private
void
显示
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
private
void
显示
ToolStripMenuItem_Click
(
object
sender
,
EventArgs
e
)
{
{
this
.
Opacity
=
1
;
this
.
Visible
=
true
;
this
.
Visible
=
true
;
this
.
WindowState
=
FormWindowState
.
Maximized
;
this
.
WindowState
=
FormWindowState
.
Maximized
;
this
.
notifyIcon1
.
Visible
=
false
;
this
.
notifyIcon1
.
Visible
=
false
;
...
@@ -1165,9 +1167,9 @@ namespace OnlineStore.ACSingleStore
...
@@ -1165,9 +1167,9 @@ namespace OnlineStore.ACSingleStore
/// </summary>
/// </summary>
private
void
HideForm
()
private
void
HideForm
()
{
{
this
.
Hide
();
this
.
ShowInTaskbar
=
false
;
this
.
ShowInTaskbar
=
false
;
this
.
notifyIcon1
.
Visible
=
true
;
this
.
notifyIcon1
.
Visible
=
true
;
this
.
Hide
();
}
}
private
void
FrmStoreBox_FormClosed
(
object
sender
,
FormClosedEventArgs
e
)
private
void
FrmStoreBox_FormClosed
(
object
sender
,
FormClosedEventArgs
e
)
{
{
...
...
source/ACSingleStore/Properties/Resource.en-US.resx
查看文件 @
6c36c99
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<value>Save error</value>
<value>Save error</value>
</data>
</data>
<data name="CanotReset" xml:space="preserve">
<data name="CanotReset" xml:space="preserve">
<value>Can return to stanby ,without alarm, providing, s
av
ing or reset </value>
<value>Can return to stanby ,without alarm, providing, s
tor
ing or reset </value>
</data>
</data>
<data name="SureExit" xml:space="preserve">
<data name="SureExit" xml:space="preserve">
<value>Confirm exit</value>
<value>Confirm exit</value>
...
@@ -154,10 +154,10 @@
...
@@ -154,10 +154,10 @@
<value>Auto providing</value>
<value>Auto providing</value>
</data>
</data>
<data name="AutoIn" xml:space="preserve">
<data name="AutoIn" xml:space="preserve">
<value>Auto s
av
ing</value>
<value>Auto s
tor
ing</value>
</data>
</data>
<data name="AutoEnd" xml:space="preserve">
<data name="AutoEnd" xml:space="preserve">
<value>Auto s
av
ing end</value>
<value>Auto s
tor
ing end</value>
</data>
</data>
<data name="DoorOpen" xml:space="preserve">
<data name="DoorOpen" xml:space="preserve">
<value>Front door open</value>
<value>Front door open</value>
...
@@ -166,10 +166,10 @@
...
@@ -166,10 +166,10 @@
<value>Fork tray full, please check</value>
<value>Fork tray full, please check</value>
</data>
</data>
<data name="StartAuto" xml:space="preserve">
<data name="StartAuto" xml:space="preserve">
<value>Start auto s
av
ing</value>
<value>Start auto s
tor
ing</value>
</data>
</data>
<data name="StopAuto" xml:space="preserve">
<data name="StopAuto" xml:space="preserve">
<value>Stop auto s
av
ing</value>
<value>Stop auto s
tor
ing</value>
</data>
</data>
<data name="WaitStart" xml:space="preserve">
<data name="WaitStart" xml:space="preserve">
<value>Wait to start</value>
<value>Wait to start</value>
...
@@ -514,7 +514,7 @@
...
@@ -514,7 +514,7 @@
<value>Start auto mode</value>
<value>Start auto mode</value>
</data>
</data>
<data name="FrmStoreBox_label9_Text" xml:space="preserve">
<data name="FrmStoreBox_label9_Text" xml:space="preserve">
<value>Interval s
av
ing position:</value>
<value>Interval s
tor
ing position:</value>
</data>
</data>
<data name="FrmStoreBox_label21_Text" xml:space="preserve">
<data name="FrmStoreBox_label21_Text" xml:space="preserve">
<value>Select storage position:</value>
<value>Select storage position:</value>
...
@@ -568,10 +568,10 @@
...
@@ -568,10 +568,10 @@
<value>l-axis providing buffer P6:</value>
<value>l-axis providing buffer P6:</value>
</data>
</data>
<data name="FrmStoreBox_btnUpDownP3_Text" xml:space="preserve">
<data name="FrmStoreBox_btnUpDownP3_Text" xml:space="preserve">
<value>l-axis former s
av
ing P3:</value>
<value>l-axis former s
tor
ing P3:</value>
</data>
</data>
<data name="FrmStoreBox_btnUpDownP4_Text" xml:space="preserve">
<data name="FrmStoreBox_btnUpDownP4_Text" xml:space="preserve">
<value>l-axis s
av
ing buffer P4:</value>
<value>l-axis s
tor
ing buffer P4:</value>
</data>
</data>
<data name="FrmIOStatus_Text" xml:space="preserve">
<data name="FrmIOStatus_Text" xml:space="preserve">
<value>IO check</value>
<value>IO check</value>
...
...
source/ACSingleStore/ResourceCulture.cs
查看文件 @
6c36c99
...
@@ -16,10 +16,12 @@ namespace OnlineStore.ACSingleStore
...
@@ -16,10 +16,12 @@ namespace OnlineStore.ACSingleStore
public
static
string
China
=
"zh-CN"
;
public
static
string
China
=
"zh-CN"
;
public
static
string
English
=
"en-US"
;
public
static
string
English
=
"en-US"
;
public
static
string
German
=
"ge-DE"
;
public
static
string
German
=
"ge-DE"
;
private
static
ResourceManager
rm
=
null
;
public
static
string
CurrLanguage
=
"zh-CN"
;
public
static
string
CurrLanguage
=
"zh-CN"
;
public
static
Dictionary
<
string
,
string
>
chineseMap
=
new
Dictionary
<
string
,
string
>();
public
static
Dictionary
<
string
,
string
>
englishMap
=
new
Dictionary
<
string
,
string
>();
public
static
Dictionary
<
string
,
string
>
defaultMap
=
new
Dictionary
<
string
,
string
>();
public
static
Dictionary
<
string
,
string
>
defaultMap
=
new
Dictionary
<
string
,
string
>();
/// <summary>
/// <summary>
/// Set current culture by name
/// Set current culture by name
...
@@ -29,13 +31,8 @@ namespace OnlineStore.ACSingleStore
...
@@ -29,13 +31,8 @@ namespace OnlineStore.ACSingleStore
{
{
ResourceControl
.
GetStrEvent
+=
GetString
;
ResourceControl
.
GetStrEvent
+=
GetString
;
ResourceControl
.
GetStringEvent
+=
GetString
;
ResourceControl
.
GetStringEvent
+=
GetString
;
CodeLibrary
.
CodeResourceControl
.
GetStrEvent
+=
GetString
;
CodeLibrary
.
CodeResourceControl
.
GetStringEvent
+=
GetString
;
CodeLibrary
.
CodeResourceControl
.
GetLanguageEvent
+=
GetLanguage
;
CodeLibrary
.
CodeResourceControl
.
GetIdStrEvent
+=
GetTextIdStr
;
CodeLibrary
.
CodeResourceControl
.
GetProStrEvent
+=
GetTextIdStr
;
CodeLibrary
.
CodeResourceControl
.
GetLanguageEvent
+=
GetLanguage
;
//UserFromControl.UserControlResource.GetStrEvent += GetString;
//UserFromControl.UserControlResource.GetStringEvent += GetString;
if
(
string
.
IsNullOrEmpty
(
name
))
if
(
string
.
IsNullOrEmpty
(
name
))
{
{
name
=
"en-US"
;
name
=
"en-US"
;
...
@@ -54,14 +51,19 @@ namespace OnlineStore.ACSingleStore
...
@@ -54,14 +51,19 @@ namespace OnlineStore.ACSingleStore
try
try
{
{
ResourceManager
rm
=
new
ResourceManager
(
"OnlineStore.ACSingleStore.Properties.Resource"
,
assembly
);
if
(
rm
==
null
)
{
rm
=
new
ResourceManager
(
"OnlineStore.ACSingleStore.Properties.Resource"
,
assembly
);
}
CultureInfo
ci
=
Thread
.
CurrentThread
.
CurrentCulture
;
CultureInfo
ci
=
Thread
.
CurrentThread
.
CurrentCulture
;
ci
=
new
CultureInfo
(
CurrLanguage
);
strCurLanguage
=
rm
.
GetString
(
id
,
ci
).
Trim
();
strCurLanguage
=
rm
.
GetString
(
id
,
ci
).
Trim
();
if
(
strCurLanguage
.
Equals
(
""
)
&&
(!
defaultStr
.
Equals
(
""
)))
if
(
strCurLanguage
.
Equals
(
""
)
&&
(!
defaultStr
.
Equals
(
""
)))
{
{
strCurLanguage
=
defaultStr
;
strCurLanguage
=
defaultStr
;
NoIdLog
(
id
,
defaultStr
);
NoIdLog
(
id
,
defaultStr
);
}
}
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
...
@@ -83,8 +85,12 @@ namespace OnlineStore.ACSingleStore
...
@@ -83,8 +85,12 @@ namespace OnlineStore.ACSingleStore
try
try
{
{
ResourceManager
rm
=
new
ResourceManager
(
"OnlineStore.ACSingleStore.Properties.Resource"
,
Assembly
.
GetExecutingAssembly
());
if
(
rm
==
null
)
{
rm
=
new
ResourceManager
(
"OnlineStore.ACSingleStore.Properties.Resource"
,
assembly
);
}
CultureInfo
ci
=
Thread
.
CurrentThread
.
CurrentCulture
;
CultureInfo
ci
=
Thread
.
CurrentThread
.
CurrentCulture
;
ci
=
new
CultureInfo
(
CurrLanguage
);
strCurLanguage
=
rm
.
GetString
(
id
,
ci
).
Trim
();
strCurLanguage
=
rm
.
GetString
(
id
,
ci
).
Trim
();
if
(
strCurLanguage
.
Equals
(
""
)&&(!
defaultStr
.
Equals
(
""
))){
if
(
strCurLanguage
.
Equals
(
""
)&&(!
defaultStr
.
Equals
(
""
))){
strCurLanguage
=
defaultStr
;
strCurLanguage
=
defaultStr
;
...
...
source/DeviceLibrary/acSingleStore/AC_SA_BoxBean.cs
查看文件 @
6c36c99
...
@@ -62,7 +62,7 @@ namespace OnlineStore.DeviceLibrary
...
@@ -62,7 +62,7 @@ namespace OnlineStore.DeviceLibrary
IsDebug
=
true
;
IsDebug
=
true
;
}
}
IsHasCompress_Axis
=
config
.
IsHasCompress_Axis
.
Equals
(
1
);
IsHasCompress_Axis
=
config
.
IsHasCompress_Axis
.
Equals
(
1
);
StoreName
=
(
"
料仓
BOX_"
+
config
.
Id
+
" "
).
ToUpper
();
StoreName
=
(
"BOX_"
+
config
.
Id
+
" "
).
ToUpper
();
this
.
StoreID
=
config
.
Id
;
this
.
StoreID
=
config
.
Id
;
this
.
Config
=
config
;
this
.
Config
=
config
;
this
.
DIList
=
config
.
StoreDIList
;
this
.
DIList
=
config
.
StoreDIList
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论