Exemple #1
0
        public void Pay(SE se)
        {
            int sum = se.Baispay + se.Meritpay;

            Console.WriteLine("基本工资:{0}", se.Baispay);
            Console.WriteLine("考核工资:{0}", se.Meritpay);
            Console.WriteLine("程序员的工资:{0}", sum);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            PM p = new PM("艾边成", 8000, 4000, 2000);

            p.show();

            SE p1 = new SE("艾边成", 4000, 3000);

            p1.show();
            Console.ReadLine();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Money money = new Money();
            SE    se    = new SE();

            se.Baispay  = 6000;
            se.Meritpay = 2000;

            money.Pay(se);
            PE pe = new PE();

            pe.BasePay  = 8000;
            pe.Magprize = 2000;
            pe.Bonus    = 2000;
            money.Pay(pe);
            Console.ReadLine();
        }
Exemple #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            SE structc = new SE();

            structc.Name       = "有病吧你";
            structc.Age        = 25;
            structc.ID         = 0001;
            structc.popularity = 100;
            PM p = new PM();

            p.Name              = "真的是有病";
            p.ID                = 1;
            p.gender            = Gender.famale;
            p.Age               = 34;
            p._yearOfExperience = 11;

            empls.Add(p);
            empls.Add(structc);
            foreach (Employee item in empls)
            {
                MessageBox.Show(item.SayHi());
            }
        }