Exemple #1
0
 public DataTable GetBranchData()
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     return(helper.GetBranchData());
 }
Exemple #2
0
 public void InsertNewBranch(int BranchID, int PrarentBranchID, string branchName)
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     helper.InsertNewBranch(BranchID, PrarentBranchID, branchName);
 }
Exemple #3
0
 public void UpdateBranchName(int branchId, string newBranchName)
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     helper.UpdateBranchName(newBranchName, branchId);
 }
Exemple #4
0
 public void DeleteByBranchId(int branchID)
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     helper.DeleteByBranchId(branchID);
 }
Exemple #5
0
 public int GetBranchIdByBranchName(string branchName)
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     return(Convert.ToInt32(helper.GetBranchIdByBranchName(branchName).ToString()));
 }
Exemple #6
0
 public int GetParentIdByBranchId(int branchId)
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     return(Convert.ToInt32(helper.GetParentIdByBranchId(branchId).ToString()));
 }
Exemple #7
0
 public DataTable GetBranchByBranchId(int branchId)
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     return(helper.GetBranchByBranchId(branchId));
 }
Exemple #8
0
 public DataTable GetChildBranches(int ParentId)
 {
     DSBranchTableAdapters.BranchTableAdapter helper = new DSBranchTableAdapters.BranchTableAdapter();
     return(helper.GetChildBranches(ParentId));
 }