public override void Approval(AbstractStaff context) { if (context.Hours <= 32) { context.AuditResult = true; context.AuditRemark = string.Format("在成功{0}处,请假成功", this.GetType().Name); WriteHelper.Write(context.AuditRemark); } else { if (this._NextAudtitor is null) { context.AuditResult = false; context.AuditRemark = string.Format("在成功{0}处,审批不通过", this.GetType().Name); WriteHelper.Write(context.AuditRemark); } else { this.AuditNext(context); } } }
public Staff() { WriteHelper.Write("我正在被构造"); }