Beispiel #1
0
        /// <summary>
        /// 保存事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Save_Click(object sender, EventArgs e)
        {
            try
            {
                Hashtable ht = new Hashtable();

                #region 初始化车辆信息

                // 平台名称
                ht["Platform"] = Platform.Value;
                // 平台协议代码
                ht["Code"] = Code.Value;
                // 平台说明
                ht["Memo"] = Memo.Value;
                ht["Sort"] = Sort.Value;

                if (!string.IsNullOrEmpty(_key))
                {
                    ht["ID"] = _key;
                }
                else
                {
                    ht["ID"] = CommonHelper.GetGuid;
                }
                #endregion

                bool returnValue = platformeManager.AddOrEditPlatformInfo(ht, _key);

                if (returnValue)
                {
                    ShowMsgHelper.AlertMsg("操作成功!");
                }
                else
                {
                    ShowMsgHelper.Alert_Error("操作失败!");
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }