Esempio n. 1
0
 public StragClass() : base()
 {
     CommSetting = new SettingClass();
     //SetDefaultValueAttribute();
     StagSetting = new StagConfigSetting();
     StagSetting = this.getInitStagSetting();
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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 sett = new StagConfigSetting();

            sett.BaseType = new BaseTypeSetting();
            string[]   list = this.CommSetting.GetGlobalSetting().UnitChipArray(this.ChipCount * 2);
            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 ret = new StagConfigSetting();

            return(ret);
        }