Example #1
0
        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;
            }
        }
Example #2
0
 public static void Update(SystemEmailSettingsWrapper obj)
 {
     businessProxy.Update(obj.entity);
 }
Example #3
0
 public static void Refresh(SystemEmailSettingsWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
Example #4
0
 public static void Delete(SystemEmailSettingsWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }
Example #5
0
 public static void Refresh(SystemEmailSettingsWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
Example #6
0
 public static void Delete(SystemEmailSettingsWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }
Example #7
0
 public static void SaveOrUpdate(SystemEmailSettingsWrapper obj)
 {
     businessProxy.SaveOrUpdate(obj.entity);
 }