Example #1
0
 private BISpecification FetchSpecificationSet(string plan)
 {
     if (this._serverIp.ToUpper() == "")
     {
         return(this._specSet[plan]);
     }
     else
     {
         TbiesIntf intf = new TbiesIntf(_serverIp);
         return(AnalyzePlan.TransformFromApp(intf.getSpec(plan)));
     }
 }
Example #2
0
 public void FetchPlansList(IDatabaseService service)
 {
     if (this._serverIp.ToUpper() == "")
     {
         var specTable = service.GetValidSpecificationTable();
         foreach (DataRow row in specTable.Rows)
         {
             this._specSet[row["Plan"].ToString()] = AnalyzePlan.Deserialize(row["Content"].ToString());
         }
     }
     else
     {
         TbiesIntf              intf    = new TbiesIntf(this._serverIp);
         List <Specification>   specs   = intf.getSpecsBrief();
         List <BISpecification> biSpecs = AnalyzePlan.TransformFromApp(specs);
         foreach (BISpecification spec in biSpecs)
         {
             this._specSet[spec.Plan] = spec;
         }
     }
 }