예제 #1
0
 //設置管理者的上級
 public void SetSuperior(Manager superior)
 {
     this.superior = superior;
 }
예제 #2
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();
        }