Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.SamplePackages.V4.0
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Client.SamplePackages.V4.0
Commits
fff2ee6f
Commit
fff2ee6f
authored
Jan 03, 2025
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C箱验证
parent
d9aa22e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
FrmMain.cs
Src/FrmMain.cs
+13
-1
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/FrmMain.cs
View file @
fff2ee6f
...
@@ -274,14 +274,26 @@ namespace Kivii.Client.SamplePackages
...
@@ -274,14 +274,26 @@ namespace Kivii.Client.SamplePackages
}
}
var
record
=
resp
.
Results
[
0
];
var
record
=
resp
.
Results
[
0
];
var
bizid
=
record
.
BizId
;
var
bizid
=
record
.
BizId
;
string
typeEx
=
record
.
Metadata
.
ContainsKey
(
"TypeEx"
)
?
record
.
Metadata
[
"TypeEx"
]
:
string
.
Empty
;
var
lastindex
=
bizid
.
LastIndexOf
(
'-'
);
var
lastindex
=
bizid
.
LastIndexOf
(
'-'
);
if
(
lastindex
!=
-
1
&&
lastindex
!=
3
)
bizid
=
bizid
.
Substring
(
0
,
lastindex
);
if
(
lastindex
!=
-
1
&&
lastindex
!=
3
)
bizid
=
bizid
.
Substring
(
0
,
lastindex
);
bool
typeJ
=
false
;
bool
packageNameIsA
=
false
;
bool
packageNameIsA
=
false
;
bool
sampleBizIdWithSuffix
=
false
;
bool
sampleBizIdWithSuffix
=
false
;
if
(
typeEx
.
ToLower
()
==
"j"
)
typeJ
=
true
;
if
(
_currentPackage
.
Name
.
ToLower
().
StartsWithIgnoreCase
(
"a"
))
packageNameIsA
=
true
;
if
(
_currentPackage
.
Name
.
ToLower
().
StartsWithIgnoreCase
(
"a"
))
packageNameIsA
=
true
;
sampleBizIdWithSuffix
=
Regex
.
IsMatch
(
bizid
.
ToLower
(),
"[a-zA-Z]$"
,
RegexOptions
.
IgnoreCase
);
sampleBizIdWithSuffix
=
Regex
.
IsMatch
(
bizid
.
ToLower
(),
"[a-zA-Z]$"
,
RegexOptions
.
IgnoreCase
);
if
(
packageNameIsA
)
if
(
typeJ
)
{
if
(
_currentPackage
.
Name
.
ToLower
().
StartsWithIgnoreCase
(
"c"
))
samplePackaging
(
record
);
else
{
MessageBox
.
Show
(
"此报告号为监督样,只能入C箱!"
,
"样品入箱"
);
return
;
}
}
else
if
(
packageNameIsA
)
{
{
if
(
sampleBizIdWithSuffix
)
samplePackaging
(
record
);
if
(
sampleBizIdWithSuffix
)
samplePackaging
(
record
);
else
else
...
...
Src/Properties/AssemblyInfo.cs
View file @
fff2ee6f
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.202
3.807
0")]
[assembly: AssemblyVersion("5.4.202
5.103
0")]
[assembly: AssemblyFileVersion("5.4.202
3.807
0")]
[assembly: AssemblyFileVersion("5.4.202
5.103
0")]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment