public static void Main() { Manager tegar = new Manager("Manager Drilling"); Manager haidar = new Manager("Manager Drilling"); Manager sani = new Manager("Manager Refinery"); Manager adi = new Manager("Manager General Affairs"); Supervisor iqbal = new Supervisor("Supervisor Drilling Riau"); Supervisor ucu = new Supervisor("Supervisor Drilling Luwuk"); Supervisor dhani = new Supervisor("Supervisor Refinery Balikpapan"); Staff dwi = new Staff("Staff Drilling Riau 1"); Staff trio = new Staff("Straff Drilling Riau 2"); Staff nuragus = new Staff("Staff Drilling Luwuk"); Staff sofi = new Staff("Staff Refinery Balikpapan"); Staff seta = new Staff("Staff General Affairs"); tegar._nama = "Tegar"; haidar._nama = "Haidar"; sani._nama = "Sani"; adi._nama = "Adi"; iqbal._nama = "Iqbal"; ucu._nama = "Ucu"; dhani._nama = "Dhani"; dwi._nama = "Dwi"; trio._nama = "Trio"; nuragus._nama = "Nuragus"; sofi._nama = "Sofi"; seta._nama = "Seta"; }
public static void Main() { Manager tegar = new Manager("Manager Drilling"); Manager haidar = new Manager("Manager Drilling"); Manager sani = new Manager("Manager Refinery"); Manager adi = new Manager("Manager General Affairs"); Supervisor iqbal = new Supervisor("Supervisor Drilling Riau"); Supervisor ucu = new Supervisor("Supervisor Drilling Luwuk"); Supervisor dani = new Supervisor("Supervisor Refinery Balikpapan"); Staff dwi = new Staff("Staff Drilling Riau 1"); Staff trio = new Staff("Staff Drilling Riau 2"); Staff nuragus = new Staff("Staff Drilling Luwuk"); Staff sofi = new Staff("Staff Refinery Balikpapan"); Staff seta = new Staff("Staff General Affairs"); tegar._nama = "Tegar"; tegar._tanggalMasukKerja = "1 Desember 2015"; tegar._gajiPokok = 3000000; tegar._tunjanganKaryawan = 500000; tegar._tunjanganPenginapan = 900000; tegar._tunjanganInternet = 200000; tegar._tunjanganHariRaya = 1000000; tegar._tunjanganStudyBanding = 900000; tegar._tunjanganKesehatan = 100000; haidar._nama = "Haidar"; haidar._tanggalMasukKerja = "1 Desember 2012"; haidar._gajiPokok = 3000000; haidar._tunjanganKaryawan = 500000; haidar._tunjanganPenginapan = 800000; haidar._tunjanganInternet = 400000; haidar._tunjanganHariRaya = 1000000; haidar._tunjanganStudyBanding = 1000000; haidar._tunjanganKesehatan = 100000; iqbal._nama = "Iqbal"; iqbal._tanggalMasukKerja = "1 Desember 2013"; iqbal._gajiPokok = 3000000; iqbal._tunjanganKaryawan = 1000000; iqbal._tunjanganPenginapan = 800000; iqbal._tunjanganInternet = 200000; dani._nama = "Dhani"; dani._tanggalMasukKerja = "1 Desember 2015"; dani._gajiPokok = 3000000; dani._tunjanganKaryawan = 500000; dani._tunjanganPenginapan = 800000; dani._tunjanganInternet = 200000; dwi._nama = "Dwi"; dwi._tanggalMasukKerja = "1 Desember 2015"; dwi._training = "Drilling"; dwi._gajiPokok = 3000000; dwi._tunjanganKaryawan = 500000; trio._nama = "Trio"; trio._tanggalMasukKerja = "1 Desember 2015"; trio._training = "Drilling"; trio._gajiPokok = 3000000; trio._tunjanganKaryawan = 500000; Console.WriteLine("Sistem Karyawan Sisikaryakan"); Console.WriteLine("Pilih Data Karyawan yang ingin dicetak (Masukan Angka): "); Console.WriteLine("1. Manager"); Console.WriteLine("2. Supervisor"); Console.WriteLine("3. Staff"); string Angka = Console.ReadLine(); if (Angka == "1") { Console.WriteLine("Nama : " + haidar._nama); Console.WriteLine("Jabatan : " + haidar._jabatan); Console.WriteLine("Tanggal Masuk Kerja : " + haidar._tanggalMasukKerja); Console.WriteLine("Gaji Pokok : " + haidar._gajiPokok); Console.WriteLine("Tunjangan Karyawan : " + haidar._tunjanganKaryawan); Console.WriteLine("Tunjangan Penginapan : " + haidar._tunjanganPenginapan); Console.WriteLine("Tunjangan Internet: " + haidar._tunjanganInternet); Console.WriteLine("Tunjangan Hari Raya: " + haidar._tunjanganHariRaya); Console.WriteLine("Tunjangan Kesehatan : " + haidar._tunjanganKesehatan + Environment.NewLine); Console.WriteLine("Nama : " + tegar._nama); Console.WriteLine("Jabatan : " + tegar._jabatan); Console.WriteLine("Tanggal Masuk Kerja : " + tegar._tanggalMasukKerja); Console.WriteLine("Gaji Pokok : " + tegar._gajiPokok); Console.WriteLine("Tunjangan Karyawan : " + tegar._tunjanganKaryawan); Console.WriteLine("Tunjangan Penginapan : " + tegar._tunjanganPenginapan); Console.WriteLine("Tunjangan Internet: " + tegar._tunjanganInternet); Console.WriteLine("Tunjangan Hari Raya: " + tegar._tunjanganHariRaya); Console.WriteLine("Tunjangan Kesehatan : " + tegar._tunjanganKesehatan + Environment.NewLine); Console.ReadLine(); } if (Angka == "2"){ Console.WriteLine("Nama : " + iqbal._nama); Console.WriteLine("Jabatan : " + iqbal._jabatan); Console.WriteLine("Tanggal Masuk Kerja : " + iqbal._tanggalMasukKerja); Console.WriteLine("Gaji Pokok : " + iqbal._gajiPokok); Console.WriteLine("Tunjangan Karyawan : " + iqbal._tunjanganKaryawan); Console.WriteLine("Tunjangan Penginapan : " + iqbal._tunjanganPenginapan); Console.WriteLine("Tunjangan Internet: " + iqbal._tunjanganInternet + Environment.NewLine); Console.WriteLine("Nama : " + dani._nama); Console.WriteLine("Jabatan : " + dani._jabatan); Console.WriteLine("Tanggal Masuk Kerja : " + dani._tanggalMasukKerja); Console.WriteLine("Gaji Pokok : " + dani._gajiPokok); Console.WriteLine("Tunjangan Karyawan : " + dani._tunjanganKaryawan); Console.WriteLine("Tunjangan Penginapan : " + dani._tunjanganPenginapan); Console.WriteLine("Tunjangan Internet: " + dani._tunjanganInternet + Environment.NewLine); Console.ReadLine(); } if (Angka == "3") { Console.WriteLine("Nama : " + dwi._nama); Console.WriteLine("Jabatan : " + dwi._jabatan); Console.WriteLine("Tanggal Masuk Kerja : " + dwi._tanggalMasukKerja); Console.WriteLine("Training : " + trio._training); Console.WriteLine("Gaji Pokok : " + dwi._gajiPokok); Console.WriteLine("Tunjangan Karyawan : " + dwi._tunjanganKaryawan + Environment.NewLine); Console.WriteLine("Nama : " + trio._nama); Console.WriteLine("Jabatan : " + trio._jabatan); Console.WriteLine("Tanggal Masuk Kerja : " + trio._tanggalMasukKerja); Console.WriteLine("Training : " + trio._training); Console.WriteLine("Gaji Pokok : " + trio._gajiPokok); Console.WriteLine("Tunjangan Karyawan : " + trio._tunjanganKaryawan + Environment.NewLine); Console.ReadLine(); } else { Console.WriteLine ( "Input yang anda masukan salah"); Console.ReadLine(); } }
public static void Main() { Manager Tegar = new Manager("Manager Drilling"); Manager Haidar = new Manager("Manager Drilling"); Manager Hasani = new Manager("Manager Refinery"); Manager Adi = new Manager("Manager General Affair"); Supervisor Iqbal = new Supervisor("Supervisor Drilling Riau"); Supervisor Ucu = new Supervisor("Supervisor Drilling Luwuk"); Supervisor Dani = new Supervisor("Supervisor Refinery Balikpapan"); Staff Dwi = new Staff("Staff Drilling Riau 1"); Staff Trio = new Staff("Staff Drilling Riau 2"); Staff Agus = new Staff("Staff Drilling Luwuk"); Staff Sofi = new Staff("Staff Refinery Balikpapan"); Staff Seta = new Staff("Staff General Affair"); Tegar.name = "Tegar"; Tegar.dateOfEntry = "2 December 2016"; Tegar.basicSalary = 3000000; Tegar.employeeBenefits = 500000; Tegar.transportAllowance = 300000; Tegar.lodgingAllowance = 900000; Tegar.internetAllowance = 200000; Tegar.holidayAllowance = 1000000; Tegar.TourStudyAllowance = 900000; Tegar.healthBenefits = 100000; Haidar.name = "Haidar"; Haidar.dateOfEntry = "2 December 2016"; Haidar.basicSalary = 3000000; Haidar.employeeBenefits = 500000; Haidar.transportAllowance = 300000; Haidar.lodgingAllowance = 900000; Haidar.internetAllowance = 200000; Haidar.holidayAllowance = 1000000; Haidar.TourStudyAllowance = 900000; Haidar.healthBenefits = 100000; Hasani.name = "Hasani"; Hasani.dateOfEntry = "2 December 2016"; Hasani.basicSalary = 3000000; Hasani.employeeBenefits = 500000; Hasani.transportAllowance = 300000; Hasani.lodgingAllowance = 900000; Hasani.internetAllowance = 200000; Hasani.holidayAllowance = 1000000; Hasani.TourStudyAllowance = 900000; Hasani.healthBenefits = 100000; Adi.name = "Adi"; Adi.dateOfEntry = "2 December 2016"; Adi.basicSalary = 3000000; Adi.employeeBenefits = 500000; Adi.transportAllowance = 300000; Adi.lodgingAllowance = 900000; Adi.internetAllowance = 200000; Adi.holidayAllowance = 1000000; Adi.TourStudyAllowance = 900000; Adi.healthBenefits = 100000; Iqbal.name = "Iqbal"; Iqbal.dateOfEntry = "2 December 2016"; Iqbal.basicSalary = 3000000; Iqbal.employeeBenefits = 1000000; Iqbal.transportAllowance = 300000; Iqbal.lodgingAllowance = 800000; Iqbal.internetAllowance = 200000; Ucu.name = "Ucu"; Ucu.dateOfEntry = "2 December 2016"; Ucu.basicSalary = 3000000; Ucu.employeeBenefits = 1000000; Ucu.transportAllowance = 400000; Ucu.lodgingAllowance = 800000; Ucu.internetAllowance = 300000; Dani.name = "Dani"; Dani.dateOfEntry = "2 December 2016"; Dani.basicSalary = 3000000; Dani.employeeBenefits = 1000000; Dani.transportAllowance = 300000; Dani.lodgingAllowance = 800000; Dani.internetAllowance = 200000; Dwi.name = "Dwi"; Dwi.dateOfEntry = "2 December 2016"; Dwi.basicSalary = 3000000; Dwi.employeeBenefits = 500000; Dwi.transportAllowance = 300000; Trio.name = "Trio"; Trio.dateOfEntry = "2 December 2016"; Trio.basicSalary = 3000000; Trio.employeeBenefits = 1000000; Trio.transportAllowance = 300000; Sofi.name = "Sofi"; Sofi.dateOfEntry = "2 December 2016"; Sofi.basicSalary = 3000000; Sofi.employeeBenefits = 1000000; Sofi.transportAllowance = 500000; Seta.name = "Seta"; Seta.dateOfEntry = "2 December 2016"; Seta.basicSalary = 3000000; Seta.employeeBenefits = 1000000; Seta.transportAllowance = 3000000; }