Example #1
0
 private void @__BuildControlTree(global::CMICT.CSP.Web.TemplateConfig.DataSourceConfig.DataSourceConfig @__ctrl)
 {
     global::System.Web.UI.WebControls.DropDownList @__ctrl1;
     @__ctrl1 = this.@__BuildControlddlDataSource();
     System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
     @__parser.AddParsedSubObject(@__ctrl1);
 }
Example #2
0
        private void @__BuildControlTree(global::CMICT.CSP.Web.TemplateConfig.DataSourceConfig.DataSourceConfig @__ctrl)
        {
            System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
            @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl(@"

<div class=""progressBox"">
    <ul class=""progressStepBox"">
        <li>
            <div class=""stepBox stepPrev"">
                <p>1.基本信息配置</p>
                <span></span>
            </div>
        </li>
        <li>
            <div class=""stepBox stepcurrent"">
                <p>2.配置数据源</p>
                <span></span>
            </div>
        </li>
        <li>
            <div class=""stepBox"">
                <p>3.配置展示方式</p>
                <span></span>
            </div>
        </li>
        <li>
            <div class=""stepBox"">
                <p>4.配置筛选条件</p>
                <span></span>
            </div>
        </li>
        <li>
            <div class=""stepBox"">
                <p>5.配置业务信息查询通信</p>
            </div>
        </li>
    </ul>
</div>
<div class=""cutOffRule""></div>
"));
            global::System.Web.UI.UpdatePanel @__ctrl1;
            @__ctrl1 = this.@__BuildControlUpdatePanel2();
            @__parser.AddParsedSubObject(@__ctrl1);
            @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n<script type=\"text/javascript\">\r\n    $(function ($) {\r\n        addtiptodropdo" +
                                                                          "wn();\r\n        addtiptodbname();\r\n        $(\".hidtitle\").val($(document).attr(\"t" +
                                                                          "itle\"));\r\n    });\r\n    var prm = Sys.WebForms.PageRequestManager.getInstance();\r" +
                                                                          "\n    prm.add_beginRequest(function () {\r\n\r\n    });\r\n    prm.add_endRequest(funct" +
                                                                          "ion (sender, args) {\r\n        args.set_errorHandled(true);\r\n        try {\r\n     " +
                                                                          "       if ($(\'.default\').length > 0) {\r\n                $(\'.default\').dropkick()" +
                                                                          ";\r\n                addtiptodbname();\r\n                addtiptodropdown();\r\n     " +
                                                                          "       }\r\n            $(document).attr(\"title\", $(\".hidtitle\").val());\r\n        " +
                                                                          "} catch (err) {\r\n\r\n        }\r\n    });\r\n    //给数据源下拉加title\r\n    function addtipto" +
                                                                          "dbname() {\r\n        var sourcenametip = $(\".hidtipcontent\").val();\r\n        if (" +
                                                                          "$.trim(sourcenametip) != \"\") {\r\n            var stiplist = sourcenametip.split(\'" +
                                                                          "!\');\r\n            $(\"div[id*=\'ddlSourceName\']\").find(\"a\").each(function () {\r\n  " +
                                                                          "              if ($(this).attr(\"data-dk-dropdown-value\") != undefined && $(this)" +
                                                                          ".attr(\"data-dk-dropdown-value\") != null && $(this).attr(\"data-dk-dropdown-value\"" +
                                                                          ") != \"\") {\r\n                    var atipname = $(this).attr(\"data-dk-dropdown-va" +
                                                                          "lue\");\r\n                    for (var i = 0; i < stiplist.length; i++) {\r\n       " +
                                                                          "                 if (stiplist[i].indexOf(atipname) != -1) {\r\n                   " +
                                                                          "         $(this).attr(\"title\", stiplist[i].split(\',\')[1]);\r\n                    " +
                                                                          "        break;\r\n                        }\r\n                    }\r\n              " +
                                                                          "  }\r\n            });\r\n        }\r\n    }\r\n    //给数据源下拉加title  dk_toggle dk_label\r\n" +
                                                                          "    function addtiptodropdown() {\r\n        $(\"div[id*=\'ddlCATEGORY\']\").find(\"a\")" +
                                                                          ".each(function () {\r\n                var atipname = $(this).html();\r\n           " +
                                                                          "     $(this).attr(\"title\", atipname).addClass(\"costDes\");\r\n        });\r\n        " +
                                                                          "$(\"div[id*=\'ddlsmallcategory\']\").find(\"a\").each(function () {\r\n            var a" +
                                                                          "tipname = $(this).html();\r\n            $(this).attr(\"title\", atipname).addClass(" +
                                                                          "\"costDes\");\r\n        });\r\n    }\r\n    function executesub() {\r\n        var b_retu" +
                                                                          "rn = checkForm(document.forms.item(0, null));\r\n        var sid = $.trim($(\".hids" +
                                                                          "ourceid\").val());\r\n        var oldsid = $.trim($(\".ddlSourceName option:selected" +
                                                                          "\").val());\r\n        var optype = $.trim($(\".hidOperType\").val());\r\n        if (o" +
                                                                          "ptype != \"edit\") {//新增\r\n            return b_return;\r\n        } else {\r\n        " +
                                                                          "    if (b_return) {\r\n                if (sid != oldsid) {\r\n                    v" +
                                                                          "ar msg = \"更改数据源将会影响业务逻辑的查询,您确定要更改吗?\";\r\n                    RegisterButtonConfirm" +
                                                                          "(msg, \'edit\');\r\n                } else {\r\n                    return true;\r\n    " +
                                                                          "            }\r\n            }\r\n            return false;\r\n        }\r\n        retu" +
                                                                          "rn false;\r\n    }\r\n    //注册确认方法groupcal\r\n    function RegisterButtonConfirm(msgs," +
                                                                          " type) {\r\n        var iss = 0;\r\n        var yes = \'确定\';\r\n        var no = \'取消\';\r" +
                                                                          "\n        $.layer({\r\n            shade: [0.5, \'#000\', true],\r\n            area: [" +
                                                                          "\'auto\', \'auto\'],\r\n            dialog: {\r\n                msg: msgs,\r\n           " +
                                                                          "     btns: 2,\r\n                type: 4,\r\n                btn: [yes, no],\r\n      " +
                                                                          "          yes: function (index) {\r\n                    layer.close(index);\r\n    " +
                                                                          "                if (type == \"edit\") {\r\n                        $(\".btnsave\").cli" +
                                                                          "ck();\r\n                    }\r\n                },\r\n                no: function (" +
                                                                          ") {\r\n                }\r\n            }\r\n        });\r\n    }\r\n    function changeca" +
                                                                          "tebig() {\r\n        $(\".txtCATEGORY\").val($(\".ddlCATEGORY option:selected\").val()" +
                                                                          ");\r\n        $(\".txtCATEGORY\").change();\r\n    }\r\n\r\n    function changesmallcatego" +
                                                                          "ry() {\r\n        $(\".txtsmallcategory\").val($(\".ddlsmallcategory option:selected\"" +
                                                                          ").val());\r\n        $(\".txtsmallcategory\").change();\r\n    }\r\n    function changes" +
                                                                          "name() {\r\n        $(\".txtSourceName\").val($(\".ddlSourceName option:selected\").va" +
                                                                          "l());\r\n        $(\".txtSourceName\").change();\r\n    }\r\n</script>\r\n"));
        }