示例#1
0
        static void Main(string[] args)
        {

            Manager jinli = new Manager("金利");
            Manager zongjian = new Manager("宗剑");
            Manager zhongjingli = new Manager("钟精励");

            Request request = new Request();
            request.RequestType = "加薪";
            request.RequestContent = "小菜请求加薪";
            request.Number = 1000;

            jinli.GetResult(ManagerLevel.经理, request);
            zongjian.GetResult(ManagerLevel.总监, request);
            zhongjingli.GetResult(ManagerLevel.总经理, request);

            Request request2 = new Request();
            request2.RequestType = "请假";
            request2.RequestContent = "小菜请假";
            request2.Number = 3;

            jinli.GetResult(ManagerLevel.经理, request2);
            zongjian.GetResult(ManagerLevel.总监, request2);
            zhongjingli.GetResult(ManagerLevel.总经理, request2);

            Console.Read();


        }
示例#2
0
 //设置管理者的上级
 public void SetSuperior(Manager superior)
 {
     this.superior = superior;
 }
 //设置管理者的上级
 public void SetSuperior(Manager superior)
 {
     this.superior = superior;
 }