• “Add位置”与普通操作位置


    <html>
    <head>
        <title></title>
        <style type="text/css">
            body
            {
                margin: 0px;
                font-size: 11px;            
            }
        </style>
        <%=HtmlControlHelper.GetRelCss(ResolveUrl("~/Res/Table/pager.css"))%>
        <%=HtmlControlHelper.GetRelCss(ResolveUrl("~/Res/css/admin/base.css"))%>
        <%=HtmlControlHelper.GetRelJs(ResolveUrl("~/Res/js/base.js"))%>
        <%=HtmlControlHelper.GetRelJs(ResolveUrl("~/Res/js/baseList.js"))%>
        <%=HtmlControlHelper.GetRelJs(ResolveUrl("~/Res/Table/infoTable.js"))%>
        <%=HtmlControlHelper.GetRelJs(ResolveUrl("~/Res/js/jquery-1.5.1.min.js"))%>
        <%=HtmlControlHelper.GetRelJs(ResolveUrl("~/Res/js/jquery.form.js"))%>
        <script type="text/javascript">
            $(document).ready(function () {
                //设置表格样式
                SetTableBgColor('myTable', '#FFFFFF', '#f1f1f1');
                //定义树改变事件
                $('#ddlPropertyInfo').change(function () {
                    location.href = '<%=RequestHelper.GetPageName() %>?PropertyCode=' + $(this).children('option:selected').val();
                });
                $('#ddlBuilding').change(function() {
    //                location.href = '<%=RequestHelper.GetPageName() %>?BuildingCode=' + $(this).children('option:selected').val();

                    var sUrl = "<%=RequestHelper.GetPageName() %>?PropertyCode=" + $('#ddlPropertyInfo').val();
                    sUrl += "&BuildingCode=" + $(this).children('option:selected').val();
                    location.href = sUrl;
                });
            });
            function doDelete(sKeyValue) {
                         if (confirm('确定要删除吗?') == false) {
                             return;
                         }
                         SetHiddenInputValue("curForm", "DataFuncId", "basic100130");
                         SetHiddenInputValue("curForm", "Action", "delete");
                         SetHiddenInputValue("curForm", "InfoId", sKeyValue);
                         var retValue = doSubmitForm("curForm", "<%=ResolveUrl(mGlobalConfig.DataFunctionUrl) %>");
                         if (retValue.length > 0) {
                             var arrMsg = retValue.split('|');
                             var status = arrMsg[0];
                             var strmsg = arrMsg[1];
                             alert(strmsg);
                             if (status == '100' || status == '103') {
                                 location.href = "<%=Request.Url.ToString()%>";
                             }
                         }
                         return false;
                     }                  
        </script>
    </head>
    <body>
        <form id="curForm" method="post">
    <%= AdminPageInfoService.GetHead(mPageTitle, ResolveUrl("~"),mHelpUrlParams)%>
        <%
            String mToolAdd = "";
            String mToolModify = "";
            String mToolDelete = "";
            String tmpUrl = "";
            String mToolPic = "";
            if (mUserLoginInfo != null)
            {
                if (PermissionService.IsHasOparate(out mRoleFunctionParam, mOpsTable, OprateHelper.ADD, "1"))
                {
                    tmpUrl = RequestHelper.GetParentUrlOfCurrentPage() + "ShopInfoDetail.aspx?Action=" + OprateHelper.ADD + "&PropertyCode=" + mPropertyCode + "&BuildingCode=" + mBuildingCode;
                    mToolAdd = String.Format("<a class=\"{0}\" href=\"{1}\">{2}</a>", "toolMenu", tmpUrl, mRoleFunctionParam.ParamName);
                }
                if (PermissionService.IsHasOparate(out mRoleFunctionParam, mOpsTable, OprateHelper.MODIFY, "1"))
                {
                    tmpUrl = RequestHelper.GetParentUrlOfCurrentPage() + "ShopInfoDetail.aspx?Action=" + OprateHelper.MODIFY + "&InfoId={InfoId}&PropertyCode=" + mPropertyCode + "&BuildingCode=" + mBuildingCode;
                    mToolModify = String.Format("<a class=\"{0}\" href=\"{1}\">{2}</a>", "toolMenu", tmpUrl, "修 改");
                }
                if (PermissionService.IsHasOparate(out mRoleFunctionParam, mOpsTable, OprateHelper.DELETE, "1"))
                {
                    mToolDelete = String.Format("<a class=\"{0}\" href=\"javascript:void(0);\" onclick=\"doDelete('{1}')\">{2}</a>", "toolMenu", "{InfoId}", "删 除");
                }
                if (PermissionService.IsHasOparate(out mRoleFunctionParam, mOpsTable,"lookPic", "1"))
                {

                //模块管理中设置权限,即添加lookPic,在用户权限管理当中设置就不用说了(提高下效率)
                    tmpUrl = RequestHelper.GetParentUrlOfCurrentPage() + "LookPic.aspx?Action=" + "lookPic" + "&PropertyCode=" + mPropertyCode + "&BuildingCode=" + mBuildingCode;
                    mToolPic = String.Format("<a class=\"{0}\" href=\"{1}\">{2}</a>", "toolMenu", tmpUrl, "查看资产状态平面图");
                }       
            }
        %>

        <%= AdminPageInfoService.GetToolMenus(mToolAdd)%>
        <%= AdminPageInfoService.GetToolMenus(mToolPic)%>

    <%--Surprise--%>

    <%= AdminPageInfoService.GetToolMenus(mToolAdd+"&nbsp"+mToolPic) %>

        <%--定义显示--%>   
        <%=AdminPageInfoService.GetQueryToolStart("queryTool")%>
        <%="选择物业:" + mQueryProperytInfo%>
        <%=AdminPageInfoService.GetQueryToolEnd() %>
        <br/>
        <%=AdminPageInfoService.GetQueryToolStart("queryTool")%>
        <%="选择楼宇:" + mQueryBuilding%>
        <%=AdminPageInfoService.GetQueryToolEnd() %>
        <%
            TableService tableService = new TableService("myTable", 1, " class=\"infoTable\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"");
            List<TableColumnInfo> dicColumnInfo = new List<TableColumnInfo>();
            dicColumnInfo.Add(new TableColumnInfo("序号", "InfoId", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("商铺编号", "ShopCode", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("所属楼宇", "BuildingCode", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("所属物业", "PropertyCode", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("地址", "Address", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("楼层", "FloorNum", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("参考单位租金", "RefRental", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("面积", "Square", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("用途", "HouseUse", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("朝向", "HouseOrientation", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("参考月租金", "MonthRefRental", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("参考季租金", "SeasonRefRental", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("当前状态", "RentStatuss", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("描述", "ShopDesc", "", 1, 0, 1));
            dicColumnInfo.Add(new TableColumnInfo("操 作", "op", mToolModify + "&nbsp;" + mToolDelete , 0, 0, 1));
            tableService.SetDataTable(mDefaultDataTable);
           
           
           
            tableService.SetColumnInfos(dicColumnInfo);
            tableService.PrintTable();                               
        %>
        <%
            PagerHelper curPager = new PagerHelper(mPageIndex, mPageSize, mRecordCount);
            String sParams = "PropertyCode=" + mPropertyCode;
            sParams += "&BuildingCode=" + mBuildingCode;
            curPager.Params = sParams;
            curPager.Url = RequestHelper.GetPageName();
            curPager.PageName = mGlobalConfig.UrlPageName;
            HtmlControlHelper.SetHidden("DataFuncId", "");
            HtmlControlHelper.SetHidden("Action", "");
            HtmlControlHelper.SetHidden("InfoId", "");
            HtmlControlHelper.SetHidden("FloorNum", "0");
            HtmlControlHelper.SetHidden("RefRental", "0");
            HtmlControlHelper.SetHidden("Square", "");
            HtmlControlHelper.SetHidden("MonthRefRental", "0");
            HtmlControlHelper.SetHidden("SeasonRefRental", "0");
            HtmlControlHelper.SetHidden("HouseUse", "");
            HtmlControlHelper.SetHidden("HouseOrientation", "");
            HtmlControlHelper.SetHidden("RentStatus", "0");
            HtmlControlHelper.SetHidden("InfoOrder", "0");      
        %>
         <%= AdminPageInfoService.GetPagerInfo(curPager.SetPage())%>
        </form>
    </body>
    </html>

  • 相关阅读:
    定制一个支持中英文的简单LaTex模板
    汉字hash问题(转)
    算法题之最大回文子串
    算法题之添加回文串
    数据表设计的步骤
    很简单的Java断点续传实现原理
    MongoDB 搭建文件存储的方案
    cron语法
    关于如何使用SVN的一些建议
    无后台应用 Stash Backend
  • 原文地址:https://www.cnblogs.com/howie/p/2499340.html
Copyright © 2020-2023  润新知