/************************************************************************************** * Function name: GetUnigureProcessID * What this Function Does: This function will try and create a unigure process id by randomly generating it * Variables passed in: None * Variables Declared : PID- The Process ID * returns : PID * **************************************************************************************/ public int GetUniqueProcessID() { try { int PID = 0; Random rnd = new Random(); PID = ((999999 - 999 + 1) * rnd.Next(0, 1000) + 999); Log.Write("Process ID: " + PID); Log.newLine(); return(PID); } catch (Exception e) { if (e.Source != null) { Log.Write("Error in :" + System.Reflection.MethodBase.GetCurrentMethod().Name); } Log.Write("Error Message: " + e.Message); Log.Write("Stack Trace: " + e.StackTrace); Log.Write("Target Site: " + e.TargetSite); Log.Write("Exiting Program"); UpdateThreads(0); return(-1); } }
//prints the contents on this objct to the debug log public void PrintOutboundShipmentData() { Log.newLine(); Log.Write("OUTBOUND SHIPMENT DATA TO BE INSERTED INTO THE DATABASE:"); Log.Write("Shipment ID: " + ShipmentID); Log.Write("OrderNumber: " + OrderNumber); Log.Write("Type: " + Type); Log.Write("Stop: " + Stop); Log.Write("Stop Of: " + Stop_of); Log.Write("Sequence: " + Sequence); Log.Write("Customer_ID: " + Customer_ID); Log.Write("Name: " + Name); Log.Write("Address 1: " + Address1); Log.Write("Address 2: " + Address2); Log.Write("City: " + City); Log.Write("State: " + State); Log.Write("Zip: " + Zip); Log.Write("Phone " + Phone); Log.Write("Purchas Order Date: " + PurchasOrderDate); Log.Write("Scheduled Ship Date: " + ScheduledShipDate); Log.Write("Original Carrier: " + OrigionalCarrier); Log.Write("Origional Ship Mode: " + Original_ship_mode); Log.Write("Carrier ID: " + Carrier_id); Log.Write("Ship Mode: " + Ship_mode); Log.Write("Total CNS: " + Total_CSN); Log.Write("Total Weight" + Total_weight); Log.Write("Status: " + Status); Log.Write("PrePaid Collect: " + PrepaidCollect); Log.Write("Exceed Ship By: " + Exceed_ship_by); Log.Write("Substitution Override: " + Substitution_override); Log.Write("Special Handeling: " + Special_Handeling); Log.Write("Notes: " + Notes); Log.Write("Allow CopL: " + AllowCOPL); Log.Write("Payment_Terms: " + Payment_terms); Log.Write("Freight Charge: " + Freight_charge); Log.Write("Allocation status: " + AllocationStatus); Log.Write("COD Indicator: " + COD_Indicator); Log.Write("Carton Freight: " + Carton_Freight); Log.Write("COD Cost: " + COD_COST); Log.Write("Wave ID: " + Wave_id); Log.Write("Deposit Ammount: " + Deposit_amount); Log.Write("Freight Bill To Account: " + Freight_bill_to_account); Log.Write("Freight Bill To Name: " + Freight_bill_To_Name); Log.Write("Freight Bill to Address 1: " + Freight_bill_to_address_1); Log.Write("Freight BIll to Address 2: " + Freight_bill_to_address_2); Log.Write("Freight Bill to Address 3: " + Freight_bill_to_address_3); Log.Write("Freight Bill to City: " + Freight_bill_to_city); Log.Write("Freight Bill to Zip: " + freight_bill_to_Zip); Log.Write("Last Updated: " + _Last_Updated_); Log.Write("last User: "******"Last Module: " + _last_module_); Log.Write("QC Codes: " + QC_Codes); Log.Write("Deliver by Date: " + Deliver_By_Date); Log.Write("Address 3: " + Address_3); Log.Write("Carton Type: " + CartonType); }
public void PrintProductInfo() { Log.Write("Product ID: " + ProductID); Log.Write("Piece Pick Location: " + PiecePickLocation); Log.Write("Cube weight:" + CaseWeight); Log.Write("Piece Weight:" + PieceWeight); Log.Write("Case Weight: " + CaseWeight); Log.Write("Number of Pieces:" + PieceQuantity); Log.Write("Total Volume of piece picks:" + TotalPieceVolume); Log.Write("Units Per Case: " + UnitsPerCase); Log.Write("Number of Cases:" + CaseQuantity); Log.Write("*****************************"); Log.newLine(); }
public void PrintBoxInfo() { Log.Write("Box Name: " + Name); Log.Write("Box Description: " + Description); Log.Write("Box Length: " + Length); Log.Write("Box Width: " + Width); Log.Write("Box Height: " + Height); Log.Write("Box UCBPercent: " + UCBPercent); Log.Write("Box LCBPercent: " + LCBPercent); Log.Write("Box Max Weight: " + MaxWeight); Log.Write("Box DunnageWeight: " + DunnageWeight); Log.Write("Box Convayable: " + Convayable); Log.Write("Box min Volume: " + GetMinVolume()); Log.Write("Box Max Volume: " + GetMaxVolume()); Log.Write("********************************"); Log.newLine(); }
private void PrintOutboundShipmentDetail() { Log.newLine(); Log.Write("Information being inserted into outbound shipment details"); Log.Write("Shipment ID: " + ShipmentID); Log.Write("ORDER_NUMBER: " + OrderNumber); Log.Write("ORDER_LINE: " + OrderLine); Log.Write("TYPE: " + Type); Log.Write("UOM: " + UnitOfMesure); Log.Write("QC_CATEGORY: " + QCCategory); Log.Write("SHIPPED_UNITS: " + ShippedUnits); Log.Write(" _LAST_UPDATED_: " + LastUpdated); Log.Write("_LAST_USER_: " + LastUser); Log.Write("_LAST_MODULE_: " + LastModule); Log.Write(" PRODUCT_ID: " + ProductID); Log.Write(" UOM_WEIGHT: " + UOMWeight); Log.Write("UNIT_PRICE_EA: " + UnitPriceEach); Log.Write("ORDERED_UNITS: " + OrderedUnits); Log.Write("STATUS: " + Status); Log.Write("ALLOCATION_STATUS: " + AllocationStatus); Log.Write("STAGED_UNITS: " + StagedUnits); }
public void PrintInventoryTable() { log.newLine(); log.Write("INFORMANTION FOR BOX :" + RID); log.Write("RID: " + RID); log.Write("Case Label: " + CaseLabel); log.Write("Container Label: " + ContainerLabel); log.Write("Pallet Label: " + PalletToTeLabel); log.Write("Trailer Label: " + TrailerRailBoatLevel); log.Write("Product ID " + ProductID); log.Write("Trace ID: " + TraceID); log.Write("Owner ID: " + OwnerID); log.Write("Location ID: " + LocationID); log.Write("Quantity :" + Quantity); log.Write("QC Caragoty: " + QcCategory); log.Write("Expiration Date: " + ExpirationDate); log.Write("MFG DateTime: " + MfgDateTime); log.Write("Recipt Date: " + ReciptDate); log.Write("Reserved: " + Reserved); log.Write("Hold: " + Hold); log.Write("Reservation Type: " + ResvervationType); log.Write("shipment ID: " + ShipmentID); log.Write("Order Number: " + OrderNumber); log.Write("Order Line: " + OrderLine); log.Write("data1date: " + Data1Date); log.Write("data1Num: " + Data1Num); log.Write("data1str: " + Data1Str); log.Write("data2date: " + Data2Date); log.Write("data2Num: " + Data2Num); log.Write("data2str: " + Data2Str); log.Write("data3date: " + Data3Date); log.Write("data3Num: " + Data3Num); log.Write("data3str: " + Data3Str); log.Write("last Updated: " + LastUpdate); log.Write("Last User: "******"Last Module: " + LastModule); log.Write("****************************"); }