示例#1
0
        }         // AcceptRollover

        public StringActionResult SaveFee(int userID, int customerID, NL_LoanFees fee)
        {
            SaveFee s = new SaveFee(fee);

            s.Context.UserID     = userID;
            s.Context.CustomerID = customerID;
            var amd = ExecuteSync(out s, customerID, userID, fee);

            return(new StringActionResult {
                Value = s.Error
            });
        }         // SaveFee
示例#2
0
		public void SaveFeeUpdateTest() {
			NL_LoanFees f = m_oDB.FillFirst<NL_LoanFees>("NL_LoanFeesGet",
				CommandSpecies.StoredProcedure,
				new QueryParameter("LoanID", 3),
				new QueryParameter("LoanFeeID", 20011));

			f.UpdatedByUserID = 357;
			f.UpdateTime = DateTime.UtcNow;
			f.Amount = 29;
			f.AssignTime = DateTime.Now.Date.AddDays(-30);

			SaveFee s = new SaveFee(f);
			try {
				s.Execute();
			} catch (Exception e) {
				m_oLog.Debug(e);
			}
		}
示例#3
0
		public void SaveFeeNewTest() {
			NL_LoanFees f = new NL_LoanFees() {
				LoanID = 3,
				Amount = 54,
				AssignedByUserID = 357,
				AssignTime = DateTime.UtcNow,
				CreatedTime = DateTime.UtcNow,
				LoanFeeTypeID = (int)NLFeeTypes.OtherCharge,
				Notes = "other fee",
				UpdatedByUserID = 357
			};
			SaveFee s = new SaveFee(f);
			try {
				s.Execute();
			} catch (Exception e) {
				m_oLog.Debug(e);
			}
		}