public CDMACellDesc(CollectionsModel model, CDMACell carrierEntity, List<CDMACell> excludeCarriers) : base(model, carrierEntity, model.CDMAFreBandColl, new CDMACellCollProvider(model.CDMACellColl)) { this.m_Entity = carrierEntity; List<string> list = new List<string>(); this.m_newCells = excludeCarriers; if (excludeCarriers != null) { foreach (CDMACell cell in excludeCarriers) { list.Add(cell.Name); } } base.m_newNames = list; }
private void AddContentToDic(CDMACell cdmaCarrier) { this.AddPropertyEntity(NEResource.NE_NAME, CellType.textCell, cdmaCarrier.Name); this.AddPropertyEntity(NEResource.NE_ACTIVE, CellType.checkCell, cdmaCarrier.Active); this.AddPropertyEntity(NEResource.NE_FREQUENCY_BAND, CellType.comboCell, cdmaCarrier.FreqBand.Name, this.GetFrequBandSource()); this.AddPropertyEntity(NEResource.NE_CDMA_MSCID, CellType.textCell, cdmaCarrier.MSCID); this.AddPropertyEntity(NEResource.NE_CDMA_BSCID, CellType.textCell, cdmaCarrier.BSCID); this.AddPropertyEntity(NEResource.NE_CDMA_BTSID, CellType.textCell, cdmaCarrier.BTSID); this.AddPropertyEntity(NEResource.NE_CDMA_CELLID, CellType.textCell, cdmaCarrier.CellID); this.AddPropertyEntity(NEResource.NE_CDMA_SECTORID, CellType.textCell, cdmaCarrier.SectorID); this.AddPropertyEntity(NEResource.NE_CDMA_ARFCN, CellType.textCell, cdmaCarrier.ARFCN); this.AddPropertyEntity(NEResource.NE_CDMA_BNDCLS, CellType.textCell, cdmaCarrier.BNDCLS); this.AddPropertyEntity(NEResource.NE_CDMA_PN, CellType.textCell, cdmaCarrier.PN); this.AddPropertyEntity(NEResource.NE_CDMA_PNINC, CellType.textCell, cdmaCarrier.PN_INC); this.AddPropertyEntity(NEResource.NE_CDMA_PNGROUP, CellType.textCell, cdmaCarrier.PN_GROUP); this.AddPropertyEntity(NEResource.NE_CDMA_NEED_PLAN, CellType.checkCell, cdmaCarrier.NeedPlanNeighbor); this.AddPropertyEntity(NEResource.NE_CDMA_BTS_SCENE, CellType.comboCell, cdmaCarrier.BtsScene, this.GetBtsScene()); this.m_TdCarrierList.Add(cdmaCarrier); }
private void addNewCdmaCarrier(string carrierName, ReceptionEquipment reception) { CDMACell cell = new CDMACell(); this.SetIACellProperty(carrierName, reception, cell); this.AddIACellToCarriers(cell); }
public IACell GetCellByTableValue(Dictionary<string, object> dic) { CDMACell cell = new CDMACell(); cell.Name = dic[NEResource.NE_NAME].ToString(); cell.Active = Convert.ToBoolean(dic[NEResource.NE_ACTIVE]); cell.FreqBand = this.m_ColModel.CDMAFreBandColl.FindFrequencyBandByName(dic[NEResource.NE_FREQUENCY_BAND].ToString()); cell.MSCID = Convert.ToInt32(dic[NEResource.NE_CDMA_MSCID]); cell.BSCID = Convert.ToInt32(dic[NEResource.NE_CDMA_BSCID]); cell.BTSID = Convert.ToInt32(dic[NEResource.NE_CDMA_BTSID]); cell.CellID = Convert.ToInt32(dic[NEResource.NE_CDMA_CELLID]); cell.SectorID = Convert.ToInt32(dic[NEResource.NE_CDMA_SECTORID]); cell.ARFCN = Convert.ToInt32(dic[NEResource.NE_CDMA_ARFCN]); cell.BNDCLS = Convert.ToInt32(dic[NEResource.NE_CDMA_BNDCLS]); cell.PN = Convert.ToInt32(dic[NEResource.NE_CDMA_PN]); cell.PN_INC = Convert.ToInt32(dic[NEResource.NE_CDMA_PNINC]); cell.PN_GROUP = Convert.ToInt32(dic[NEResource.NE_CDMA_PNGROUP]); cell.NeedPlanNeighbor = Convert.ToBoolean(dic[NEResource.NE_CDMA_NEED_PLAN]); cell.BtsScene = (BtsSceneType) Enum.Parse(typeof(BtsSceneType), dic[NEResource.NE_CDMA_BTS_SCENE].ToString()); cell.ID = (dic["ID"] as IACell).ID; cell.MaxPower = (dic["ID"] as IACell).MaxPower; cell.UlTargetLoad = (dic["ID"] as IACell).UlTargetLoad; cell.DlTargetLoad = (dic["ID"] as IACell).DlTargetLoad; cell.Reception = (dic["ID"] as IACell).Reception; cell.ChannelIndex = (dic["ID"] as IACell).ChannelIndex; cell.PropModels = (dic["ID"] as IACell).PropModels; cell.Parent = this.m_Parent; return cell; }
public CDMACellDesc(CollectionsModel model, CDMACell carrierEntity) : this(model, carrierEntity, null) { }