예제 #1
0
        private static SearchResultPreview GetPrevieItem()
        {
            SearchResultPreview srp = new SearchResultPreview();

            List<HeaderItem> Header = new List<HeaderItem>();
            List<Row> RowList = new List<Row>();

            HeaderItem hi;

            hi = new HeaderItem();
            hi.Name = "VariableName";
            Header.Add(hi);

            hi = new HeaderItem();
            hi.Name = "VariableParameter";
            Header.Add(hi);

            hi = new HeaderItem();
            hi.Name = "Unit";
            Header.Add(hi);

            hi = new HeaderItem();
            hi.Name = "Description";
            Header.Add(hi);

            //-----------------------------------------
            Row r = new Row();
            List<object> ValueList = new List<object>();

            ValueList.Add("Species");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Name of species");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------
            r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Plot");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Plot ID");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Temperature");
            ValueList.Add("No");
            ValueList.Add("°C");
            ValueList.Add("-");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Date");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Date of Observation");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Female perc");
            ValueList.Add("No");
            ValueList.Add("%");
            ValueList.Add("Female species in %");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------
            r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Male perc");
            ValueList.Add("No");
            ValueList.Add("%");
            ValueList.Add("Male species in %");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Male perc");
            ValueList.Add("No");
            ValueList.Add("%");
            ValueList.Add("Male species in %");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------
             r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Season");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Define season like summer");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------
             r = new Row();
            ValueList = new List<object>();

            ValueList.Add("Weather");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Define weather like rainy day");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            srp.Header = Header;
            srp.Rows = RowList;

            return srp;
        }
예제 #2
0
        private static SearchResultPreview GetPrevieItem()
        {
            SearchResultPreview srp = new SearchResultPreview();

            List <HeaderItem> Header  = new List <HeaderItem>();
            List <Row>        RowList = new List <Row>();

            HeaderItem hi;

            hi      = new HeaderItem();
            hi.Name = "VariableName";
            Header.Add(hi);

            hi      = new HeaderItem();
            hi.Name = "VariableParameter";
            Header.Add(hi);

            hi      = new HeaderItem();
            hi.Name = "Unit";
            Header.Add(hi);

            hi      = new HeaderItem();
            hi.Name = "Description";
            Header.Add(hi);



            //-----------------------------------------
            Row           r         = new Row();
            List <object> ValueList = new List <object>();

            ValueList.Add("Species");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Name of species");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------
            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Plot");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Plot ID");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Temperature");
            ValueList.Add("No");
            ValueList.Add("°C");
            ValueList.Add("-");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Date");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Date of Observation");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Female perc");
            ValueList.Add("No");
            ValueList.Add("%");
            ValueList.Add("Female species in %");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------
            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Male perc");
            ValueList.Add("No");
            ValueList.Add("%");
            ValueList.Add("Male species in %");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------

            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Male perc");
            ValueList.Add("No");
            ValueList.Add("%");
            ValueList.Add("Male species in %");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------
            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Season");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Define season like summer");
            r.Values = ValueList;

            RowList.Add(r);


            //-----------------------------------------
            r         = new Row();
            ValueList = new List <object>();

            ValueList.Add("Weather");
            ValueList.Add("No");
            ValueList.Add("No");
            ValueList.Add("Define weather like rainy day");
            r.Values = ValueList;

            RowList.Add(r);

            //-----------------------------------------


            srp.Header = Header;
            srp.Rows   = RowList;

            return(srp);
        }