Пример #1
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyDdvrsteiznosa();
            this.AfterConfirmDdvrsteiznosa();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [DDVRSTEIZNOSA]  WHERE [IDDDVRSTEIZNOSA] = @IDDDVRSTEIZNOSA", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDDDVRSTEIZNOSA", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowDDVRSTEIZNOSA["IDDDVRSTEIZNOSA"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsDdvrsteiznosa();
            }
            this.OnDDVRSTEIZNOSAUpdated(new DDVRSTEIZNOSAEventArgs(this.rowDDVRSTEIZNOSA, StatementType.Delete));
            this.rowDDVRSTEIZNOSA.Delete();
            this.sMode242 = this.Gx_mode;
            this.Gx_mode  = StatementType.Delete;
            this.Gx_mode  = this.sMode242;
        }
Пример #2
0
        private void UpdateBanke()
        {
            this.CheckOptimisticConcurrencyBanke();
            this.AfterConfirmBanke();
            ReadWriteCommand command = this.connDefault.GetCommand("UPDATE [BANKE] SET [NAZIVBANKE1]=@NAZIVBANKE1, [NAZIVBANKE2]=@NAZIVBANKE2, [NAZIVBANKE3]=@NAZIVBANKE3, [MOBANKA]=@MOBANKA, [POBANKA]=@POBANKA, [MZBANKA]=@MZBANKA, [PZBANKA]=@PZBANKA, [SIFRAOPISPLACANJABANKE]=@SIFRAOPISPLACANJABANKE, [OPISPLACANJABANKE]=@OPISPLACANJABANKE, [VBDIBANKE]=@VBDIBANKE, [ZRNBANKE]=@ZRNBANKE  WHERE [IDBANKE] = @IDBANKE", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@NAZIVBANKE1", DbType.String, 20));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@NAZIVBANKE2", DbType.String, 20));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@NAZIVBANKE3", DbType.String, 20));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@MOBANKA", DbType.String, 2));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@POBANKA", DbType.String, 0x16));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@MZBANKA", DbType.String, 2));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@PZBANKA", DbType.String, 0x16));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@SIFRAOPISPLACANJABANKE", DbType.String, 2));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@OPISPLACANJABANKE", DbType.String, 0x24));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@VBDIBANKE", DbType.String, 7));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@ZRNBANKE", DbType.String, 10));
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDBANKE", DbType.Int32));
            }
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowBANKE["NAZIVBANKE1"]));
            command.SetParameter(1, RuntimeHelpers.GetObjectValue(this.rowBANKE["NAZIVBANKE2"]));
            command.SetParameter(2, RuntimeHelpers.GetObjectValue(this.rowBANKE["NAZIVBANKE3"]));
            command.SetParameter(3, RuntimeHelpers.GetObjectValue(this.rowBANKE["MOBANKA"]));
            command.SetParameter(4, RuntimeHelpers.GetObjectValue(this.rowBANKE["POBANKA"]));
            command.SetParameter(5, RuntimeHelpers.GetObjectValue(this.rowBANKE["MZBANKA"]));
            command.SetParameter(6, RuntimeHelpers.GetObjectValue(this.rowBANKE["PZBANKA"]));
            command.SetParameter(7, RuntimeHelpers.GetObjectValue(this.rowBANKE["SIFRAOPISPLACANJABANKE"]));
            command.SetParameter(8, RuntimeHelpers.GetObjectValue(this.rowBANKE["OPISPLACANJABANKE"]));
            command.SetParameter(9, RuntimeHelpers.GetObjectValue(this.rowBANKE["VBDIBANKE"]));
            command.SetParameter(10, RuntimeHelpers.GetObjectValue(this.rowBANKE["ZRNBANKE"]));
            command.SetParameter(11, RuntimeHelpers.GetObjectValue(this.rowBANKE["IDBANKE"]));
            command.ExecuteStmt();
            this.OnBANKEUpdated(new BANKEEventArgs(this.rowBANKE, StatementType.Update));
        }
Пример #3
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyUgovororadu();
            this.AfterConfirmUgovororadu();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [UGOVORORADU]  WHERE [IDUGOVORORADU] = @IDUGOVORORADU", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDUGOVORORADU", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowUGOVORORADU["IDUGOVORORADU"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsUgovororadu();
            }
            this.OnUGOVORORADUUpdated(new UGOVORORADUEventArgs(this.rowUGOVORORADU, StatementType.Delete));
            this.rowUGOVORORADU.Delete();
            this.sMode271 = this.Gx_mode;
            this.Gx_mode  = StatementType.Delete;
            this.Gx_mode  = this.sMode271;
        }
Пример #4
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyVrstadoprinos();
            this.AfterConfirmVrstadoprinos();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [VRSTADOPRINOS]  WHERE [IDVRSTADOPRINOS] = @IDVRSTADOPRINOS", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDVRSTADOPRINOS", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowVRSTADOPRINOS["IDVRSTADOPRINOS"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsVrstadoprinos();
            }
            this.OnVRSTADOPRINOSUpdated(new VRSTADOPRINOSEventArgs(this.rowVRSTADOPRINOS, StatementType.Delete));
            this.rowVRSTADOPRINOS.Delete();
            this.sMode41 = this.Gx_mode;
            this.Gx_mode = StatementType.Delete;
            this.Gx_mode = this.sMode41;
        }
Пример #5
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyBanke();
            this.AfterConfirmBanke();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [BANKE]  WHERE [IDBANKE] = @IDBANKE", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDBANKE", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowBANKE["IDBANKE"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsBanke();
            }
            this.OnBANKEUpdated(new BANKEEventArgs(this.rowBANKE, StatementType.Delete));
            this.rowBANKE.Delete();
            this.sMode1  = this.Gx_mode;
            this.Gx_mode = StatementType.Delete;
            this.Gx_mode = this.sMode1;
        }
