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


C# Global.chain_level_2_4方法代码示例

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


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

示例1: event_catched_and_performed

    public static bool event_catched_and_performed(xAjax ajax, Global global)
    {
        bool bRetVal = true;

        string sProcedure = ajax.getProcedure();

        // ajax.WriteVariable("menu_2_click", sProcedure);


        if (sProcedure == "level_2_report_show_all_shops()")
        {
            ajax.WriteHtml("work_page", CHAIN_REPORT.getAllShopsReport(global));
        }
        else if (sProcedure == "level_1_report()")
        {
            // MENY 2 A
            StringBuilder sb = new StringBuilder();

            sb.Append(global.chain_level_2_2(global));

            ajax.WriteHtml("menu_2", sb.ToString());
            ajax.WriteHtml("work_page", "");
        }
        else if (sProcedure == "level_1_analyze()")
        {
            // MENY 2 A
            StringBuilder sb = new StringBuilder();

            sb.Append(global.chain_level_2_4());

            ajax.WriteHtml("menu_2", sb.ToString());
            ajax.WriteHtml("work_page", "");
        }

        else if (sProcedure == "level_2_report_2()")
        {
            StringBuilder sb = new StringBuilder();

            ChainStandardReport csr = new ChainStandardReport(global, 24);

            DateTime startDate = new DateTime(2015, 7, 1);
            DateTime endDate = new DateTime(2015, 8, 30);

            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.A_StandardReport("A Antall medlemmer", global, startDate, endDate));
            sb.Append("</div>");

            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.getReport_B_basket_sums("B Beløp Sum", (int)DateTime.Now.Year, startDate, endDate, STANDARD_REPORT_TYPE.B_BASKET_SUM));
            sb.Append("</div>");



            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.getReport_B_basket_sums("C Beløp Snitt", (int)DateTime.Now.Year, startDate, endDate, STANDARD_REPORT_TYPE.C_BASKET_AVERAGE));
            sb.Append("</div>");

            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.getReport_B_basket_sums("D Antall bonger", (int)DateTime.Now.Year, startDate, endDate, STANDARD_REPORT_TYPE.D_BASKET_COUNT));
            sb.Append("</div>");

            ajax.WriteHtml("work_page", sb.ToString());
        }

        else if (sProcedure == "level_2_report_3()")
        {
            StringBuilder sb = new StringBuilder();
            /*
            sb.Append("<table>");
            for (int i = 1; i <= 12; ++i)
            {
                if (iCol == 1 || iCol == 5 || iCol == 9)
                {
                    if (iCol == 1) sb.Append("<tr>"); else { sb.Append("</tr>"); sb.Append("<tr>"); }
                    sb.Append("<tr>");
                }
                sb.Append("<td><div id=" + CHAIN_DASHBOARD_ITEM.getContainerId(i.ToString()) + " style='float:left;' >");
                sb.Append(CHAIN_DASHBOARD_ITEM.A_get_minimized_dialog(i.ToString()));
                sb.Append("</div></td>");
                ++iCol;           
            }
            sb.Append("</tr>");
            sb.Append("</table>");
            */
            string sTitle = "";

            sb.Append("<div id=google_chart_sample_01 style='border:2px rgb(200,200,200) solid';width:100%;border-radius:6px;height:115px;background-color:rgb(255,200,200);margin-top:5px;overflow:hidden;'>Sample chart</div>");
            sb.Append("<div id=google_chart_sample_02 style='border:2px rgb(200,200,200) solid';width:100%;height:115px;background-color:rgb(255,200,200);margin-top:5px;overflow:hidden;'>Sample chart</div>");
            sb.Append("<div id=google_chart_sample_03 style='width:100%;height:115px;background-color:rgb(255,200,200);margin-top:5px;overflow:hidden;'>Sample chart</div>");
            
            for (int i = 0; i <= 8; ++i)
            {
                StringBuilder s = new StringBuilder();

                if (i == 0) sTitle = "Medlemsutvikling";
                else if (i == 1) sTitle = "Medlemskonvertering";
                else if (i == 2) sTitle = "Dasboard 3";
                else if (i == 3) sTitle = "Dasboard 4";
                else if (i == 4) sTitle = "Dasboard 5";
                else if (i == 5) sTitle = "Dasboard 6";
//.........这里部分代码省略.........
开发者ID:DagBember,项目名称:https-github.com-Prosessor-merchant_admin,代码行数:101,代码来源:chain_report.cs

示例2: event_catched_and_performed

    public static bool event_catched_and_performed(xAjax ajax, Global global)
    {
        bool bRetVal = true;

        string sProcedure = ajax.getProcedure();

        // ajax.WriteVariable("menu_2_click", sProcedure);


        if (sProcedure == "level_2_report_show_all_shops()")
        {
            ajax.WriteHtml("work_page", CHAIN_REPORT.getAllShopsReport(global));
        }
        else if (sProcedure == "level_1_report()")
        {
            // MENY 2 A
            StringBuilder sb = new StringBuilder();

            sb.Append(global.chain_level_2_2(global));

            ajax.WriteHtml("menu_2", sb.ToString());
            ajax.WriteHtml("work_page", "");
        }
        else if (sProcedure == "level_1_analyze()")
        {
            // MENY 2 A
            StringBuilder sb = new StringBuilder();

            sb.Append(global.chain_level_2_4());

            ajax.WriteHtml("menu_2", sb.ToString());
            ajax.WriteHtml("work_page", "");
        }

        else if (sProcedure == "level_2_report_2()")
        {
            StringBuilder sb = new StringBuilder();

            ChainStandardReport csr = new ChainStandardReport(global);

            DateTime startDate = new DateTime(2015, 7, 1);
            DateTime endDate = new DateTime(2015, 8, 30);

            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.A_StandardReport("A Antall medlemmer", global, startDate, endDate));
            sb.Append("</div>");

            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.getReport_B_basket_sums("B Beløp Sum", (int)DateTime.Now.Year, startDate, endDate, STANDARD_REPORT_TYPE.B_BASKET_SUM));
            sb.Append("</div>");



            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.getReport_B_basket_sums("C Beløp Snitt", (int)DateTime.Now.Year, startDate, endDate, STANDARD_REPORT_TYPE.C_BASKET_AVERAGE));
            sb.Append("</div>");

            sb.Append("<div style='padding:10px;overflow:hidden;clear:both;'>");
            sb.Append(csr.getReport_B_basket_sums("D Antall bonger", (int)DateTime.Now.Year, startDate, endDate, STANDARD_REPORT_TYPE.D_BASKET_COUNT));
            sb.Append("</div>");

            ajax.WriteHtml("work_page", sb.ToString());
        }

        else if (sProcedure == "level_2_report_3()")
        {
            StringBuilder sb = new StringBuilder();
            /*
            sb.Append("<table>");
            for (int i = 1; i <= 12; ++i)
            {
                if (iCol == 1 || iCol == 5 || iCol == 9)
                {
                    if (iCol == 1) sb.Append("<tr>"); else { sb.Append("</tr>"); sb.Append("<tr>"); }
                    sb.Append("<tr>");
                }
                sb.Append("<td><div id=" + CHAIN_DASHBOARD_ITEM.getContainerId(i.ToString()) + " style='float:left;' >");
                sb.Append(CHAIN_DASHBOARD_ITEM.A_get_minimized_dialog(i.ToString()));
                sb.Append("</div></td>");
                ++iCol;           
            }
            sb.Append("</tr>");
            sb.Append("</table>");
            */
            string sTitle = "";

            sb.Append("<div id=google_chart_sample_01 style='border:2px rgb(200,200,200) solid';width:100%;border-radius:6px;height:115px;background-color:rgb(255,200,200);margin-top:5px;overflow:hidden;'>Sample chart</div>");
            sb.Append("<div id=google_chart_sample_02 style='border:2px rgb(200,200,200) solid';width:100%;height:115px;background-color:rgb(255,200,200);margin-top:5px;overflow:hidden;'>Sample chart</div>");
            sb.Append("<div id=google_chart_sample_03 style='width:100%;height:115px;background-color:rgb(255,200,200);margin-top:5px;overflow:hidden;'>Sample chart</div>");
            
            for (int i = 0; i <= 8; ++i)
            {
                StringBuilder s = new StringBuilder();

                if (i == 0) sTitle = "Medlemsutvikling";
                else if (i == 1) sTitle = "Medlemskonvertering";
                else if (i == 2) sTitle = "Dasboard 3";
                else if (i == 3) sTitle = "Dasboard 4";
                else if (i == 4) sTitle = "Dasboard 5";
                else if (i == 5) sTitle = "Dasboard 6";
//.........这里部分代码省略.........
开发者ID:DagBember,项目名称:MerchantAdminNew2016,代码行数:101,代码来源:chain_report.cs


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