Пример #1
0
        public docDB.DocDetailDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            docDB.DocDetailDataTable dt = new docDB.DocDetailDataTable();
            Fill(dt);
            return(dt);
        }
Пример #2
0
        public docDB.DocDetailDataTable LoadByFileId(int FileId)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[DocDetailSelectByFileId]";
            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("@FileId", System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@FileId"].Value = FileId;

            docDB.DocDetailDataTable dt = new docDB.DocDetailDataTable();
            Fill(dt);
            return(dt);
        }