public string ChangeConstraintMessage(string constraintName, int errorCode, WebEasSqlKnownErrorType errorType)
        {
            if (constraintName == "UQ_D_User_LoginName")
            {
                return("Login name already exists!");
            }

            return(null);
        }
        public string ChangeConstraintMessage(string constraintName, int errorCode, WebEasSqlKnownErrorType errorType)
        {
            if (constraintName == "FK_D_BiznisEntita_C_Predkontacia")
            {
                return("Predkontáciu nie je možné zmazať, je priradená dokladom!");
            }

            return(null);
        }
Beispiel #3
0
        public string ChangeConstraintMessage(string constraintName, int errorCode, WebEasSqlKnownErrorType errorType)
        {
            if (constraintName.StartsWith("IX_D_BiznisEntita_CisloInterne")) //IX_D_BiznisEntita_CisloInterne1, 2, 3
            {
                return("Nastala chyba pri uložení. 'Číslo dokladu' nie je jedinečné.");
            }

            return(null);
        }
        public string ChangeConstraintMessage(string constraintName, int errorCode, WebEasSqlKnownErrorType errorType)
        {
            if (constraintName.StartsWith("CK_C_UctRozvrh_AU"))
            {
                //Vynechávam  ".", kvôli urbisu
                return("Hodnota 'AÚ' nesmie obsahovať znaky \" \";\"; \" - \"; \" / \". Znaky je možné nadefinovať pomocou parametra <a href=\"/#UCT/all-sm-mset!uct\" target =\"_blank\">'FormatUctuVRozvrhu'</a>.");
            }

            return(null);
        }
 public string ChangeConstraintMessage(string constraintName, int errorCode, WebEasSqlKnownErrorType errorType)
 {
     return(constraintName.StartsWith("FK_D_Pohyb_D_BiznisEntitaPohyb")
         ? "Nastala chyba pri uložení. Rok z dátumu pohybu musí byť zhodný s rokom pripojeného dokladu (Výber)!"
         : null);
 }