// Load bảng sim để chọn private void table_sim_Load(object sender, EventArgs e) { table_sim.DataSource = new BindingSource(simbus.GetAll(), ""); table_sim.MainView.PopulateColumns(); ((GridView)table_sim.MainView).Columns[0].Caption = "Mã Sim"; ((GridView)table_sim.MainView).Columns[1].Caption = "Mã khách hàng"; ((GridView)table_sim.MainView).Columns[2].Caption = "Số điện thoại"; ((GridView)table_sim.MainView).Columns[3].Caption = "Tình trạng"; ((GridView)table_sim.MainView).Columns[4].Visible = false; ((GridView)table_sim.MainView).Columns[5].Visible = false; ((GridView)table_sim.MainView).Columns[6].Visible = false; ((GridView)table_sim.MainView).Columns[7].Visible = false; }
private void LoadAll() { LoadCustomer(customerBUS.GetAll()); LoadRegister(invoiceRegisterBUS.GetAll()); LoadPhoneNumber(phoneNumberBUS.GetAll()); LoadSim(simBUS.GetAll()); LoadPostage(postageBUS.GetAll()); LoadPeriod(periodBUS.GetAll()); LoadPhoneCallDetail(phoneCallDetailBUS.GetAll()); GetComboboxPhoneNumber(cbxRegisterPhoneNumber, true); GetComboboxPhoneNumber(cbxRegisterPhoneNumberSearch, false); GetComboboxPhoneNumber(cbxViewPhoneNumberPhoneNoSearch, false); GetComboboxPhoneNumber(cbxSimPhoneNumberSearch, false); GetComboboxPhoneNumber(cbxSimPhoneNumber, false); GetComboboxPhoneNumber(cbxPhoneCallDetailPhoneNumber, false); GetComboboxActiveSim(cbxSimActive, simBUS.GetActiveSim()); }