コード例 #1
0
ファイル: FJ.cs プロジェクト: vanloc0301/mychongchong
        public void TestHarness(iyddata tmpyddata, iyd ydreturn)
        {
            XmlReaderSettings xrs = new XmlReaderSettings();
            xrs.ConformanceLevel = ConformanceLevel.Document;
            xrs.IgnoreComments = true;
            xrs.IgnoreProcessingInstructions = true;
            xrs.IgnoreWhitespace = true;
            using (Stream s = new StreamReader(AppDomain.CurrentDomain.BaseDirectory.ToString() + @"..\addins\AppraiseMethod\Compiler.xml").BaseStream)
            {
                XmlReader reader = XmlReader.Create(s, xrs);

                string comment;
                string ruleset;
                ArrayList model = null;
                RuleEngine.ROM rom = null;

                bool inTest = false;
                while (!reader.EOF)
                {
                    if (reader.IsStartElement("test"))
                    {
                        Debug.WriteLine("START TEST");
                        inTest = true;
                        model = new ArrayList();
                        reader.Read();
                    }

                    else if (inTest && reader.Name == "comment")
                    {
                        comment = reader.ReadElementContentAsString();
                        Debug.WriteLine(comment);
                    }

                    else if (inTest && reader.Name == "ruleset")
                    {
                        ruleset = AppDomain.CurrentDomain.BaseDirectory.ToString() + reader.ReadElementContentAsString();
                        Debug.WriteLine(ruleset);
                        XmlDocument doc = new XmlDocument();
                        doc.Load(ruleset);
                        rom = RuleEngine.Compiler.Compiler.Compile(doc);
                    }

                    else if (inTest && reader.Name == "model")
                    {
                        string mid = reader.GetAttribute("modelId");
                        string m = AppDomain.CurrentDomain.BaseDirectory.ToString() + reader.ReadElementContentAsString();
                        XmlDocument mod = new XmlDocument();
                        mod.Load(m);
                        model.Add(mod);
                        rom.AddModel(mid, mod);
                    }

                    else if (inTest && reader.Name == "evaluate")
                    {
                        //evaluate
                        Debug.WriteLine("Evaluate");
                        rom.Evaluate();
                        reader.Read();
                    }

                    else if (inTest && reader.Name == "assign")
                    {
                        Debug.WriteLine("Assign");
                        string mid = reader.GetAttribute("factId");
                        string m = reader.ReadElementContentAsString();

                        object value;
                        //determine value type
                        switch (rom[mid].ValueType.ToString()) //deterrmine the type of value returned by xpath
                        {
                            case "System.Double":
                                value = Double.Parse(m);
                                break;
                            case "System.Boolean":
                                value = Boolean.Parse(m);
                                break;
                            case "System.String":
                                value = m;
                                break;
                            default:
                                throw new Exception("Invalid type: " + m);
                        }
                        rom[mid].Value = value;
                    }

                    else if (inTest && reader.Name == "result")
                    {
                        string mid = reader.GetAttribute("factId");
                        string m = reader.ReadElementContentAsString();
                        //==============此处返回处理后的结果
                        if (tmpyddata is yddjdata)
                        {
                            double dqpj;
                            //==========
                            //rom.Evidence["Fjglxxz"].Value
                            //rom.Evidence["Fcxxz"].Value
                            //rom.Evidence["Llxz"].Value
                            //rom.Evidence["Fllqkxz"].Value
                            //rom.Evidence["Fjtxz"].Value
                            //rom.Evidence["Rjlxz"].Value
                            if (yd != null)
                            {
                                yd = null;
                                yd = new yddj();
                            }
                            else
                            {
                                yd = new yddj();
                            }
                            if (bflag.Ss)
                            {
                                if (double.TryParse(this.txt房价区片价.Text.ToString(), out dqpj))
                                {
                                    yd.Fjqpj = dqpj;
                                }
                                else
                                {
                                    yd = null;
                                    SkyMap.Net.Gui.MessageHelper.ShowInfo("房价区片价不能为空");
                                    return;
                                }
                            }
                            else
                            {
                                if (double.TryParse(bflag.Dj.ToString(), out dqpj))
                                {
                                    yd.Fjqpj = dqpj;
                                }
                                else
                                {
                                    yd = null;
                                    SkyMap.Net.Gui.MessageHelper.ShowInfo("单价有误!");
                                    return;
                                }
                            }
                            yd.Jglxsz = rom["Fjglxxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fjglxxz"].Value.ToString());
                            if (yd.Jglxsz > 1000)
                            {
                                if ((yd as iyd).Jglxsz.ToString().Substring(0, 3) == "888")
                                {
                                    (yd as iyd).Jglxsz = 0;
                                }
                            }

                            yd.Cxsz = rom["Fcxxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fcxxz"].Value.ToString());
                            if (yd.Cxsz > 1000)
                            {
                                if ((yd as iyd).Cxsz.ToString().Substring(0, 3) == "888")
                                {
                                    (yd as iyd).Cxsz = 0;
                                }
                            }

                            yd.Llsz = rom["Llxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Llxz"].Value.ToString());
                            if (yd.Llsz > 1000)
                            {
                                if ((yd as iyd).Llsz.ToString().Substring(0, 3) == "888")
                                {
                                    int i = int.Parse((yd as iyd).Llsz.ToString().Substring(3, 1)) - 1; //当前所在点
                                    double d1 = 0d;
                                    double d2 = 0d;
                                    int t1 = 0;  //后面点
                                    int t2 = 0;  //前面点
                                    for (int t = i + 1; t < ydcol.Ll.Count; t++)
                                    {
                                        if (ydcol.Ll[t] < 1000)
                                        {
                                            d1 = ydcol.Ll[t];
                                            t1 = t + 1;
                                            break;
                                        }
                                    }
                                    for (int j = i - 1; j >= 0; j--)
                                    {
                                        if (ydcol.Ll[j] < 1000)
                                        {
                                            d2 = ydcol.Ll[j];
                                            t2 = j + 1;
                                            break;
                                        }
                                    }
                                    if (t1 == 0 && t2 == 0)
                                    {
                                        (yd as iyd).Llsz = 0;
                                    }
                                    else if (t1 != 0 && t2 == 0)
                                    {
                                        (yd as iyd).Llsz = d1;
                                    }
                                    else if (t1 == 0 && t2 != 0)
                                    {
                                        (yd as iyd).Llsz = d2;
                                    }
                                    else if (t1 != 0 && t2 != 0)
                                    {
                                        int ti = int.Parse((yd as iyd).Llsz.ToString().Substring(3, 1));
                                        if ((t1 - ti) > (ti - t2))
                                        {
                                            (yd as iyd).Llsz = d2;
                                        }
                                        else if ((t1 - ti) < (ti - t2))
                                        {
                                            (yd as iyd).Llsz = d1;
                                        }
                                        else if ((t1 - ti) == (ti - t2))
                                        {
                                            (yd as iyd).Llsz = d1;
                                        }
                                    }
                                }
                            }

                            yd.Lnqksz = rom["Fllqkxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fllqkxz"].Value.ToString());
                            if (yd.Lnqksz > 1000)
                            {
                                if ((yd as iyd).Lnqksz.ToString().Substring(0, 3) == "888")
                                {
                                    (yd as iyd).Lnqksz = 0;
                                }
                            }

                            (yd as iyddj).Jtsz = rom["Fjtxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fjtxz"].Value.ToString());
                            if ((yd as iyddj).Jtsz > 1000)
                            {
                                if ((yd as iyddj).Jtsz.ToString().Substring(0, 3) == "888")
                                {
                                    (yd as iyddj).Jtsz = 0;
                                }
                            }
                            #region rjl 特殊处理
                            (yd as iyddj).Rjlsz = rom["Rjlxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Rjlxz"].Value.ToString());
                            if ((yd as iyddj).Rjlsz > 1000)
                            {
                                if ((yd as iyddj).Rjlsz.ToString().Substring(0, 3) == "888")
                                {
                                    int i = int.Parse((yd as iyddj).Rjlsz.ToString().Substring(3, 1)) - 1; //当前所在点
                                    double d1 = 0d;
                                    double d2 = 0d;
                                    int t1 = 0;  //后面点
                                    int t2 = 0;  //前面点
                                    for (int t = i + 1; t < ydcol.Rjl.Count; t++)
                                    {
                                        if (ydcol.Rjl[t] < 1000)
                                        {
                                            d1 = ydcol.Rjl[t];
                                            t1 = t + 1;
                                            break;
                                        }
                                    }
                                    for (int j = i - 1; j >= 0; j--)
                                    {
                                        if (ydcol.Rjl[j] < 1000)
                                        {
                                            d2 = ydcol.Rjl[j];
                                            t2 = j + 1;
                                            break;
                                        }
                                    }

                                    if (t1 == 0 && t2 == 0)
                                    {
                                        (yd as iyddj).Rjlsz = 0;
                                    }
                                    else if (t1 != 0 && t2 == 0)
                                    {
                                        (yd as iyddj).Rjlsz = d1;
                                    }
                                    else if (t1 == 0 && t2 != 0)
                                    {
                                        (yd as iyddj).Rjlsz = d2;
                                    }
                                    else if (t1 != 0 && t2 != 0)
                                    {
                                        int ti = int.Parse((yd as iyddj).Rjlsz.ToString().Substring(3, 1));
                                        if ((t1 - ti) > (ti - t2))
                                        {
                                            (yd as iyddj).Rjlsz = d2;
                                        }
                                        else if ((t1 - ti) < (ti - t2))
                                        {
                                            (yd as iyddj).Rjlsz = d1;
                                        }
                                        else if ((t1 - ti) == (ti - t2))
                                        {
                                            (yd as iyddj).Rjlsz = d1;
                                        }
                                    }
                                }
                            }
                            #endregion

                        }
                        if (tmpyddata is ydfdjdata)
                        {
                            double dqpj;

                            if (yd != null)
                            {
                                yd = null;
                                yd = new ydfdj();
                            }
                            else
                            {
                                yd = new ydfdj();
                            }
                            if (bflag.Ss)
                            {
                                if (double.TryParse(this.txt房价区片价.Text.ToString(), out dqpj))
                                {
                                    yd.Fjqpj = dqpj;
                                }
                                else
                                {
                                    yd = null;
                                    SkyMap.Net.Gui.MessageHelper.ShowInfo("房价区片价不能为空");
                                    return;
                                }
                            }
                            else
                            {
                                if (double.TryParse(bflag.Dj.ToString(), out dqpj))
                                {
                                    yd.Fjqpj = dqpj;
                                }
                                else
                                {
                                    yd = null;
                                    SkyMap.Net.Gui.MessageHelper.ShowInfo("单价不能为空");
                                    return;
                                }
                            }
                            yd.Jglxsz = rom["Fjglxxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fjglxxz"].Value.ToString());
                            if (yd.Jglxsz > 1000)
                            {
                                if ((yd as iyd).Jglxsz.ToString().Substring(0, 3) == "888")
                                {
                                    (yd as iyd).Jglxsz = 0;
                                }
                            }

                            yd.Cxsz = rom["Fcxxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fcxxz"].Value.ToString());
                            if (yd.Cxsz > 1000)
                            {
                                if ((yd as iyd).Cxsz.ToString().Substring(0, 3) == "888")
                                {
                                    (yd as iyd).Cxsz = 0;
                                }
                            }

                            yd.Llsz = rom["Llxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Llxz"].Value.ToString());
                            if (yd.Llsz > 1000)
                            {
                                if ((yd as iyd).Llsz.ToString().Substring(0, 3) == "888")
                                {
                                    int i = int.Parse((yd as iyd).Llsz.ToString().Substring(3, 1)) - 1; //当前所在点
                                    double d1 = 0d;
                                    double d2 = 0d;
                                    int t1 = 0;  //后面点
                                    int t2 = 0;  //前面点
                                    for (int t = i + 1; t < ydcol.Ll.Count; t++)
                                    {
                                        if (ydcol.Ll[t] < 1000)
                                        {
                                            d1 = ydcol.Ll[t];
                                            t1 = t + 1;
                                            break;
                                        }
                                    }
                                    for (int j = i - 1; j >= 0; j--)
                                    {
                                        if (ydcol.Ll[j] < 1000)
                                        {
                                            d2 = ydcol.Ll[j];
                                            t2 = j + 1;
                                            break;
                                        }
                                    }
                                    if (t1 == 0 && t2 == 0)
                                    {
                                        (yd as iyd).Llsz = 0;
                                    }
                                    else if (t1 != 0 && t2 == 0)
                                    {
                                        (yd as iyd).Llsz = d1;
                                    }
                                    else if (t1 == 0 && t2 != 0)
                                    {
                                        (yd as iyd).Llsz = d2;
                                    }
                                    else if (t1 != 0 && t2 != 0)
                                    {
                                        int ti = int.Parse((yd as iyd).Llsz.ToString().Substring(3, 1));
                                        if ((t1 - ti) > (ti - t2))
                                        {
                                            (yd as iyd).Llsz = d2;
                                        }
                                        else if ((t1 - ti) < (ti - t2))
                                        {
                                            (yd as iyd).Llsz = d1;
                                        }
                                        else if ((t1 - ti) == (ti - t2))
                                        {
                                            (yd as iyd).Llsz = d1;
                                        }
                                    }
                                }
                            }

                            yd.Lnqksz = rom["Fllqkxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fllqkxz"].Value.ToString());
                            if (yd.Lnqksz > 1000)
                            {
                                if ((yd as iyd).Lnqksz.ToString().Substring(0, 3) == "888")
                                {
                                    (yd as iyd).Lnqksz = 0;
                                }
                            }

                            #region fdj jzmj
                            (yd as iydfdj).Jzmjsz = rom["Jzmjxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Jzmjxz"].Value.ToString());
                            if ((yd as iydfdj).Jzmjsz > 1000)
                            {
                                if ((yd as iydfdj).Jzmjsz.ToString().Substring(0, 3) == "888")
                                {
                                    int i = int.Parse((yd as iydfdj).Jzmjsz.ToString().Substring(3, 1)) - 1; //当前所在点
                                    double d1 = 0d;
                                    double d2 = 0d;
                                    int t1 = 0;  //后面点
                                    int t2 = 0;  //前面点
                                    for (int t = i + 1; t < ydcol.Jzmj.Count; t++)
                                    {
                                        if (ydcol.Jzmj[t] < 1000)
                                        {
                                            d1 = ydcol.Jzmj[t];
                                            t1 = t + 1;
                                            break;
                                        }
                                    }
                                    for (int j = i - 1; j >= 0; j--)
                                    {
                                        if (ydcol.Jzmj[j] < 1000)
                                        {
                                            d2 = ydcol.Jzmj[j];
                                            t2 = j + 1;
                                            break;
                                        }
                                    }

                                    if (t1 == 0 && t2 == 0)
                                    {
                                        (yd as iydfdj).Jzmjsz = 0;

                                    }
                                    else if (t1 != 0 && t2 == 0)
                                    {
                                        (yd as iydfdj).Jzmjsz = d1;

                                    }
                                    else if (t1 == 0 && t2 != 0)
                                    {
                                        (yd as iydfdj).Jzmjsz = d2;

                                    }
                                    else if (t1 != 0 && t2 != 0)
                                    {
                                        int ti = int.Parse((yd as iydfdj).Jzmjsz.ToString().Substring(3, 1));
                                        if ((t1 - ti) > (ti - t2))
                                        {
                                            (yd as iydfdj).Jzmjsz = d2;
                                        }
                                        else if ((t1 - ti) < (ti - t2))
                                        {
                                            (yd as iydfdj).Jzmjsz = d1;
                                        }
                                        else if ((t1 - ti) == (ti - t2))
                                        {
                                            (yd as iydfdj).Jzmjsz = d1;
                                        }
                                    }
                                }
                            }
                            #endregion

                            (yd as iydfdj).Fssz = rom["Fsxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fsxz"].Value.ToString());
                            if ((yd as iydfdj).Fssz > 1000)
                            {
                                (yd as iydfdj).Fssz = 0;
                            }

                            (yd as iydfdj).Gtsz = rom["Gtxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Gtxz"].Value.ToString());
                            if ((yd as iydfdj).Gtsz > 1000)
                            {
                                (yd as iydfdj).Gtsz = 0;
                            }

                            (yd as iydfdj).Lxsz = rom["Llxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Llxz"].Value.ToString());
                            if ((yd as iydfdj).Lxsz > 1000)
                            {
                                (yd as iydfdj).Lxsz = 0;
                            }

                            (yd as iydfdj).Wyglsz = rom["Wyxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Wyxz"].Value.ToString());
                            if ((yd as iydfdj).Wyglsz > 1000)
                            {
                                (yd as iydfdj).Wyglsz = 0;
                            }

                            if ((tmpyddata as ydfdjdata).Ywdt.Contains("有"))
                            {
                                (yd as iydfdj).Lcsz = rom["Dtxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Dtxz"].Value.ToString());
                                #region fdj dt
                                if ((yd as iydfdj).Lcsz > 1000)
                                {
                                    if ((yd as iydfdj).Lcsz.ToString().Substring(0, 3) == "888")
                                    {
                                        int i = int.Parse((yd as iydfdj).Lcsz.ToString().Substring(3, 1)) - 1; //当前所在点
                                        double d1 = 0d;
                                        double d2 = 0d;
                                        int t1 = 0;  //后面点
                                        int t2 = 0;  //前面点
                                        for (int t = i + 1; t < ydcol.Dt.Count; t++)
                                        {
                                            if (ydcol.Dt[t] < 1000)
                                            {
                                                d1 = ydcol.Dt[t];
                                                t1 = t + 1;
                                                break;
                                            }
                                        }
                                        for (int j = i - 1; j >= 0; j--)
                                        {
                                            if (ydcol.Dt[j] < 1000)
                                            {
                                                d2 = ydcol.Dt[j];
                                                t2 = j + 1;
                                                break;
                                            }
                                        }
                                        if (t1 == 0 && t2 == 0)
                                        {
                                            (yd as iydfdj).Lcsz = 0;
                                        }
                                        else if (t1 != 0 && t2 == 0)
                                        {
                                            (yd as iydfdj).Lcsz = d1;
                                        }
                                        else if (t1 == 0 && t2 != 0)
                                        {
                                            (yd as iydfdj).Lcsz = d2;
                                        }
                                        else if (t1 != 0 && t2 != 0)
                                        {
                                            int ti = int.Parse((yd as iydfdj).Lcsz.ToString().Substring(3, 1));
                                            if ((t1 - ti) > (ti - t2))
                                            {
                                                (yd as iydfdj).Lcsz = d2;
                                            }
                                            else if ((t1 - ti) < (ti - t2))
                                            {
                                                (yd as iydfdj).Lcsz = d1;
                                            }
                                            else if ((t1 - ti) == (ti - t2))
                                            {
                                                (yd as iydfdj).Lcsz = d1;
                                            }
                                        }
                                    }
                                }
                                #endregion
                            }
                            else if ((tmpyddata as ydfdjdata).Ywdt.Contains("无"))
                            {
                                (yd as iydfdj).Lcsz = rom["Fdtxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Fdtxz"].Value.ToString());
                                #region fdj fdt
                                if ((yd as iydfdj).Lcsz > 1000)
                                {
                                    if ((yd as iydfdj).Lcsz.ToString().Substring(0, 3) == "888")
                                    {
                                        int i = int.Parse((yd as iydfdj).Lcsz.ToString().Substring(3, 1)) - 1; //当前所在点
                                        double d1 = 0d;
                                        double d2 = 0d;
                                        int t1 = 0;  //后面点
                                        int t2 = 0;  //前面点
                                        for (int t = i + 1; t < ydcol.Fdt.Count; t++)
                                        {
                                            if (ydcol.Fdt[t] < 1000)
                                            {
                                                d1 = ydcol.Fdt[t];
                                                t1 = t + 1;
                                                break;
                                            }
                                        }
                                        for (int j = i - 1; j >= 0; j--)
                                        {
                                            if (ydcol.Fdt[j] < 1000)
                                            {
                                                d2 = ydcol.Fdt[j];
                                                t2 = j + 1;
                                                break;
                                            }
                                        }

                                        if (t1 == 0 && t2 == 0)
                                        {
                                            (yd as iydfdj).Lcsz = 0;

                                        }
                                        else if (t1 != 0 && t2 == 0)
                                        {
                                            (yd as iydfdj).Lcsz = d1;

                                        }
                                        else if (t1 == 0 && t2 != 0)
                                        {
                                            (yd as iydfdj).Lcsz = d2;

                                        }
                                        else if (t1 != 0 && t2 != 0)
                                        {
                                            int ti = int.Parse((yd as iydfdj).Lcsz.ToString().Substring(3, 1));
                                            if ((t1 - ti) > (ti - t2))
                                            {
                                                (yd as iydfdj).Lcsz = d2;
                                            }
                                            else if ((t1 - ti) < (ti - t2))
                                            {
                                                (yd as iydfdj).Lcsz = d1;
                                            }
                                            else if ((t1 - ti) == (ti - t2))
                                            {
                                                (yd as iydfdj).Lcsz = d1;
                                            }
                                        }
                                    }
                                }
                                #endregion
                            }
                            else
                            {
                                (yd as iydfdj).Lcsz = 0;
                            }

                            (yd as iydfdj).Dtsz = rom["Dtszxz"].Value.ToString() == "999" ? 0 : double.Parse(rom["Dtszxz"].Value.ToString());
                            if ((yd as iydfdj).Dtsz > 1000)
                            {
                                (yd as iydfdj).Dtsz = 0;
                            }

                        }

                    }

                    else if (inTest && reader.Name == "test")
                    {
                        rom = null;
                        model = null;
                        comment = null;
                        ruleset = null;
                        inTest = false;
                        reader.Read();
                        Debug.WriteLine("END TEST");
                    }
                    else
                    {
                        reader.Read();
                    }

                }
            }
        }
