Work Case study

Glass Recyclers bill of lading system

The program Glass Recyclers uses to make the paperwork for its shipments. I rebuilt it in 2011 so more than one person could work in it at a time, and 15 years later they still use it every day.

Company
Tech Enterprises, Inc., Saint Clair Shores, Michigan
Role
Rewrite, database migration and user guide
Years
2011
Stack
C# .NET 4.0, SQL Server 2008 R2 Express

15 years

In daily use at Glass Recyclers

Since 2011

Supported from the guide I wrote

No rebuilds

To set up a new computer

Glass Recyclers New Bill Wizard with tabs for the carrier, truck, consignee, item, bill, and print preview
The wizard walks the operator through a shipment one tab at a time: carrier, truck, consignee, items, then the bill. Client details blurred.

The problem

Every load Glass Recyclers ships goes out with a bill of lading, the document that tells the carrier what’s on the truck and where it’s going. They made theirs in a custom program built on Visual Basic and an Access database, and they needed more than one person working in it at once.

The program got in the way. A new carrier didn’t show up until it was restarted, editing an older bill could break it, and pointing it at a different database meant someone had to change the code and rebuild it.

What I built

Version 4.0. I rewrote the program in C# and moved the data to SQL Server, so everyone works from the same records at the same time. I redesigned how a bill gets entered, made reprints come straight from the database, and gave administrators control over who can change what.

Then I wrote a 16-page guide for their staff and for the technicians who support them, covering both the daily work and the occasional jobs, like backing up the database or setting up a new computer.

  1. Step 1

    Enter the shipment

    Walk through the wizard, or fill in the whole bill on one form.

  2. Step 2

    Save it once

    The shipment goes into the shared SQL Server database.

  3. Step 3

    Print and report

    Print the bill, reprint it later, or pull a report by date.

New bills, reprints, and reports all come from the same records, so they always agree.

The daily log can also be exported to PDF, Excel, or HTML.

Design decisions

One database everyone shares

Access wasn’t built for several people working at once, so I moved the data to SQL Server 2008 R2 Express. Express is free, so Glass Recyclers got there without buying a database license. Someone can update carriers from another computer while the operator keeps writing bills.

Changes show up right away

In the old program, a new carrier, consignee, or item didn’t appear until the program was restarted. Now each list reloads from the database when you click into it, so as soon as someone adds a carrier, the operator can pick it.

Two ways to write a bill

The old program walked you through a string of separate windows. I replaced them with a tabbed wizard that takes you through each part of the shipment, plus a single form for anyone who would rather fill it in all at once. Both end at the same print preview.

Reprints built from the record

The old version saved a copy of every bill it made, and editing those saved copies is where older bills went wrong. Now reprints build the document fresh from the shipment record, so a reprint always matches the data. That makes the database the one thing they can’t lose, so I built backup and restore into the program.

Operators and administrators

Operators can create and reprint bills. Administrators can also change the shared lists, like carriers, and manage users. The lists everyone depends on are only changed by the people responsible for them.

Settings instead of a rebuild

The database connection was written into the code, so moving the database or setting up a new computer meant someone had to edit the source and rebuild the program. I moved it to a settings screen, so now it’s a setting instead of a programming job.

The application

Client details blurred.

Writing it down

I finished the guide for version 4.0 on April 17, 2011. It covers the daily work: writing and reprinting bills, keeping carriers and consignees up to date, running reports, and managing users. It also covers the jobs that only come up once in a while and are easy to forget: backing up and restoring the database, changing the connection settings, and setting up the database the first time.

Since 2011, the technical team at Tech Enterprises has used this same guide to support Glass Recyclers, long after I moved on. When a computer gets replaced or the database needs restoring, the steps are still in these 16 pages.

How it’s held up

Glass Recyclers still uses it today, 15 years after I handed it over. I think it has lasted because it was built around how their shipping office actually works, and because the guide I wrote lets the Tech Enterprises team keep it running without me.

What I took from it

Rewriting software is mostly about the people using it. The new code mattered, but what keeps it in use is fixing the things that slowed staff down, like restarts, broken reprints, and settings only a programmer could change, and then writing down how it all works. I document everything I build for the same reason: the people who support it after me shouldn’t need me to do it.