我在银星米克斯·米洛佩斯上是新的,我正在建立一个项目,在该项目中,我把数据输入数据。
我的数据库结构如下:
tblAuthorizationVarification (AuthorizationVarificationid, AuthorizationRequestid, number)
tblAuthorizationRequest (AuthorizationRequestid, name)
t VarificationDetails (DetailId, 批准Requestid, 数额)
我想在所有授权中显示总金额。
下面是我的代码,载于Model
。 页: 1 Varification:
PagedCollectionView _AuthorizationVarificationList;
public PagedCollectionView AuthorizationVarificationList
{
get { return _AuthorizationVarificationList; }
set
{
_AuthorizationVarificationList = value;
OnPropertyChanged("AuthorizationVarificationList"); }
}
private void GetVarifications()
{
IsBusy = true;
LoadOperation<AuthorizationVerification> loadOp =
objContext.Load(objContext.GetCreditNotesQuery());
loadOp.Completed += (sender, e) =>
{
IEnumerable<AuthorizationVerification> op =
((LoadOperation<AuthorizationVerification>)sender).Entities;
PagedCollectionView view = new PagedCollectionView(op);
this.AuthorizationVarificationList = view;
cnt = cnt - 1;
if (cnt <= 0)
IsBusy = false;
};
}
授权 隔离 清单在Gridview中具有约束力,如同样。
<sdk:DataGrid x:Name="grdCreditNotes"
ItemsSource="{Binding Path=AuthorizationVarificationList}"
SelectedItem="{Binding Path=SelectedCreditNote, Mode=TwoWay}"
AutoGenerateColumns="False" IsReadOnly="True" Grid.Row="2"
VerticalAlignment="Stretch" Margin="0,0,0,0">
<sdk:DataGrid.Columns>
<sdk:DataGridTextColumn Header="Credit No"
Binding="{Binding Path=AuthorizationVerificationId}" Width="200"/>
<sdk:DataGridTextColumn Header="Amount"
Binding="{Binding Path=AuthorizationRequest.Amount}" MinWidth="100"
Width="*"/>
</sdk:DataGrid.Columns>
</sdk:DataGrid>
在电网领域,我能做些什么来显示特别授权的数量?