public ManageStock() { InitializeComponent(); List <ServiceBranch.Branchdata> blist = new List <ServiceBranch.Branchdata>(); blist = br.selectBranchperAdmin(UserInfo.id).ToList(); Br_Id.Add(0); Br_Name.Add("Select"); foreach (ServiceBranch.Branchdata i in blist) { Br_Id.Add(i.Id); Br_Name.Add(i.Location); } foreach (string i in Br_Name) { BranchList.Items.Add(i); editBranchList.Items.Add(i); selectbranch.Items.Add(i); } load_data(); All.BringToFront(); }
public ViewSales() { InitializeComponent(); br_Id.Add(0); br_Name.Add("Branch"); foreach (ServiceBranch.Branchdata i in br.selectBranchperAdmin(UserInfo.id)) { br_Id.Add(i.Id); br_Name.Add(i.Location); } foreach (string i in br_Name) { selectbranch.Items.Add(i); } }
public ManageBills() { InitializeComponent(); branchName.Add("Branch"); branchid.Add(0); foreach (ServiceBranch.Branchdata i in branch.selectBranchperAdmin(UserInfo.id)) { branchid.Add(i.Id); branchName.Add(i.Location); } foreach (string i in branchName) { selectbranch.Items.Add(i); } load_data(); All.BringToFront(); }
public ManageBiller() { InitializeComponent(); br_Id.Add(0); br_Name.Add("branch"); foreach (ServiceBranch.Branchdata i in br.selectBranchperAdmin(UserInfo.id)) { br_Id.Add(i.Id); br_Name.Add(i.Location); } foreach (string i in br_Name) { selectbranch.Items.Add(i); addcombobranch.Items.Add(i); editcombobranch.Items.Add(i); } All.BringToFront(); }
private void Load_data() { data = a.selectBranchperAdmin(UserInfo.id).ToList(); branchdata.DataSource = data; }