private void InitCommandCollection() { this._commandCollection = new global::System.Data.IDbCommand[1]; this._commandCollection[0] = new global::FirebirdSql.Data.FirebirdClient.FbCommand(); ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Connection = new global::FirebirdSql.Data.FirebirdClient.FbConnection(global::tMax14srvcDvz.Properties.Settings.Default.ConnectionString); ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).CommandText = "\"KUR_UPD\""; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.StoredProcedure; global::FirebirdSql.Data.FirebirdClient.FbParameter param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "DVZ"; param.Size = 3; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Parameters.Add(param); param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "BANKA"; param.Size = 10; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Parameters.Add(param); param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "KURAL"; param.Size = 20; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Parameters.Add(param); param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "KURSAT"; param.Size = 20; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Parameters.Add(param); }
private void InitCommandCollection() { this._commandCollection = new global::System.Data.IDbCommand[2]; this._commandCollection[0] = new global::FirebirdSql.Data.FirebirdClient.FbCommand(); ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Connection = new global::FirebirdSql.Data.FirebirdClient.FbConnection(global::tMax14.Properties.Settings.Default.ConnectionString); ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).CommandText = "\"LOGIN\""; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).CommandType = global::System.Data.CommandType.StoredProcedure; global::FirebirdSql.Data.FirebirdClient.FbParameter param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "USTID"; param.DbType = global::System.Data.DbType.Int32; param.Size = 4; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Parameters.Add(param); param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "PWD"; param.Size = 20; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[0])).Parameters.Add(param); this._commandCollection[1] = new global::FirebirdSql.Data.FirebirdClient.FbCommand(); ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[1])).Connection = new global::FirebirdSql.Data.FirebirdClient.FbConnection(global::tMax14.Properties.Settings.Default.ConnectionString); ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[1])).CommandText = "\"LOGIN_PWDCHANGE\""; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[1])).CommandType = global::System.Data.CommandType.StoredProcedure; param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "USTID"; param.DbType = global::System.Data.DbType.Int32; param.Size = 4; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[1])).Parameters.Add(param); param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "OPWD"; param.Size = 20; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[1])).Parameters.Add(param); param = new global::FirebirdSql.Data.FirebirdClient.FbParameter(); param.ParameterName = "NPWD"; param.Size = 20; param.IsNullable = true; param.SourceColumn = null; ((global::FirebirdSql.Data.FirebirdClient.FbCommand)(this._commandCollection[1])).Parameters.Add(param); }