Exemple #1
0
        public CodesDB.DecisionTypeDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            CodesDB.DecisionTypeDataTable dt = new CodesDB.DecisionTypeDataTable();
            Fill(dt);
            return(dt);
        }
Exemple #2
0
        public CodesDB.DecisionTypeDataTable Load(int DecisionTypeId)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[DecisionTypeSelectByDecisionTypeId]";
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@RETURN_VALUE", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters.Add(new System.Data.SqlClient.SqlParameter("@DecisionTypeId", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));

            this.sqlSelect.Parameters["@DecisionTypeId"].Value = DecisionTypeId;

            CodesDB.DecisionTypeDataTable dt = new CodesDB.DecisionTypeDataTable();
            Fill(dt);
            return(dt);
        }