You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

56 lines
2.0 KiB

using BWP.B3ButcherManage.BO;
using BWP.B3Frameworks;
using BWP.B3Frameworks.BO;
using Forks.EnterpriseServices;
using Forks.EnterpriseServices.DataForm;
using Forks.EnterpriseServices.DomainObjects2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSingSoft.WebControls2;
namespace BWP.B3QingDaoWanFu.BO
{
[DFClass, Serializable, LogicName("费用录入")]
public class CostRecord : DomainBill, IAccountingUnitBill
{
[LogicName("会计单位")]
[DFNotEmpty]
[DFExtProperty("WebControlType", DFEditControl.ChoiceBox)]
[DFDataKind(B3FrameworksConsts.DataSources.授权会计单位)]
[DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3FrameworksConsts.DataSources.授权会计单位全部)]
[DFExtProperty("DisplayField", "AccountingUnit_Name")]
public long? AccountingUnit_ID { get; set; }
DateTime date = DateTime.Today.AddDays(-1);
[LogicName("过磅日期")]
public DateTime Date { get { return date; } set { date = value; } }
[LogicName("收购类型")]
[DFNotEmpty]
[DFExtProperty("WebControlType", DFEditControl.ChoiceBox)]
[DFDataKind(B3ButcherManage.B3ButcherManageConsts.DataSources.收购类型)]
[DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3ButcherManage.B3ButcherManageConsts.DataSources.收购类型)]
[DFExtProperty("DisplayField", "PurchaseType_Name")]
public long? PurchaseType_ID { get; set; }
private CostRecord_DetailCollection _details = new CostRecord_DetailCollection();
[OneToMany(typeof(CostRecord_Detail), "ID")]
[Join("ID", "CostRecord_ID")]
public CostRecord_DetailCollection Details
{
get { return _details; }
}
[ReferenceTo(typeof(AccountingUnit), "Name")]
[LogicName("会计单位")]
[Join("AccountingUnit_ID", "ID")]
public string AccountingUnit_Name { get; set; }
[ReferenceTo(typeof(PurchaseType), "Name")]
[LogicName("收购类型")]
[Join("PurchaseType_ID", "ID")]
public string PurchaseType_Name { get; set; }
}
}