List<CustomEntities.KRAMasterDetails> lstPMItemsDetails =
(from oKRAMasterItem in oPMItems.AsEnumerable()
select new CustomEntities.KRAMasterDetails
{
KRAName = null == oKRAMasterItem[Constant.KRAMaster.KRAName.ToString()] ? string.Empty :
oKRAMasterItem[Constant.KRAMaster.KRAName.ToString()].ToString(),
//added by shekhar 4/2/2015
KRADescription = null == oKRAMasterItem[Constant.KRAMaster.KRADescription.ToString()] ? string.Empty :
oKRAMasterItem[Constant.KRAMaster.KRADescription.ToString()].ToString(),
KRAMeasuringCriteria = null == oKRAMasterItem[Constant.KRAMaster.KRAMeasuringCriteria.ToString()] ? string.Empty :
oKRAMasterItem[Constant.KRAMaster.KRAMeasuringCriteria.ToString()].ToString(),
//End of added by shekhar 4/2/2015
KRAType = null == oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] ? string.Empty :
(oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] as FieldLookupValue).LookupValue,
KRASubType = null == oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] ? string.Empty :
(oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] as FieldLookupValue).LookupValue,
//Updated by shekhar/vikas 3/2/2015
KRATypeID = null == oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] ? 0 :
(oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] as FieldLookupValue).LookupId,
KRASubTypeID = null == oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] ? 0 :
(oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] as FieldLookupValue).LookupId
}).ToList();
(from oKRAMasterItem in oPMItems.AsEnumerable()
select new CustomEntities.KRAMasterDetails
{
KRAName = null == oKRAMasterItem[Constant.KRAMaster.KRAName.ToString()] ? string.Empty :
oKRAMasterItem[Constant.KRAMaster.KRAName.ToString()].ToString(),
//added by shekhar 4/2/2015
KRADescription = null == oKRAMasterItem[Constant.KRAMaster.KRADescription.ToString()] ? string.Empty :
oKRAMasterItem[Constant.KRAMaster.KRADescription.ToString()].ToString(),
KRAMeasuringCriteria = null == oKRAMasterItem[Constant.KRAMaster.KRAMeasuringCriteria.ToString()] ? string.Empty :
oKRAMasterItem[Constant.KRAMaster.KRAMeasuringCriteria.ToString()].ToString(),
//End of added by shekhar 4/2/2015
KRAType = null == oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] ? string.Empty :
(oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] as FieldLookupValue).LookupValue,
KRASubType = null == oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] ? string.Empty :
(oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] as FieldLookupValue).LookupValue,
//Updated by shekhar/vikas 3/2/2015
KRATypeID = null == oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] ? 0 :
(oKRAMasterItem[Constant.KRAMaster.KRAType.ToString()] as FieldLookupValue).LookupId,
KRASubTypeID = null == oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] ? 0 :
(oKRAMasterItem[Constant.KRAMaster.KRASubType.ToString()] as FieldLookupValue).LookupId
}).ToList();
No comments:
Post a Comment