示例#1
0
        public void AddLoanData(SafeReader sr)
        {
            for (int nIdx = 0; nIdx < sr.Count; nIdx++)
            {
                string sFieldName = sr.GetName(nIdx);

                if ((sFieldName == RowType) || (sFieldName == LoanDataCustomerIDField))
                {
                    continue;
                }

                AddSectionItem(sFieldName, sr[nIdx]);
            }             // for

            AddSectionItem(SignedField, Yes);
        }         // AddLoanData
示例#2
0
        public CustomerData(SafeReader sr)
        {
            Data           = new Dictionary <string, Dictionary <string, ParsedValue> >();
            CustomerID     = 0;
            CustomerRefNum = string.Empty;
            AlibabaID      = string.Empty;

            m_oMarketplaces = new SortedSet <string>();

            for (int nIdx = 0; nIdx < sr.Count; nIdx++)
            {
                string sFieldName = sr.GetName(nIdx);

                if (sFieldName == RowType)
                {
                    continue;
                }

                ParsedValue oValue = sr[nIdx];

                if (sFieldName == CustomerIDField)
                {
                    CustomerID = oValue;
                }
                else if (sFieldName == AlibabaIDField)
                {
                    AlibabaID = oValue;
                }
                else if (sFieldName == CustomerRefNumField)
                {
                    CustomerRefNum = oValue;
                }
                else
                {
                    if ((sFieldName == ApprovedAmountField) && (oValue != null) && (oValue.Raw != null))
                    {
                        TotalApprovedAmount += (decimal)oValue;
                    }

                    AddSectionItem(sFieldName, oValue);
                }         // if
            }             // for

            m_oLoans        = new SortedDictionary <int, LoanData>();
            m_oCashRequests = new SortedDictionary <int, CashRequestData>();
        }         // constructor