Beispiel #1
0
        public ActivityConfig.ActivityCodeFileTypeDataTable Load()
        {
            this.sqlDa.SelectCommand = sqlSelectAll;

            ActivityConfig.ActivityCodeFileTypeDataTable dt = new ActivityConfig.ActivityCodeFileTypeDataTable();
            Fill(dt);
            return(dt);
        }
Beispiel #2
0
        public ActivityConfig.ActivityCodeFileTypeDataTable LoadByFileTypeCode(string FileTypeCode)
        {
            this.sqlDa.SelectCommand = sqlSelect;
            this.sqlSelect.Parameters.Clear();
            this.sqlSelect.CommandText = "[ActivityCodeFileTypeSelectByFileTypeCode]";
            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("@FileTypeCode", System.Data.SqlDbType.VarChar, 2, System.Data.ParameterDirection.Input, false, ((System.Byte)(10)), ((System.Byte)(0)), "", System.Data.DataRowVersion.Current, null));
            this.sqlSelect.Parameters["@FileTypeCode"].Value = FileTypeCode;

            ActivityConfig.ActivityCodeFileTypeDataTable dt = new ActivityConfig.ActivityCodeFileTypeDataTable();
            Fill(dt);
            return(dt);
        }