修改还空瓶
This commit is contained in:
parent
427b249429
commit
c20686d2c3
|
@ -101,17 +101,17 @@ namespace DM_Weight.ViewModels
|
|||
}
|
||||
else if (Channel != null && Channel.CanReturnQuantity > 0)
|
||||
{
|
||||
Channels = Channels.Select(x =>
|
||||
{
|
||||
if (x.Id == Channel.Id)
|
||||
{
|
||||
x.IsSelected = !x.IsSelected;
|
||||
}
|
||||
return x;
|
||||
}).ToList();
|
||||
//DialogParameters dialogParameters = new DialogParameters();
|
||||
//dialogParameters.Add("channel", Channel);
|
||||
//DialogServiceExtensions.ShowDialogHost(_dialogService, "ReturnEmptyDialog", dialogParameters, DoDialogResult, "RootDialog");
|
||||
//Channels = Channels.Select(x =>
|
||||
//{
|
||||
// if (x.Id == Channel.Id)
|
||||
// {
|
||||
// x.IsSelected = !x.IsSelected;
|
||||
// }
|
||||
// return x;
|
||||
//}).ToList();
|
||||
DialogParameters dialogParameters = new DialogParameters();
|
||||
dialogParameters.Add("channel", Channel);
|
||||
DialogServiceExtensions.ShowDialogHost(_dialogService, "ReturnEmptyDialog", dialogParameters, DoDialogResult, "RootDialog");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -318,12 +318,12 @@ namespace DM_Weight.ViewModels
|
|||
PremissionName = "归还药品",
|
||||
PremissionPath = "ReturnDrugWindow2",
|
||||
};
|
||||
//PremissionDm huanyao2 = new PremissionDm
|
||||
//{
|
||||
// Id = 32,
|
||||
// PremissionName = "归还空瓶",
|
||||
// PremissionPath = "ReturnEmptyWindow",
|
||||
//};
|
||||
PremissionDm returnEmpty = new PremissionDm
|
||||
{
|
||||
Id = 322,
|
||||
PremissionName = "归还空瓶",
|
||||
PremissionPath = "ReturnEmptyWindow",
|
||||
};
|
||||
PremissionDm huanyao2 = new PremissionDm
|
||||
{
|
||||
Id = 32,
|
||||
|
@ -344,6 +344,7 @@ namespace DM_Weight.ViewModels
|
|||
//};
|
||||
huanyaoChild.Add(Convert.ToInt32(ConfigurationManager.AppSettings["returnDrugMode"]) == 1 ? huanyao11 : huanyao1);
|
||||
huanyaoChild.Add(huanyao2);
|
||||
huanyaoChild.Add(returnEmpty);
|
||||
//huanyaoChild.Add(surgery);
|
||||
huanyaoChild.Add(huanyao3);
|
||||
huanyao.Children = huanyaoChild;
|
||||
|
|
|
@ -92,11 +92,11 @@
|
|||
<Setter Property="Foreground" Value="White" />
|
||||
</Style>
|
||||
</ListView.Resources>
|
||||
<!--<i:Interaction.Triggers>
|
||||
<i:Interaction.Triggers>
|
||||
<i:EventTrigger EventName="SelectionChanged">
|
||||
<i:InvokeCommandAction Command="{Binding RowSelected}" />
|
||||
</i:EventTrigger>
|
||||
</i:Interaction.Triggers>-->
|
||||
</i:Interaction.Triggers>
|
||||
<ListView.View>
|
||||
<GridView ColumnHeaderContainerStyle="{StaticResource st}">
|
||||
<!--<GridViewColumn Header="选择" Width="100">
|
||||
|
|
Loading…
Reference in New Issue