public StragClass() : base() { CommSetting = new SettingClass(); //SetDefaultValueAttribute(); StagSetting = new StagConfigSetting(); StagSetting = this.getInitStagSetting(); }
public override StagConfigSetting getInitStagSetting() { StagConfigSetting sett = new StagConfigSetting(); sett.BaseType = new BaseTypeSetting(); string[] list = new string[] {}; GlobalClass gc = this.CommSetting.GetGlobalSetting(); AmoutSerials As = GlobalClass.getOptSerials(gc.Odds, gc.DefMaxLost, gc.DefFirstAmt); if (As.MaxHoldCnts.Length > 0) { Int64[] UnitAmtArr = As.Serials[this.ChipCount - 1]; list = UnitAmtArr.ToList().Select(t => t.ToString()).ToArray(); } else { list = this.CommSetting.GetGlobalSetting().UnitChipArray(this.ChipCount); } List <int> ret = new List <int>(); for (int i = 0; i < list.Length; i++) { ret.Add(int.Parse(list[i])); } sett.BaseType.ChipSerial = ret; return(sett); }
public override StagConfigSetting getInitStagSetting() { StagConfigSetting scs = new StagConfigSetting(); scs.BaseType = new BaseTypeSetting(); //scs.BaseType.IncrementType = InterestType.CompoundInterest; scs.BaseType.AllowHoldTimeCnt = -1;//无穷 scs.BaseType.ChipRate = 0; return(scs); }
public override StagConfigSetting getInitStagSetting() { StagConfigSetting scs = new StagConfigSetting(); scs.BaseType = new BaseTypeSetting(); ////if (CommSetting != null) ////{ //// scs.BaseType.AllowHoldTimeCnt = 1000;// CommSetting.GetGlobalSetting().DefaultHoldAmtSerials.MaxHoldCnts[0]; ////} return(scs); }
public override StagConfigSetting getInitStagSetting() { StagConfigSetting scs = new StagConfigSetting(); scs.IsLongTermCalc = true; scs.BaseType = new BaseTypeSetting(); //scs.BaseType.IncrementType = InterestType.CompoundInterest; scs.BaseType.AllowHoldTimeCnt = -1;//无穷 scs.BaseType.ChipRate = 0; scs.BaseType.traceType = TraceType.WaveTrace; return(scs); }
public override StagConfigSetting getInitStagSetting() { StagConfigSetting ret = new StagConfigSetting(); return(ret); }