Ejemplo n.º 1
0
        public void PrintMatrix(PrintDocument Doc, Graphics graphics, Rectangle rect)
        {
            Rectangle titleRect = new Rectangle(rect.Left, rect.Top + 20, rect.Width, 100);

            graphics.DrawString(squad.ToString(),
                                new Font("宋体", DrawComm.SuitFontSize((double)titleRect.Height * 1), FontStyle.Bold),
                                new SolidBrush(Color.Black), titleRect, DrawComm.CenterStringFormat);

            graphics.DrawString(ViewStyle.Description,
                                new Font("宋体", DrawComm.SuitFontSize((double)titleRect.Height * 0.5)),
                                new SolidBrush(Color.Black),
                                rect.Left, rect.Top + 100);

            FcMatrixPtr <PrtMatterCellSqd> Matrix = new FcMatrixPtr <PrtMatterCellSqd>(VC2WinFmApp.DataRule.Solution);

            Matrix.HeighWidthProportionLow  = 30;
            Matrix.HeighWidthProportionHigh = 80;
            DtMatrix <EnLsnAct> SqdMatrix = VC2WinFmApp.Engine.GetSqdMatrix(squad);

            foreach (VcTime time in SqdMatrix.eachTime())
            {
                if (SqdMatrix[time] != null)
                {
                    Matrix[time].Course = SqdMatrix[time].ClsLesson.Lesson.Course;
                }
            }

            Matrix.Rect = new Rectangle(rect.Left, rect.Top + 130, rect.Width, rect.Height - 130);
            Matrix.Draw(graphics);

            //todo  打印授课教师表格
        }
Ejemplo n.º 2
0
        public void PrintMatrix(PrintDocument Doc, Graphics graphics, Rectangle rect)
        {
            Rectangle titleRect = new Rectangle(rect.Left, rect.Top + 20, rect.Width, 100);

            graphics.DrawString(teacher.ToString(),
                                new Font("���ו", DrawComm.SuitFontSize((double)titleRect.Height * 1), FontStyle.Bold),
                                new SolidBrush(Color.Black), titleRect, DrawComm.CenterStringFormat);

            graphics.DrawString(ViewStyle.Description,
                                new Font("���ו", DrawComm.SuitFontSize((double)titleRect.Height * 0.5)),
                                new SolidBrush(Color.Black),
                                rect.Left, rect.Top + 100);

            FcMatrixPtr <PrtMatterCellTch> Matrix = new FcMatrixPtr <PrtMatterCellTch>(VC2WinFmApp.DataRule.Solution);

            Matrix.HeighWidthProportionLow  = 30;
            Matrix.HeighWidthProportionHigh = 80;

            DtMatrix <IList <EnLsnAct> > TchMatrix = VC2WinFmApp.Engine.GetTchMatrix(teacher);

            foreach (VcTime time in TchMatrix.eachTime())
            {
                Matrix[time].Acts = TchMatrix[time];
            }

            Matrix.Rect = new Rectangle(rect.Left, rect.Top + 130, rect.Width, rect.Height - 130);
            Matrix.Draw(graphics);
        }
Ejemplo n.º 3
0
        public void PrintMatrix(PrintDocument Doc, Graphics graphics, Rectangle rect)
        {
            Rectangle titleRect = new Rectangle(rect.Left, rect.Top + 20, rect.Width, 100);

            graphics.DrawString(entity.ToString(),
                                new Font("���ו", DrawComm.SuitFontSize((double)titleRect.Height * 0.5), FontStyle.Bold),
                                new SolidBrush(Color.Black), titleRect, DrawComm.CenterStringFormat);

            FcMatrixPtr <PrtMatterCell> Matrix = new FcMatrixPtr <PrtMatterCell>(VC2WinFmApp.DataRule.Solution);

            Matrix.HeighWidthProportionLow  = 30;
            Matrix.HeighWidthProportionHigh = 40;
            Matrix.Rect = new Rectangle(rect.Left, rect.Top + 130, rect.Width, rect.Height - 130);
            Matrix.Draw(graphics);
        }