public void Create() { Shop shopname = new Shop(); bns = Bonus.cash; shopname.bonustype = bns; Grade grade = new Grade(); grade.Name = "G04"; grade.Price = 200000; grade.Bonus = Bonus.cash; grade1.Text = grade.Name + "-" + grade.Price; GradeName = grade.Name; Worker wrk11 = new Worker(); wrk11.Name = "Zamiq"; wrk11.Surname = " Dadasov"; wrk11.PosName = " Satish temsilchisi"; wrk11.Wage = 400; wrk11.Mail = "*****@*****.**"; wrk11.Adress = "Baki sheheri"; wrk11.WorkAdress = Shops.NWY; Worker wrk12 = new Worker(); wrk12.Name = "Pervin"; wrk12.Surname = " Ehmedov"; wrk12.PosName = " Satish temsilchisinin komekchisi"; wrk12.Wage = 300; wrk12.Mail = "*****@*****.**"; wrk12.Adress = "Baki sheheri"; wrk12.WorkAdress = Shops.NWY; Worker wrk13 = new Worker(); wrk13.Name = "Zahid"; wrk13.Surname = " Cabbarli"; wrk13.PosName = " Bash satish temsilchisi "; wrk13.Wage = 700; wrk13.Mail = "*****@*****.**"; wrk13.Adress = "Baki sheheri"; wrk13.WorkAdress = Shops.NWY; Worker wrk14 = new Worker(); wrk14.Name = "Meryem"; wrk14.Surname = " Gozelova"; wrk14.PosName = " Magaza meneceri"; wrk14.Wage = 500; wrk14.Mail = "*****@*****.**"; wrk14.Adress = "Baki sheheri"; wrk14.WorkAdress = Shops.NWY; Worker wrk15 = new Worker(); wrk15.Name = "Mehemmed"; wrk15.Surname = " Ezizli"; wrk15.PosName = " Magaza menecerinin komekchisi"; wrk15.Wage = 420; wrk15.Mail = "*****@*****.**"; wrk15.Adress = "Baki sheheri"; wrk15.WorkAdress = Shops.NWY; Worker[] workers = new Worker[5] { wrk11, wrk12, wrk13, wrk14, wrk15 }; Label[] labels = new Label[5] { label1, label2, label3, label4, label5 }; TextBox[] txbxs = new TextBox[5] { textBox1, textBox2, textBox3, textBox4, textBox5 }; for (int i = 0; i < workers.Length; i++) { labels[i].Text = workers[i].Name + workers[i].Surname + " (" + workers[i].PosName + " )"; workers[i].Salesquantity = txbxs[i].Text; nwyarr[i] = workers[i]; } }
public void Create() { Shop shopname = new Shop(); bns = Bonus.cash; shopname.bonustype = bns; Grade grade = new Grade { Name = "G01", Price = 100000, Bonus = Bonus.cash }; GradeName = grade.Name; Grade grade2 = new Grade { Name = "G02", Price = 340000, Bonus = Bonus.percent }; GradeName = grade2.Name; Grade grade3 = new Grade { Name = "G03", Price = 340000, Bonus = Bonus.cash }; GradeName = grade3.Name; Grade grade4 = new Grade { Name = "G04", Price = 200000, Bonus = Bonus.cash }; GradeName = grade4.Name; Grade[] grades = new Grade[4] { grade, grade2, grade3, grade4 }; for (int i = 0; i < grades.Length; i++) { grds[i] = grades[i]; } Worker wrk1 = new Worker { Name = "Samir", Surname = " Talibov", PosName = " Satish temsilchisi", Wage = 400, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.Mango }; Worker wrk2 = new Worker { Name = "Elgiz", Surname = " Eyvazli", PosName = " Satish temsilchisinin komekchisi", Wage = 300, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.Mango }; Worker wrk3 = new Worker { Name = "Xelil", Surname = " Memmedov", PosName = " Bash satish temsilchisi ", Wage = 700, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.Mango }; Worker wrk4 = new Worker { Name = "Sakit", Surname = " Ezimov", PosName = " Magaza meneceri", Wage = 500, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.Mango }; Worker wrk5 = new Worker { Name = "Nicat", Surname = " Sadixov", PosName = " Magaza menecerinin komekchisi", Wage = 420, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.Mango }; Worker[] mangoarray = new Worker[5] { wrk1, wrk2, wrk3, wrk4, wrk5 }; for (int i = 0; i < 5; i++) { adminarray[i] = mangoarray[i]; } Worker wrk6 = new Worker { Name = "Sakit", Surname = " Xelilov", PosName = " Satish temsilchisi", Wage = 400, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.PullBear }; Worker wrk7 = new Worker { Name = "Nicat", Surname = " Eliyev", PosName = " Satish temsilchisinin komekchisi", Wage = 300, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.PullBear }; Worker wrk8 = new Worker { Name = "Shahin", Surname = " Cabbarov", PosName = " Bash satish temsilchisi ", Wage = 700, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.PullBear }; Worker wrk9 = new Worker { Name = "Xaver", Surname = " Memmedova", PosName = " Magaza meneceri", Wage = 500, Mail = "*****@*****.**", Adress = "Baki sheheri", Salesquantity = "0", WorkAdress = Shops.PullBear }; Worker wrk10 = new Worker(); wrk10.Name = "Gunay"; wrk10.Surname = " Babazade"; wrk10.PosName = " Magaza menecerinin komekchisi"; wrk10.Wage = 420; wrk10.Mail = "*****@*****.**"; wrk10.Adress = "Baki sheheri"; wrk10.Salesquantity = "0"; wrk10.WorkAdress = Shops.PullBear; Worker wrk11 = new Worker(); wrk11.Name = "Zamiq"; wrk11.Surname = " Dadasov"; wrk11.PosName = " Satish temsilchisi"; wrk11.Wage = 400; wrk11.Mail = "*****@*****.**"; wrk11.Adress = "Baki sheheri"; wrk11.Salesquantity = "0"; wrk11.WorkAdress = Shops.NWY; Worker wrk12 = new Worker(); wrk12.Name = "Pervin"; wrk12.Surname = " Ehmedov"; wrk12.PosName = " Satish temsilchisinin komekchisi"; wrk12.Wage = 300; wrk12.Mail = "*****@*****.**"; wrk12.Adress = "Baki sheheri"; wrk12.Salesquantity = "0"; wrk12.WorkAdress = Shops.NWY; Worker wrk13 = new Worker(); wrk13.Name = "Zahid"; wrk13.Surname = " Cabbarli"; wrk13.PosName = " Bash satish temsilchisi "; wrk13.Wage = 700; wrk13.Mail = "*****@*****.**"; wrk13.Adress = "Baki sheheri"; wrk13.Salesquantity = "0"; wrk13.WorkAdress = Shops.NWY; Worker wrk14 = new Worker(); wrk14.Name = "Meryem"; wrk14.Surname = " Gozelova"; wrk14.PosName = " Magaza meneceri"; wrk14.Wage = 500; wrk14.Mail = "*****@*****.**"; wrk14.Adress = "Baki sheheri"; wrk14.Salesquantity = "0"; wrk14.WorkAdress = Shops.NWY; Worker wrk15 = new Worker(); wrk15.Name = "Mehemmed"; wrk15.Surname = " Ezizli"; wrk15.PosName = " Magaza menecerinin komekchisi"; wrk15.Wage = 420; wrk15.Mail = "*****@*****.**"; wrk15.Adress = "Baki sheheri"; wrk15.Salesquantity = "0"; wrk15.WorkAdress = Shops.NWY; Worker wrk16 = new Worker(); wrk16.Name = "Akshin"; wrk16.Surname = " Qasimov"; wrk16.PosName = " Satish temsilchisi"; wrk16.Wage = 400; wrk16.Mail = "*****@*****.**"; wrk16.Adress = "Baki sheheri"; wrk16.Salesquantity = "0"; wrk16.WorkAdress = Shops.Bershka; Worker wrk17 = new Worker(); wrk17.Name = "Sahib"; wrk17.Surname = " Sahibli"; wrk17.PosName = " Satish temsilchisinin komekchisi"; wrk17.Wage = 300; wrk17.Mail = "*****@*****.**"; wrk17.Adress = "Baki sheheri"; wrk17.Salesquantity = "0"; wrk17.WorkAdress = Shops.Bershka; Worker wrk18 = new Worker(); wrk18.Name = "Kamran"; wrk18.Surname = " Kazimov"; wrk18.PosName = " Bash satish temsilchisi "; wrk18.Wage = 700; wrk18.Mail = "*****@*****.**"; wrk18.Adress = "Baki sheheri"; wrk18.Salesquantity = "0"; wrk18.WorkAdress = Shops.Bershka; Worker wrk19 = new Worker(); wrk19.Name = "Aygun"; wrk19.Surname = " Bedelova"; wrk19.PosName = " Magaza meneceri"; wrk19.Wage = 500; wrk19.Mail = "*****@*****.**"; wrk19.Adress = "Baki sheheri"; wrk19.Salesquantity = "0"; wrk19.WorkAdress = Shops.Bershka; Worker wrk20 = new Worker(); wrk20.Name = "Musa"; wrk20.Surname = " Balayev"; wrk20.PosName = " Magaza menecerinin komekchisi"; wrk20.Wage = 420; wrk20.Mail = "*****@*****.**"; wrk20.Adress = "Baki sheheri"; wrk20.Salesquantity = "0"; wrk20.WorkAdress = Shops.Bershka; Worker[] workers = new Worker[20] { wrk1, wrk2, wrk3, wrk4, wrk5, wrk6, wrk7, wrk8, wrk9, wrk10, wrk11, wrk12, wrk13, wrk14, wrk15, wrk16, wrk17, wrk18, wrk19, wrk20 }; int k = 0; for (int i = 0; i < workers.Length; i++) { k++; dgv.Rows.Add(); dgv.Rows[i].Cells[0].Value = workers[i].Name; dgv.Rows[i].Cells[1].Value = workers[i].Surname; dgv.Rows[i].Cells[2].Value = workers[i].PosName; dgv.Rows[i].Cells[3].Value = workers[i].Wage; dgv.Rows[i].Cells[4].Value = workers[i].WorkAdress; if (workers[i].WorkAdress == Shops.Mango) { dgv.Rows[i].Cells[5].Value = grades[0].Name; } else if (workers[i].WorkAdress == Shops.PullBear) { dgv.Rows[i].Cells[5].Value = grades[1].Name; } else if (workers[i].WorkAdress == Shops.Bershka) { dgv.Rows[i].Cells[5].Value = grades[3].Name; } else if (workers[i].WorkAdress == Shops.NWY) { dgv.Rows[i].Cells[5].Value = grades[2].Name; } dgv.Rows[i].Cells[7].Value = 0; wrkrs[i] = workers[i]; } }
public void Create() { Shop shopname = new Shop(); bns = Bonus.cash; shopname.bonustype = bns; Grade grade = new Grade(); grade.Name = "G02"; grade.Price = 340000; grade.Bonus = Bonus.percent; grade1.Text = grade.Name + "-" + grade.Price; GradeName = grade.Name; Worker wrk1 = new Worker(); wrk1.Name = "Sakit"; wrk1.Surname = " Xelilov"; wrk1.PosName = " Satish temsilchisi"; wrk1.Wage = 400; wrk1.Mail = "*****@*****.**"; wrk1.Adress = "Baki sheheri"; wrk1.WorkAdress = Shops.PullBear; Worker wrk2 = new Worker(); wrk2.Name = "Nicat"; wrk2.Surname = " Eliyev"; wrk2.PosName = " Satish temsilchisinin komekchisi"; wrk2.Wage = 300; wrk2.Mail = "*****@*****.**"; wrk2.Adress = "Baki sheheri"; wrk2.WorkAdress = Shops.PullBear; Worker wrk3 = new Worker(); wrk3.Name = "Shahin"; wrk3.Surname = " Cabbarov"; wrk3.PosName = " Bash satish temsilchisi "; wrk3.Wage = 700; wrk3.Mail = "*****@*****.**"; wrk3.Adress = "Baki sheheri"; wrk3.WorkAdress = Shops.PullBear; Worker wrk4 = new Worker(); wrk4.Name = "Xaver"; wrk4.Surname = " Memmedova"; wrk4.PosName = " Magaza meneceri"; wrk4.Wage = 500; wrk4.Mail = "*****@*****.**"; wrk4.Adress = "Baki sheheri"; wrk4.WorkAdress = Shops.PullBear; Worker wrk5 = new Worker(); wrk5.Name = "Gunay"; wrk5.Surname = " Babazade"; wrk5.PosName = " Magaza menecerinin komekchisi"; wrk5.Wage = 420; wrk5.Mail = "*****@*****.**"; wrk5.Adress = "Baki sheheri"; wrk5.WorkAdress = Shops.PullBear; Worker[] workers = new Worker[5] { wrk1, wrk2, wrk3, wrk4, wrk5 }; Label[] labels = new Label[5] { label1, label2, label3, label4, label5 }; TextBox[] txbxs = new TextBox[5] { textBox1, textBox2, textBox3, textBox4, textBox5 }; for (int i = 0; i < workers.Length; i++) { labels[i].Text = workers[i].Name + workers[i].Surname + " (" + workers[i].PosName + " )"; workers[i].Salesquantity = txbxs[i].Text; pullbeararr[i] = workers[i]; } }