Beispiel #1
0
 public InfoExtData QueryInfoExtById(string id)
 {
     return(BizApi.QueryInfoExtById(id));
 }
        public static string Generate(string level, string tag, string old, string daybefore, string industry, string location, string type)
        {
            DateTime now        = BizCommon.ParseToDate(tag);
            DateTime end_date   = now.AddDays((double)(-Int32.Parse(daybefore)));
            DateTime start_date = end_date.AddMonths(-Int32.Parse(old));

            List <AnalyzeData> data = BizApi.QueryAnalyzeData(tag, start_date, end_date, Int32.Parse(level), industry, location, type);

            var newRow = "";

            newRow += "Start:" + BizCommon.ParseToString(start_date) + "  End:" + BizCommon.ParseToString(end_date);

            for (int i = 0; i < data.Count; i++)
            {
                newRow += "<tr>";
                var big = data[i].big;
                var sid = data[i].sid;


                var link = "<a target='_parent' href='/web/single_dynamic.html?sid=" + sid + "&big=" + big + "'>" + sid + "</a>";
                newRow += "<td>" + link + "</td>";
                newRow += "<td>" + data[i].name + "</td>";

                var ind1 = data[i].firstlevel;
                var ind2 = data[i].secondlevel;

                var ind_link1 = "<a target='_parent' href='/web/company.html?industry1=" + ind1 + "'>" + ind1 + "</a>";
                newRow += "<td>" + ind_link1 + "</td>";
                var ind_link2 = "<a target='_parent' href='/web/company.html?industry1=" + ind1 + "&industry2=" + ind2 + "'>" + ind2 + "</a>";
                newRow += "<td>" + ind_link2 + "</td>";

                var enddate   = data[i].enddate;
                var startdate = data[i].startdate;



                //newRow += "<td>" + start_date + "</td>";
                //newRow += "<td>" + end_date + "</td>";

                //排名情况
                var y = "/rest/rest/analyzevalue?level=" + level + "&tag=" + tag + "&sid=" + sid + "&daybefore=" + daybefore;

                newRow += "<td>" + QueryAnalyze1(sid, level, tag, old, daybefore) + "</td>";
                //newRow += "<td>" + data[i].rank + "</td>";
                newRow += "<td>" + data[i].value + "</td>";

                //财务信息

                InfoExtData data1 = BizApi.QueryInfoExtById(sid);

                newRow += "<td>" + data1.shiyinglv + "</td>";
                newRow += "<td>" + data1.shijinglv + "</td>";
                newRow += "<td>" + data1.jingzichan + "</td>";
                newRow += "<td>" + data1.shourutongbi + "</td>";
                newRow += "<td>" + data1.jingliruntongbi + "</td>";
                newRow += "<td>" + data1.meiguweifenpeilirun + "</td>";
                newRow += "<td>" + data1.zongguben + "</td>";
                newRow += "<td>" + data1.liutonggu + "</td>";

                //最新价格
                newRow += "<td>" + BizApi.QueryLatestPrice(sid, tag) + "</td>";

                //价格范围
                newRow += "<td>" + BizApi.QueryMaxMinPriceByRange(sid, 12) + "</td>";
            }

            return(newRow);
        }