public override IList GetItem(List <WACParameter> parms, IList list) { List <FarmBusiness> ilist = list as List <FarmBusiness>; int key = WACGlobal_Methods.KeyAsInt(WACParameter.GetSelectedKey(parms).ParmValue); return(ilist.Where(w => w.pk_farmBusiness == key).ToList()); }
public override IList GetItem(List <WACParameter> parms, IList list) { List <ParticipantCommunication> ilist = list as List <ParticipantCommunication>; int key = WACGlobal_Methods.KeyAsInt(WACParameter.GetSelectedKey(parms).ParmValue); return(ilist.Where(w => w.pk_participantCommunication == key).ToList()); }
public override IList GetFilteredList(List <WACParameter> parms) { try { using (WACDataClassesDataContext wac = new WACDataClassesDataContext()) { int pk_participantCommunication = WACGlobal_Methods.KeyAsInt(WACParameter.GetSelectedKey(parms).ParmValue); var e = wac.participantCommunications.Where(w => w.pk_participantCommunication == pk_participantCommunication).Select(s => new ParticipantCommunication(s.pk_participantCommunication, s.fk_participant, s.fk_communication, s.fk_communicationType_code, s.fk_communicationUsage_code, s.fk_organization, s.extension, s.note, s.source, s.created, s.created_by, s.modified, s.modified_by)); if (e.Any()) { return(e.ToList <ParticipantCommunication>()); } else { return(new List <ParticipantCommunication>()); } } } catch (Exception ex) { throw new WACEX_GeneralDatabaseException("Error loading ParticipantCommunication. " + ex.Message, -1); } }
public override IList GetItem(List <WACParameter> parms, IList list) { List <SupplementalAgreement> ilist = list as List <SupplementalAgreement>; int key = WACGlobal_Methods.KeyAsInt(WACParameter.GetSelectedKey(parms).ParmValue); return(ilist.Where(w => w.pk_supplementalAgreement == key).ToList()); }
public override IList GetFilteredList(List <WACParameter> parms) { try { using (WACDataClassesDataContext wac = new WACDataClassesDataContext()) { int pk_participantProperty = WACGlobal_Methods.KeyAsInt(WACParameter.GetSelectedKey(parms).ParmValue); var e = wac.participantProperties.Where(w => w.pk_participantProperty == pk_participantProperty).Select(s => new ParticipantProperty(s.pk_participantProperty, s.fk_participant, s.fk_participant_cc, s.fk_property, s.master, s.created, s.created_by, s.modified, s.modified_by)); if (e.Any()) { return(e.ToList <ParticipantProperty>()); } else { return(new List <ParticipantProperty>()); } } } catch (Exception ex) { throw new WACEX_GeneralDatabaseException("Error loading Participant Properties. " + ex.Message, -1); } }
public override void InitControl(List <WACParameter> parms) { WACParameter masterKey = WACParameter.GetSelectedKey(parms); masterKey.ParmType = WACParameter.ParameterType.MasterKey; parms.Add(masterKey); sReq.ServiceFor = this; sReq.ParmList = parms; sReq.ServiceRequested = ServiceFactory.ServiceTypes.SetMasterKeyForContainer; ServiceFactory.Instance.ServiceRequest(sReq); WACPR_TaxParcelOwnerGrid.InitControl(parms); lblOwnerCount.Text = getCount(); }