Esempio n. 1
0
 public static STD_City GetSTD_CountryByCountryID(int CountryID)
 {
     STD_City sTD_City = new STD_City();
     SqlSTD_CityProvider sqlSTD_CityProvider = new SqlSTD_CityProvider();
     sTD_City = sqlSTD_CityProvider.GetSTD_CityByCountryID(CountryID);
     return sTD_City;
 }
Esempio n. 2
0
 protected void btnUpdate_Click(object sender, EventArgs e)
 {
     try
     {
     STD_City sTD_City = new STD_City ();
     sTD_City.CityID=  int.Parse(Request.QueryString["ID"].ToString());
     sTD_City.CityName=  txtCityName.Text;
     sTD_City.Description=  txtDescription.Text;
     sTD_City.CountryID=  int.Parse(ddlCountryID.SelectedValue);
     sTD_City.AddedBy=  Profile.card_id;
     sTD_City.AddedDate=  DateTime.Now;
     sTD_City.UpdatedBy=  Profile.card_id;
     sTD_City.UpdateDate = DateTime.Now;
     bool  resutl =STD_CityManager.UpdateSTD_City(sTD_City);
     }catch(Exception ex){}Response.Redirect("AdminDisplaySTD_City.aspx");
 }
Esempio n. 3
0
 public static int InsertSTD_City(STD_City sTD_City)
 {
     SqlSTD_CityProvider sqlSTD_CityProvider = new SqlSTD_CityProvider();
     return sqlSTD_CityProvider.InsertSTD_City(sTD_City);
 }
Esempio n. 4
0
 public static bool UpdateSTD_City(STD_City sTD_City)
 {
     SqlSTD_CityProvider sqlSTD_CityProvider = new SqlSTD_CityProvider();
     return sqlSTD_CityProvider.UpdateSTD_City(sTD_City);
 }
Esempio n. 5
0
 private void showSTD_CityData()
 {
     STD_City sTD_City  = new STD_City ();
      	sTD_City = STD_CityManager.GetSTD_CityByCityID(Int32.Parse(Request.QueryString["ID"]));
      	txtCityName.Text =sTD_City.CityName.ToString();
      	txtDescription.Text =sTD_City.Description.ToString();
      	ddlCountryID.SelectedValue  =sTD_City.CountryID.ToString();
 }