Inheritance: ConcreteDesignOptions
示例#1
0
 public void CopyFrom(UBC97_Conc copy)
 {
     tHDesign   = copy.tHDesign;
     numCurves  = copy.numCurves;
     numPoints  = copy.numPoints;
     minEccen   = copy.minEccen;
     patLLF     = copy.patLLF;
     uFLimit    = copy.uFLimit;
     phiB       = copy.phiB;
     phiCTied   = copy.phiCTied;
     phiCSpiral = copy.phiCSpiral;
     phiV       = copy.phiV;
 }
示例#2
0
 private void writeUBC97_Conc(XmlTextWriter xml, UBC97_Conc obj)
 {
     string thDesign = obj.GetTHDesignName(obj.THDesign);
     xml.WriteStartElement("THDesign");
     xml.WriteAttributeString("Name", thDesign);
     xml.WriteAttributeString("NumCurves", obj.NumCurves.ToString());
     xml.WriteAttributeString("NumPoints", obj.NumPoints.ToString());
     xml.WriteAttributeString("MinEccen", CodeYN(obj.MinEccen));
     xml.WriteAttributeString("PatLLF", obj.PatLLF.ToString());
     xml.WriteAttributeString("UFLimit", obj.UFLimit.ToString());
     xml.WriteAttributeString("PhiB", obj.PhiB.ToString());
     xml.WriteAttributeString("PhiCTied", obj.PhiCTied.ToString());
     xml.WriteAttributeString("PhiCSpiral", obj.PhiCSpiral.ToString());
     xml.WriteAttributeString("PhiV", obj.PhiV.ToString());
     xml.WriteEndElement();
     concreteCode = "UBC97";
 }
示例#3
0
 public void CopyFrom(UBC97_Conc copy)
 {
     tHDesign = copy.tHDesign;
     numCurves = copy.numCurves;
     numPoints = copy.numPoints;
     minEccen = copy.minEccen;
     patLLF = copy.patLLF;
     uFLimit = copy.uFLimit;
     phiB = copy.phiB;
     phiCTied = copy.phiCTied;
     phiCSpiral = copy.phiCSpiral;
     phiV = copy.phiV;
 }
示例#4
0
        private void store(OleDbConnection cn, UBC97_Conc obj)
        {
            string thDesign = obj.GetTHDesignName(obj.THDesign);
            //string FrameType = "\"OMF\"";
            string sql = "INSERT INTO [Preferences - Concrete Design - UBC97] " +
                    "(THDesign, NumCurves, NumPoints, MinEccen, PatLLF, UFLimit, PhiB, PhiCTied, PhiCSpiral, PhiV) VALUES " +
                    "(\"" + thDesign + "\", " + obj.NumCurves + ", " + obj.NumPoints + ", " + CodeYN(obj.MinEccen) + ", " + obj.PatLLF + ", " + obj.UFLimit + ", " + obj.PhiB + ", " + obj.PhiCTied + ", " + obj.PhiCSpiral + ", " + obj.PhiV + ");";

            new OleDbCommand(sql, cn).ExecuteNonQuery();

            sql = "UPDATE [Program Control] set ConcCode=\"UBC97\" WHERE 1=1;";
            new OleDbCommand(sql, cn).ExecuteNonQuery();
        }