127 lines
4.5 KiB
C#
127 lines
4.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace SOH.FenZhen.Client
|
|
{
|
|
public partial class FrmShow : Form
|
|
{
|
|
public FrmShow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void FrmShow_Paint(object sender, PaintEventArgs e)
|
|
{
|
|
//*--淄博 老版本
|
|
//Graphics g = e.Graphics;
|
|
//Image img = Image.FromFile(Application.StartupPath + "\\fzbjt.jpg");
|
|
//Rectangle rect = new Rectangle(0, 0, 800, 600);
|
|
//g.DrawImage(img, rect);
|
|
//Font f = new Font("微软雅黑",42,FontStyle.Bold);
|
|
|
|
//SizeF s = g.MeasureString(this.ksname, f);
|
|
//Point p = new Point((int)(268-s.Width)/2+152, 96);
|
|
//g.DrawString(ksname, f, Brushes.Yellow, p);
|
|
|
|
////856 172
|
|
//int h = 135;
|
|
//int x = 0;
|
|
//int i = 1;
|
|
//Image cb = Image.FromFile(Application.StartupPath + "\\cb.jpg");
|
|
//pdlb.ForEach(t => {
|
|
|
|
// g.DrawImage(cb, new Rectangle(432, h + x, 24, 24));
|
|
// Font namef = new Font("隶书", 18, FontStyle.Bold);
|
|
// if(t.zxzt==0)
|
|
// g.DrawString(i + "、" + t.xm,namef,Brushes.Blue,new Point(432 + 32,h+ x));
|
|
// else
|
|
// g.DrawString(i + "、" + t.xm + "(正在体检)", namef, Brushes.Red, new Point(432 + 32, h + x));
|
|
|
|
// i++;
|
|
// x += 24;
|
|
//});
|
|
|
|
//*--淄博 新版本
|
|
Graphics g = e.Graphics;
|
|
Image img = Image.FromFile(Application.StartupPath + "\\fzbjt.jpg");
|
|
Rectangle rect = new Rectangle(0, 0, 800, 600);
|
|
g.DrawImage(img, rect);
|
|
Font f = new Font("微软雅黑", 30, FontStyle.Bold);
|
|
|
|
SizeF s = g.MeasureString(this.ksname, f);
|
|
Point p = new Point((int)(268 - s.Width) / 2 + 152, 25);
|
|
g.DrawString(ksname, f, Brushes.Yellow, p);
|
|
|
|
//856 172
|
|
//int h = 150;
|
|
int h = 150;
|
|
int x = 0;
|
|
int i = 1;
|
|
//Image cb = Image.FromFile(Application.StartupPath + "\\cb.jpg");
|
|
pdlb.OrderBy(t=>t.pdsj).ToList().ForEach(t => {
|
|
if(i==1)
|
|
{
|
|
h = 130;
|
|
}
|
|
if(i==11)
|
|
{
|
|
h = 170;
|
|
}
|
|
//g.DrawImage(cb, new Rectangle(432, h + x, 24, 24));
|
|
//Font namef = new Font("隶书", 26, FontStyle.Bold);
|
|
Font namef = new Font("隶书", 22, FontStyle.Bold);
|
|
if (t.zxzt == 0)
|
|
g.DrawString(i + "、" + t.xm, namef, Brushes.Blue, new Point(200, h + x));
|
|
else
|
|
g.DrawString(i + "、" + t.xm + "(正在体检)", namef, Brushes.Red, new Point(200, h + x));
|
|
|
|
i++;
|
|
x += 45;
|
|
});
|
|
|
|
|
|
// */
|
|
/*德州
|
|
Graphics g = e.Graphics;
|
|
Image img = Image.FromFile(Application.StartupPath + "\\fzbjt.jpg");
|
|
Rectangle rect = new Rectangle(0, 0, 1360, 768);
|
|
g.DrawImage(img, rect);
|
|
Font f = new Font("微软雅黑", 32, FontStyle.Bold);
|
|
|
|
SizeF s = g.MeasureString(this.ksname, f);
|
|
Point p = new Point((int)(366 - s.Width) / 2 + 309, 96);
|
|
g.DrawString(ksname, f, Brushes.Yellow, p);
|
|
|
|
//856 172
|
|
int h = 172;
|
|
int x = 0;
|
|
int i = 1;
|
|
Image cb = Image.FromFile(Application.StartupPath + "\\cb.jpg");
|
|
pdlb.ForEach(t => {
|
|
|
|
g.DrawImage(cb, new Rectangle(856, h + x, 36, 36));
|
|
Font namef = new Font("隶书", 24, FontStyle.Bold);
|
|
if (t.zxzt == 0)
|
|
g.DrawString(i + "、" + t.xm, namef, Brushes.YellowGreen, new Point(856 + 20, h + x));
|
|
else
|
|
g.DrawString(i + "、" + t.xm + "(正在体检)", namef, Brushes.Red, new Point(856 + 20, h + x));
|
|
|
|
i++;
|
|
x += 36;
|
|
});
|
|
*/
|
|
}
|
|
List<SOH.FenZhen.Client.kstjMessage> pdlb;
|
|
private void FrmShow_Load(object sender, EventArgs e)
|
|
{
|
|
pdlb = (this.Owner as FrmCall).pdlist;
|
|
}
|
|
}
|
|
}
|