예제 #1
0
        public docDB.DocTypeDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            docDB.DocTypeDataTable dt = new docDB.DocTypeDataTable();
            Fill(dt);
            return(dt);
        }
예제 #2
0
        public docDB.DocTypeDataTable Load(string DocTypeCode)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[DocTypeSelectByDocTypeCode]";
            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("@DocTypeCode", System.Data.SqlDbType.NVarChar, 4, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));

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

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