Exemple #1
0
        private void btn_Sure_Click(object sender, EventArgs e)
        {
            Validator valitor = onValidateInputValue();

            if (valitor.IsValidate == false)
            {
                MessageBoxHelper.ShowInputErrorDialog(valitor.ErrorMessage);
                return;
            }

            gymbaseController.LoadEntry();

            onExtractInputValue();

            object baseEntryPK = null;

            if (gymbaseController.InsertEntry(out baseEntryPK))
            {
                bool result = gymAppController.InsertWithDeleteOldRecord(baseEntryPK, appAdaptor.DataList);
                if (result)
                {
                    GParam.Create().Mediator.NotifyUpdateGYMSign();
                }
                MessageBoxHelper.ShowCreateStateDialog(result);
            }
            else
            {
                MessageBoxHelper.ShowCreateStateDialog(false);
            }
        }