We have a few orders we do that are pretty much the same set of
information everytime that I was hoping to create a few buttons to have
auto-populate the orderdtl lines.
Before I get much further into this process, I thought I'd see if you
guys had recommendations for a better way, or if my route is the way to
go. Here's a copy of my test code from the button click event:
Dim salesAdapt As SalesOrderAdapter = New
SalesOrderAdapter(SalesOrderForm)
Dim OrderNum as string = 20000
Try
salesAdapt.BOConnect()
salesAdapt.GetById(OrderNum)
Dim salesOrderDtl As DataRow =
salesAdapt.SalesOrderData.Tables("OrderDtl").NewRow()'Rows(newRowIndex)
salesOrderDtl("OpenLine")=true
salesOrderDtl("VoidLine")=false
salesOrderDtl("Company")="iei"
salesOrderDtl("OrderNum")="20000"
salesOrderDtl("CustNum")="33"
salesOrderDtl("OrderLine")="1"
salesOrderDtl("Rework")=false
salesOrderDtl("LineType")="PART"
salesOrderDtl("PartNum")="TEST"
salesOrderDtl("LineDesc")="Test"
salesOrderDtl("SellingQuantity")=1
salesOrderDtl("LockQty")=false
salesOrderDtl("MktgCampaignID")="DEFAULT"
salesOrderDtl("MktgEvntSeq")="1"
salesOrderDtl("QuoteNum")="0"
salesOrderDtl("QuoteLine")="0"
salesOrderDtl("Reference")=""
salesAdapt.SalesOrderData.Tables("OrderDtl").Rows.Add(salesOrderDtl)
salesAdapt.Update()
Catch ex As Exception
MessageBox.Show(ex.ToString())
Finally
salesAdapt.Dispose()
End Try
The problem becomes quite apparent that there are about 100 parameters
I'll have to juggle and put defaults in for based on a trace log. Is
there perhaps a way of having the system run it's default processes
based on me saying 'new line, part number, quantity', or is it once I
enter this type of customization I'm on my own and have to do all the
processes manually?
Thanks!
[Non-text portions of this message have been removed]
information everytime that I was hoping to create a few buttons to have
auto-populate the orderdtl lines.
Before I get much further into this process, I thought I'd see if you
guys had recommendations for a better way, or if my route is the way to
go. Here's a copy of my test code from the button click event:
Dim salesAdapt As SalesOrderAdapter = New
SalesOrderAdapter(SalesOrderForm)
Dim OrderNum as string = 20000
Try
salesAdapt.BOConnect()
salesAdapt.GetById(OrderNum)
Dim salesOrderDtl As DataRow =
salesAdapt.SalesOrderData.Tables("OrderDtl").NewRow()'Rows(newRowIndex)
salesOrderDtl("OpenLine")=true
salesOrderDtl("VoidLine")=false
salesOrderDtl("Company")="iei"
salesOrderDtl("OrderNum")="20000"
salesOrderDtl("CustNum")="33"
salesOrderDtl("OrderLine")="1"
salesOrderDtl("Rework")=false
salesOrderDtl("LineType")="PART"
salesOrderDtl("PartNum")="TEST"
salesOrderDtl("LineDesc")="Test"
salesOrderDtl("SellingQuantity")=1
salesOrderDtl("LockQty")=false
salesOrderDtl("MktgCampaignID")="DEFAULT"
salesOrderDtl("MktgEvntSeq")="1"
salesOrderDtl("QuoteNum")="0"
salesOrderDtl("QuoteLine")="0"
salesOrderDtl("Reference")=""
salesAdapt.SalesOrderData.Tables("OrderDtl").Rows.Add(salesOrderDtl)
salesAdapt.Update()
Catch ex As Exception
MessageBox.Show(ex.ToString())
Finally
salesAdapt.Dispose()
End Try
The problem becomes quite apparent that there are about 100 parameters
I'll have to juggle and put defaults in for based on a trace log. Is
there perhaps a way of having the system run it's default processes
based on me saying 'new line, part number, quantity', or is it once I
enter this type of customization I'm on my own and have to do all the
processes manually?
Thanks!
[Non-text portions of this message have been removed]