예제 #1
0
 private bool ValidateObjectWithOutCell(string oriCellName, AntConfig config, Dictionary<string, List<int>> sectorIds)
 {
     if (config == null)
     {
         return false;
     }
     this.m_CellName = config.Parent.Name;
     AntConfig outdoorEntity = new AntConfig();
     outdoorEntity.IsMainAnt = this.m_IsMainAnt;
     this.m_AntConfigDesc = new AntConfigDesc(this.m_Model, outdoorEntity, this.m_CellName, oriCellName, sectorIds);
     this.m_AntConfigDesc.SetoldSectorId(this.m_OriSectorId);
     IExtractor ex = new AntConfigObjExtractor(config);
     short antennaID = (short) config.AntennaID;
     return this.Validate(ref this.m_Info, this.m_AntConfigDesc, ex, antennaID);
 }
예제 #2
0
 private bool ValidateDrWithoutCell(string oriCellName, DataRow dr, Dictionary<string, List<int>> sectorIds)
 {
     short sectorIdColumnsValue;
     AntConfig outdoorEntity = new AntConfig();
     outdoorEntity.IsMainAnt = this.m_IsMainAnt;
     this.m_AntConfigDesc = new AntConfigDesc(this.m_Model, outdoorEntity, this.m_CellName, oriCellName, sectorIds);
     this.m_AntConfigDesc.SetoldSectorId(this.m_OriSectorId);
     IExtractor ex = new DataRowExtractor(dr);
     try
     {
         sectorIdColumnsValue = this.GetSectorIdColumnsValue(dr["AntennaID"]);
     }
     catch
     {
         this.m_Info = NEResource.NE_INVALID_FIELD + NEResource.NE_SECTORID;
         return false;
     }
     return this.Validate(ref this.m_Info, this.m_AntConfigDesc, ex, sectorIdColumnsValue);
 }