Ejemplo n.º 1
0
 /// <summary>
 /// 带参数的构造函数
 /// </summary>
 /// <param name="logInfo">The log information.</param>
 public RemarkLogInfoModel(N_ServicePoint_Log log)
     : base(log)
 {
     if (log != null)
     {
         this.ParseRemarkInfo(log.CauseText);
     }
 }
Ejemplo n.º 2
0
 public ScoreLogModel(N_ServicePoint_Log log)
 {
     if (log != null)
     {
         this.Id = log.Id;
         this.CompanyId = log.SoufunId;
         this.ScoreAmount = log.ChangeAmount;
         this.ScoreType = log.ChangeType;
         this.ScoreBalance = log.Balance;
         this.Code = int.Parse(log.CauseSource);
         this.CodeName = log.CauseText;
         this.Type = log.AccountType;
         this.CreateTime = log.CreateTime;
     }
 }
Ejemplo n.º 3
0
 public int InsertServicePointLog(int companyId, int score, int scoreType, int balance, string sourceCode, int followId, long soufunId, int scoreString, int state)
 {
     N_ServicePoint_Log log = new N_ServicePoint_Log()
     {
         SoufunId = companyId,
         ChangeAmount = score,
         ChangeType = scoreType,
         Balance = balance,//积分余额
         CauseSource = sourceCode,//原因编码
         //格式,followupId|ownersoufunId|鸡蛋:1,鲜花:2|未扣除积分:0,已扣除积分1
         CauseText = string.Format("{0}|{1}|{2}|{3}", followId, soufunId, scoreString, state),
         AccountType = 2,//公司
         CreateTime = DateTime.Now,
         IsDel = 0
     };
     return this.db.Add(log);
 }
 public N_ServicePoint_Log CreateServicePointLogByOperation(int eggScore, int flowerScore)
 {
     this.CreateOperationScore(eggScore, flowerScore);
     N_ServicePoint_Log log = new N_ServicePoint_Log()
     {
         SoufunId = this.CompanyId,
         ChangeAmount = this.CurrentScore,
         ChangeType = this.CurrentScoreType,
         Balance = -1,
         CauseSource = "-1",
         //格式,followupId|ownersoufunId|鸡蛋:1,鲜花:2|未扣除积分:0,已扣除积分1
         CauseText = string.Format("{0}|{1}|{2}|{3}", this.FollowUpId, this.OwnerSoufunId, this.CurrentScoreType, 1),
         AccountType = 2,
         CreateTime = DateTime.Now,
         IsDel = 0
     };
     return log;
 }