protected void btnSaveSystemEmailSettings_Click(object sender, DirectEventArgs e) { try { SystemEmailSettingsWrapper obj = new SystemEmailSettingsWrapper(); obj.Name = this.txtName.Text.Trim(); obj.Descriprsion = this.txtDescriprsion.Text.Trim(); obj.Host = this.txtHost.Text.Trim(); obj.Port = this.txtPort.Text.Trim(); obj.Ssl = this.chkSSL.Checked; obj.FromEmail = this.txtFromEmail.Text.Trim(); obj.FromName = this.txtFromName.Text.Trim(); obj.LoginEmail = this.txtLoginEmail.Text.Trim(); obj.LoginPassword = this.txtLoginPassword.Text.Trim(); obj.IsEnable = this.chkIsEnable.Checked; obj.IsDefault = this.chkIsDefault.Checked; obj.CreateDate = System.DateTime.Now; obj.CreateBy = 1; SystemEmailSettingsWrapper.Save(obj); winSystemEmailSettingsAdd.Hide(); } catch (Exception ex) { ResourceManager.AjaxSuccess = false; ResourceManager.AjaxErrorMessage = "ErrorMessage:" + ex.Message; } }
public static void Update(SystemEmailSettingsWrapper obj) { businessProxy.Update(obj.entity); }
public static void Refresh(SystemEmailSettingsWrapper instance) { businessProxy.Refresh(instance.entity); }
public static void Delete(SystemEmailSettingsWrapper instance) { businessProxy.Delete(instance.entity); }
public static void Refresh(SystemEmailSettingsWrapper instance) { businessProxy.Refresh(instance.entity); }
public static void Delete(SystemEmailSettingsWrapper instance) { businessProxy.Delete(instance.entity); }
public static void SaveOrUpdate(SystemEmailSettingsWrapper obj) { businessProxy.SaveOrUpdate(obj.entity); }