本文整理汇总了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(" " + sPercentChange + " %",false)));
return sb.ToString();
}
示例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 = "+ " + 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(" " + iInPeriod.ToString(), true),
global.getSvgUpDownArrow(" " + sIncreasePercent + " %",true)));
return sb.ToString();
}