当前位置: 首页>>代码示例>>C#>>正文


C# Global.getSvgUpDownArrow方法代码示例

本文整理汇总了C#中Global.getSvgUpDownArrow方法的典型用法代码示例。如果您正苦于以下问题:C# Global.getSvgUpDownArrow方法的具体用法?C# Global.getSvgUpDownArrow怎么用?C# Global.getSvgUpDownArrow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Global的用法示例。


在下文中一共展示了Global.getSvgUpDownArrow方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: A_3_GreenPart

    public string A_3_GreenPart(Global global, DASHBOARD_PERIOD currentPeriod, List<backoffice.dim_dim_value_value> yearMonthList)
    {
        StringBuilder sb = new StringBuilder();

        DASHBOARD_MONTH dashBoardMonth = new DASHBOARD_MONTH(currentPeriod); // Denne skal dersom parameter er shippet ta periodetype inn 

        long dInPeriod = 0;
        long dInPrevPeriod = 0;

        foreach (backoffice.dim_dim_value_value yearMonth in yearMonthList)
        {
            if (yearMonth.sDim_1 == dashBoardMonth.iThisMonthYear.ToString() && yearMonth.sDim_2 == dashBoardMonth.iThisMonth.ToString())
            {
                if (yearMonth.dValue_1 > 0)
                    dInPeriod = (long)(yearMonth.dValue_2 / yearMonth.dValue_1);
                else
                    dInPeriod = 0;
            }
            else if (yearMonth.sDim_1 == dashBoardMonth.iPrevMonthYear.ToString() && yearMonth.sDim_2 == dashBoardMonth.iPrevMonth.ToString())
            {
                if (yearMonth.dValue_1 > 0)
                    dInPrevPeriod = (long)(yearMonth.dValue_2 / yearMonth.dValue_1);
                else
                    dInPrevPeriod = 0;
            }
        }

        string sPercentChange = get_percent_increase_from_to(dInPrevPeriod, dInPeriod, true);
        sb.Append(A_1_GreenPart("frame_2", 0, 10, 300, 220, 170, "GJENNOMSNITTSKJØP " + new DASHBOARD_MONTH(currentPeriod).sThisMonth, "FORRIGE MND.", "ENDRING I %", dInPeriod.ToString() + " kr", dInPrevPeriod.ToString() + " kr", global.getSvgUpDownArrow("&nbsp;" + sPercentChange + "&nbsp;%",false)));
        return sb.ToString();
    }
开发者ID:DagBember,项目名称:https-github.com-Prosessor-merchant_admin,代码行数:31,代码来源:DASHBOARD_NEW.cs

示例2: A_1_GetGreenPart

    public string A_1_GetGreenPart(Global global,DASHBOARD_PERIOD currentPeriod, List<backoffice.dim_dim_value> yearMonthList, List<backoffice.dim_value_value> shopList)
    {
        StringBuilder sb = new StringBuilder();

        DASHBOARD_MONTH dashBoardMonth = new DASHBOARD_MONTH(currentPeriod); // Denne skal dersom parameter er shippet ta periodetype inn 

        int iInPeriod = 0;
        int iFromAncientTimeToLastDateBeforePeriod = 0;

        foreach (backoffice.dim_dim_value yearMonth in yearMonthList)
        {
            if (yearMonth.sDim_1 == dashBoardMonth.iThisMonthYear.ToString() && yearMonth.sDim_2 == dashBoardMonth.iThisMonth.ToString())
            {
                iInPeriod = Convert.ToInt32(yearMonth.sValue); // 14 okt = 68
            }
            else if (yearMonth.sDim_1 == dashBoardMonth.iThisMonthYear.ToString())
            {
                if (Convert.ToInt32(yearMonth.sDim_2) <= dashBoardMonth.iThisMonth)
                {
                    iFromAncientTimeToLastDateBeforePeriod += Convert.ToInt32(yearMonth.sValue);
                }
            }
            else if (Convert.ToInt32(yearMonth.sDim_1) <= dashBoardMonth.iThisMonthYear)
            {
                iFromAncientTimeToLastDateBeforePeriod += Convert.ToInt32(yearMonth.sValue);
            }
        }
        
        int iTotalMembers = 0;
        foreach (backoffice.dim_value_value shop in shopList)
        {            
            iTotalMembers += Convert.ToInt32(shop.sValue_1);
        }
        
        // iInPrevPeriod = antall medlemmer inntil den den flrste i iInPeriod.
        string sIncreasePercent = "+&nbsp;" + get_percent_of(iFromAncientTimeToLastDateBeforePeriod, iInPeriod, false);

        // 14 okt = 68
        sb.Append(XXX_getCenteredGreenFrame(0, 10, 300, 220, 170, "MEDLEMSBASE", "TOTALT ANTALL MEDLEMMER", "I PERIODEN", "ENDRING I %", iTotalMembers.ToString(),
            global.getSvgUpDownArrow("&nbsp;" + iInPeriod.ToString(), true),
            global.getSvgUpDownArrow("&nbsp;" + sIncreasePercent + "&nbsp;%",true)));
        
        
        return sb.ToString();
    }
开发者ID:DagBember,项目名称:https-github.com-Prosessor-merchant_admin,代码行数:45,代码来源:DASHBOARD_NEW.cs


注:本文中的Global.getSvgUpDownArrow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。