@ -199,6 +199,7 @@ namespace PEIS.View.UControl
list . Add ( new StepModel ( "科室分检" ) ) ;
list . Add ( new StepModel ( "科室分检" ) ) ;
list . Add ( new StepModel ( "总检" ) ) ;
list . Add ( new StepModel ( "总检" ) ) ;
list . Add ( new StepModel ( "打印" ) ) ;
list . Add ( new StepModel ( "打印" ) ) ;
list . Add ( new StepModel ( "当前操作人员" , Global . currentUser . Name ) ) ;
return list ;
return list ;
}
}
list . Add ( new StepModel ( "签到" , $"{data.SignTime:yyyy-MM-dd HH:mm}" , $"体检者:{eid},{data.PatientName}" ) ) ;
list . Add ( new StepModel ( "签到" , $"{data.SignTime:yyyy-MM-dd HH:mm}" , $"体检者:{eid},{data.PatientName}" ) ) ;
@ -208,6 +209,7 @@ namespace PEIS.View.UControl
list . Add ( new StepModel ( "科室分检" , $"{examTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "科室分检" , $"{examTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "总检" , $"{data.FinishTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "总检" , $"{data.FinishTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "打印" , $"{data.PrintTime:yyyy-MM-dd HH:mm}" , "已打印" , true ) ) ;
list . Add ( new StepModel ( "打印" , $"{data.PrintTime:yyyy-MM-dd HH:mm}" , "已打印" , true ) ) ;
list . Add ( new StepModel ( "当前操作人员" , Global . currentUser . Name ) ) ;
return list ;
return list ;
}
}
if ( data . FinishTime ! = null )
if ( data . FinishTime ! = null )
@ -216,6 +218,7 @@ namespace PEIS.View.UControl
list . Add ( new StepModel ( "科室分检" , $"{examTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "科室分检" , $"{examTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "总检" , $"{data.FinishTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "总检" , $"{data.FinishTime:yyyy-MM-dd HH:mm}" , $"已完成" ) ) ;
list . Add ( new StepModel ( "打印" , "未打印" , "" , true ) ) ;
list . Add ( new StepModel ( "打印" , "未打印" , "" , true ) ) ;
list . Add ( new StepModel ( "当前操作人员" , Global . currentUser . Name ) ) ;
return list ;
return list ;
}
}
@ -240,6 +243,7 @@ WHERE A.EID = {Eid} AND c.VerifyTime IS NULL AND B.IsHide=0 AND A.GiveUpTime IS
list . Add ( new StepModel ( "总检" , $"" , "" , true ) ) ;
list . Add ( new StepModel ( "总检" , $"" , "" , true ) ) ;
}
}
list . Add ( new StepModel ( "打印" ) ) ;
list . Add ( new StepModel ( "打印" ) ) ;
list . Add ( new StepModel ( "当前操作人员" , Global . currentUser . Name ) ) ;
return list ;
return list ;
}
}
@ -251,6 +255,7 @@ WHERE A.EID = {Eid} AND c.VerifyTime IS NULL AND B.IsHide=0 AND A.GiveUpTime IS
new StepModel ( "科室分检" ) ,
new StepModel ( "科室分检" ) ,
new StepModel ( "总检" ) ,
new StepModel ( "总检" ) ,
new StepModel ( "打印" ) ,
new StepModel ( "打印" ) ,
new StepModel ( "当前操作人员" , Global . currentUser . Name ) ,
} ;
} ;
}
}
@ -283,10 +288,20 @@ WHERE A.EID = {Eid} AND c.VerifyTime IS NULL AND B.IsHide=0 AND A.GiveUpTime IS
// 4..填充⚪,未完成填充序号,已完成的填充图片
// 4..填充⚪,未完成填充序号,已完成的填充图片
if ( i > = currentIndex )
if ( i > = currentIndex )
{
{
var sizeIndex = graphics . MeasureString ( $"{i}" , nameFont ) ; // 测量字符串
if ( i = = data . Count - 1 )
var point = new Point ( rec . X + 1 5 - ( int ) ( sizeIndex . Width / 2 ) ,
{
( ( int ) ( mid - sizeIndex . Height / 2 ) ) ) ; // 垂直居中对齐
var sizeIndex = graphics . MeasureString ( $"◆" , nameFont ) ; // 测量字符串
graphics . DrawString ( $"{i}" , nameFont , new SolidBrush ( i > currentIndex ? mainColor : white ) , point ) ;
var point = new Point ( rec . X + 1 5 - ( int ) ( sizeIndex . Width / 2 ) ,
( ( int ) ( mid - sizeIndex . Height / 2 ) ) ) ; // 垂直居中对齐
graphics . DrawString ( $"◆" , nameFont , new SolidBrush ( i > currentIndex ? mainColor : white ) , point ) ;
}
else
{
var sizeIndex = graphics . MeasureString ( $"{i}" , nameFont ) ; // 测量字符串
var point = new Point ( rec . X + 1 5 - ( int ) ( sizeIndex . Width / 2 ) ,
( ( int ) ( mid - sizeIndex . Height / 2 ) ) ) ; // 垂直居中对齐
graphics . DrawString ( $"{i}" , nameFont , new SolidBrush ( i > currentIndex ? mainColor : white ) , point ) ;
}
}
}
else
else
{
{
@ -316,12 +331,19 @@ WHERE A.EID = {Eid} AND c.VerifyTime IS NULL AND B.IsHide=0 AND A.GiveUpTime IS
: 0 ) ;
: 0 ) ;
// x右移 ---
// x右移 ---
initX + = ( int ) nameSize . Width + margin ;
initX + = ( int ) nameSize . Width + margin ;
// 最后一个节点无需分割线
// 操作人员节点画白色分割线
if ( i > = data . Count - 1 ) continue ;
if ( i > = data . Count - 2 ) {
// 10.在画布中画一条线
graphics . DrawLine ( new Pen ( Color . White ) , new Point ( initX , mid ) ,
graphics . DrawLine ( new Pen ( mainColor ) , new Point ( initX , mid ) ,
new Point ( initX + LineLength + lineAddWidth , mid ) ) ;
new Point ( initX + LineLength + lineAddWidth , mid ) ) ;
initX + = ( LineLength + lineAddWidth ) ;
initX + = ( LineLength + lineAddWidth ) ;
}
else {
// 10.在画布中画一条线
graphics . DrawLine ( new Pen ( mainColor ) , new Point ( initX , mid ) ,
new Point ( initX + LineLength + lineAddWidth , mid ) ) ;
initX + = ( LineLength + lineAddWidth ) ;
}
}
}
Console . WriteLine ( ) ;
Console . WriteLine ( ) ;