Custom Fields per line Item

Hi,

I am developing a ERP application, and part of this is Order processing / Shipping / Receiving. We have several customers, and some customers require a additional fields for each line item of a receipt and possibly a shipment. Currently the Receiving form collects the common fields that each customer would have, but im not sure how to include the custom fields in my Business Object collection. I am using CSLA.NET as my framework, and I dont want to create a derived object for each customer that contains the custom fields. I would like to just pull the fields from the database, and prompt for entry for each line item at receipt, and display this in a grid. Currently my Datagrid is bound to my BO collection, but i have no idea how to include the custom field along with this collection. Anyone have any insight on how i should tackle this  Thanks ahead of time for any suggestions

JayDial


Answer this question

Custom Fields per line Item

  • RoyHsu

    Hmm. Possibly I could bind the datagrid to this BO collection and each BO would have a collection of CustomFields that could be expanded as a relationship link. Im thinking you could create a CustomFields collection that had 4 properties of the names of the sprocs to do the CRUD work, and then for each CustomField could contain a property for sproc parameter name and value. If I dont want to edit the datagrid is there a easy way i can create input fields on the fly based on a collection and bind to them  How about a vertical datagrid

    Thanks

    JayDial

  • MReza

    That sounds like it would work.

    You might look at this <a href="http://www.windowsforms.com/Forums/ShowPost.aspx tabIndex=1&tabId=41&PostID=24863">thread</a> and the one linked within it for ideas on how to create databound textboxes on the fly.

    HTH!

  • kjm2dba

    One option might be to have the Business Object contain a collection of "CustomFields".  You could then use two datagrids, one to display the common info in the BussinessObject and one to display the CustomFields for the currently selected customer.
  • Custom Fields per line Item