Esempio n. 1
0
    // 福袋信息//
    void initRebateInfo()
    {
        RebateInfoFPort rebateInfo = FPortManager.Instance.getFPort("RebateInfoFPort") as RebateInfoFPort;

        if (rebateInfo.diamondSample == null && rebateInfo.goldSample == null)
        {
            List <int> ids = RebateSampleManager.Instance.getAllIDs();
            rebateInfo.setDiamondSample(RebateSampleManager.Instance.getDiamondSampleByIDs(ids));
            rebateInfo.setGoldSample(RebateSampleManager.Instance.getGoldSampleByIDs(ids));
        }
        //rebateInfo.RebateInfoAccess(initFinish);
        //rebateInfo.RebateInfoAccess(initSevenDaysHappyInfo);
        rebateInfo.RebateInfoAccess(initShopInfo);
    }
Esempio n. 2
0
    public void initContent(Notice notice, WindowBase win)
    {
        this.win      = win;
        this.ns       = notice.getSample();
        this.m_notice = notice;
        tsample       = TimeConfigManager.Instance.getTimeInfoSampleBySid(ns.timeID);
        startTime     = tsample.mainTimeInfo[0];
        endTime       = tsample.mainTimeInfo[0] + tsample.mainTimeInfo[1];

        closeDetailButton.fatherWindow = win;
        receiveButton.fatherWindow     = win;
        checkRuleButton.fatherWindow   = win;
        closeRule.fatherWindow         = win;

        closeDetailButton.onClickEvent = closeDetail;
        receiveButton.onClickEvent     = receiveButtonClick;
        checkRuleButton.onClickEvent   = checkRuleClick;
        closeRule.onClickEvent         = closeRuleClick;

        //showTimeLabel();
        showDescribLabel();

        RebateInfoFPort rifp = FPortManager.Instance.getFPort("RebateInfoFPort") as RebateInfoFPort;

//		List<int> ids = RebateSampleManager.Instance.getAllIDs();
//		diamondSample = RebateSampleManager.Instance.getDiamondSampleByIDs(ids);
//		goldSample = RebateSampleManager.Instance.getGoldSampleByIDs(ids);
        if (rifp.diamondSample == null && rifp.goldSample == null)
        {
            List <int> ids = RebateSampleManager.Instance.getAllIDs();
            rifp.setDiamondSample(RebateSampleManager.Instance.getDiamondSampleByIDs(ids));
            rifp.setGoldSample(RebateSampleManager.Instance.getGoldSampleByIDs(ids));
        }
        rifp.RebateInfoAccess(getRebateInfoCallBack);

        initeRulePanel(rifp.diamondSample, rifp.goldSample);
    }