private void noForbid_Click(object sender, EventArgs e) { SortedDictionary <int, CustomerTable> forbidCustomerList = Customer.getInctance().getAllForbidCustomerInfo(); ArrayList forbidCustomers = new ArrayList(); foreach (KeyValuePair <int, CustomerTable> index in forbidCustomerList) { CustomerTable customer = new CustomerTable(); customer = index.Value; forbidCustomers.Add(Convert.ToString(customer.pkey)); forbidCustomers.Add(Convert.ToString(customer.name)); } FormNoForbid fnfs = new FormNoForbid(forbidCustomers, "客户反禁用", ForbidDataType.Customer); fnfs.ShowDialog(); updateDataGridView(getCurrentNodeAllChildNodesCustomer()); }
private void noForbid_Click(object sender, EventArgs e) { SortedDictionary <int, MaterielTable> forbidMaterielList = Materiel.getInctance().getAllForbidMaterielInfo(); ArrayList forbidMateriels = new ArrayList(); foreach (KeyValuePair <int, MaterielTable> index in forbidMaterielList) { MaterielTable materiel = new MaterielTable(); materiel = index.Value; forbidMateriels.Add(Convert.ToString(materiel.pkey)); forbidMateriels.Add(Convert.ToString(materiel.name)); } FormNoForbid fnfs = new FormNoForbid(forbidMateriels, "物料反禁用", ForbidDataType.Materiel); fnfs.ShowDialog(); updateDataGridView(getCurrentNodeAllChildNodesMateriel()); }
private void noForbid_Click(object sender, EventArgs e) { SortedDictionary <int, StaffTable> forbidStaffList = Staff.getInctance().getAllForbidStaffInfo(); ArrayList forbidStaffs = new ArrayList(); foreach (KeyValuePair <int, StaffTable> index in forbidStaffList) { StaffTable staff = new StaffTable(); staff = index.Value; forbidStaffs.Add(Convert.ToString(staff.pkey)); forbidStaffs.Add(Convert.ToString(staff.name)); } FormNoForbid fnfs = new FormNoForbid(forbidStaffs, "职员反禁用", ForbidDataType.Staff); fnfs.ShowDialog(); updateDataGridView(getCurrentNodeAllChildNodesStaff()); }