我有我的DataTable:
Saldo
我需要按CodTipoMoneda
对Dim query = From row In oDT.AsEnumerable()
Group row By Moneda = New With {
Key .CodTipoMoneda = row.Field(Of String)("CodTipoMoneda")
} Into NameGroup = Group
Select New With {
.TipoMoneda = Moneda.CodTipoMoneda,
.Saldo = NameGroup.Sum(Function(r) r.Field(Of Decimal)("Saldo"))
}
列组求和,我有这段代码(它正在工作!)。
where
但我还要添加idTipoCuenta
条件以从10 and 20
中排除某些值,例如从idTipoCuenta
中排除值╔═══════════════╦═══════════════╦═══════════════╗
║ CodTipoMoneda ║ idTipoCuenta ║ Saldo ║
╠═══════════════╬═══════════════╬═══════════════╣
║ 002 ║ 10 ║ 854 ║ (not sum)
║ 003 ║ 21 ║ 500 ║
║ 002 ║ 10 ║ 500 ║ (not sum)
║ 002 ║ 22 ║ 680 ║
║ 003 ║ 20 ║ 130 ║ (not sum)
║ 002 ║ 30 ║ 10 ║
║ 003 ║ 12 ║ 2 ║
╚═══════════════╩═══════════════╩═══════════════╝
。
<input id="alpha1" name="alpha1" type="text">
<input id="beta1" name="beta1" type="text" style="display:none;">
<select id="select_box1" name="select_box1">
<option value="one">one</option>
<option value="two">two</option>
</select>
我不太了解,任何帮助都是难以理解的!