private void MajorKnowledgePoints(GridTable tb)
        {
            var majorKnowledgePoints = tb.NewRow();

            majorKnowledgePoints[0].Html = string.Format("<img src = '{0}' style = 'width:15; height:15;' /> <span style='font-size:16;font-weight:bold;font-family:微软雅黑';>{1}</span>", imgCodePath, "主要攻破知识点");
            majorKnowledgePoints[1].Text = "测试主要攻破知识点描述";
            majorKnowledgePoints[2].Text = "";
            SetTableStyle(majorKnowledgePoints);
            tb.AddRow(majorKnowledgePoints);
        }
        /// <summary>
        /// 提升空间
        /// </summary>
        /// <param name="tb"></param>
        private void ImprovementRoom(GridTable tb)
        {
            var improvementRoom = tb.NewRow();

            improvementRoom[0].Html = string.Format("<img src = '{0}' style = 'width:15; height:15;' /> <span style='font-size:16;font-weight:bold;font-family:微软雅黑'>{1}</span>", imgCodePath, "提升空间");
            improvementRoom[1].Text = "测试提升空间描述";
            improvementRoom[2].Text = "";
            SetTableStyle(improvementRoom);
            tb.AddRow(improvementRoom);
        }
        /// <summary>
        /// 掌握水平列
        /// </summary>
        /// <param name="tb"></param>
        private void MasteryLevel(GridTable tb)
        {
            var masteryLevel = tb.NewRow();

            masteryLevel[0].Html = string.Format("<img src = '{0}' style = 'width:15; height:15;' /> <span style='font-size:16;font-weight:bold;font-family:微软雅黑'>{1}</span>", imgCodePath, "掌握水平");
            masteryLevel[1].Text = "测试掌握水平描述";
            masteryLevel[2].Text = "";
            SetTableStyle(masteryLevel);
            tb.AddRow(masteryLevel);
        }
예제 #4
0
        /// <summary>
        /// 创建表格头部内容
        /// </summary>
        private void CreateTableHeader(GridTable tb)
        {
            var hr = tb.NewRow();

            hr.DefaultBorder          = true;
            hr[0].Text                = "学科";
            hr[1].Text                = "高考预测";
            hr[2].Text                = "冲刺提分";
            hr.DefaultBackgroundColor = Color.FromArgb(68, 154, 201);
            hr.DefaultForegroundColor = Color.White;
            hr.DefaultFontSize        = 12;
            hr.RowHeight              = 25;
            hr.DefaultCellAlign       = CellAlign.Center;
            tb.AddRow(hr);
        }
예제 #5
0
        /// <summary>
        /// 增加各科成绩预测内容行
        /// </summary>
        /// <param name="tb"></param>
        /// <param name="entity"></param>
        private void CreateExamStatisticRow(GridTable tb)
        {
            var entity = CreateEntityTable();

            for (int i = 0; i < entity.Count; i++)
            {
                var tr = tb.NewRow();
                tr[0].Text = entity[i].CourseShortName;
                tr[1].Text = entity[i].PredictionScoreDisplay;
                tr[2].Text = entity[i].PointsToGainDisplay;
                tr.DefaultBackgroundColor = i % 2 == 0 ? Color.FromArgb(219, 228, 233) : Color.White;
                tr.DefaultForegroundColor = Color.FromArgb(107, 109, 111);
                tr.DefaultFontSize        = 10;
                tr.RowHeight        = 32;
                tr.DefaultCellAlign = CellAlign.Center;
                tb.AddRow(tr);
            }
        }
        /// <summary>
        /// 知识点微课
        /// </summary>
        /// <param name="tb"></param>
        private void KnowledgePointMicroCourse(GridTable tb)
        {
            var    knowledgePointMicroCourse = tb.NewRow();
            string describe = "测试主要攻破知识点描述";

            knowledgePointMicroCourse[0].Html = string.Format("<img src = '{0}' style = 'width:15; height:15;' /> <span style='font-size:16;font-weight:bold;font-family:微软雅黑'>{1}</span>", imgCodePath, "知识点微课");
            knowledgePointMicroCourse[1].Text = describe;
            knowledgePointMicroCourse[2].Html = string.Format(@"<img src='{0}' style='width:2cm; height:2cm;'/>", imgCodePath);
            //knowledgePointMicroCourse[1].TopPadding = 0;
            //knowledgePointMicroCourse[1].Html = string.Format(@"<span style='margin: 0px; padding: 0px;font-family:Microsoft YaHei;float:left'>{0}</span>
            //                                                    <img src='{1}' style='width:2cm; height:2cm;'/>", describe, imgCodePath);
            SetTableStyle(knowledgePointMicroCourse);
            knowledgePointMicroCourse[1].CellAlign = CellAlign.Right;
            knowledgePointMicroCourse[1].RightBorderSetting.Color = Color.White;


            knowledgePointMicroCourse[2].CellAlign               = CellAlign.Right;
            knowledgePointMicroCourse[2].RightPadding            = 7;
            knowledgePointMicroCourse[2].TopPadding              = 5;
            knowledgePointMicroCourse[2].BottomPadding           = 5;
            knowledgePointMicroCourse[2].Border                  = true;
            knowledgePointMicroCourse[2].LeftBorderSetting.Color = Color.White;
            tb.AddRow(knowledgePointMicroCourse);
        }