public override void RequestApplications(Request request)
 {
     if (request.RequestType == "请假" && request.Number <= 5)
     {
         Console.WriteLine(
             "{0}:{1}的{2}{3}申请 数量{4} 被批准",
             _name,
             request.Name,
             request.RequestContent,
             request.RequestType,
             request.Number);
     }
     else
     {
         Console.WriteLine(
             "{0}:{1}的{2}{3}申请 数量{4} 无权处理,交给上级",
             _name,
             request.Name,
             request.RequestContent,
             request.RequestType,
             request.Number);
         if (_superior != null)
         {
             _superior.RequestApplications(request);
         }
     }
 }
        private static void Main(string[] args)
        {
            CommonManager cm = new CommonManager("CM");
            MajorManager mm = new MajorManager("MM");
            GeneralManager gm = new GeneralManager("GM");
            CEOManager em = new CEOManager("EM");

            gm.SetSuperior(mm);
            mm.SetSuperior(cm);

            //cm.SetSuperior(mm);
            // mm.SetSuperior(gm);
            //gm.SetSuperior(em);

            Request r1 = new Request("小明", "请假", "表弟结婚", 1);
            cm.RequestApplications(r1);

            Request r2 = new Request("小明", "请假", "表弟结婚", 4);
            cm.RequestApplications(r2);

            Request r3 = new Request("小明", "请假", "表弟结婚", 6);
            cm.RequestApplications(r3);

            Request r4 = new Request("小明", "加薪", "物价上涨太快", 500);
            cm.RequestApplications(r4);

            Request r5 = new Request("小明", "加薪", "物价上涨太快", 1000);
            cm.RequestApplications(r5);

            Console.ReadLine();
        }