Dictionary <string, object> getRechargePoint()
    {
        Dictionary <string, object> ret = new Dictionary <string, object>();
        var allData = RechargeCFG.getInstance().getAllData();

        foreach (var d in allData)
        {
            ret.Add(d.Key.ToString(), d.Value.m_name);
        }
        return(ret);
    }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RightMgr.getInstance().opCheck("operation", Session, Response);
     if (!IsPostBack)
     {
         List <RechargeCFGData> allData = RechargeCFG.getInstance().getRechargeList();
         foreach (var data in allData)
         {
             m_rechargeRMB.Items.Add(new ListItem(data.m_price.ToString(), data.m_payId.ToString()));
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     RightMgr.getInstance().opCheck(RightDef.OP_BG_RECHARGE, Session, Response);
     if (!IsPostBack)
     {
         List <RechargeCFGData> allData = RechargeCFG.getInstance().getRechargeList();
         foreach (var data in allData)
         {
             m_rechargeRMB.Items.Add(new ListItem(data.m_price.ToString() + HttpUtility.HtmlDecode("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;") + data.m_name,
                                                  data.m_payId.ToString()));
         }
     }
 }
Exemple #4
0
    public override string getDescription(OpInfo info, string str)
    {
        if (info == null)
        {
            return("引用空");
        }

        LogGmRecharge param = BaseJsonSerializer.deserialize <LogGmRecharge>(str);

        if (param != null)
        {
            RechargeCFGData rd = RechargeCFG.getInstance().getValue(param.m_param);
            if (rd != null)
            {
                return(string.Format(info.m_fmt, param.m_playerId, StrName.s_rechargeType[param.m_rtype], rd.m_price));
            }
        }
        return("");
    }