Пример #1
0
        /// <summary>
        /// 保存界面数据
        /// </summary>
        /// <returns></returns>
        private bool Save()
        {
            GridRela.FinishEditing();
            DataTable    dtSave = GridRela.DataSource as DataTable;
            ReturnObject roSave = UIP.FrameManager.ServerCall("DJstuff.Server.dll#DJstuff.Server.BO_Stuff#SaveTypeRela", dtSave);

            if (roSave.ErrorMessage == null)
            {
                UIP.FrameManager.SetStatusMessage("保存成功!", true, Color.DarkGreen);
                return(true);
            }
            else
            {
                UIP.FrameManager.SetStatusMessage(roSave.ErrorMessage.Message, true, Color.Red);
                return(false);
            }
        }