コード例 #2
0
ファイル: FJ.cs プロジェクト: vanloc0301/mychongchong
        private void EvaluateYd(iyddata tmpyddata, iyd ydreturn)
        {
            string jglxsz = "";
            string cxsz = "";
            string lnqksz = "";
            double jzmj = 0d;
            double llsz = 0d;

            double rjlsz = 0d;
            string jtsz = "";

            string lxsz = "";
            double lcsz = 0d;
            double zlc = 0d;
            string wy = "";
            string fs = "";
            string gt = "";
            string ywdt = "";

            DataSet ds = (this as IDataForm).DataFormConntroller.DataSource;
            XElement fjxml;
            DataTable dtjglx = ds.Tables["yw_结构类型修正"].Copy();
            DataTable dtcx = ds.Tables["yw_朝向修正"].Copy();
            DataTable dtll = ds.Tables["yw_楼龄修正"].Copy();
            DataTable dtllqk = ds.Tables["yw_临路情况修正"].Copy();
            DataTable dtjt = ds.Tables["yw_交通修正"].Copy();
            DataTable dtjzmj = ds.Tables["yw_建筑面积修正"].Copy();
            DataTable dtlx = ds.Tables["yw_楼型修正"].Copy();
            DataTable dtgt = ds.Tables["yw_公摊修正"].Copy();
            DataTable dtwy = ds.Tables["yw_物业管理修正"].Copy();
            DataTable dtfs = ds.Tables["yw_复式修正"].Copy();
            DataTable dtdt = ds.Tables["yw_电梯房楼层修正"].Copy();
            DataTable dtfdt = ds.Tables["yw_无电梯房楼层修正"].Copy();
            DataTable dtrjl = ds.Tables["yw_容积率修正"].Copy();
            DataTable dtsz = ds.Tables["yw_电梯修正"].Copy();
            if (tmpyddata is yddjdata)
            {
                //==========
                cxsz = (tmpyddata as yddjdata).Cxsz;
                jglxsz = (tmpyddata as yddjdata).Jglxsz;
                jtsz = (tmpyddata as yddjdata).Jtsz;
                jzmj = (tmpyddata as yddjdata).Jzmj;
                llsz = (tmpyddata as yddjdata).Llsz;
                lnqksz = (tmpyddata as yddjdata).Lnqksz;
                rjlsz = (tmpyddata as yddjdata).Rjlsz;

            }
            if (tmpyddata is ydfdjdata)
            {
                cxsz = (tmpyddata as ydfdjdata).Cxsz;
                jglxsz = (tmpyddata as ydfdjdata).Jglxsz;
                jzmj = (tmpyddata as ydfdjdata).Jzmj;
                llsz = (tmpyddata as ydfdjdata).Llsz;
                lnqksz = (tmpyddata as ydfdjdata).Lnqksz;

                lxsz = (tmpyddata as ydfdjdata).Lxsz;
                lcsz = (tmpyddata as ydfdjdata).Lcsz;
                zlc = (tmpyddata as ydfdjdata).Zlc;
                wy = (tmpyddata as ydfdjdata).Wyglsz;
                fs = (tmpyddata as ydfdjdata).Fssz;
                gt = (tmpyddata as ydfdjdata).Gtsz;
                ywdt = (tmpyddata as ydfdjdata).Ywdt;

                if (ywdt.Contains("有"))
                {
                    dtfdt.Rows.Clear();
                    dtfdt.AcceptChanges();
                    if (dtdt.Rows.Count >= 1)
                    {
                        foreach (DataRow dr in dtdt.Rows)
                        {
                            try
                            {
                                if (int.Parse(dr["楼层数"].ToString()) != zlc)
                                {
                                    dr.Delete();
                                }
                            }
                            catch
                            {
                            }
                        }
                        dtdt.AcceptChanges();
                    }
                }
                else if (ywdt.Contains("无"))
                {
                    dtdt.Rows.Clear();
                    dtdt.AcceptChanges();
                    if (dtfdt.Rows.Count >= 1)
                    {
                        foreach (DataRow dr in dtfdt.Rows)
                        {
                            try
                            {
                                if (int.Parse(dr["楼层数"].ToString()) != zlc)
                                {
                                    dr.Delete();
                                }
                            }
                            catch
                            {
                            }
                        }
                        dtfdt.AcceptChanges();
                    }

                }
                else
                {

                }
            }
            //==========
            if (dtll.Rows.Count >= 1)
            {
                int tmpjglx = 0;
                if (tmpyddata is yddjdata)
                {
                    if ((tmpyddata as yddjdata).Jglxsz.Contains("钢筋混凝土"))
                    {
                        tmpjglx = 1;
                    }
                    else if ((tmpyddata as yddjdata).Jglxsz.Contains("混合"))
                    {
                        tmpjglx = 2;
                    }
                    else if ((tmpyddata as yddjdata).Jglxsz.Contains("转木"))
                    {
                        tmpjglx = 3;
                    }
                    else if ((tmpyddata as yddjdata).Jglxsz.Contains("其它"))
                    {
                        tmpjglx = 4;
                    }
                }
                else if (tmpyddata is ydfdjdata)
                {
                    if ((tmpyddata as ydfdjdata).Jglxsz.Contains("钢筋混凝土"))
                    {
                        tmpjglx = 1;
                    }
                    else if ((tmpyddata as ydfdjdata).Jglxsz.Contains("混合"))
                    {
                        tmpjglx = 2;
                    }
                    else if ((tmpyddata as ydfdjdata).Jglxsz.Contains("转木"))
                    {
                        tmpjglx = 3;
                    }
                    else if ((tmpyddata as ydfdjdata).Jglxsz.Contains("其它"))
                    {
                        tmpjglx = 4;
                    }
                }
                else
                {
                    return;
                }

                foreach (DataRow dr in dtll.Rows)
                {
                    try
                    {
                        if (int.Parse(dr["结构类型"].ToString()) != tmpjglx)
                        {
                            dr.Delete();
                        }
                    }
                    catch
                    {
                    }
                }
                dtll.AcceptChanges();
            }

            #region
            if (ydcol != null)
            {
                ydcol.Cx.Clear();
                ydcol.Dt.Clear();
                ydcol.Fdt.Clear();
                ydcol.Fs.Clear();
                ydcol.Gt.Clear();
                ydcol.Jglx.Clear();
                ydcol.Jt.Clear();
                ydcol.Jzmj.Clear();
                ydcol.Ll.Clear();
                ydcol.Lnqk.Clear();
                ydcol.Lx.Clear();
                ydcol.Wy.Clear();
                ydcol.Rjl.Clear();
            }
            else
            {
                ydcol = new ydcollection();
            }
            ydcol.Jglx.Add(dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["钢筋混凝土"] == System.DBNull.Value ? 8881 : double.Parse(dtjglx.Rows[0]["钢筋混凝土"].ToString())) : 999);
            ydcol.Jglx.Add(dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["混合"] == System.DBNull.Value ? 8882 : double.Parse(dtjglx.Rows[0]["混合"].ToString())) : 999);
            ydcol.Jglx.Add(dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["砖木"] == System.DBNull.Value ? 8883 : double.Parse(dtjglx.Rows[0]["砖木"].ToString())) : 999);
            ydcol.Jglx.Add(dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["其他"] == System.DBNull.Value ? 8884 : double.Parse(dtjglx.Rows[0]["其他"].ToString())) : 999);

            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["东"] == System.DBNull.Value ? 8881 : double.Parse(dtcx.Rows[0]["东"].ToString())) : 999);
            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["东南"] == System.DBNull.Value ? 8882 : double.Parse(dtcx.Rows[0]["东南"].ToString())) : 999);
            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["南"] == System.DBNull.Value ? 8883 : double.Parse(dtcx.Rows[0]["南"].ToString())) : 999);
            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["西南"] == System.DBNull.Value ? 8884 : double.Parse(dtcx.Rows[0]["西南"].ToString())) : 999);
            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["西"] == System.DBNull.Value ? 8885 : double.Parse(dtcx.Rows[0]["西"].ToString())) : 999);
            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["西北"] == System.DBNull.Value ? 8886 : double.Parse(dtcx.Rows[0]["西北"].ToString())) : 999);
            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["北"] == System.DBNull.Value ? 8887 : double.Parse(dtcx.Rows[0]["北"].ToString())) : 999);
            ydcol.Cx.Add(dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["东北"] == System.DBNull.Value ? 8888 : double.Parse(dtcx.Rows[0]["东北"].ToString())) : 999);

            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["1年"] == System.DBNull.Value ? 8881 : double.Parse(dtll.Rows[0]["1年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["2年"] == System.DBNull.Value ? 8882 : double.Parse(dtll.Rows[0]["2年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["3年"] == System.DBNull.Value ? 8883 : double.Parse(dtll.Rows[0]["3年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["4年"] == System.DBNull.Value ? 8884 : double.Parse(dtll.Rows[0]["4年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["5年"] == System.DBNull.Value ? 8885 : double.Parse(dtll.Rows[0]["5年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["6年"] == System.DBNull.Value ? 8886 : double.Parse(dtll.Rows[0]["6年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["7年"] == System.DBNull.Value ? 8887 : double.Parse(dtll.Rows[0]["7年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["8年"] == System.DBNull.Value ? 8888 : double.Parse(dtll.Rows[0]["8年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["10年"] == System.DBNull.Value ? 8889 : double.Parse(dtll.Rows[0]["10年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["12年"] == System.DBNull.Value ? 88810 : double.Parse(dtll.Rows[0]["12年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["13年"] == System.DBNull.Value ? 88811 : double.Parse(dtll.Rows[0]["13年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["15年"] == System.DBNull.Value ? 88812 : double.Parse(dtll.Rows[0]["15年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["18年"] == System.DBNull.Value ? 88813 : double.Parse(dtll.Rows[0]["18年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["20年"] == System.DBNull.Value ? 88814 : double.Parse(dtll.Rows[0]["20年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["22年"] == System.DBNull.Value ? 88815 : double.Parse(dtll.Rows[0]["22年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["25年"] == System.DBNull.Value ? 88816 : double.Parse(dtll.Rows[0]["25年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["26年"] == System.DBNull.Value ? 88817 : double.Parse(dtll.Rows[0]["26年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["30年"] == System.DBNull.Value ? 88818 : double.Parse(dtll.Rows[0]["30年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["35年"] == System.DBNull.Value ? 88819 : double.Parse(dtll.Rows[0]["35年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["40年"] == System.DBNull.Value ? 88820 : double.Parse(dtll.Rows[0]["40年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["45年"] == System.DBNull.Value ? 88821 : double.Parse(dtll.Rows[0]["45年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["50年"] == System.DBNull.Value ? 88822 : double.Parse(dtll.Rows[0]["50年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["55年"] == System.DBNull.Value ? 88823 : double.Parse(dtll.Rows[0]["55年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["60年"] == System.DBNull.Value ? 88824 : double.Parse(dtll.Rows[0]["60年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["65年"] == System.DBNull.Value ? 88825 : double.Parse(dtll.Rows[0]["65年"].ToString())) : 999);
            ydcol.Ll.Add(dtll.Rows.Count == 1 ? (dtll.Rows[0]["70年"] == System.DBNull.Value ? 88826 : double.Parse(dtll.Rows[0]["70年"].ToString())) : 999);

            ydcol.Lnqk.Add(dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临主要交通干道"] == System.DBNull.Value ? 8881 : double.Parse(dtllqk.Rows[0]["临主要交通干道"].ToString())) : 999);
            ydcol.Lnqk.Add(dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临一般交通干道"] == System.DBNull.Value ? 8882 : double.Parse(dtllqk.Rows[0]["临一般交通干道"].ToString())) : 999);
            ydcol.Lnqk.Add(dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["不临交通干道"] == System.DBNull.Value ? 8883 : double.Parse(dtllqk.Rows[0]["不临交通干道"].ToString())) : 999);
            ydcol.Lnqk.Add(dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临支路"] == System.DBNull.Value ? 8884 : double.Parse(dtllqk.Rows[0]["临支路"].ToString())) : 999);
            ydcol.Lnqk.Add(dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临小区交通干道"] == System.DBNull.Value ? 8885 : double.Parse(dtllqk.Rows[0]["临小区交通干道"].ToString())) : 999);

            ydcol.Jt.Add(dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["不能通摩托车"] == System.DBNull.Value ? 8881 : double.Parse(dtjt.Rows[0]["不能通摩托车"].ToString())) : 999);
            ydcol.Jt.Add(dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可同摩托车,不同小汽车"] == System.DBNull.Value ? 8882 : double.Parse(dtjt.Rows[0]["可同摩托车,不同小汽车"].ToString())) : 999);
            ydcol.Jt.Add(dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可通1小车"] == System.DBNull.Value ? 8883 : double.Parse(dtjt.Rows[0]["可通1小车"].ToString())) : 999);
            ydcol.Jt.Add(dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可通2小车"] == System.DBNull.Value ? 8884 : double.Parse(dtjt.Rows[0]["可通2小车"].ToString())) : 999);
            ydcol.Jt.Add(dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可通3小车"] == System.DBNull.Value ? 8885 : double.Parse(dtjt.Rows[0]["可通3小车"].ToString())) : 999);

            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_1"] == System.DBNull.Value ? 8881 : double.Parse(dtrjl.Rows[0]["0_1"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_2"] == System.DBNull.Value ? 8882 : double.Parse(dtrjl.Rows[0]["0_2"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_3"] == System.DBNull.Value ? 8883 : double.Parse(dtrjl.Rows[0]["0_3"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_35"] == System.DBNull.Value ? 8884 : double.Parse(dtrjl.Rows[0]["0_35"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_4"] == System.DBNull.Value ? 8885 : double.Parse(dtrjl.Rows[0]["0_4"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_5"] == System.DBNull.Value ? 8886 : double.Parse(dtrjl.Rows[0]["0_5"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_6"] == System.DBNull.Value ? 8887 : double.Parse(dtrjl.Rows[0]["0_6"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_65"] == System.DBNull.Value ? 8888 : double.Parse(dtrjl.Rows[0]["0_65"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_7"] == System.DBNull.Value ? 8889 : double.Parse(dtrjl.Rows[0]["0_7"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_8"] == System.DBNull.Value ? 88810 : double.Parse(dtrjl.Rows[0]["0_8"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_9"] == System.DBNull.Value ? 88811 : double.Parse(dtrjl.Rows[0]["0_9"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1"] == System.DBNull.Value ? 88812 : double.Parse(dtrjl.Rows[0]["1"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_1"] == System.DBNull.Value ? 88813 : double.Parse(dtrjl.Rows[0]["1_1"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_2"] == System.DBNull.Value ? 88814 : double.Parse(dtrjl.Rows[0]["1_2"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_25"] == System.DBNull.Value ? 88815 : double.Parse(dtrjl.Rows[0]["1_25"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_3"] == System.DBNull.Value ? 88816 : double.Parse(dtrjl.Rows[0]["1_3"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_4"] == System.DBNull.Value ? 88817 : double.Parse(dtrjl.Rows[0]["1_4"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_5"] == System.DBNull.Value ? 88818 : double.Parse(dtrjl.Rows[0]["1_5"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_58"] == System.DBNull.Value ? 88819 : double.Parse(dtrjl.Rows[0]["1_58"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_6"] == System.DBNull.Value ? 88820 : double.Parse(dtrjl.Rows[0]["1_6"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_63"] == System.DBNull.Value ? 88821 : double.Parse(dtrjl.Rows[0]["1_63"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_7"] == System.DBNull.Value ? 88822 : double.Parse(dtrjl.Rows[0]["1_7"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_8"] == System.DBNull.Value ? 88823 : double.Parse(dtrjl.Rows[0]["1_8"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_9"] == System.DBNull.Value ? 88824 : double.Parse(dtrjl.Rows[0]["1_9"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2"] == System.DBNull.Value ? 88825 : double.Parse(dtrjl.Rows[0]["2"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_1"] == System.DBNull.Value ? 88826 : double.Parse(dtrjl.Rows[0]["2_1"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_2"] == System.DBNull.Value ? 88827 : double.Parse(dtrjl.Rows[0]["2_2"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_3"] == System.DBNull.Value ? 88828 : double.Parse(dtrjl.Rows[0]["2_3"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_4"] == System.DBNull.Value ? 88829 : double.Parse(dtrjl.Rows[0]["2_4"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_5"] == System.DBNull.Value ? 88830 : double.Parse(dtrjl.Rows[0]["2_5"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_6"] == System.DBNull.Value ? 88831 : double.Parse(dtrjl.Rows[0]["2_6"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_7"] == System.DBNull.Value ? 88832 : double.Parse(dtrjl.Rows[0]["2_7"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_8"] == System.DBNull.Value ? 88833 : double.Parse(dtrjl.Rows[0]["2_8"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_9"] == System.DBNull.Value ? 88834 : double.Parse(dtrjl.Rows[0]["2_9"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3"] == System.DBNull.Value ? 88835 : double.Parse(dtrjl.Rows[0]["3"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_1"] == System.DBNull.Value ? 88836 : double.Parse(dtrjl.Rows[0]["3_1"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_2"] == System.DBNull.Value ? 88837 : double.Parse(dtrjl.Rows[0]["3_2"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_3"] == System.DBNull.Value ? 88838 : double.Parse(dtrjl.Rows[0]["3_3"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_4"] == System.DBNull.Value ? 88839 : double.Parse(dtrjl.Rows[0]["3_4"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_5"] == System.DBNull.Value ? 88840 : double.Parse(dtrjl.Rows[0]["3_5"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_6"] == System.DBNull.Value ? 88841 : double.Parse(dtrjl.Rows[0]["3_6"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_7"] == System.DBNull.Value ? 88842 : double.Parse(dtrjl.Rows[0]["3_7"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_8"] == System.DBNull.Value ? 88843 : double.Parse(dtrjl.Rows[0]["3_8"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_9"] == System.DBNull.Value ? 88844 : double.Parse(dtrjl.Rows[0]["3_9"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4"] == System.DBNull.Value ? 88845 : double.Parse(dtrjl.Rows[0]["4"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_1"] == System.DBNull.Value ? 88846 : double.Parse(dtrjl.Rows[0]["4_1"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_2"] == System.DBNull.Value ? 88847 : double.Parse(dtrjl.Rows[0]["4_2"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_3"] == System.DBNull.Value ? 88848 : double.Parse(dtrjl.Rows[0]["4_3"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_4"] == System.DBNull.Value ? 88849 : double.Parse(dtrjl.Rows[0]["4_4"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_5"] == System.DBNull.Value ? 88850 : double.Parse(dtrjl.Rows[0]["4_5"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_6"] == System.DBNull.Value ? 88851 : double.Parse(dtrjl.Rows[0]["4_6"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_7"] == System.DBNull.Value ? 88852 : double.Parse(dtrjl.Rows[0]["4_7"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_8"] == System.DBNull.Value ? 88853 : double.Parse(dtrjl.Rows[0]["4_8"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_9"] == System.DBNull.Value ? 88854 : double.Parse(dtrjl.Rows[0]["4_9"].ToString())) : 999);
            ydcol.Rjl.Add(dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["5"] == System.DBNull.Value ? 88855 : double.Parse(dtrjl.Rows[0]["5"].ToString())) : 999);

            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["小于60平方米"] == System.DBNull.Value ? 8881 : double.Parse(dtjzmj.Rows[0]["小于60平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["60~80平方米"] == System.DBNull.Value ? 8882 : double.Parse(dtjzmj.Rows[0]["60~80平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["80~100平方米"] == System.DBNull.Value ? 8883 : double.Parse(dtjzmj.Rows[0]["80~100平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["100~120平方米"] == System.DBNull.Value ? 8884 : double.Parse(dtjzmj.Rows[0]["100~120平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["120~140平方米"] == System.DBNull.Value ? 8885 : double.Parse(dtjzmj.Rows[0]["120~140平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["140~160平方米"] == System.DBNull.Value ? 8886 : double.Parse(dtjzmj.Rows[0]["140~160平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["160~200平方米"] == System.DBNull.Value ? 8887 : double.Parse(dtjzmj.Rows[0]["160~200平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["200~250平方米"] == System.DBNull.Value ? 8888 : double.Parse(dtjzmj.Rows[0]["200~250平方米"].ToString())) : 999);
            ydcol.Jzmj.Add(dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["250平方米以上"] == System.DBNull.Value ? 8889 : double.Parse(dtjzmj.Rows[0]["250平方米以上"].ToString())) : 999);

            ydcol.Lx.Add(dtlx.Rows.Count == 1 ? (dtlx.Rows[0]["1梯1户及2户"] == System.DBNull.Value ? 8881 : double.Parse(dtlx.Rows[0]["1梯1户及2户"].ToString())) : 999);
            ydcol.Lx.Add(dtlx.Rows.Count == 1 ? (dtlx.Rows[0]["1梯3户及以上"] == System.DBNull.Value ? 8882 : double.Parse(dtlx.Rows[0]["1梯3户及以上"].ToString())) : 999);

            ydcol.Gt.Add(dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["电梯房含公摊"] == System.DBNull.Value ? 8881 : double.Parse(dtgt.Rows[0]["电梯房含公摊"].ToString())) : 999);
            ydcol.Gt.Add(dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["电梯房不含公摊"] == System.DBNull.Value ? 8882 : double.Parse(dtgt.Rows[0]["电梯房不含公摊"].ToString())) : 999);
            ydcol.Gt.Add(dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["非电梯房含公摊"] == System.DBNull.Value ? 8883 : double.Parse(dtgt.Rows[0]["非电梯房含公摊"].ToString())) : 999);
            ydcol.Gt.Add(dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["非电梯房不含公摊"] == System.DBNull.Value ? 8884 : double.Parse(dtgt.Rows[0]["非电梯房不含公摊"].ToString())) : 999);

            ydcol.Wy.Add(dtwy.Rows.Count == 1 ? (dtwy.Rows[0]["有物业管理"] == System.DBNull.Value ? 8881 : double.Parse(dtwy.Rows[0]["有物业管理"].ToString())) : 999);
            ydcol.Wy.Add(dtwy.Rows.Count == 1 ? (dtwy.Rows[0]["无物业管理"] == System.DBNull.Value ? 8882 : double.Parse(dtwy.Rows[0]["无物业管理"].ToString())) : 999);

            ydcol.Fs.Add(dtfs.Rows.Count == 1 ? (dtfs.Rows[0]["复式"] == System.DBNull.Value ? 8881 : double.Parse(dtfs.Rows[0]["复式"].ToString())) : 999);
            ydcol.Fs.Add(dtfs.Rows.Count == 1 ? (dtfs.Rows[0]["不是复式"] == System.DBNull.Value ? 8882 : double.Parse(dtfs.Rows[0]["不是复式"].ToString())) : 999);

            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["1楼"] == System.DBNull.Value ? 8881 : double.Parse(dtdt.Rows[0]["1楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["2楼"] == System.DBNull.Value ? 8882 : double.Parse(dtdt.Rows[0]["2楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["3楼"] == System.DBNull.Value ? 8883 : double.Parse(dtdt.Rows[0]["3楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["4楼"] == System.DBNull.Value ? 8884 : double.Parse(dtdt.Rows[0]["4楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["5楼"] == System.DBNull.Value ? 8885 : double.Parse(dtdt.Rows[0]["5楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["6楼"] == System.DBNull.Value ? 8886 : double.Parse(dtdt.Rows[0]["6楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["7楼"] == System.DBNull.Value ? 8887 : double.Parse(dtdt.Rows[0]["7楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["8楼"] == System.DBNull.Value ? 8888 : double.Parse(dtdt.Rows[0]["8楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["9楼"] == System.DBNull.Value ? 8889 : double.Parse(dtdt.Rows[0]["9楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["10楼"] == System.DBNull.Value ? 88810 : double.Parse(dtdt.Rows[0]["10楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["11楼"] == System.DBNull.Value ? 88811 : double.Parse(dtdt.Rows[0]["11楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["12楼"] == System.DBNull.Value ? 88812 : double.Parse(dtdt.Rows[0]["12楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["13楼"] == System.DBNull.Value ? 88813 : double.Parse(dtdt.Rows[0]["13楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["14楼"] == System.DBNull.Value ? 88814 : double.Parse(dtdt.Rows[0]["14楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["15楼"] == System.DBNull.Value ? 88815 : double.Parse(dtdt.Rows[0]["15楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["16楼"] == System.DBNull.Value ? 88816 : double.Parse(dtdt.Rows[0]["16楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["17楼"] == System.DBNull.Value ? 88817 : double.Parse(dtdt.Rows[0]["17楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["18楼"] == System.DBNull.Value ? 88818 : double.Parse(dtdt.Rows[0]["18楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["19楼"] == System.DBNull.Value ? 88819 : double.Parse(dtdt.Rows[0]["19楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["20楼"] == System.DBNull.Value ? 88820 : double.Parse(dtdt.Rows[0]["20楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["21楼"] == System.DBNull.Value ? 88821 : double.Parse(dtdt.Rows[0]["21楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["22楼"] == System.DBNull.Value ? 88822 : double.Parse(dtdt.Rows[0]["22楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["23楼"] == System.DBNull.Value ? 88823 : double.Parse(dtdt.Rows[0]["23楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["24楼"] == System.DBNull.Value ? 88824 : double.Parse(dtdt.Rows[0]["24楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["25楼"] == System.DBNull.Value ? 88825 : double.Parse(dtdt.Rows[0]["25楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["26楼"] == System.DBNull.Value ? 88826 : double.Parse(dtdt.Rows[0]["26楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["27楼"] == System.DBNull.Value ? 88827 : double.Parse(dtdt.Rows[0]["27楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["28楼"] == System.DBNull.Value ? 88828 : double.Parse(dtdt.Rows[0]["28楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["29楼"] == System.DBNull.Value ? 88829 : double.Parse(dtdt.Rows[0]["29楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["30楼"] == System.DBNull.Value ? 88830 : double.Parse(dtdt.Rows[0]["30楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["31楼"] == System.DBNull.Value ? 88831 : double.Parse(dtdt.Rows[0]["31楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["32楼"] == System.DBNull.Value ? 88832 : double.Parse(dtdt.Rows[0]["32楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["33楼"] == System.DBNull.Value ? 88833 : double.Parse(dtdt.Rows[0]["33楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["34楼"] == System.DBNull.Value ? 88834 : double.Parse(dtdt.Rows[0]["34楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["35楼"] == System.DBNull.Value ? 88835 : double.Parse(dtdt.Rows[0]["35楼"].ToString())) : 999);
            ydcol.Dt.Add(dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["36楼"] == System.DBNull.Value ? 88836 : double.Parse(dtdt.Rows[0]["36楼"].ToString())) : 999);

            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["1楼"] == System.DBNull.Value ? 8881 : double.Parse(dtfdt.Rows[0]["1楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["2楼"] == System.DBNull.Value ? 8882 : double.Parse(dtfdt.Rows[0]["2楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["3楼"] == System.DBNull.Value ? 8883 : double.Parse(dtfdt.Rows[0]["3楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["4楼"] == System.DBNull.Value ? 8884 : double.Parse(dtfdt.Rows[0]["4楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["5楼"] == System.DBNull.Value ? 8885 : double.Parse(dtfdt.Rows[0]["5楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["6楼"] == System.DBNull.Value ? 8886 : double.Parse(dtfdt.Rows[0]["6楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["7楼"] == System.DBNull.Value ? 8887 : double.Parse(dtfdt.Rows[0]["7楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["8楼"] == System.DBNull.Value ? 8888 : double.Parse(dtfdt.Rows[0]["8楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["9楼"] == System.DBNull.Value ? 8889 : double.Parse(dtfdt.Rows[0]["9楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["10楼"] == System.DBNull.Value ? 88810 : double.Parse(dtfdt.Rows[0]["10楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["11楼"] == System.DBNull.Value ? 88811 : double.Parse(dtfdt.Rows[0]["11楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["12楼"] == System.DBNull.Value ? 88812 : double.Parse(dtfdt.Rows[0]["12楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["13楼"] == System.DBNull.Value ? 88813 : double.Parse(dtfdt.Rows[0]["13楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["14楼"] == System.DBNull.Value ? 88814 : double.Parse(dtfdt.Rows[0]["14楼"].ToString())) : 999);
            ydcol.Fdt.Add(dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["15楼"] == System.DBNull.Value ? 88815 : double.Parse(dtfdt.Rows[0]["15楼"].ToString())) : 999);

            ydcol.Dtsz.Add(dtsz.Rows.Count == 1 ? (dtsz.Rows[0]["有电梯"] == System.DBNull.Value ? 8881 : double.Parse(dtsz.Rows[0]["有电梯"].ToString())) : 999);
            ydcol.Dtsz.Add(dtsz.Rows.Count == 1 ? (dtsz.Rows[0]["无电梯"] == System.DBNull.Value ? 8882 : double.Parse(dtsz.Rows[0]["无电梯"].ToString())) : 999);
            #endregion
            fjxml = new XElement("fj",
            #region jglx
             new XElement("jglx", jglxsz.Trim()),
                new XElement("jglxxz", ""),
                new XElement("jglxgj", dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["钢筋混凝土"] == System.DBNull.Value ? "8881" : dtjglx.Rows[0]["钢筋混凝土"]) : 999),
                new XElement("jglxhh", dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["混合"] == System.DBNull.Value ? "8882" : dtjglx.Rows[0]["混合"]) : 999),
                new XElement("jglxzm", dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["砖木"] == System.DBNull.Value ? "8883" : dtjglx.Rows[0]["砖木"]) : 999),
                new XElement("jglxqt", dtjglx.Rows.Count == 1 ? (dtjglx.Rows[0]["其他"] == System.DBNull.Value ? "8884" : dtjglx.Rows[0]["其他"]) : 999),
            #endregion
            #region cx
             new XElement("cx", cxsz.Trim()),
                new XElement("cxxz", ""),
                new XElement("cxd", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["东"] == System.DBNull.Value ? "8881" : dtcx.Rows[0]["东"]) : 999),
                new XElement("cxdn", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["东南"] == System.DBNull.Value ? "8882" : dtcx.Rows[0]["东南"]) : 999),
                new XElement("cxn", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["南"] == System.DBNull.Value ? "8883" : dtcx.Rows[0]["南"]) : 999),
                new XElement("cxxn", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["西南"] == System.DBNull.Value ? "8884" : dtcx.Rows[0]["西南"]) : 999),
                new XElement("cxx", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["西"] == System.DBNull.Value ? "8885" : dtcx.Rows[0]["西"]) : 999),
                new XElement("cxxb", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["西北"] == System.DBNull.Value ? "8886" : dtcx.Rows[0]["西北"]) : 999),
                new XElement("cxb", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["北"] == System.DBNull.Value ? "8887" : dtcx.Rows[0]["北"]) : 999),
                new XElement("cxdb", dtcx.Rows.Count == 1 ? (dtcx.Rows[0]["东北"] == System.DBNull.Value ? "8888" : dtcx.Rows[0]["东北"]) : 999),
            #endregion
            #region ll
             new XElement("ll", llsz),
                new XElement("llxz", ""),
                new XElement("ll1", dtll.Rows.Count == 1 ? (dtll.Rows[0]["1年"] == System.DBNull.Value ? "8881" : dtll.Rows[0]["1年"]) : 999),
                new XElement("ll2", dtll.Rows.Count == 1 ? (dtll.Rows[0]["2年"] == System.DBNull.Value ? "8882" : dtll.Rows[0]["2年"]) : 999),
                new XElement("ll3", dtll.Rows.Count == 1 ? (dtll.Rows[0]["3年"] == System.DBNull.Value ? "8883" : dtll.Rows[0]["3年"]) : 999),
                new XElement("ll4", dtll.Rows.Count == 1 ? (dtll.Rows[0]["4年"] == System.DBNull.Value ? "8884" : dtll.Rows[0]["4年"]) : 999),
                new XElement("ll5", dtll.Rows.Count == 1 ? (dtll.Rows[0]["5年"] == System.DBNull.Value ? "8885" : dtll.Rows[0]["5年"]) : 999),
                new XElement("ll6", dtll.Rows.Count == 1 ? (dtll.Rows[0]["6年"] == System.DBNull.Value ? "8886" : dtll.Rows[0]["6年"]) : 999),
                new XElement("ll7", dtll.Rows.Count == 1 ? (dtll.Rows[0]["7年"] == System.DBNull.Value ? "8887" : dtll.Rows[0]["7年"]) : 999),
                new XElement("ll8", dtll.Rows.Count == 1 ? (dtll.Rows[0]["8年"] == System.DBNull.Value ? "8888" : dtll.Rows[0]["8年"]) : 999),
                new XElement("ll10", dtll.Rows.Count == 1 ? (dtll.Rows[0]["10年"] == System.DBNull.Value ? "8889" : dtll.Rows[0]["10年"]) : 999),
                new XElement("ll12", dtll.Rows.Count == 1 ? (dtll.Rows[0]["12年"] == System.DBNull.Value ? "88810" : dtll.Rows[0]["12年"]) : 999),
                new XElement("ll13", dtll.Rows.Count == 1 ? (dtll.Rows[0]["13年"] == System.DBNull.Value ? "88811" : dtll.Rows[0]["13年"]) : 999),
                new XElement("ll15", dtll.Rows.Count == 1 ? (dtll.Rows[0]["15年"] == System.DBNull.Value ? "88812" : dtll.Rows[0]["15年"]) : 999),
                new XElement("ll18", dtll.Rows.Count == 1 ? (dtll.Rows[0]["18年"] == System.DBNull.Value ? "88813" : dtll.Rows[0]["18年"]) : 999),
                new XElement("ll20", dtll.Rows.Count == 1 ? (dtll.Rows[0]["20年"] == System.DBNull.Value ? "88814" : dtll.Rows[0]["20年"]) : 999),
                new XElement("ll22", dtll.Rows.Count == 1 ? (dtll.Rows[0]["22年"] == System.DBNull.Value ? "88815" : dtll.Rows[0]["22年"]) : 999),
                new XElement("ll25", dtll.Rows.Count == 1 ? (dtll.Rows[0]["25年"] == System.DBNull.Value ? "88816" : dtll.Rows[0]["25年"]) : 999),
                new XElement("ll26", dtll.Rows.Count == 1 ? (dtll.Rows[0]["26年"] == System.DBNull.Value ? "88817" : dtll.Rows[0]["26年"]) : 999),
                new XElement("ll30", dtll.Rows.Count == 1 ? (dtll.Rows[0]["30年"] == System.DBNull.Value ? "88818" : dtll.Rows[0]["30年"]) : 999),
                new XElement("ll35", dtll.Rows.Count == 1 ? (dtll.Rows[0]["35年"] == System.DBNull.Value ? "88819" : dtll.Rows[0]["35年"]) : 999),
                new XElement("ll40", dtll.Rows.Count == 1 ? (dtll.Rows[0]["40年"] == System.DBNull.Value ? "88820" : dtll.Rows[0]["40年"]) : 999),
                new XElement("ll45", dtll.Rows.Count == 1 ? (dtll.Rows[0]["45年"] == System.DBNull.Value ? "88821" : dtll.Rows[0]["45年"]) : 999),
                new XElement("ll50", dtll.Rows.Count == 1 ? (dtll.Rows[0]["50年"] == System.DBNull.Value ? "88822" : dtll.Rows[0]["50年"]) : 999),
                new XElement("ll55", dtll.Rows.Count == 1 ? (dtll.Rows[0]["55年"] == System.DBNull.Value ? "88823" : dtll.Rows[0]["55年"]) : 999),
                new XElement("ll60", dtll.Rows.Count == 1 ? (dtll.Rows[0]["60年"] == System.DBNull.Value ? "88824" : dtll.Rows[0]["60年"]) : 999),
                new XElement("ll65", dtll.Rows.Count == 1 ? (dtll.Rows[0]["65年"] == System.DBNull.Value ? "88825" : dtll.Rows[0]["65年"]) : 999),
                new XElement("ll70", dtll.Rows.Count == 1 ? (dtll.Rows[0]["70年"] == System.DBNull.Value ? "88826" : dtll.Rows[0]["70年"]) : 999),
            #endregion
            #region llqk
             new XElement("llqk", lnqksz.Trim()),
                new XElement("llqkxz", ""),
                new XElement("llqkzyjtgd", dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临主要交通干道"] == System.DBNull.Value ? "8881" : dtllqk.Rows[0]["临主要交通干道"]) : 999),
                new XElement("llqkybjtgd", dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临一般交通干道"] == System.DBNull.Value ? "8882" : dtllqk.Rows[0]["临一般交通干道"]) : 999),
                new XElement("llqkbnjtgd", dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["不临交通干道"] == System.DBNull.Value ? "8883" : dtllqk.Rows[0]["不临交通干道"]) : 999),
                new XElement("llqknzl", dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临支路"] == System.DBNull.Value ? "8884" : dtllqk.Rows[0]["临支路"]) : 999),
                new XElement("llqknxqjtgd", dtllqk.Rows.Count == 1 ? (dtllqk.Rows[0]["临小区交通干道"] == System.DBNull.Value ? "8885" : dtllqk.Rows[0]["临小区交通干道"]) : 999),
            #endregion
            #region jt
             new XElement("jt", jtsz.Trim()),
                new XElement("jtxz", ""),
                new XElement("jtbtmtc", dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["不能通摩托车"] == System.DBNull.Value ? "8881" : dtjt.Rows[0]["不能通摩托车"]) : 999),
                new XElement("jtktmtc", dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可同摩托车,不同小汽车"] == System.DBNull.Value ? "8882" : dtjt.Rows[0]["可同摩托车,不同小汽车"]) : 999),
                new XElement("jtktxc1", dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可通1小车"] == System.DBNull.Value ? "8883" : dtjt.Rows[0]["可通1小车"]) : 999),
                new XElement("jtktxc2", dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可通2小车"] == System.DBNull.Value ? "8884" : dtjt.Rows[0]["可通2小车"]) : 999),
                new XElement("jtktxc3", dtjt.Rows.Count == 1 ? (dtjt.Rows[0]["可通3小车"] == System.DBNull.Value ? "8885" : dtjt.Rows[0]["可通3小车"]) : 999),
            #endregion
            #region rjl
             new XElement("rjl", rjlsz),
                new XElement("rjlxz", ""),
                new XElement("rjl1", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_1"] == System.DBNull.Value ? "8881" : dtrjl.Rows[0]["0_1"]) : 999),
                new XElement("rjl2", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_2"] == System.DBNull.Value ? "8882" : dtrjl.Rows[0]["0_2"]) : 999),
                new XElement("rjl3", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_3"] == System.DBNull.Value ? "8883" : dtrjl.Rows[0]["0_3"]) : 999),
                new XElement("rjl4", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_35"] == System.DBNull.Value ? "8884" : dtrjl.Rows[0]["0_35"]) : 999),
                new XElement("rjl5", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_4"] == System.DBNull.Value ? "8885" : dtrjl.Rows[0]["0_4"]) : 999),
                new XElement("rjl6", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_5"] == System.DBNull.Value ? "8886" : dtrjl.Rows[0]["0_5"]) : 999),
                new XElement("rjl7", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_6"] == System.DBNull.Value ? "8887" : dtrjl.Rows[0]["0_6"]) : 999),
                new XElement("rjl8", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_65"] == System.DBNull.Value ? "8888" : dtrjl.Rows[0]["0_65"]) : 999),
                new XElement("rjl9", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_7"] == System.DBNull.Value ? "8889" : dtrjl.Rows[0]["0_7"]) : 999),
                new XElement("rjl10", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_8"] == System.DBNull.Value ? "88810" : dtrjl.Rows[0]["0_8"]) : 999),
                new XElement("rjl11", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["0_9"] == System.DBNull.Value ? "88811" : dtrjl.Rows[0]["0_9"]) : 999),
                new XElement("rjl12", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1"] == System.DBNull.Value ? "88812" : dtrjl.Rows[0]["1"]) : 999),
                new XElement("rjl13", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_1"] == System.DBNull.Value ? "88813" : dtrjl.Rows[0]["1_1"]) : 999),
                new XElement("rjl14", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_2"] == System.DBNull.Value ? "88814" : dtrjl.Rows[0]["1_2"]) : 999),
                new XElement("rjl15", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_25"] == System.DBNull.Value ? "88815" : dtrjl.Rows[0]["1_25"]) : 999),
                new XElement("rjl16", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_3"] == System.DBNull.Value ? "88816" : dtrjl.Rows[0]["1_3"]) : 999),
                new XElement("rjl17", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_4"] == System.DBNull.Value ? "88817" : dtrjl.Rows[0]["1_4"]) : 999),
                new XElement("rjl18", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_5"] == System.DBNull.Value ? "88818" : dtrjl.Rows[0]["1_5"]) : 999),
                new XElement("rjl19", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_58"] == System.DBNull.Value ? "88819" : dtrjl.Rows[0]["1_58"]) : 999),
                new XElement("rjl20", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_6"] == System.DBNull.Value ? "88820" : dtrjl.Rows[0]["1_6"]) : 999),
                new XElement("rjl21", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_63"] == System.DBNull.Value ? "88821" : dtrjl.Rows[0]["1_63"]) : 999),
                new XElement("rjl22", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_7"] == System.DBNull.Value ? "88822" : dtrjl.Rows[0]["1_7"]) : 999),
                new XElement("rjl23", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_8"] == System.DBNull.Value ? "88823" : dtrjl.Rows[0]["1_8"]) : 999),
                new XElement("rjl24", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["1_9"] == System.DBNull.Value ? "88824" : dtrjl.Rows[0]["1_9"]) : 999),
                new XElement("rjl25", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2"] == System.DBNull.Value ? "88825" : dtrjl.Rows[0]["2"]) : 999),
                new XElement("rjl26", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_1"] == System.DBNull.Value ? "88826" : dtrjl.Rows[0]["2_1"]) : 999),
                new XElement("rjl27", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_2"] == System.DBNull.Value ? "88827" : dtrjl.Rows[0]["2_2"]) : 999),
                new XElement("rjl28", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_3"] == System.DBNull.Value ? "88828" : dtrjl.Rows[0]["2_3"]) : 999),
                new XElement("rjl29", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_4"] == System.DBNull.Value ? "88829" : dtrjl.Rows[0]["2_4"]) : 999),
                new XElement("rjl30", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_5"] == System.DBNull.Value ? "88830" : dtrjl.Rows[0]["2_5"]) : 999),
                new XElement("rjl31", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_6"] == System.DBNull.Value ? "88831" : dtrjl.Rows[0]["2_6"]) : 999),
                new XElement("rjl32", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_7"] == System.DBNull.Value ? "88832" : dtrjl.Rows[0]["2_7"]) : 999),
                new XElement("rjl33", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_8"] == System.DBNull.Value ? "88833" : dtrjl.Rows[0]["2_8"]) : 999),
                new XElement("rjl34", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["2_9"] == System.DBNull.Value ? "88834" : dtrjl.Rows[0]["2_9"]) : 999),
                new XElement("rjl35", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3"] == System.DBNull.Value ? "88835" : dtrjl.Rows[0]["3"]) : 999),
                new XElement("rjl36", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_1"] == System.DBNull.Value ? "88836" : dtrjl.Rows[0]["3_1"]) : 999),
                new XElement("rjl37", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_2"] == System.DBNull.Value ? "88837" : dtrjl.Rows[0]["3_2"]) : 999),
                new XElement("rjl38", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_3"] == System.DBNull.Value ? "88838" : dtrjl.Rows[0]["3_3"]) : 999),
                new XElement("rjl39", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_4"] == System.DBNull.Value ? "88839" : dtrjl.Rows[0]["3_4"]) : 999),
                new XElement("rjl40", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_5"] == System.DBNull.Value ? "88840" : dtrjl.Rows[0]["3_5"]) : 999),
                new XElement("rjl41", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_6"] == System.DBNull.Value ? "88841" : dtrjl.Rows[0]["3_6"]) : 999),
                new XElement("rjl42", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_7"] == System.DBNull.Value ? "88842" : dtrjl.Rows[0]["3_7"]) : 999),
                new XElement("rjl43", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_8"] == System.DBNull.Value ? "88843" : dtrjl.Rows[0]["3_8"]) : 999),
                new XElement("rjl44", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["3_9"] == System.DBNull.Value ? "88844" : dtrjl.Rows[0]["3_9"]) : 999),
                new XElement("rjl45", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4"] == System.DBNull.Value ? "88845" : dtrjl.Rows[0]["4"]) : 999),
                new XElement("rjl46", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_1"] == System.DBNull.Value ? "88846" : dtrjl.Rows[0]["4_1"]) : 999),
                new XElement("rjl47", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_2"] == System.DBNull.Value ? "88847" : dtrjl.Rows[0]["4_2"]) : 999),
                new XElement("rjl48", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_3"] == System.DBNull.Value ? "88848" : dtrjl.Rows[0]["4_3"]) : 999),
                new XElement("rjl49", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_4"] == System.DBNull.Value ? "88849" : dtrjl.Rows[0]["4_4"]) : 999),
                new XElement("rjl50", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_5"] == System.DBNull.Value ? "88850" : dtrjl.Rows[0]["4_5"]) : 999),
                new XElement("rjl51", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_6"] == System.DBNull.Value ? "88851" : dtrjl.Rows[0]["4_6"]) : 999),
                new XElement("rjl52", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_7"] == System.DBNull.Value ? "88852" : dtrjl.Rows[0]["4_7"]) : 999),
                new XElement("rjl53", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_8"] == System.DBNull.Value ? "88853" : dtrjl.Rows[0]["4_8"]) : 999),
                new XElement("rjl54", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["4_9"] == System.DBNull.Value ? "88854" : dtrjl.Rows[0]["4_9"]) : 999),
                new XElement("rjl55", dtrjl.Rows.Count == 1 ? (dtrjl.Rows[0]["5"] == System.DBNull.Value ? "88855" : dtrjl.Rows[0]["5"]) : 999),
            #endregion
            #region jzmj
             new XElement("jzmj", jzmj),
                new XElement("jzmjxz", ""),
                new XElement("jzmj60", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["小于60平方米"] == System.DBNull.Value ? "8881" : dtjzmj.Rows[0]["小于60平方米"]) : 999),
                new XElement("jzmj80", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["60~80平方米"] == System.DBNull.Value ? "8882" : dtjzmj.Rows[0]["60~80平方米"]) : 999),
                new XElement("jzmj100", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["80~100平方米"] == System.DBNull.Value ? "8883" : dtjzmj.Rows[0]["80~100平方米"]) : 999),
                new XElement("jzmj120", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["100~120平方米"] == System.DBNull.Value ? "8884" : dtjzmj.Rows[0]["100~120平方米"]) : 999),
                new XElement("jzmj140", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["120~140平方米"] == System.DBNull.Value ? "8885" : dtjzmj.Rows[0]["120~140平方米"]) : 999),
                new XElement("jzmj160", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["140~160平方米"] == System.DBNull.Value ? "8886" : dtjzmj.Rows[0]["140~160平方米"]) : 999),
                new XElement("jzmj200", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["160~200平方米"] == System.DBNull.Value ? "8887" : dtjzmj.Rows[0]["160~200平方米"]) : 999),
                new XElement("jzmj250", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["200~250平方米"] == System.DBNull.Value ? "8888" : dtjzmj.Rows[0]["200~250平方米"]) : 999),
                new XElement("jzmj300", dtjzmj.Rows.Count == 1 ? (dtjzmj.Rows[0]["250平方米以上"] == System.DBNull.Value ? "8889" : dtjzmj.Rows[0]["250平方米以上"]) : 999),
            #endregion
            #region lx
             new XElement("lx", lxsz.Trim()),
                new XElement("lxxz", ""),
                new XElement("lxxz1t1hj2h", dtlx.Rows.Count == 1 ? (dtlx.Rows[0]["1梯1户及2户"] == System.DBNull.Value ? "8881" : dtlx.Rows[0]["1梯1户及2户"]) : 999),
                new XElement("lx1t3hjys", dtlx.Rows.Count == 1 ? (dtlx.Rows[0]["1梯3户及以上"] == System.DBNull.Value ? "8882" : dtlx.Rows[0]["1梯3户及以上"]) : 999),
            #endregion
            #region gt
             new XElement("gt", gt.Trim()),
                new XElement("gtxz", ""),
                new XElement("gtdthgt", dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["电梯房含公摊"] == System.DBNull.Value ? "8881" : dtgt.Rows[0]["电梯房含公摊"]) : 999),
                new XElement("gtdtbhgt", dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["电梯房不含公摊"] == System.DBNull.Value ? "8882" : dtgt.Rows[0]["电梯房不含公摊"]) : 999),
                new XElement("gtfdthgt", dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["非电梯房含公摊"] == System.DBNull.Value ? "8883" : dtgt.Rows[0]["非电梯房含公摊"]) : 999),
                new XElement("gtfdtbhgt", dtgt.Rows.Count == 1 ? (dtgt.Rows[0]["非电梯房不含公摊"] == System.DBNull.Value ? "8884" : dtgt.Rows[0]["非电梯房不含公摊"]) : 999),
            #endregion
            #region wy
             new XElement("wy", wy.Trim()),
                new XElement("wyxz", ""),
                new XElement("wyy", dtwy.Rows.Count == 1 ? (dtwy.Rows[0]["有物业管理"] == System.DBNull.Value ? "8881" : dtwy.Rows[0]["有物业管理"]) : 999),
                new XElement("wyw", dtwy.Rows.Count == 1 ? (dtwy.Rows[0]["无物业管理"] == System.DBNull.Value ? "8882" : dtwy.Rows[0]["无物业管理"]) : 999),
            #endregion
            #region fs
             new XElement("fs", fs.Trim()),
                new XElement("fsxz", ""),
                new XElement("fss", dtfs.Rows.Count == 1 ? (dtfs.Rows[0]["复式"] == System.DBNull.Value ? "8881" : dtfs.Rows[0]["复式"]) : 999),
                new XElement("fsbs", dtfs.Rows.Count == 1 ? (dtfs.Rows[0]["不是复式"] == System.DBNull.Value ? "8882" : dtfs.Rows[0]["不是复式"]) : 999),
            #endregion
            #region dt
             new XElement("dt", lcsz),
                new XElement("dtxz", ""),
                new XElement("dt1", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["1楼"] == System.DBNull.Value ? "8881" : dtdt.Rows[0]["1楼"]) : 999),
                new XElement("dt2", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["2楼"] == System.DBNull.Value ? "8882" : dtdt.Rows[0]["2楼"]) : 999),
                new XElement("dt3", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["3楼"] == System.DBNull.Value ? "8883" : dtdt.Rows[0]["3楼"]) : 999),
                new XElement("dt4", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["4楼"] == System.DBNull.Value ? "8884" : dtdt.Rows[0]["4楼"]) : 999),
                new XElement("dt5", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["5楼"] == System.DBNull.Value ? "8885" : dtdt.Rows[0]["5楼"]) : 999),
                new XElement("dt6", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["6楼"] == System.DBNull.Value ? "8886" : dtdt.Rows[0]["6楼"]) : 999),
                new XElement("dt7", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["7楼"] == System.DBNull.Value ? "8887" : dtdt.Rows[0]["7楼"]) : 999),
                new XElement("dt8", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["8楼"] == System.DBNull.Value ? "8888" : dtdt.Rows[0]["8楼"]) : 999),
                new XElement("dt9", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["9楼"] == System.DBNull.Value ? "8889" : dtdt.Rows[0]["9楼"]) : 999),
                new XElement("dt10", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["10楼"] == System.DBNull.Value ? "88810" : dtdt.Rows[0]["10楼"]) : 999),
                new XElement("dt11", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["11楼"] == System.DBNull.Value ? "88811" : dtdt.Rows[0]["11楼"]) : 999),
                new XElement("dt12", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["12楼"] == System.DBNull.Value ? "88812" : dtdt.Rows[0]["12楼"]) : 999),
                new XElement("dt13", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["13楼"] == System.DBNull.Value ? "88813" : dtdt.Rows[0]["13楼"]) : 999),
                new XElement("dt14", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["14楼"] == System.DBNull.Value ? "88814" : dtdt.Rows[0]["14楼"]) : 999),
                new XElement("dt15", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["15楼"] == System.DBNull.Value ? "88815" : dtdt.Rows[0]["15楼"]) : 999),
                new XElement("dt16", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["16楼"] == System.DBNull.Value ? "88816" : dtdt.Rows[0]["16楼"]) : 999),
                new XElement("dt17", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["17楼"] == System.DBNull.Value ? "88817" : dtdt.Rows[0]["17楼"]) : 999),
                new XElement("dt18", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["18楼"] == System.DBNull.Value ? "88818" : dtdt.Rows[0]["18楼"]) : 999),
                new XElement("dt19", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["19楼"] == System.DBNull.Value ? "88819" : dtdt.Rows[0]["19楼"]) : 999),
                new XElement("dt20", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["20楼"] == System.DBNull.Value ? "88820" : dtdt.Rows[0]["20楼"]) : 999),
                new XElement("dt21", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["21楼"] == System.DBNull.Value ? "88821" : dtdt.Rows[0]["21楼"]) : 999),
                new XElement("dt22", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["22楼"] == System.DBNull.Value ? "88822" : dtdt.Rows[0]["22楼"]) : 999),
                new XElement("dt23", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["23楼"] == System.DBNull.Value ? "88823" : dtdt.Rows[0]["23楼"]) : 999),
                new XElement("dt24", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["24楼"] == System.DBNull.Value ? "88824" : dtdt.Rows[0]["24楼"]) : 999),
                new XElement("dt25", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["25楼"] == System.DBNull.Value ? "88825" : dtdt.Rows[0]["25楼"]) : 999),
                new XElement("dt26", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["26楼"] == System.DBNull.Value ? "88826" : dtdt.Rows[0]["26楼"]) : 999),
                new XElement("dt27", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["27楼"] == System.DBNull.Value ? "88827" : dtdt.Rows[0]["27楼"]) : 999),
                new XElement("dt28", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["28楼"] == System.DBNull.Value ? "88828" : dtdt.Rows[0]["28楼"]) : 999),
                new XElement("dt29", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["29楼"] == System.DBNull.Value ? "88829" : dtdt.Rows[0]["29楼"]) : 999),
                new XElement("dt30", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["30楼"] == System.DBNull.Value ? "88830" : dtdt.Rows[0]["30楼"]) : 999),
                new XElement("dt31", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["31楼"] == System.DBNull.Value ? "88831" : dtdt.Rows[0]["31楼"]) : 999),
                new XElement("dt32", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["32楼"] == System.DBNull.Value ? "88832" : dtdt.Rows[0]["32楼"]) : 999),
                new XElement("dt33", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["33楼"] == System.DBNull.Value ? "88833" : dtdt.Rows[0]["33楼"]) : 999),
                new XElement("dt34", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["34楼"] == System.DBNull.Value ? "88834" : dtdt.Rows[0]["34楼"]) : 999),
                new XElement("dt35", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["35楼"] == System.DBNull.Value ? "88835" : dtdt.Rows[0]["35楼"]) : 999),
                new XElement("dt36", dtdt.Rows.Count == 1 ? (dtdt.Rows[0]["36楼"] == System.DBNull.Value ? "88836" : dtdt.Rows[0]["36楼"]) : 999),

            #endregion
            #region fdt
             new XElement("fdt", lcsz),
                new XElement("fdtxz", ""),
                new XElement("fdt1", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["1楼"] == System.DBNull.Value ? "8881" : dtfdt.Rows[0]["1楼"]) : 999),
                new XElement("fdt2", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["2楼"] == System.DBNull.Value ? "8882" : dtfdt.Rows[0]["2楼"]) : 999),
                new XElement("fdt3", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["3楼"] == System.DBNull.Value ? "8883" : dtfdt.Rows[0]["3楼"]) : 999),
                new XElement("fdt4", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["4楼"] == System.DBNull.Value ? "8884" : dtfdt.Rows[0]["4楼"]) : 999),
                new XElement("fdt5", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["5楼"] == System.DBNull.Value ? "8885" : dtfdt.Rows[0]["5楼"]) : 999),
                new XElement("fdt6", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["6楼"] == System.DBNull.Value ? "8886" : dtfdt.Rows[0]["6楼"]) : 999),
                new XElement("fdt7", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["7楼"] == System.DBNull.Value ? "8887" : dtfdt.Rows[0]["7楼"]) : 999),
                new XElement("fdt8", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["8楼"] == System.DBNull.Value ? "8888" : dtfdt.Rows[0]["8楼"]) : 999),
                new XElement("fdt9", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["9楼"] == System.DBNull.Value ? "8889" : dtfdt.Rows[0]["9楼"]) : 999),
                new XElement("fdt10", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["10楼"] == System.DBNull.Value ? "88810" : dtfdt.Rows[0]["10楼"]) : 999),
                new XElement("fdt11", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["11楼"] == System.DBNull.Value ? "88811" : dtfdt.Rows[0]["11楼"]) : 999),
                new XElement("fdt12", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["12楼"] == System.DBNull.Value ? "88812" : dtfdt.Rows[0]["12楼"]) : 999),
                new XElement("fdt13", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["13楼"] == System.DBNull.Value ? "88813" : dtfdt.Rows[0]["13楼"]) : 999),
                new XElement("fdt14", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["14楼"] == System.DBNull.Value ? "88814" : dtfdt.Rows[0]["14楼"]) : 999),
                new XElement("fdt15", dtfdt.Rows.Count == 1 ? (dtfdt.Rows[0]["15楼"] == System.DBNull.Value ? "88815" : dtfdt.Rows[0]["15楼"]) : 999),
            #endregion
            #region
             new XElement("dtsz", ywdt.Contains("无") ? "无" : "有"),
                new XElement("dtszxz", ""),
                new XElement("dtsz1", dtsz.Rows.Count == 1 ? (dtsz.Rows[0]["有电梯"] == System.DBNull.Value ? "8881" : dtsz.Rows[0]["有电梯"]) : 999),
                new XElement("dtsz2", dtsz.Rows.Count == 1 ? (dtsz.Rows[0]["无电梯"] == System.DBNull.Value ? "8882" : dtsz.Rows[0]["无电梯"]) : 999)
            #endregion
            );
            fjxml.Save(AppDomain.CurrentDomain.BaseDirectory.ToString() + @"..\addins\AppraiseMethod\fjxml.xml");
            TestHarness(tmpyddata, ydreturn);
        }