Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
JmpZbChannel
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
zxw
JmpZbChannel
Commits
8475f7d9
Commit
8475f7d9
authored
Oct 28, 2022
by
zxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
充电台ui调整
parent
32cf4833
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
70 行增加
和
53 行删除
+70
-53
HttpHelper.cs
LiteChannel/Commons/HttpHelper.cs
+2
-2
MainWindow.xaml
LiteChannel/MainWindow.xaml
+36
-40
MainWindow2.xaml
LiteChannel/MainWindow2.xaml
+8
-8
order_info.cs
LiteChannel/Models/order_info.cs
+1
-0
OrderInfoWindows.xaml.cs
LiteChannel/OrderInfoWindows.xaml.cs
+5
-1
AssemblyInfo.cs
LiteChannel/Properties/AssemblyInfo.cs
+2
-2
StoreOutWindow.xaml.cs
LiteChannel/StoreOutWindow.xaml.cs
+16
-0
没有找到文件。
LiteChannel/Commons/HttpHelper.cs
View file @
8475f7d9
...
...
@@ -880,10 +880,10 @@ namespace LiteChannel.Commons
}
else
{
var
successCount
=
res_data
.
data
.
Count
(
x
=>
new
[]
{
1
,
2
,
8
,
14
,
15
,
17
}.
Contains
(
x
.
currentState
));
var
successCount
=
res_data
.
data
.
Count
(
x
=>
new
[]
{
1
,
2
,
8
,
14
,
15
,
17
,
6
}.
Contains
(
x
.
currentState
));
var
failCount
=
eps
.
Count
-
successCount
;
var
failEpcList
=
eps
.
Where
(
x
=>
res_data
.
data
.
Where
(
y
=>
new
[]
{
1
,
2
,
8
,
14
,
15
,
17
}.
Contains
(
y
.
currentState
)).
Count
(
y
=>
y
.
epc
==
x
.
RFID
)
==
0
)
res_data
.
data
.
Where
(
y
=>
new
[]
{
1
,
2
,
8
,
14
,
15
,
17
,
6
}.
Contains
(
y
.
currentState
)).
Count
(
y
=>
y
.
epc
==
x
.
RFID
)
==
0
)
.
Select
(
x
=>
x
.
RFID
);
var
message
=
$"装备出库成功
{
successCount
}
条,失败
{
failCount
}
条"
;
...
...
LiteChannel/MainWindow.xaml
View file @
8475f7d9
...
...
@@ -18,8 +18,8 @@
<Grid.RowDefinitions>
<RowDefinition Height="0.18*"/>
<RowDefinition Height="0.06*"/>
<RowDefinition Height="0.
02
*"/>
<RowDefinition Height="0.4
6
*"/>
<RowDefinition Height="0.
1
*"/>
<RowDefinition Height="0.4*"/>
<RowDefinition Height="0.28*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
...
...
@@ -41,49 +41,45 @@
pu:ComboBoxHelper.SearchTextChanged="cbo_warehouse_SearchTextChanged"
pu:ComboBoxHelper.SearchTextBoxWatermark="在此搜索仓库..." SelectionChanged="cbo_warehouse_SelectionChanged"></ComboBox>
<B
utton Grid.Row="3" Grid.Column="1" Click="OnInStore_Click" FontFamily="{StaticResource FontAwesome}" FontSize="30" Foreground="{x:Null}
" Margin="25,0,25,0">
<
!--<Button
.BorderBrush>
<B
order Grid.Row="3" Grid.Column="1
" Margin="25,0,25,0">
<
Border
.BorderBrush>
<ImageBrush ImageSource="Resources/3.png"/>
</B
utton.BorderBrush>--
>
<B
utton
.Background>
</B
order.BorderBrush
>
<B
order
.Background>
<ImageBrush ImageSource="Resources/3.png"/>
</Button.Background>
<pu:ButtonHelper.ButtonStyle>
<pu:ButtonStyle>Link</pu:ButtonStyle>
</pu:ButtonHelper.ButtonStyle>
<pu:ButtonHelper.HoverBrush>
<ImageBrush ImageSource="Resources/3.png"/>
</pu:ButtonHelper.HoverBrush>
</Button>
<Button Grid.Row="3" Grid.Column="2" Click="OnOutStore_Click" FontFamily="{StaticResource FontAwesome}" FontSize="30" Foreground="{x:Null}" Margin="25,0,25,0">
<Button.BorderBrush>
<ImageBrush ImageSource="Resources/4.png"/>
</Button.BorderBrush>
<Button.Background>
</Border.Background>
<Button Click="OnInStore_Click" FontFamily="{StaticResource FontAwesome}" FontSize="30" Foreground="{x:Null}" Margin="0,75,0,0">
<pu:ButtonHelper.ButtonStyle>
<pu:ButtonStyle>Link</pu:ButtonStyle>
</pu:ButtonHelper.ButtonStyle>
</Button>
</Border>
<Border Grid.Row="3" Grid.Column="2" Margin="25,0,25,0">
<Border.BorderBrush>
<ImageBrush ImageSource="Resources/4.png"/>
</Button.Background>
<pu:ButtonHelper.ButtonStyle>
<pu:ButtonStyle>Link</pu:ButtonStyle>
</pu:ButtonHelper.ButtonStyle>
<pu:ButtonHelper.HoverBrush>
</Border.BorderBrush>
<Border.Background>
<ImageBrush ImageSource="Resources/4.png"/>
</pu:ButtonHelper.HoverBrush>
</Button>
<Button Grid.Row="3" Grid.Column="3" Click="OnClose_Click" FontFamily="{StaticResource FontAwesome}" FontSize="30" Foreground="{x:Null}" Margin="25,0,25,0">
<Button.BorderBrush>
</Border.Background>
<Button Click="OnOutStore_Click" FontFamily="{StaticResource FontAwesome}" FontSize="30" Foreground="{x:Null}" Margin="0,75,0,0">
<pu:ButtonHelper.ButtonStyle>
<pu:ButtonStyle>Link</pu:ButtonStyle>
</pu:ButtonHelper.ButtonStyle>
</Button>
</Border>
<Border Grid.Row="3" Grid.Column="3" Margin="25,0,25,0">
<Border.BorderBrush>
<ImageBrush ImageSource="Resources/2.png"/>
</B
utton
.BorderBrush>
<B
utton
.Background>
</B
order
.BorderBrush>
<B
order
.Background>
<ImageBrush ImageSource="Resources/2.png"/>
</Button.Background>
<pu:ButtonHelper.ButtonStyle>
<pu:ButtonStyle>Link</pu:ButtonStyle>
</pu:ButtonHelper.ButtonStyle>
<pu:ButtonHelper.HoverBrush>
<ImageBrush ImageSource="Resources/2.png"/>
</pu:ButtonHelper.HoverBrush>
</Button>
</Border.Background>
<Button Click="OnClose_Click" FontFamily="{StaticResource FontAwesome}" FontSize="30" Foreground="{x:Null}" Margin="0,75,0,0">
<pu:ButtonHelper.ButtonStyle>
<pu:ButtonStyle>Link</pu:ButtonStyle>
</pu:ButtonHelper.ButtonStyle>
</Button>
</Border>
</Grid>
</pu:WindowX>
LiteChannel/MainWindow2.xaml
View file @
8475f7d9
...
...
@@ -32,21 +32,21 @@
pu:DataGridHelper.SelectedBackground="#44B5B5B5" pu:DataGridHelper.HoverBackground="#22B5B5B5" CanUserAddRows="False" Grid.ColumnSpan="4"
AutoGenerateColumns="False" LoadingRow="OnDataGridLoadingRow" SelectionMode="Single" Name="dg_order" pu:DataGridHelper.ColumnHorizontalContentAlignment="Center" CanUserSortColumns="True" >
<DataGrid.Columns>
<DataGridTemplateColumn Header="序号" MinWidth="80" >
<
!--<
DataGridTemplateColumn Header="序号" MinWidth="80" >
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock FontSize="18" Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow}}, Path=Header}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="5,0,0,0"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTextColumn IsReadOnly="True" Header="单据编号
" Width="1.5*" MinWidth="100" FontSize="18" Binding="{Binding orderCode
}" />
</DataGridTemplateColumn>
-->
<DataGridTextColumn IsReadOnly="True" Header="单据编号
(后6位)" Width="115" MinWidth="115" FontSize="18" Binding="{Binding orderCodeLast6
}" />
<DataGridTextColumn IsReadOnly="True" Header="单据类型" Width="100" MinWidth="100" FontSize="18" Binding="{Binding orderType}" />
<DataGridTextColumn IsReadOnly="True" Header="借用警员(借用)" Width="
100" MinWidth="12
0" FontSize="18" Binding="{Binding borrowPolice}" />
<DataGridTextColumn IsReadOnly="True" Header="目标仓库(调拨)" Width="
100" MinWidth="2
00" FontSize="18" Binding="{Binding receiveWarehouseName}" />
<DataGridTextColumn IsReadOnly="True" Header="申请日期" Width="
1.5*" MinWidth="100
" FontSize="18" Binding="{Binding createTime}"/>
<
DataGridTextColumn IsReadOnly="True" Header="装备信息" Width="3*" MinWidth="100" FontSize="18" Binding="{Binding equNames}"/
>
<DataGridTextColumn IsReadOnly="True" Header="借用警员(借用)" Width="
*" MinWidth="10
0" FontSize="18" Binding="{Binding borrowPolice}" />
<DataGridTextColumn IsReadOnly="True" Header="目标仓库(调拨)" Width="
*" MinWidth="1
00" FontSize="18" Binding="{Binding receiveWarehouseName}" />
<DataGridTextColumn IsReadOnly="True" Header="申请日期" Width="
*" MinWidth="205
" FontSize="18" Binding="{Binding createTime}"/>
<
!--<DataGridTextColumn IsReadOnly="True" Header="装备信息" Width="*" MinWidth="100" FontSize="18" Binding="{Binding equNames}"/>--
>
<!--<DataGridTextColumn IsReadOnly="True" Header="单据数量" Width="100" MinWidth="100" FontSize="18" Binding="{Binding orderQuantity}"/>-->
<DataGridTemplateColumn Header="操作" Width="2
80"
IsReadOnly="True">
<DataGridTemplateColumn Header="操作" Width="2
50" MinWidth="250"
IsReadOnly="True">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
...
...
LiteChannel/Models/order_info.cs
View file @
8475f7d9
...
...
@@ -11,6 +11,7 @@ namespace LiteChannel.Models
public
string
id
{
get
;
set
;
}
public
string
warehouseId
{
get
;
set
;
}
public
string
orderCode
{
get
;
set
;
}
public
string
orderCodeLast6
=>
orderCode
.
Substring
(
16
);
public
string
orgId
{
get
;
set
;
}
public
string
createTime
{
get
;
set
;
}
public
bool
?
isWork
{
get
;
set
;
}
...
...
LiteChannel/OrderInfoWindows.xaml.cs
View file @
8475f7d9
...
...
@@ -34,7 +34,7 @@ namespace LiteChannel
dg_detail
.
AutoGenerateColumns
=
false
;
if
(
type
==
"借用"
||
type
==
"库存调拨"
)
if
(
type
==
"借用"
||
type
==
"库存调拨"
||
type
==
"销毁"
)
{
bt_CloseOrder
.
Visibility
=
Visibility
.
Visible
;
}
...
...
@@ -58,6 +58,10 @@ namespace LiteChannel
{
orderType
=
"Transfer"
;
}
if
(
type
==
"销毁"
)
{
orderType
=
"Destruction"
;
}
if
(
HttpHelper
.
CloseOrder
(
id
,
orderType
))
{
...
...
LiteChannel/Properties/AssemblyInfo.cs
View file @
8475f7d9
...
...
@@ -51,5 +51,5 @@ using System.Windows;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.
6.10240
")]
[assembly: AssemblyFileVersion("1.2.
6.10240
")]
[assembly: AssemblyVersion("1.2.
9.10272
")]
[assembly: AssemblyFileVersion("1.2.
9.10272
")]
LiteChannel/StoreOutWindow.xaml.cs
View file @
8475f7d9
...
...
@@ -94,7 +94,23 @@ namespace LiteChannel
equRem
=
s
.
equCount
-
s
.
equUsed
,
equCount
=
s
.
equCount
});
SourcesList
.
Add
(
new
scan_info
()
{
epcList
=
new
List
<
string
>(),
equCode
=
s
.
equCode
,
equName
=
s
.
equName
,
scanQty
=
0
,
equCount
=
s
.
equCount
,
equRem
=
s
.
equCount
-
s
.
equUsed
});
});
Dispatcher
.
BeginInvoke
(
DispatcherPriority
.
Background
,
new
Action
<
List
<
scan_info
>>((
x
)
=>
{
RefreshSourcesList
=
new
ObservableCollection
<
scan_info
>(
x
);
dg_epc
.
ItemsSource
=
RefreshSourcesList
;
}),
SourcesList
);
ConnectReader
();
EpcHandleTask
(
tokenSource
.
Token
);
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论