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(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.º 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(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.º 3
0
 public void Draw(Graphics graphics)
 {
     graphics.DrawRectangle(DrawComm.Black2Pen, this.Rect);
     graphics.DrawString(this.Text,
                         new Font("宋体", DrawComm.SuitFontSize((double)Rect.Height * 0.8), FontStyle.Bold),
                         new SolidBrush(Color.Black), Rect, DrawComm.CenterStringFormat);
 }
Ejemplo n.º 4
0
 public virtual void Draw(Graphics graphics)
 {
     graphics.DrawRectangle(DrawComm.Black1Pen, this.Rect);
     graphics.DrawString(this.Time.ToString(),
                         new Font("宋体", DrawComm.SuitFontSize((double)Rect.Height * 0.6), FontStyle.Regular),
                         new SolidBrush(Color.Black), Rect, DrawComm.CenterStringFormat);
 }
Ejemplo n.º 5
0
 public override void Draw(Graphics graphics)
 {
     graphics.DrawRectangle(DrawComm.Black1Pen, this.Rect);
     if (Course != null)
     {
         graphics.DrawString(Course.ToString(),
                             new Font("宋体", DrawComm.SuitFontSize((double)Rect.Height * 1), FontStyle.Regular),
                             new SolidBrush(Color.Black), Rect, DrawComm.CenterStringFormat);
     }
 }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
        public override void Draw(Graphics graphics)
        {
            graphics.DrawRectangle(DrawComm.Black1Pen, this.Rect);
            String S = "";

            foreach (EnLsnAct act in acts)
            {
                if (!String.IsNullOrEmpty(S))
                {
                    S = S + Ex.cEntter;
                }
                S = S + act.ClsLesson.Lesson.Course.Name
                    + Ex.cEntter + act.ClsLesson.Squad.Name;
            }

            if (!String.IsNullOrEmpty(S))
            {
                graphics.DrawString(S,
                                    new Font("���ו", DrawComm.SuitFontSize((double)Rect.Height * 0.58), FontStyle.Regular),
                                    new SolidBrush(Color.Black), Rect, DrawComm.CenterStringFormat);
            }
        }