Esempio n. 1
0
        /// <summary>
        /// 指令回复
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btn_save_Click(object sender, EventArgs e)
        {
            string msg = this.CheckControlValue();

            if (!string.IsNullOrEmpty(msg))
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "", "showWarn('" + msg + "');", true);
                return;
            }
            List <IDataItem> list = new List <IDataItem>();

            //WebCommon.AddDataItem(list, "ZshfrName", this.db_ZshfrName.Text);
            //WebCommon.AddDataItem(list, "Zshfsj", this.db_Zshfsj.Text);

            WebCommon.AddDataItem(list, "ZshfNr", this.db_ZshfNr.Text);
            FunctionResult <string> result = BLL.HfZlhfxx(ZshfId, list);

            if (result.Status == FunctionResultStatus.Error)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "", "showError('" + result.Message.Message + "');", true);
                return;
            }
            else
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "", "SaveResult('" + result.Message.Message + "');", true);
            }
        }