public void Update(String KODETIPE, String DESKRIPSI) { TIPEAKTOR item = new TIPEAKTOR(); item.KODETIPE = KODETIPE; item.DESKRIPSI = DESKRIPSI; item.MarkOld(); item.Save(""); }
public void Insert( String KODETIPE , String DESKRIPSI ) { TIPEAKTOR item = new TIPEAKTOR(); item.KODETIPE = KODETIPE; item.DESKRIPSI = DESKRIPSI; item.Save(""); }
private void SaveData() { item = new Data.TIPEAKTOR(); // processing KODETIPE - start if (!string.IsNullOrEmpty(Request["value_KODETIPE"])) { item.KODETIPE = Convert.ToString(Request["value_KODETIPE"]); } // processing DESKRIPSI - start if (!string.IsNullOrEmpty(Request["value_DESKRIPSI"])) { item.DESKRIPSI = Convert.ToString(Request["value_DESKRIPSI"]); } bool abortSaving = false; if (!abortSaving) { item.Save(); ShowSuccessMessage(); } }
private void SaveData() { if (RequestAction != "edited") { item = new Data.TIPEAKTOR(); } Data.TIPEAKTOR emptyItem = new Data.TIPEAKTOR(); // processing DESKRIPSI - start if (!string.IsNullOrEmpty(Request["value_DESKRIPSI"])) { item.DESKRIPSI = Convert.ToString(Request["value_DESKRIPSI"]); } else { item.DESKRIPSI = emptyItem.DESKRIPSI; } // //item.KODETIPE = Convert.ToString(Request["editid1"]); // string idx = string.Empty; idx = "1"; item.KODETIPE = Convert.ToString(Request["editid" + idx]); bool abortSaving = false; if (!abortSaving) { item.MarkOld(); item.Save(); idx = "1"; item.KODETIPE = Convert.ToString(Request["editid" + idx]); ShowSuccessMessage(); } }