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
3f794bd1
Commit
3f794bd1
authored
Jan 10, 2025
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本升级
parent
fff2ee6f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
30 deletions
+43
-30
App.config
Src/App.config
+4
-4
FrmMain.cs
Src/FrmMain.cs
+26
-14
Kivii.Client.SamplePackages.V4.0.csproj
Src/Kivii.Client.SamplePackages.V4.0.csproj
+8
-8
packages.config
Src/packages.config
+5
-4
No files found.
Src/App.config
View file @
3f794bd1
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configuration
>
<
connectionStrings
>
<
connectionStrings
>
<!--<
add
name
=
"Database"
providerName
=
"Sqlite"
connectionString
=
"$ROOT\AppData\primary.sqlite"
/>-->
<!--<
add
name
=
"Database"
providerName
=
"Sqlite"
connectionString
=
"$ROOT\AppData\primary.sqlite"
/>-->
</
connectionStrings
>
</
connectionStrings
></
configuration
>
</
configuration
>
\ No newline at end of file
\ No newline at end of file
Src/FrmMain.cs
View file @
3f794bd1
...
@@ -282,33 +282,45 @@ namespace Kivii.Client.SamplePackages
...
@@ -282,33 +282,45 @@ namespace Kivii.Client.SamplePackages
bool
sampleBizIdWithSuffix
=
false
;
bool
sampleBizIdWithSuffix
=
false
;
if
(
typeEx
.
ToLower
()
==
"j"
)
typeJ
=
true
;
if
(
typeEx
.
ToLower
()
==
"j"
)
typeJ
=
true
;
if
(
_currentPackage
.
Name
.
ToLower
().
StartsWithIgnoreCase
(
"a"
))
packageNameIsA
=
true
;
var
packageName
=
_currentPackage
.
Name
.
ToLower
();
//if (.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
(
typeJ
)
if
(
typeJ
)
//监督号
{
{
if
(
_currentPackage
.
Name
.
ToLower
()
.
StartsWithIgnoreCase
(
"c"
))
samplePackaging
(
record
);
if
(
packageName
.
StartsWithIgnoreCase
(
"c"
))
samplePackaging
(
record
);
else
else
{
{
MessageBox
.
Show
(
"此报告号为监督样,只能入C箱!"
,
"样品入箱"
);
MessageBox
.
Show
(
"此报告号为监督样,只能入C箱!"
,
"样品入箱"
);
return
;
return
;
}
}
}
}
else
if
(
packageNameIsA
)
else
//普通业务号
{
{
if
(
sampleBizIdWithSuffix
)
samplePackaging
(
record
);
if
(
sampleBizIdWithSuffix
)
//有后缀入A框
else
{
{
MessageBox
.
Show
(
"此报告号无后缀,不可入A箱!"
,
"样品入箱"
);
if
(
packageName
.
StartsWithIgnoreCase
(
"a"
))
return
;
{
samplePackaging
(
record
);
}
else
{
MessageBox
.
Show
(
"此报告号有后缀,只能入A箱!"
,
"样品入箱"
);
return
;
}
}
}
}
else
{
if
(!
sampleBizIdWithSuffix
)
samplePackaging
(
record
);
else
else
{
{
MessageBox
.
Show
(
"此报告号有后缀,不可入B箱!"
,
"样品入箱"
);
if
(
packageName
.
StartsWithIgnoreCase
(
"b"
))
return
;
{
samplePackaging
(
record
);
}
else
{
MessageBox
.
Show
(
"此报告号无后缀,只能入B箱!"
,
"样品入箱"
);
return
;
}
}
}
}
}
...
...
Src/Kivii.Client.SamplePackages.V4.0.csproj
View file @
3f794bd1
...
@@ -38,17 +38,17 @@
...
@@ -38,17 +38,17 @@
<ApplicationManifest>
app.manifest
</ApplicationManifest>
<ApplicationManifest>
app.manifest
</ApplicationManifest>
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference
Include=
"Kivii.Common.V4.0, Version=5.6.202
3.4
000, Culture=neutral, processorArchitecture=MSIL"
>
<Reference
Include=
"Kivii.Common.V4.0, Version=5.6.202
4.11
000, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\
packages\Kivii.Common.5.6.2023.4
000\lib\net40\Kivii.Common.V4.0.dll
</HintPath>
<HintPath>
..\
..\packages\Kivii.Common.5.6.2024.11
000\lib\net40\Kivii.Common.V4.0.dll
</HintPath>
</Reference>
</Reference>
<Reference
Include=
"Kivii.Core.V4.0, Version=5.6.202
3.414
0, Culture=neutral, processorArchitecture=MSIL"
>
<Reference
Include=
"Kivii.Core.V4.0, Version=5.6.202
4.1100
0, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\
packages\Kivii.Core.5.6.2023.414
0\lib\net40\Kivii.Core.V4.0.dll
</HintPath>
<HintPath>
..\
..\packages\Kivii.Core.5.6.2024.1100
0\lib\net40\Kivii.Core.V4.0.dll
</HintPath>
</Reference>
</Reference>
<Reference
Include=
"Kivii.Linq.Sqlite.V4.0, Version=5.6.202
3.3
000, Culture=neutral, processorArchitecture=MSIL"
>
<Reference
Include=
"Kivii.Linq.Sqlite.V4.0, Version=5.6.202
4.11
000, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\
packages\Kivii.Linq.Sqlite.5.6.2023.3
000\lib\net40\Kivii.Linq.Sqlite.V4.0.dll
</HintPath>
<HintPath>
..\
..\packages\Kivii.Linq.Sqlite.5.6.2024.11
000\lib\net40\Kivii.Linq.Sqlite.V4.0.dll
</HintPath>
</Reference>
</Reference>
<Reference
Include=
"Kivii.Linq.V4.0, Version=5.6.202
3.42
00, Culture=neutral, processorArchitecture=MSIL"
>
<Reference
Include=
"Kivii.Linq.V4.0, Version=5.6.202
4.110
00, Culture=neutral, processorArchitecture=MSIL"
>
<HintPath>
..\
packages\Kivii.Linq.5.6.2023.42
00\lib\net40\Kivii.Linq.V4.0.dll
</HintPath>
<HintPath>
..\
..\packages\Kivii.Linq.5.6.2024.110
00\lib\net40\Kivii.Linq.V4.0.dll
</HintPath>
</Reference>
</Reference>
<Reference
Include=
"System"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Core"
/>
...
...
Src/packages.config
View file @
3f794bd1
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
packages
>
<
packages
>
<
package
id
=
"Kivii.Common"
version
=
"5.6.202
3.4
000"
targetFramework
=
"net40"
/>
<
package
id
=
"Kivii.Common"
version
=
"5.6.202
4.11
000"
targetFramework
=
"net40"
/>
<
package
id
=
"Kivii.Core"
version
=
"5.6.202
3.414
0"
targetFramework
=
"net40"
/>
<
package
id
=
"Kivii.Core"
version
=
"5.6.202
4.1100
0"
targetFramework
=
"net40"
/>
<
package
id
=
"Kivii.Linq"
version
=
"5.6.202
3.42
00"
targetFramework
=
"net40"
/>
<
package
id
=
"Kivii.Linq"
version
=
"5.6.202
4.110
00"
targetFramework
=
"net40"
/>
<
package
id
=
"Kivii.Linq.Sqlite"
version
=
"5.6.202
3.3
000"
targetFramework
=
"net40"
/>
<
package
id
=
"Kivii.Linq.Sqlite"
version
=
"5.6.202
4.11
000"
targetFramework
=
"net40"
/>
</
packages
>
</
packages
>
\ No newline at end of file
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