请帮帮我!!!
我有:
我需要计算收入和支出之间的差额,并在表格中显示所有内容。我认为方法应该是:
选择所有字段收入,汇总,选择所有字段支出,汇总,从收入金额中减去支出金额并写在表中,依此类推。
我有:
C#:
public class Warehouse
{
public int WarehouseId { get; set; }
public DateTime? DateOperation { get; set; }// date record
public int Nomenclature { get; set; }// name
public int Operation { get; set; }// operation: only income and expense
public decimal Quantity { get; set; }
}
using (Cxt db = new Cxt())
{
gridQuery.DataSource = ???
}
选择所有字段收入,汇总,选择所有字段支出,汇总,从收入金额中减去支出金额并写在表中,依此类推。
由主持人最后编辑: