protected void btnSaveSystemApplication_Click(object sender, DirectEventArgs e)
        {
            try
            {
                string json = e.ExtraParams["frmValues"];

                SystemApplicationWrapper systemApplication = JSON.Deserialize <SystemApplicationWrapper>(json);


                //SystemApplicationWrapper systemApplication = Json e.ExtraParams[0]
                //systemApplication.SystemApplicationName = txtSystemApplicationName.Text.Trim();
                //systemApplication.SystemApplicationDescription = txtSystemApplicationDescription.Text.Trim();
                //systemApplication.SystemApplicationUrl = txtSystemApplicationUrl.Text.Trim();
                //systemApplication.SystemApplicationIsSystemApplication = chkSystemApplicationIsSystemApplication.Checked;

                SystemApplicationWrapper.Save(systemApplication);

                winSystemApplicationAdd.Hide();
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = string.Format(this.GetGlobalResourceObject("GlobalResource", "msgServerErrorMsg").ToString(), ex.Message);
            }
        }
Exemple #2
0
        protected void btnSaveSystemApplication_Click(object sender, DirectEventArgs e)
        {
            try
            {
                SystemApplicationWrapper systemApplication = new SystemApplicationWrapper();
                systemApplication.SystemApplicationName                = txtSystemApplicationName.Text.Trim();
                systemApplication.SystemApplicationDescription         = txtSystemApplicationDescription.Text.Trim();
                systemApplication.SystemApplicationUrl                 = txtSystemApplicationUrl.Text.Trim();
                systemApplication.SystemApplicationIsSystemApplication = chkSystemApplicationIsSystemApplication.Checked;

                SystemApplicationWrapper.Save(systemApplication);

                winSystemApplicationAdd.Hide();
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = "错误信息:" + ex.Message;
            }
        }
Exemple #3
0
        protected void btnSaveSystemApplication_Click(object sender, DirectEventArgs e)
        {
            try
            {
                SystemApplicationWrapper systemApplication = new SystemApplicationWrapper();
                systemApplication.SystemApplicationName                = txtSystemApplicationName.Text.Trim();
                systemApplication.SystemApplicationDescription         = txtSystemApplicationDescription.Text.Trim();
                systemApplication.SystemApplicationUrl                 = txtSystemApplicationUrl.Text.Trim();
                systemApplication.SystemApplicationIsSystemApplication = chkSystemApplicationIsSystemApplication.Checked;

                SystemApplicationWrapper.Save(systemApplication);

                winSystemApplicationAdd.Hide();
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = string.Format(this.GetGlobalResourceObject("GlobalResource", "msgServerErrorMsg").ToString(), ex.Message);
            }
        }