B3代宰模块
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.
 

93 lines
3.1 KiB

using BWP.B3Frameworks;
using BWP.B3Frameworks.Attributes;
using BWP.B3Frameworks.BO;
using BWP.B3ProcurementInterface.BO;
using BWP.B3ProcurementInterface.Utils;
using BWP.B3SubstituteKill.Utils;
using Forks.EnterpriseServices;
using Forks.EnterpriseServices.DataForm;
using Forks.EnterpriseServices.DomainObjects2;
using Forks.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TSingSoft.WebControls2;
namespace BWP.B3SubstituteKill.BO
{
[DFClass, Serializable]
[LogicName("代宰过磅")]
[DmoTypeID(B3FrameworksConsts.DmoTypeIDBases.B3SubstituteKill, B3SubstituteKillConsts.DmoTypeIDOffsets.SubKillWeightBill)]
[EditUrl("~/B3SubstituteKill/Bills/SubKillWeightBill_/SubKillWeightBillEdit.aspx")]
public class SubKillWeightBill : DepartmentWorkFlowBill
{
private DateTime? date=DateTime.Now;
[LogicName("过磅时间")]
[DFExtProperty("WebControlType", DFEditControl.DateTimeInput)]
[DFNotEmpty]
public DateTime? Date
{
get { return date; }
set { date = value; }
}
[DFDataKind(B3ProcurementInterfaceDataSources.供应商用于屠宰场)]
[DFExtProperty(B3FrameworksConsts.DFExtProperties.DisplayField, "Supplier_Name")]
[DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3ProcurementInterfaceDataSources.供应商用于屠宰场全部)]
[DFExtProperty("WebControlType", DFEditControl.ChoiceBox)]
[DFPrompt("供应商")]
[DFNotEmpty]
public long? Supplier_ID { get; set; }
[ReferenceTo(typeof(Supplier), "Name")]
[Join("Supplier_ID", "ID")]
[DFPrompt("供应商")]
public string Supplier_Name { get; set; }
[ReferenceTo(typeof(Supplier), "Tel")]
[Join("Supplier_ID", "ID")]
[DFPrompt("联系方式")]
public string Supplier_Tel { get; set; }
[ReferenceTo(typeof(Supplier), "Card_ID")]
[Join("Supplier_ID", "ID")]
[DFPrompt("身份证号")]
public string Supplier_Card_ID { get; set; }
[ReferenceTo(typeof(Supplier), "Address")]
[Join("Supplier_ID", "ID")]
[DFPrompt("地址")]
public string Supplier_Address { get; set; }
[LogicName("代宰头数")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)]
public int Number { get; set; }
[LogicName("代宰重量")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)]
public Money<decimal> Weight { get; set; }
[LogicName("代宰毛重")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)]
public Money<decimal> MaoWeight { get; set; }
[LogicName("代宰皮重")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)]
public Money<decimal> PiWeight { get; set; }
[LogicName("价格单号")]
[DFExtProperty("WebControlType", DFEditControl.StaticText)]
public long? PriceBill_ID { get; set; }
private SubKillWeightBill_DetailCollection _mDetails = new SubKillWeightBill_DetailCollection();
[OneToMany(typeof(SubKillWeightBill_Detail), "ID")]
[Join("ID", "SubKillWeightBill_ID")]
public SubKillWeightBill_DetailCollection Details
{
get { return _mDetails; }
set { _mDetails = value; }
}
}
}