Esempio n. 1
0
        private void FxSave()
        {
            string lName = TxtName.Text.Trim();


            bool lEnabled = ChkEnabled.Checked;

            if (lName.Length < 3)
            {
                ClsFunctions.FxMessage(1, "Ingrese acción");

                TxtName.Text = "";

                TxtName.Focus();

                return;
            }



            if (ClsFunctions.FxMessage(2, "¿Está seguro de guardar los cambios?") == true)
            {
                long lActionId_new;

                if (lActionId == 0)
                {
                    lActionId_new = ClsSqlAdministrator.Fx_ins_tblAction(lName);
                }
                else
                {
                    lActionId_new = ClsSqlAdministrator.Fx_upt_tblAction(lActionId, lName, lEnabled);
                }

                if (lActionId_new > 0)
                {
                    FxExit();
                }
            }
        }