Exemplo n.º 1
0
        public static bool SaveConfig(Guid oemId, Dictionary <ConfigUseType, Tuple <string, string> > config, string opAccount)
        {
            bool success = false;
            IAirlineConfigRepository repository = Factory.CreateAirlineConfigRepository();

            success = repository.SaveConfig(oemId, config);
            LogService.SaveOperationLog(new OperationLog(OperationModule.OEM信息设置, OperationType.Update, opAccount, OperatorRole.Platform, "修改OEM指令配置", config.Aggregate(string.Empty, (result, pair) =>
                                                                                                                                                                        string.Format("{0}配置用途:{1},用户名{2};OfficeNO:{3} ", result, EnumExtension.GetDescription(pair.Key), pair.Value.Item1, pair.Value.Item2))
                                                         + "修改" + (success?"是":"否")));
            return(success);
        }
Exemplo n.º 2
0
        public static OEMAirlineConfig QueryConfig(Guid?oemId)
        {
            IAirlineConfigRepository repository = Factory.CreateAirlineConfigRepository();

            return(repository.QueryConfig(oemId));
        }