Пример #1
0
 public static DataSet GetHR_ContactByEmployeeID(string EmployeeID)
 {
     DataSet hR_Contacts = new DataSet();
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     hR_Contacts = sqlHR_ContactProvider.GetHR_ContactByEmployeeID(EmployeeID);
     return hR_Contacts;
 }
Пример #2
0
 public static HR_Contact GetHR_ContactObjectByEmployeeID(string EmployeeID)
 {
     HR_Contact hR_Contact = new HR_Contact();
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     hR_Contact = sqlHR_ContactProvider.GetHR_ContactObjectByEmployeeID(EmployeeID);
     return hR_Contact;
 }
Пример #3
0
 public static HR_Contact GetHR_ContactByContactID(int ContactID)
 {
     HR_Contact hR_Contact = new HR_Contact();
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     hR_Contact = sqlHR_ContactProvider.GetHR_ContactByContactID(ContactID);
     return hR_Contact;
 }
Пример #4
0
 public static DataSet GetDropDownListAllHR_Contact()
 {
     DataSet hR_Contacts = new DataSet();
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     hR_Contacts = sqlHR_ContactProvider.GetDropDownLisAllHR_Contact();
     return hR_Contacts;
 }
Пример #5
0
 public static DataSet GetAllHR_ContactsWithRelation()
 {
     DataSet hR_Contacts = new DataSet();
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     hR_Contacts = sqlHR_ContactProvider.GetAllHR_Contacts();
     return hR_Contacts;
 }
Пример #6
0
 public static void LoadHR_ContactPage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
 {
     int recordCount=0;
     int PageSize =  int.Parse(ddlPageSize.SelectedValue);
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     DataSet ds =  sqlHR_ContactProvider.GetHR_ContactPageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      hR_ContactsPaggination(rptPager,recordCount, pageIndex, PageSize);
 }
Пример #7
0
 public static int InsertHR_Contact(HR_Contact hR_Contact)
 {
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     return sqlHR_ContactProvider.InsertHR_Contact(hR_Contact);
 }
Пример #8
0
 public static bool DeleteHR_Contact(int hR_ContactID)
 {
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     return sqlHR_ContactProvider.DeleteHR_Contact(hR_ContactID);
 }
Пример #9
0
 public static bool UpdateHR_Contact(HR_Contact hR_Contact)
 {
     SqlHR_ContactProvider sqlHR_ContactProvider = new SqlHR_ContactProvider();
     return sqlHR_ContactProvider.UpdateHR_Contact(hR_Contact);
 }