Thursday, October 1, 2009

Aassociassion with Module Base

Suppose you have two module 1. Cevious.Xpert.Account 2. Cevious.Xpert.Statutory.In TCSNature.cs VAT.cs In Statutory Module we have used Accounts DLL In Account module there is a class Ledger in which I want a Lookup of VAT to do this We go in Cevious.Xpert.Statutory.In =>Module.cs=> public override void CustomizeTypesInfo(DevExpress.ExpressApp.DC.ITypesInfo typesInfo) { base.CustomizeTypesInfo(typesInfo); XPDictionary xpDCT = XafTypesInfo.XpoTypeInfoSource.XPDictionary; if (xpDCT.GetClassInfo(typeof(Ledger)).FindMember("PropertyName") == null) { xpDCT.GetClassInfo(typeof(Ledger)).CreateMember("PropertyName", typeof(Class Name),new DisplayNameAttribute("Display Name"),new ImmediatePostDataAttribute(),new VisibleInListViewAttribute (false)); Example //xpDCT.GetClassInfo(typeof(Ledger)).CreateMember("Nature", typeof(TypeOfNature)); } XafTypesInfo.Instance.RefreshInfo(typeof(Ledger)); }

No comments:

Post a Comment

Mat Table Angular

Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...