Ejemplo n.º 1
0
        public CRBIDocTableData LoadContent_2_0()
        {
            DataTable dv = new DataTable(); //CRBITBL_TestDataAccessor.Instance().GetChargeTestData()
            //.loadDataWZSQRZLSQ_ListFrm_2_4(GDPAConst.const_StartDate, GDPAConst.const_EndDate, GDPAConst.const_PatentStatus_3ZZLLX_SQ_1, GDPAConst.const_ProvinceCode);
            CRBIDocTableData obj = new CRBIDocTableData();

            //添加标题
            //...
            obj.ColumnHeader1 = new List <string>()
            {
                "节号", "开始电压(V)", "结束电压(V)", "结论", "维护方案"
            };
            var startV = 1.000;
            var endV   = 2.001;
            var result = "--";
            var plan   = "优化";

            for (int i = 1; i < 25; i++)
            {
                startV = startV + i / 10;
                endV   = startV - i;

                List <string> r = new List <string>()
                {
                    i.ToString(), startV.ToString(), endV.ToString(), result, plan
                };
                obj.AddRow(r);
            }
            return(obj);

            CRBIDocTableData data = new CRBIDocTableData();

            return(data);
        }
        public CRBIDocTableData LoadContent_5_1()
        {
            CRBIDocTableData data = new CRBIDocTableData();

            return(data);

            //        DataTable dv = GDPAPatentChartBaseDataAccessor.Instance()
            //.loadDataWZSQRZLSQ_ListFrm_2_4(GDPAConst.const_StartDate, GDPAConst.const_EndDate, GDPAConst.const_PatentStatus_3ZZLLX_SQ_1, GDPAConst.const_ProvinceCode);
            //        CRBIDocTableData obj = new CRBIDocTableData();
            //        //添加标题
            //        //...
            //        obj.ColumnHeader1 = new List<string>() { "身份类型", "发明", "实用新型", "外观设计", "合计" };

            //        double T_FM = 0;
            //        double T_SYXX = 0;
            //        double T_WG = 0;
            //        double T_rowTotal = 0;
            //        for (int i = 0; i < dv.Rows.Count; i++)
            //        {
            //            DataRow dr = dv.Rows[i];
            //            string s_ApplicanterTyperName = (string)dr["s_ApplicanterTyperName"];
            //            double FM = dr["FM"].ToString() != "" ? (double)dr["FM"] : 0;
            //            double SYXX = dr["SYXX"].ToString() != "" ? (double)dr["SYXX"] : 0;
            //            double WG = dr["WG"].ToString() != "" ? (double)dr["WG"] : 0;
            //            double rowTotal = FM + SYXX + WG;
            //            List<string> r = new List<string>() { s_ApplicanterTyperName, FM.ToString(), SYXX.ToString(), WG.ToString(), rowTotal.ToString() };
            //            obj.AddRow(r);

            //            //累加合计
            //            T_FM += FM;
            //            T_SYXX += SYXX;
            //            T_WG += WG;
            //            T_rowTotal += rowTotal;
            //        }

            //        List<string> Total = new List<string>() { "合计", T_FM.ToString(), T_SYXX.ToString(), T_WG.ToString(), T_rowTotal.ToString() };

            //        obj.AddRow(Total);

            //        return obj;
        }
        public CRBIDocTableData LoadContent_3_0()
        {
            CRBIDocTableData data = new CRBIDocTableData();

            return(data);
        }