예제 #1
0
 private bool ValidateDr(ref string info, object desc, IExtractor ex, int validateId)
 {
     Validator validator = new Validator();
     if (!validator.Validate(desc, ex, (short)validateId))
     {
         info = validator.ErrorString;
         return false;
     }
     return true;
 }
예제 #2
0
 private bool Validate(ref string info, object desc, IExtractor ex, short validatedID)
 {
     Validator validator = new Validator();
     if (!validator.Validate(desc, ex, validatedID))
     {
         info = validator.ErrorString;
         return false;
     }
     return true;
 }
예제 #3
0
 public bool Validate(ref string info)
 {
     Validator validator = new Validator();
     RepeaterEquipmentExtrator ex = new RepeaterEquipmentExtrator(this.m_RepeaterEquipment);
     RepeaterEquipmentDesc desc = new RepeaterEquipmentDesc(this.m_RepeaterEquipCol, new RepeaterEquipment());
     if (!validator.Validate(desc, ex, this.m_RepeaterEquipment.ID))
     {
         info = validator.ErrorString;
         return false;
     }
     return true;
 }
예제 #4
0
 public bool LogicValidate(ref string info)
 {
     BTSEquipObjExtractor ex = new BTSEquipObjExtractor(this.m_BackUpBts);
     BtsDesc desc = new BtsDesc(this.m_btsColl, new BtsEquipment());
     Validator validator = new Validator();
     if (!validator.Validate(desc, ex, this.m_BackUpBts.ID))
     {
         info = validator.ErrorString;
         return false;
     }
     return true;
 }
예제 #5
0
 public bool Validate(ref string info)
 {
     Validator validator = new Validator();
     TMAExtractor ex = new TMAExtractor(this.m_BackUpTma);
     TmaDesc desc = new TmaDesc(this.m_coll, new TmaEquipment());
     if (!validator.Validate(desc, ex, this.m_BackUpTma.ID))
     {
         info = validator.ErrorString;
         return false;
     }
     return true;
 }
예제 #6
0
파일: TplTdTab.cs 프로젝트: xiaoyj/Space
 public bool ValidateData(ref string errorInfo)
 {
     Dictionary<string, string> extractorDic = new Dictionary<string, string>();
     extractorDic.Add("TransceiverCount", this.tdscdmaTranceiverNum.Text);
     extractorDic.Add("AntennaAzimut", this.tdscdmaAntAzimuth.Text);
     extractorDic.Add("AntennaHeight", this.tdscdmaAntHeight.Text);
     extractorDic.Add("AntennaElecTilt", this.tdscdmaAntennaElecTilt.Text);
     extractorDic.Add("AntennaTilt", this.tdscdmaMechanicalTilt.Text);
     extractorDic.Add("MainModelResolution", this.tdscdmaMPropResolutin.Text);
     extractorDic.Add("MainCalcRidius", this.tdscdmaMPropRadius.Text);
     extractorDic.Add("ExtModelResolution", this.tdscdmaEPropResolution.Text);
     extractorDic.Add("ExtCalcRidius", this.tdscdmaEPropRadius.Text);
     Validator validator = new Validator();
     bool flag = validator.Validate(new TemplateTdscdmaDesc(new TDTplCarrier()), new TdscdmaTemplateExtrator(extractorDic), 0);
     errorInfo = validator.ErrorString;
     return flag;
 }
예제 #7
0
 private bool ValidateData()
 {
     Dictionary<string, object> dic = this.BuildExtractorDic();
     Validator validator = new Validator();
     SiteFormExtractor ex = new SiteFormExtractor(dic, this.m_Editor.site);
     SiteDesc desc = new SiteDesc(this.m_Editor.Model, new Huawei.UNet.NE.Interface.Site(), this.m_Editor.GeoObserver);
     bool flag = validator.Validate(desc, ex, this.m_Editor.site.ID);
     UserDefineFormExtractor extractor2 = new UserDefineFormExtractor(this.pnlOther);
     UserDefineDesc desc2 = new UserDefineDesc(this.m_Editor.UserDefCol.SiteExtDefList, new List<ExtDefKeyValue>());
     if (!(flag && validator.Validate(desc2, extractor2, 0)))
     {
         MessageBoxUtil.ShowInfo(validator.ErrorString);
         return false;
     }
     this.m_Editor.site.CopyFrom(desc.GetModel());
     this.m_Editor.site.ExtDefines = desc2.GetModel();
     return true;
 }