Пример #6
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyVrsteobustava();
            this.AfterConfirmVrsteobustava();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [VRSTEOBUSTAVA]  WHERE [VRSTAOBUSTAVE] = @VRSTAOBUSTAVE", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@VRSTAOBUSTAVE", DbType.Int16));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowVRSTEOBUSTAVA["VRSTAOBUSTAVE"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsVrsteobustava();
            }
            this.OnVRSTEOBUSTAVAUpdated(new VRSTEOBUSTAVAEventArgs(this.rowVRSTEOBUSTAVA, StatementType.Delete));
            this.rowVRSTEOBUSTAVA.Delete();
            this.sMode42 = this.Gx_mode;
            this.Gx_mode = StatementType.Delete;
            this.Gx_mode = this.sMode42;
        }
Пример #7
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyRad1spol();
            this.AfterConfirmRad1spol();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [RAD1SPOL]  WHERE [RAD1SPOLID] = @RAD1SPOLID", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@RAD1SPOLID", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowRAD1SPOL["RAD1SPOLID"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsRad1spol();
            }
            this.OnRAD1SPOLUpdated(new RAD1SPOLEventArgs(this.rowRAD1SPOL, StatementType.Delete));
            this.rowRAD1SPOL.Delete();
            this.sMode283 = this.Gx_mode;
            this.Gx_mode  = StatementType.Delete;
            this.Gx_mode  = this.sMode283;
        }
Пример #8
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyIpident();
            this.AfterConfirmIpident();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [IPIDENT]  WHERE [IDIPIDENT] = @IDIPIDENT", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDIPIDENT", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowIPIDENT["IDIPIDENT"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsIpident();
            }
            this.OnIPIDENTUpdated(new IPIDENTEventArgs(this.rowIPIDENT, StatementType.Delete));
            this.rowIPIDENT.Delete();
            this.sMode58 = this.Gx_mode;
            this.Gx_mode = StatementType.Delete;
            this.Gx_mode = this.sMode58;
        }
Пример #9
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyIzvordokumenta();
            this.AfterConfirmIzvordokumenta();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [IZVORDOKUMENTA]  WHERE [SIFRAIZVORA] = @SIFRAIZVORA", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@SIFRAIZVORA", DbType.String, 3));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowIZVORDOKUMENTA["SIFRAIZVORA"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsIzvordokumenta();
            }
            this.OnIZVORDOKUMENTAUpdated(new IZVORDOKUMENTAEventArgs(this.rowIZVORDOKUMENTA, StatementType.Delete));
            this.rowIZVORDOKUMENTA.Delete();
            this.sMode76 = this.Gx_mode;
            this.Gx_mode = StatementType.Delete;
            this.Gx_mode = this.sMode76;
        }
Пример #10
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyPostanskibrojevi();
            this.AfterConfirmPostanskibrojevi();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [POSTANSKIBROJEVI]  WHERE [POSTANSKIBROJ] = @POSTANSKIBROJ", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@POSTANSKIBROJ", DbType.String, 5));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowPOSTANSKIBROJEVI["POSTANSKIBROJ"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsPostanskibrojevi();
            }
            this.OnPOSTANSKIBROJEVIUpdated(new POSTANSKIBROJEVIEventArgs(this.rowPOSTANSKIBROJEVI, StatementType.Delete));
            this.rowPOSTANSKIBROJEVI.Delete();
            this.sMode299 = this.Gx_mode;
            this.Gx_mode  = StatementType.Delete;
            this.Gx_mode  = this.sMode299;
        }
Пример #11
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyDrzavljanstvo();
            this.AfterConfirmDrzavljanstvo();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [DRZAVLJANSTVO]  WHERE [IDDRZAVLJANSTVO] = @IDDRZAVLJANSTVO", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDDRZAVLJANSTVO", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowDRZAVLJANSTVO["IDDRZAVLJANSTVO"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsDrzavljanstvo();
            }
            this.OnDRZAVLJANSTVOUpdated(new DRZAVLJANSTVOEventArgs(this.rowDRZAVLJANSTVO, StatementType.Delete));
            this.rowDRZAVLJANSTVO.Delete();
            this.sMode270 = this.Gx_mode;
            this.Gx_mode  = StatementType.Delete;
            this.Gx_mode  = this.sMode270;
        }
Пример #12
0
        private void Delete()
        {
            this.Gx_mode = StatementType.Delete;
            this.CheckOptimisticConcurrencyTipdokumenta();
            this.AfterConfirmTipdokumenta();
            ReadWriteCommand command = this.connDefault.GetCommand("DELETE FROM [TIPDOKUMENTA]  WHERE [IDTIPDOKUMENTA] = @IDTIPDOKUMENTA", false);

            if (command.IDbCommand.Parameters.Count == 0)
            {
                command.IDbCommand.Parameters.Add(this.dsDefault.GetDbParameter("@IDTIPDOKUMENTA", DbType.Int32));
            }
            command.ErrorMask |= ErrorMask.ForeignKeyError;
            command.SetParameter(0, RuntimeHelpers.GetObjectValue(this.rowTIPDOKUMENTA["IDTIPDOKUMENTA"]));
            command.ExecuteStmt();
            if (command.ForeignKeyError)
            {
                this.CheckDeleteErrorsTipdokumenta();
            }
            this.OnTIPDOKUMENTAUpdated(new TIPDOKUMENTAEventArgs(this.rowTIPDOKUMENTA, StatementType.Delete));
            this.rowTIPDOKUMENTA.Delete();
            this.sMode197 = this.Gx_mode;
            this.Gx_mode  = StatementType.Delete;
            this.Gx_mode  = this.sMode197;
        }