コード例 #1
0
        protected void HandleChanges(object sender, BeforeStoreChangedEventArgs e)
        {
            ChangeRecords <Sjqd_SoftVersions> list = e.DataHandler.ObjectData <Sjqd_SoftVersions>();

            foreach (Sjqd_SoftVersions updated in list.Updated)
            {
                Sjqd_SoftVersionsService.UpdateSoftVersion(updated);
                if (Store3.UseIdConfirmation)
                {
                    e.ConfirmationList.ConfirmRecord(updated.ID.ToString());
                }
            }
            X.Msg.Alert("消息", "保存成功").Show();
            e.Cancel = true;
        }