| @ -0,0 +1,30 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using BWP.Web.Layout; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Web.UI; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.GenerationCostItem_ | |||||
| { | |||||
| class GenerationCostItemEdit : DomainBaseInfoEditPage<GenerationCostItem, IGenerationCostItemBL> | |||||
| { | |||||
| protected override void BuildBody(Control form) | |||||
| { | |||||
| var vPanel = new VLayoutPanel(); | |||||
| form.Controls.Add(vPanel); | |||||
| var panel = new LayoutManager("", mDFInfo, mDFContainer); | |||||
| var config = new AutoLayoutConfig(); | |||||
| config.Add("AccountingUnit_ID"); | |||||
| config.Add("Name"); | |||||
| config.Add("Remark"); | |||||
| panel.Config = config; | |||||
| vPanel.Add(panel.CreateLayout()); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,28 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.GenerationCostItem_ | |||||
| { | |||||
| class GenerationCostItemList : DomainBaseInfoListPage<GenerationCostItem, IGenerationCostItemBL> | |||||
| { | |||||
| protected override void AddQueryControls(VLayoutPanel vPanel) | |||||
| { | |||||
| vPanel.Add(CreateDefaultBaseInfoQueryControls((panel, config) => | |||||
| { | |||||
| config.Add("AccountingUnit_ID"); | |||||
| })); | |||||
| } | |||||
| protected override void AddDFBrowseGridColumn(TSingSoft.WebControls2.DFBrowseGrid grid, string field) | |||||
| { | |||||
| if (field == "Name") | |||||
| AddDFBrowseGridColumn(grid, "AccountingUnit_Name"); | |||||
| base.AddDFBrowseGridColumn(grid, field); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,43 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> | |||||
| <Select xmlns="urn:XDQuery"> | |||||
| <Columns> | |||||
| <Field name="ID"/> | |||||
| </Columns> | |||||
| <From> | |||||
| <DmoClass class="BWP.B3SubstituteKill.BO.GenerationCostItem, B3SubstituteKill"/> | |||||
| </From> | |||||
| <Where> | |||||
| <And> | |||||
| <EQ> | |||||
| <Field name="ID"/> | |||||
| <QBE paramName="ID"/> | |||||
| </EQ> | |||||
| <Or> | |||||
| <Like> | |||||
| <Field name="Name"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| <Like> | |||||
| <Field name="Spell"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| </Or> | |||||
| <EQ> | |||||
| <Field name="AccountingUnit_ID"/> | |||||
| <QBE paramName="AccountingUnit_ID"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="Stopped"/> | |||||
| <QBE paramName="Stopped"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="IsLocked"/> | |||||
| <QBE paramName="IsLocked"/> | |||||
| </EQ> | |||||
| <Like> | |||||
| <Field name="Remark"/> | |||||
| <QBE paramName="Remark"/> | |||||
| </Like> | |||||
| </And> | |||||
| </Where> | |||||
| </Select> | |||||
| @ -0,0 +1,30 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using BWP.Web.Layout; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Web.UI; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.SubKillCallBack_ | |||||
| { | |||||
| class SubKillCallBackEdit : DomainBaseInfoEditPage<SubKillCallBack, ISubKillCallBackBL> | |||||
| { | |||||
| protected override void BuildBody(Control form) | |||||
| { | |||||
| var vPanel = new VLayoutPanel(); | |||||
| form.Controls.Add(vPanel); | |||||
| var panel = new LayoutManager("", mDFInfo, mDFContainer); | |||||
| var config = new AutoLayoutConfig(); | |||||
| config.Add("AccountingUnit_ID"); | |||||
| config.Add("Name"); | |||||
| config.Add("Remark"); | |||||
| panel.Config = config; | |||||
| vPanel.Add(panel.CreateLayout()); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,28 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.SubKillCallBack_ | |||||
| { | |||||
| class SubKillCallBackList : DomainBaseInfoListPage<SubKillCallBack, ISubKillCallBackBL> | |||||
| { | |||||
| protected override void AddQueryControls(VLayoutPanel vPanel) | |||||
| { | |||||
| vPanel.Add(CreateDefaultBaseInfoQueryControls((panel, config) => | |||||
| { | |||||
| config.Add("AccountingUnit_ID"); | |||||
| })); | |||||
| } | |||||
| protected override void AddDFBrowseGridColumn(TSingSoft.WebControls2.DFBrowseGrid grid, string field) | |||||
| { | |||||
| if (field == "Name") | |||||
| AddDFBrowseGridColumn(grid, "AccountingUnit_Name"); | |||||
| base.AddDFBrowseGridColumn(grid, field); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,43 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> | |||||
| <Select xmlns="urn:XDQuery"> | |||||
| <Columns> | |||||
| <Field name="ID"/> | |||||
| </Columns> | |||||
| <From> | |||||
| <DmoClass class="BWP.B3SubstituteKill.BO.SubKillCallBack, B3SubstituteKill"/> | |||||
| </From> | |||||
| <Where> | |||||
| <And> | |||||
| <EQ> | |||||
| <Field name="ID"/> | |||||
| <QBE paramName="ID"/> | |||||
| </EQ> | |||||
| <Or> | |||||
| <Like> | |||||
| <Field name="Name"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| <Like> | |||||
| <Field name="Spell"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| </Or> | |||||
| <EQ> | |||||
| <Field name="AccountingUnit_ID"/> | |||||
| <QBE paramName="AccountingUnit_ID"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="Stopped"/> | |||||
| <QBE paramName="Stopped"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="IsLocked"/> | |||||
| <QBE paramName="IsLocked"/> | |||||
| </EQ> | |||||
| <Like> | |||||
| <Field name="Remark"/> | |||||
| <QBE paramName="Remark"/> | |||||
| </Like> | |||||
| </And> | |||||
| </Where> | |||||
| </Select> | |||||
| @ -0,0 +1,31 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using BWP.Web.Layout; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Web.UI; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.SubKillFlag_ | |||||
| { | |||||
| class SubKillFlagEdit : DomainBaseInfoEditPage<SubKillFlag, ISubKillFlagBL> | |||||
| { | |||||
| protected override void BuildBody(Control form) | |||||
| { | |||||
| var vPanel = new VLayoutPanel(); | |||||
| form.Controls.Add(vPanel); | |||||
| var panel = new LayoutManager("", mDFInfo, mDFContainer); | |||||
| var config = new AutoLayoutConfig(); | |||||
| config.Add("AccountingUnit_ID"); | |||||
| config.Add("Supplier_ID"); | |||||
| config.Add("Name"); | |||||
| config.Add("Remark"); | |||||
| panel.Config = config; | |||||
| vPanel.Add(panel.CreateLayout()); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,32 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.SubKillFlag_ | |||||
| { | |||||
| class SubKillFlagList : DomainBaseInfoListPage<SubKillFlag, ISubKillFlagBL> | |||||
| { | |||||
| protected override void AddQueryControls(VLayoutPanel vPanel) | |||||
| { | |||||
| vPanel.Add(CreateDefaultBaseInfoQueryControls((panel, config) => | |||||
| { | |||||
| config.Add("AccountingUnit_ID"); | |||||
| config.Add("Supplier_ID"); | |||||
| })); | |||||
| } | |||||
| protected override void AddDFBrowseGridColumn(TSingSoft.WebControls2.DFBrowseGrid grid, string field) | |||||
| { | |||||
| base.AddDFBrowseGridColumn(grid, field); | |||||
| if (field == "Name") | |||||
| { | |||||
| AddDFBrowseGridColumn(grid, "AccountingUnit_Name"); | |||||
| AddDFBrowseGridColumn(grid, "Supplier_Name"); | |||||
| } | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,47 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> | |||||
| <Select xmlns="urn:XDQuery"> | |||||
| <Columns> | |||||
| <Field name="ID"/> | |||||
| </Columns> | |||||
| <From> | |||||
| <DmoClass class="BWP.B3SubstituteKill.BO.SubKillFlag, B3SubstituteKill"/> | |||||
| </From> | |||||
| <Where> | |||||
| <And> | |||||
| <EQ> | |||||
| <Field name="ID"/> | |||||
| <QBE paramName="ID"/> | |||||
| </EQ> | |||||
| <Or> | |||||
| <Like> | |||||
| <Field name="Name"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| <Like> | |||||
| <Field name="Spell"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| </Or> | |||||
| <EQ> | |||||
| <Field name="AccountingUnit_ID"/> | |||||
| <QBE paramName="AccountingUnit_ID"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="Supplier_ID"/> | |||||
| <QBE paramName="Supplier_ID"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="Stopped"/> | |||||
| <QBE paramName="Stopped"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="IsLocked"/> | |||||
| <QBE paramName="IsLocked"/> | |||||
| </EQ> | |||||
| <Like> | |||||
| <Field name="Remark"/> | |||||
| <QBE paramName="Remark"/> | |||||
| </Like> | |||||
| </And> | |||||
| </Where> | |||||
| </Select> | |||||
| @ -0,0 +1,30 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using BWP.Web.Layout; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using System.Web.UI; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.SubKillProductLine_ | |||||
| { | |||||
| class SubKillProductLineEdit : DomainBaseInfoEditPage<SubKillProductLine, ISubKillProductLineBL> | |||||
| { | |||||
| protected override void BuildBody(Control form) | |||||
| { | |||||
| var vPanel = new VLayoutPanel(); | |||||
| form.Controls.Add(vPanel); | |||||
| var panel = new LayoutManager("", mDFInfo, mDFContainer); | |||||
| var config = new AutoLayoutConfig(); | |||||
| config.Add("AccountingUnit_ID"); | |||||
| config.Add("Name"); | |||||
| config.Add("Remark"); | |||||
| panel.Config = config; | |||||
| vPanel.Add(panel.CreateLayout()); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,28 @@ | |||||
| using BWP.B3SubstituteKill.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Pages.B3SubstituteKill.BaseInfos.SubKillProductLine_ | |||||
| { | |||||
| class SubKillProductLineList : DomainBaseInfoListPage<SubKillProductLine, ISubKillProductLineBL> | |||||
| { | |||||
| protected override void AddQueryControls(VLayoutPanel vPanel) | |||||
| { | |||||
| vPanel.Add(CreateDefaultBaseInfoQueryControls((panel, config) => | |||||
| { | |||||
| config.Add("AccountingUnit_ID"); | |||||
| })); | |||||
| } | |||||
| protected override void AddDFBrowseGridColumn(TSingSoft.WebControls2.DFBrowseGrid grid, string field) | |||||
| { | |||||
| if (field == "Name") | |||||
| AddDFBrowseGridColumn(grid, "AccountingUnit_Name"); | |||||
| base.AddDFBrowseGridColumn(grid, field); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,43 @@ | |||||
| <?xml version="1.0" encoding="utf-8" ?> | |||||
| <Select xmlns="urn:XDQuery"> | |||||
| <Columns> | |||||
| <Field name="ID"/> | |||||
| </Columns> | |||||
| <From> | |||||
| <DmoClass class="BWP.B3SubstituteKill.BO.SubKillProductLine, B3SubstituteKill"/> | |||||
| </From> | |||||
| <Where> | |||||
| <And> | |||||
| <EQ> | |||||
| <Field name="ID"/> | |||||
| <QBE paramName="ID"/> | |||||
| </EQ> | |||||
| <Or> | |||||
| <Like> | |||||
| <Field name="Name"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| <Like> | |||||
| <Field name="Spell"/> | |||||
| <QBE paramName="Name"/> | |||||
| </Like> | |||||
| </Or> | |||||
| <EQ> | |||||
| <Field name="AccountingUnit_ID"/> | |||||
| <QBE paramName="AccountingUnit_ID"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="Stopped"/> | |||||
| <QBE paramName="Stopped"/> | |||||
| </EQ> | |||||
| <EQ> | |||||
| <Field name="IsLocked"/> | |||||
| <QBE paramName="IsLocked"/> | |||||
| </EQ> | |||||
| <Like> | |||||
| <Field name="Remark"/> | |||||
| <QBE paramName="Remark"/> | |||||
| </Like> | |||||
| </And> | |||||
| </Where> | |||||
| </Select> | |||||
| @ -0,0 +1,35 @@ | |||||
| using BWP.B3Frameworks.Utils; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using BWP.B3SubstituteKill.Utils; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| using TSingSoft.WebControls2; | |||||
| namespace BWP.Web.Utils | |||||
| { | |||||
| public static class B3SubstituteDataProvider | |||||
| { | |||||
| internal static void Register() | |||||
| { | |||||
| ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰费用, (argu) => | |||||
| { | |||||
| return new DomainChoiceBoxQueryHelper<GenerationCostItem>(argu) | |||||
| { | |||||
| AddOrganizationLimit = true, | |||||
| OnlyAvailable = true | |||||
| }.GetData(); | |||||
| }); | |||||
| ChoiceBoxSettings.Register(B3SubstituteKillConsts.DataSources.授权代宰费用全部, (argu) => | |||||
| { | |||||
| return new DomainChoiceBoxQueryHelper<GenerationCostItem>(argu) | |||||
| { | |||||
| AddOrganizationLimit = true, | |||||
| OnlyAvailable = false | |||||
| }.GetData(); | |||||
| }); | |||||
| } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,22 @@ | |||||
| using BWP.B3Frameworks.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using Forks.EnterpriseServices; | |||||
| using Forks.EnterpriseServices.BusinessInterfaces; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| namespace BWP.B3SubstituteKill.BL | |||||
| { | |||||
| [BusinessInterface(typeof(GenerationCostItemBL))] | |||||
| [LogicName("代宰费用")] | |||||
| public interface IGenerationCostItemBL : IDomainBaseInfoBL<GenerationCostItem> | |||||
| { | |||||
| } | |||||
| public class GenerationCostItemBL : DomainBaseInfoBL<GenerationCostItem>, IGenerationCostItemBL | |||||
| { | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,22 @@ | |||||
| using BWP.B3Frameworks.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using Forks.EnterpriseServices; | |||||
| using Forks.EnterpriseServices.BusinessInterfaces; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| namespace BWP.B3SubstituteKill.BL | |||||
| { | |||||
| [BusinessInterface(typeof(SubKillCallBackBL))] | |||||
| [LogicName("代宰回收")] | |||||
| public interface ISubKillCallBackBL : IDomainBaseInfoBL<SubKillCallBack> | |||||
| { | |||||
| } | |||||
| public class SubKillCallBackBL : DomainBaseInfoBL<SubKillCallBack>, ISubKillCallBackBL | |||||
| { | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,22 @@ | |||||
| using BWP.B3Frameworks.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using Forks.EnterpriseServices; | |||||
| using Forks.EnterpriseServices.BusinessInterfaces; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| namespace BWP.B3SubstituteKill.BL | |||||
| { | |||||
| [BusinessInterface(typeof(SubKillFlagBL))] | |||||
| [LogicName("代宰标识")] | |||||
| public interface ISubKillFlagBL : IDomainBaseInfoBL<SubKillFlag> | |||||
| { | |||||
| } | |||||
| public class SubKillFlagBL : DomainBaseInfoBL<SubKillFlag>, ISubKillFlagBL | |||||
| { | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,22 @@ | |||||
| using BWP.B3Frameworks.BL; | |||||
| using BWP.B3SubstituteKill.BO; | |||||
| using Forks.EnterpriseServices; | |||||
| using Forks.EnterpriseServices.BusinessInterfaces; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| namespace BWP.B3SubstituteKill.BL | |||||
| { | |||||
| [BusinessInterface(typeof(SubKillProductLineBL))] | |||||
| [LogicName("代宰生产线")] | |||||
| public interface ISubKillProductLineBL : IDomainBaseInfoBL<SubKillProductLine> | |||||
| { | |||||
| } | |||||
| public class SubKillProductLineBL : DomainBaseInfoBL<SubKillProductLine>, ISubKillProductLineBL | |||||
| { | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,32 @@ | |||||
| 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; | |||||
| namespace BWP.B3SubstituteKill.BO | |||||
| { | |||||
| [LogicName("代宰费用")] | |||||
| [Serializable, DFClass] | |||||
| [OrganizationLimitedDmo("AccountingUnit_ID", typeof(AccountingUnit))] | |||||
| public class GenerationCostItem : DomainBaseInfo,IWithinAccountingUnit | |||||
| { | |||||
| [DbColumn(AllowNull = false, DefaultValue = 0)] | |||||
| [LogicName("会计单位")] | |||||
| [DFNotEmpty] | |||||
| [DFDataKind(B3FrameworksConsts.DataSources.授权会计单位)] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.DisplayField, "AccountingUnit_Name")] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3FrameworksConsts.DataSources.授权会计单位全部)] | |||||
| public long? AccountingUnit_ID { get; set; } | |||||
| [ReferenceTo(typeof(AccountingUnit), "Name")] | |||||
| [Join("AccountingUnit_ID", "ID")] | |||||
| [DFPrompt("会计单位")] | |||||
| public string AccountingUnit_Name { get; set; } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,32 @@ | |||||
| 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; | |||||
| namespace BWP.B3SubstituteKill.BO | |||||
| { | |||||
| [LogicName("代宰回收")] | |||||
| [Serializable, DFClass] | |||||
| [OrganizationLimitedDmo("AccountingUnit_ID", typeof(AccountingUnit))] | |||||
| public class SubKillCallBack : DomainBaseInfo, IWithinAccountingUnit | |||||
| { | |||||
| [DbColumn(AllowNull = false, DefaultValue = 0)] | |||||
| [LogicName("会计单位")] | |||||
| [DFNotEmpty] | |||||
| [DFDataKind(B3FrameworksConsts.DataSources.授权会计单位)] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.DisplayField, "AccountingUnit_Name")] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3FrameworksConsts.DataSources.授权会计单位全部)] | |||||
| public long? AccountingUnit_ID { get; set; } | |||||
| [ReferenceTo(typeof(AccountingUnit), "Name")] | |||||
| [Join("AccountingUnit_ID", "ID")] | |||||
| [DFPrompt("会计单位")] | |||||
| public string AccountingUnit_Name { get; set; } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,45 @@ | |||||
| using BWP.B3Frameworks; | |||||
| using BWP.B3Frameworks.BO; | |||||
| using BWP.B3ProcurementInterface.BO; | |||||
| using BWP.B3ProcurementInterface.Utils; | |||||
| using Forks.EnterpriseServices; | |||||
| using Forks.EnterpriseServices.DataForm; | |||||
| using Forks.EnterpriseServices.DomainObjects2; | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| namespace BWP.B3SubstituteKill.BO | |||||
| { | |||||
| [LogicName("代宰标识")] | |||||
| [Serializable, DFClass] | |||||
| [OrganizationLimitedDmo("AccountingUnit_ID", typeof(AccountingUnit))] | |||||
| public class SubKillFlag : DomainBaseInfo, IWithinAccountingUnit | |||||
| { | |||||
| [DbColumn(AllowNull = false, DefaultValue = 0)] | |||||
| [LogicName("会计单位")] | |||||
| [DFNotEmpty] | |||||
| [DFDataKind(B3FrameworksConsts.DataSources.授权会计单位)] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.DisplayField, "AccountingUnit_Name")] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3FrameworksConsts.DataSources.授权会计单位全部)] | |||||
| public long? AccountingUnit_ID { get; set; } | |||||
| [ReferenceTo(typeof(AccountingUnit), "Name")] | |||||
| [Join("AccountingUnit_ID", "ID")] | |||||
| [DFPrompt("会计单位")] | |||||
| public string AccountingUnit_Name { get; set; } | |||||
| [LogicName("供应商")] | |||||
| [DFDataKind(B3ProcurementInterfaceDataSources.供应商用于屠宰场)] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.DisplayField, "Supplier_Name")] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3ProcurementInterfaceDataSources.供应商用于屠宰场)] | |||||
| public long? Supplier_ID { get; set; } | |||||
| [LogicName("供应商")] | |||||
| [ReferenceTo(typeof(Supplier), "Name")] | |||||
| [Join("Supplier_ID", "ID")] | |||||
| public string Supplier_Name { get; set; } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,32 @@ | |||||
| 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; | |||||
| namespace BWP.B3SubstituteKill.BO | |||||
| { | |||||
| [LogicName("代宰生产线")] | |||||
| [Serializable, DFClass] | |||||
| [OrganizationLimitedDmo("AccountingUnit_ID", typeof(AccountingUnit))] | |||||
| public class SubKillProductLine : DomainBaseInfo, IWithinAccountingUnit | |||||
| { | |||||
| [DbColumn(AllowNull = false, DefaultValue = 0)] | |||||
| [LogicName("会计单位")] | |||||
| [DFNotEmpty] | |||||
| [DFDataKind(B3FrameworksConsts.DataSources.授权会计单位)] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.DisplayField, "AccountingUnit_Name")] | |||||
| [DFExtProperty(B3FrameworksConsts.DFExtProperties.QueryDataKind, B3FrameworksConsts.DataSources.授权会计单位全部)] | |||||
| public long? AccountingUnit_ID { get; set; } | |||||
| [ReferenceTo(typeof(AccountingUnit), "Name")] | |||||
| [Join("AccountingUnit_ID", "ID")] | |||||
| [DFPrompt("会计单位")] | |||||
| public string AccountingUnit_Name { get; set; } | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,22 @@ | |||||
| using System; | |||||
| using System.Collections.Generic; | |||||
| using System.Linq; | |||||
| using System.Text; | |||||
| namespace BWP.B3SubstituteKill.Utils | |||||
| { | |||||
| public class B3SubstituteKillConsts | |||||
| { | |||||
| public class DataSources | |||||
| { | |||||
| private const string PluginName = "B3SubstituteKill_"; | |||||
| public const string 授权代宰费用 = PluginName + "授权代宰费用"; | |||||
| public const string 授权代宰费用全部 = PluginName + "授权代宰费用全部"; | |||||
| } | |||||
| public static class DmoTypeIDOffsets | |||||
| { | |||||
| // public const byte = 1; | |||||
| } | |||||
| } | |||||
| } | |||||