Esempio n. 1
0
 public static HR_EmployeeRank GetHR_EmployeeRankByEmployeeRankID(int EmployeeRankID)
 {
     HR_EmployeeRank hR_EmployeeRank = new HR_EmployeeRank();
     SqlHR_EmployeeRankProvider sqlHR_EmployeeRankProvider = new SqlHR_EmployeeRankProvider();
     hR_EmployeeRank = sqlHR_EmployeeRankProvider.GetHR_EmployeeRankByEmployeeRankID(EmployeeRankID);
     return hR_EmployeeRank;
 }
Esempio n. 2
0
 public static DataSet GetDropDownListAllHR_EmployeeRank()
 {
     DataSet hR_EmployeeRanks = new DataSet();
     SqlHR_EmployeeRankProvider sqlHR_EmployeeRankProvider = new SqlHR_EmployeeRankProvider();
     hR_EmployeeRanks = sqlHR_EmployeeRankProvider.GetDropDownListAllHR_EmployeeRank();
     return hR_EmployeeRanks;
 }
Esempio n. 3
0
 public static void LoadHR_EmployeeRankPage(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_EmployeeRankProvider sqlHR_EmployeeRankProvider = new SqlHR_EmployeeRankProvider();
     DataSet ds =  sqlHR_EmployeeRankProvider.GetHR_EmployeeRankPageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      hR_EmployeeRanksPaggination(rptPager,recordCount, pageIndex, PageSize);
 }
Esempio n. 4
0
 public static bool UpdateHR_EmployeeRank(HR_EmployeeRank hR_EmployeeRank)
 {
     SqlHR_EmployeeRankProvider sqlHR_EmployeeRankProvider = new SqlHR_EmployeeRankProvider();
     return sqlHR_EmployeeRankProvider.UpdateHR_EmployeeRank(hR_EmployeeRank);
 }
Esempio n. 5
0
 public static int InsertHR_EmployeeRank(HR_EmployeeRank hR_EmployeeRank)
 {
     SqlHR_EmployeeRankProvider sqlHR_EmployeeRankProvider = new SqlHR_EmployeeRankProvider();
     return sqlHR_EmployeeRankProvider.InsertHR_EmployeeRank(hR_EmployeeRank);
 }
Esempio n. 6
0
 public static bool DeleteHR_EmployeeRank(int hR_EmployeeRankID)
 {
     SqlHR_EmployeeRankProvider sqlHR_EmployeeRankProvider = new SqlHR_EmployeeRankProvider();
     return sqlHR_EmployeeRankProvider.DeleteHR_EmployeeRank(hR_EmployeeRankID);
 }