Esempio n. 1
0
        private void FxModule(int pCounter)
        {
            long   lModuleId;
            string lExecutable;

            try
            {
                lModuleId   = long.Parse(ObjDtModule.Rows[pCounter][3].ToString());
                lExecutable = ClsVariables.gPathBin + ObjDtModule.Rows[pCounter][2].ToString();
            }
            catch
            {
                lModuleId   = 0;
                lExecutable = "";
            }

            if (lModuleId == 0)
            {
                ClsFunctions.FxMessage(1, "Módulo no ha sido seleccionado");
            }
            else
            {
                string lParameter = ClsFunctions.FxModuleParameters(lCompanyId, lModuleId);

                Hide();

                ClsFunctions.FxRunModule(lExecutable, lParameter);

                Show();
            }

            FxGetModule();
        }