| | |
| | | o.AccessCode = context.GetString("AccessCode"); |
| | | o.Priority = context.GetInt("Priority", 0); |
| | | o.Price = Math.Max((int)(context.GetDecimal("Price", new Decimal(4, 0, 0, false, (byte)2)) * new Decimal(1000)), 1); |
| | | //o.ChargeType = context.GetInt("ChargeType", 0); |
| | | o.ChargeType = context.GetInt("ChargeType", 0); |
| | | o.IsAutoReturn = context.GetInt("IsAutoReturn", 0); |
| | | o.Threshold = Math.Max(context.GetInt("Threshold", 10), 10); |
| | | o.MaxConnCount = context.GetInt("MaxConnCount", 1); |
| | |
| | | o.CumulativeAuditNum = context.GetInt("CumulativeAuditNum"); |
| | | o.CumulativeAuditTime = context.GetInt("CumulativeAuditTime"); |
| | | o.IsSyncChildSendAudit = context.GetInt("IsSyncChildSendAudit"); |
| | | |
| | | o.ProductId = context.GetString("ProductId",""); |
| | | |
| | | if (context.GetInt("RouterType", 1) == 1) |
| | | { |
| | |
| | | o.AccessCode = context.GetString("AccessCode"); |
| | | o.Priority = context.GetInt("Priority", 0); |
| | | o.Price = Math.Max((int)(context.GetDecimal("Price", new Decimal(4, 0, 0, false, (byte)2)) * new Decimal(1000)), 1); |
| | | //o.ChargeType = context.GetInt("ChargeType", 0); |
| | | o.ChargeType = context.GetInt("ChargeType", 0); |
| | | o.IsAutoReturn = context.GetInt("IsAutoReturn", 0); |
| | | o.Threshold = Math.Max(context.GetInt("Threshold", 10), 10); |
| | | o.MaxConnCount = context.GetInt("MaxConnCount", 1); |
| | |
| | | int cuGroupId = context.GetInt("cuGroupID"); |
| | | int ctGroupId = context.GetInt("ctGroupID"); |
| | | |
| | | if (cmOpId == 0 || cuOpId == 0 || ctOpId == 0||cmGroupId ==0 ||cuGroupId==0||ctGroupId==0) |
| | | if (cmOpId == 0 && cuOpId == 0 && ctOpId == 0 && cmGroupId ==0 && cuGroupId==0 &&ctGroupId==0) |
| | | { |
| | | throw new ArgumentException("选项不允许全部为空,请至少选择一项!"); |
| | | } |