Пример #1
0
 public static STD_Country GetSTD_CountryByCountryID(int CountryID)
 {
     STD_Country sTD_Country = new STD_Country();
     SqlSTD_CountryProvider sqlSTD_CountryProvider = new SqlSTD_CountryProvider();
     sTD_Country = sqlSTD_CountryProvider.GetSTD_CountryByCountryID(CountryID);
     return sTD_Country;
 }
Пример #2
0
 public static DataSet GetDropDownListAllSTD_Country()
 {
     DataSet sTD_Countries = new DataSet();
     SqlSTD_CountryProvider sqlSTD_CountryProvider = new SqlSTD_CountryProvider();
     sTD_Countries = sqlSTD_CountryProvider.GetDropDownListAllSTD_Country();
     return sTD_Countries;
 }
Пример #3
0
 public static void LoadSTD_CountryPage(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);
     SqlSTD_CountryProvider sqlSTD_CountryProvider = new SqlSTD_CountryProvider();
     DataSet ds =  sqlSTD_CountryProvider.GetSTD_CountryPageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
      sTD_CountriesPaggination(rptPager,recordCount, pageIndex, PageSize);
 }
Пример #4
0
 public static bool UpdateSTD_Country(STD_Country sTD_Country)
 {
     SqlSTD_CountryProvider sqlSTD_CountryProvider = new SqlSTD_CountryProvider();
     return sqlSTD_CountryProvider.UpdateSTD_Country(sTD_Country);
 }
Пример #5
0
 public static int InsertSTD_Country(STD_Country sTD_Country)
 {
     SqlSTD_CountryProvider sqlSTD_CountryProvider = new SqlSTD_CountryProvider();
     return sqlSTD_CountryProvider.InsertSTD_Country(sTD_Country);
 }
Пример #6
0
 public static bool DeleteSTD_Country(int sTD_CountryID)
 {
     SqlSTD_CountryProvider sqlSTD_CountryProvider = new SqlSTD_CountryProvider();
     return sqlSTD_CountryProvider.DeleteSTD_Country(sTD_CountryID);
 }