public orderdata(orderdata ord) { int idx; // // TODO: Add constructor logic here // mOrderType = ord.OrdType; mOrderNumber = ord.OrderNumber; mOrderDate = ord.OrderDate; mReturnOrderNumber = ord.ReturnOrderNumber; mNumLines = ord.NumLines; mTotVal = ord.TotVal; mTotNetVal = ord.TotNetVal; mTotTaxVal = ord.TotTaxVal; mLineVal = ord.LineVal; mCashVal = ord.CashVal; mChangeVal = ord.ChangeVal; mDarVouch1ChangeVal = ord.DarVouch1ChangeVal; mDarVouch2ChangeVal = ord.DarVouch2ChangeVal; mChequeVal = ord.ChequeVal; mTransactRef = ord.TransactRef; mDarVouch1Ref = ord.DarVouch1Ref; mDarVouch2Ref = ord.DarVouch2Ref; mCashTransactRef = ord.CashTransactRef; mFinanceRef = ord.FinanceRef; mCardVal = ord.CardVal; mVoucherVal = ord.VoucherVal; mDarVouch1Val = ord.DarVouch1Val; mDarVouch2Val = ord.DarVouch2Val; mDar1VoucherList = ord.Dar1VoucherList; mDar2VoucherList = ord.Dar2VoucherList; mAccountVal = ord.AccountVal; mFinanceVal = ord.FinanceVal; mAccountRef = ord.AccountRef; mDepCashVal = ord.DepCashVal; mDepChequeVal = ord.DepChequeVal; mDepCardVal = ord.DepCardVal; mTotCardVal = ord.TotCardVal; mDiscountVal = ord.DiscountVal; mDiscPercent = ord.DiscPercent; mHeadDiscPercent = ord.HeadDiscPercent; mDiscountReason = ord.DiscountReason; mRemainderVal = ord.RemainderVal; mOrdCarrier = ord.OrdCarrier; mDelMethod = ord.DelMethod; mTillOpened = ord.TillOpened; mPriceSource = ord.PriceSource; mSourceDescr = ord.SourceDescr; mCollectionType = ord.CollectionType; mSalesType = ord.SalesType; mSalesTypeDesc = ord.SalesTypeDesc; mSalesReference = ord.SalesReference; mNewPoints = ord.NewPoints; mNewPointsValue = ord.NewPointsValue; mManualCC = ord.ManualCC; mVouchers = ord.Vouchers; mReason = ord.Reason; mEReceipt = ord.EReceipt; mEReceiptRequest = ord.EReceiptRequest; for (idx = 0; idx < 200; idx++) { if (idx < ord.NumLines) { lns[idx] = new orderline(ord.lns[idx]); } else { lns[idx] = new orderline(); } } for (idx = 0; idx < 10; idx++) { cds[idx] = new cardpayment(); } }
private void buildorder(OrderType typ) { int idx; // // TODO: Add constructor logic here // mOrderType = typ; mOrderNumber = ""; mReturnOrderNumber = ""; mNumLines = 0; mTotVal = 0.0M; mTotNetVal = 0.0M; mTotTaxVal = 0.0M; mLineVal = 0.0M; mCashVal = 0.0M; mChangeVal = 0.0M; mDarVouch1ChangeVal = 0.0M; mDarVouch2ChangeVal = 0.0M; mChequeVal = 0.0M; mTransactRef = ""; mDarVouch1Ref = ""; mDarVouch2Ref = ""; mCashTransactRef = ""; mFinanceRef = ""; mCardVal = 0.0M; mVoucherVal = 0.0M; //mDarVouch2 = 0.0m; mAccountVal = 0.0M; mFinanceVal = 0.0M; mAccountRef = ""; mDepCashVal = 0.0M; mDepChequeVal = 0.0M; mDepCardVal = 0.0M; mTotCardVal = 0.0M; mDiscountVal = 0.0M; mDiscPercent = 0.0M; mHeadDiscPercent = 0.0M; mDiscountReason = ""; mRemainderVal = 0.0M; mOrdCarrier = ""; mDelMethod = ""; mTillOpened = false; mPriceSource = ""; mSourceDescr = ""; mCollectionType = "Normal"; mSalesType = 0; mSalesTypeDesc = ""; mSalesReference = ""; mNewPoints = 0; mNewPointsValue = 0.00M; mManualCC = false; mVouchers = new System.Collections.SortedList(); mReason = ""; //2017-07-04 SL 5.0.0.14 >> mEReceipt = false; mEReceiptRequest = false; //2017-07-04 SL 5.0.0.14 ^^ for (idx = 0; idx < 200; idx++) { lns[idx] = new orderline(); } for (idx = 0; idx < 10; idx++) { cds[idx] = new cardpayment(); } }