Example #1
0
        public static void RegisterIncomeGroup(Domain.IncomeGroup incomeGroup, string operatorAccount)
        {
            var respository = Factory.CreateIncomeGroupRepository();

            respository.Insert(incomeGroup);
            saveAddLog("收益组信息", string.Format("公司Id{0},收益组名称:{1},描述:{2},创建时间:{3}", incomeGroup.Company, incomeGroup.Name, incomeGroup.Description,
                                              incomeGroup.CreateTime), OperatorRole.User, "", operatorAccount);
        }
Example #2
0
        public static void UpdateIncomeGroup(Domain.IncomeGroup incomeGroup, string operatorAccount)
        {
            var    orginalIncomeGroup = QueryIncomeGroup(incomeGroup.Id);
            string orginalContent     = string.Format("公司Id{0},收益组名称:{1},描述:{2}", orginalIncomeGroup.Company, orginalIncomeGroup.Name, orginalIncomeGroup.Description);
            string newContent         = string.Format("公司Id{0},收益组名称:{1},描述:{2}", incomeGroup.Company, incomeGroup.Name, incomeGroup.Description);
            var    repository         = Factory.CreateIncomeGroupRepository();

            repository.Update(incomeGroup);
            saveUpdateLog("收益组信息", orginalContent, newContent, OperatorRole.User, incomeGroup.Id.ToString(), operatorAccount);
        }