Permalink
Browse files

comment

  • Loading branch information...
061375 committed Nov 4, 2018
1 parent 7f4ec42 commit 186c140a32405f42f42731af27d4ef1cfb1ffa8d
Showing with 6 additions and 1 deletion.
  1. +6 −1 EDI.Fabric/Libraries/Writers/Types/X12850.cs
@@ -19,7 +19,7 @@ public X12850(string theFile, string _portID = null, string status = "Send")
switch(status)
{
case "Send":
// @todo - pull dates from ... config file maybe ???
// @todo - pull dates from ... config file maybe ??? ... no ... from the arguments
BuildEDI(_portID, DateTime.Now.AddDays(-7).ToString("yyyyMMdd"), DateTime.Now.ToString("yyyyMMdd"));
break;
case "Respond":
@@ -32,6 +32,8 @@ public X12850(string theFile, string _portID = null, string status = "Send")
// update database
}
// Obviously this was based on my schema and subsequently the BuildEDI method reflects that
// Developers will want to modify accordingly
static void getData(string portID, string startDate, string endDate)
{
Libraries.Data.Get g = new Libraries.Data.Get(EDI.Fabric.Program.currentDBconn);
@@ -59,6 +61,9 @@ static void getData(string portID, string startDate, string endDate)
double dAmt = 0;
foreach (var d in data)
{
// If I were dealing with thousands of records I might not simply join the tables
// and loop all the data but would instead run two queries however,
// I don't expect more than 10 or 20 in most cases.
if (firstRow == true)
{
var test = d;

0 comments on commit 186c140

Please sign in to comment.