You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

601 lines
21 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!DOCTYPE html>
<html>
<head>
<title>从表处理器</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<!-- 引入MUI -->
<script src="../Scripts/jquery-1.11.0.min.js"></script>
<script src="../js/jquery.form.js" type="text/javascript"></script>
<link href="../js/mui/css/mui.min.css" rel="stylesheet" type="text/css" />
<link href="../js/mui/css/feedback-page.css" rel="stylesheet" type="text/css" />
<link href="../js/mui/css/mui.indexedlist.css" rel="stylesheet" type="text/css" />
<script src="../js/mui/js/mui.min.js" type="text/javascript"></script>
<script src="../js/mui/js/mui.view.js" type="text/javascript"></script>
<script src="../js/mui/js/mui.picker.min.js" type="text/javascript"></script>
<script src="../js/mui/js/mui.dtpicker.js"></script>
<link href="../js/mui/css/mui.picker.min.css" rel="stylesheet" type="text/css" />
<link href="../js/mui/css/mui.dtpicker.css" rel="stylesheet" />
<!-- 引入通用基础JS -->
<script src="../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../DataUser/JSLibData/CommonShowConfig.js"></script>
<script src="../Scripts/config.js" type="text/javascript"></script>
<!--POP加载不正确 -->
<script src="../CCForm/JS/Pop.js" type="text/javascript"></script>
<script src="../Comm/Gener.js" type="text/javascript"></script>
<script src="../Comm/JScript.js" type="text/javascript"></script>
<script src="./FrmEnd.js" type="text/javascript"></script>
<script src="../Scripts/commonYangYH.js" type="text/javascript"></script>
<script src="./FrmDtl.js" type="text/javascript"></script>
<script src="./MapExt2016.js"></script>
<script src="../MapAttr.js"></script>
<script src="../../DataUser/JSLibData/CCFormRef.js" type="text/javascript"></script>
<script src="./TBFullCtrl.js"></script>
<script src="../js/mui/js/mui.indexedlist.js" type="text/javascript"></script>
<style type="text/css">
input {
text-align: right;
font-size: 14px;
}
select {
direction: rtl;
font-size: 14px !important;
}
select option {
direction: rtl;
font-size: 14px;
}
/**模态窗口居中*/
.modal {
display: table;
height: 100%;
margin: 0 auto;
}
.modal-dialog {
display: table-cell;
vertical-align: middle;
}
/**模态窗口居中*/
.mui-input-row a {
color: #2c2c38;
}
.errorInput {
border: 1px solid red !important;
}
.compareClass {
border: 1px solid red !important;
}
.richText {
background-color: White;
font-color: black;
font-weight: bolder;
}
.mui-views,
.mui-view,
.mui-pages,
.mui-page,
.mui-page-content {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 40px;
width: 100%;
height: 100%;
background: #efeff4;
}
.mui-pages {
top: 46px;
height: auto;
}
.mui-scroll-wrapper {
position: absolute;
z-index: 2;
top: 0;
bottom: 0;
left: 0;
overflow: hidden;
width: 100%;
height: 98%;
}
.mui-scroll-wrapper,
.mui-scroll {
background-color: #efeff4;
}
.mui-page.mui-transitioning {
-webkit-transition: -webkit-transform 300ms ease;
transition: transform 300ms ease;
}
.mui-page-left {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.mui-ios .mui-page-left {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.mui-navbar {
position: fixed;
right: 0;
left: 0;
z-index: 10;
height: 44px;
background-color: #f7f7f8;
}
.mui-navbar .mui-bar {
position: absolute;
/* background: transparent; */
text-align: center;
}
.mui-android .mui-navbar-inner.mui-navbar-left {
opacity: 0;
}
.mui-ios .mui-navbar-left .mui-left,
.mui-ios .mui-navbar-left .mui-center,
.mui-ios .mui-navbar-left .mui-right {
opacity: 0;
}
.mui-navbar .mui-btn-nav {
-webkit-transition: none;
transition: none;
-webkit-transition-duration: .0s;
transition-duration: .0s;
}
.mui-navbar .mui-bar .mui-title {
display: inline-block;
width: auto;
}
.mui-page-shadow {
position: absolute;
right: 100%;
top: 0;
width: 16px;
height: 100%;
z-index: -1;
content: '';
}
.mui-page-shadow {
background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
background: linear-gradient(to right, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .01) 50%, rgba(0, 0, 0, .2) 100%);
}
.mui-navbar-inner.mui-transitioning,
.mui-navbar-inner .mui-transitioning {
-webkit-transition: opacity 300ms ease, -webkit-transform 300ms ease;
transition: opacity 300ms ease, transform 300ms ease;
}
.mui-page {
display: none;
}
.mui-pages .mui-page {
display: block;
}
.mui-page .mui-table-view:first-child {
margin-top: 15px;
}
.mui-page .mui-table-view:last-child {
margin-bottom: 30px;
}
.mui-table-view {
margin-top: 20px;
}
.mui-table-view span.mui-pull-right {
color: #999;
}
.mui-table-view-divider {
background-color: #efeff4;
font-size: 14px;
}
.mui-table-view-divider:before,
.mui-table-view-divider:after {
height: 0;
}
.head {
height: 40px;
}
#head {
line-height: 40px;
}
.head-img {
width: 40px;
height: 40px;
}
#head-img1 {
position: absolute;
bottom: 10px;
right: 40px;
width: 40px;
height: 40px;
}
.update {
font-style: normal;
color: #999999;
margin-right: -25px;
font-size: 15px
}
.mui-fullscreen {
position: fixed;
z-index: 20;
background-color: #000;
}
.dtl_deleterow {
float: right;
color: Red;
margin-right: 10px;
}
.dtlchild_deleterow {
float: right;
color: Red;
margin-right: 10px;
}
.dtl_deleterow:hover {
color: Blue;
}
.dtl_addpanel {
text-align: center;
}
.dtl_addpanel a {
cursor: pointer;
font-size: 0.9em;
color: red;
}
.dtlchild_addpanel {
text-align: center;
}
.dtlchild_addpanel a {
cursor: pointer;
font-size: 0.9em;
color: red;
}
.dtl_addpanel_b {
font-size: larger;
color: red;
}
p {
color: #000;
}
h3, h4, h5 {
color: #000;
}
.mui-bar-tab .mui-tab-item {
color: #000;
}
.image-local {
width: 35px;
font-size: 16px;
line-height: 28px;
color: #fff;
/* background-color: #0073eb; */
border: none;
display: inline-block;
height: 28px;
box-sizing: border-box;
outline: none;
float: right;
padding-right: 15px;
}
</style>
<script language="javascript" type="text/javascript">
var FieldTypeS = { Normal: 0, Enum: 1, FK: 2, WinOpen: 3 },
FormDataType = { AppString: 1, AppInt: 2, AppFloat: 3, AppBoolean: 4, AppDouble: 5, AppDate: 6, AppDateTime: 7, AppMoney: 8, AppRate: 9 },
UIContralType = { TB: 0, DDL: 1, CheckBok: 2, RadioBtn: 3, MapPin: 4, MicHot: 5 };
var pageData = {};
$(function () {
mui.init();
//初始化单页view
viewApi = mui('#app').view({
defaultPage: '#frmDtl'
});
var view = viewApi.view;
//初始化单页的区域滚动
mui('.mui-scroll-wrapper').scroll({
bounce: false
});
(function ($) {
//处理view的后退与webview后退
var oldBack = $.back;
$.back = function () {
if (viewApi.canBack()) { //如果view可以后退则执行view的后退
viewApi.back();
} else { //执行webview后退
oldBack();
}
};
//监听页面切换事件方案1,通过view元素监听所有页面切换事件目前提供pageBeforeShow|pageShow|pageBeforeBack|pageBack四种事件(before事件为动画开始前触发)
//第一个参数为事件名称第二个参数为事件回调其中e.detail.page为当前页面的html对象
view.addEventListener('pageBeforeShow', function (e) {
var id = e.detail.page.id;
});
view.addEventListener('pageShow', function (e) {
var id = e.detail.page.id;
if (id == 'frmDtl') {
$(".mui-navbar").hide();
$(".mui-pages").css("top", "0px");
} else {
$(".mui-navbar").show();
$(".mui-pages").css("top", "46px");
}
});
view.addEventListener('pageBeforeBack', function (e) {
});
view.addEventListener('pageBack', function (e) {
});
})(mui);
$(".mui-navbar").hide();
$(".mui-pages").css("top", "0px");
pageData.WorkID = GetQueryString("WorkID");
pageData.FK_Node = GetQueryString("FK_Node");
pageData.FID = GetQueryString("FID") == null ? 0 : GetQueryString("FID");
pageData.PWorkID = GetQueryString("PWorkID");
pageData.IsReadonly = GetQueryString("IsReadonly");
pageData.DtlNo = GetQueryString("DtlNo");
$("#HD_CurDtl_No").val(pageData.DtlNo);
Load_DtlInit();
});
</script>
</head>
<body>
<!--页面主结构开始-->
<div id="app" class="mui-views">
<div class="mui-view">
<div class="mui-navbar">
</div>
<div class="mui-pages">
</div>
</div>
</div>
<!--页面主结构结束-->
<!--单页面开始dtl -->
<div id="frmDtl" class="mui-page">
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>
</button>
<h1 id="frmDtlTitle" class="mui-center mui-title">从表</h1>
<a id='dtlDone' class="mui-btn-link mui-btn-nav mui-pull-right"></a>
</div>
<div class="mui-page-content">
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
<form id="form_Dtl" action="">
<div id="DtlContent" class="mui-input-group">
</div>
<div id="btn"></div>
</form>
</div>
</div>
</div>
<input type="hidden" id="HD_CurDtl_No" />
</div>
<!--单页面开始frmChildDtl -->
<div id="frmChildDtl" class="mui-page">
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>
</button>
<h1 id="frmChildDtlTitle" class="mui-center mui-title">从表</h1>
<a id='ChildDtlDone' class="mui-btn-link mui-btn-nav mui-pull-right"></a>
</div>
<div class="mui-page-content">
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
<form id="form_ChildDtl" action="">
<div id="ChildDtlContent" class="mui-input-group">
</div>
</form>
</div>
</div>
</div>
<input type="hidden" id="HD_CurChildDtl_No" />
<input type="hidden" id="HD_CurDtl_OID" />
</div>
<!--单页面开始 pop BranchesAndLeft -->
<div id="branchesAndLeaf" class="mui-page">
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>
</button>
<h1 id="BLTitle" class="mui-center mui-title">页面加载中。。。</h1>
<a id='done' class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-right">完成</a>
</div>
<div class="mui-page-content">
<div class="mui-scroll-wrapper">
<div class="mui-scroll">
<div id='list' class="mui-indexed-list" style="height:100%">
<!-- 搜索框 -->
<div class="mui-indexed-list-search mui-input-row mui-search">
<input id="TB_Key" type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="">
</div>
<!-- 搜索索引 -->
<div style="text-align:right;padding:11px 15px">
<a id="LevelIdx" href="#">返回上一级</a>
</div>
<div class="mui-table-view-divider mui-indexed-list-group"></div>
<!-- 列表 -->
<div class="mui-indexed-list-inner">
<div id="alert" class="mui-indexed-list-empty-alert "><span style=" content:'\e466';"></span>未搜索到相关结果</div>
<ul id="treeView" class="mui-table-view" style="margin-top:0px">
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!--单页面开始 pop Branches -->
<div id="branches" class="mui-page">
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>
</button>
<h1 id="BTitle" class="mui-center mui-title">页面加载中。。。</h1>
<a id='Bdone' class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-right">完成</a>
</div>
<div class="mui-page-content">
<div class="mui-scroll-wrapper">
<div class="mui-scroll" style="height:100%;top:15px">
<div id='Blist' class="mui-indexed-list" style="height:100%">
<!-- 搜索框 -->
<div class="mui-indexed-list-search mui-input-row mui-search">
<input id="TB_B_Key" type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="">
</div>
<!-- 搜索索引 -->
<div style="text-align:right;padding:11px 15px">
<a id="BLevelIdx" href="#">返回上一级</a>
</div>
<div class="mui-table-view-divider mui-indexed-list-group"></div>
<!-- 列表 -->
<div class="mui-indexed-list-inner">
<div id="Balert" class="mui-indexed-list-empty-alert "><span style=" content:'\e466';"></span>未搜索到相关结果</div>
<ul id="BtreeView" class="mui-table-view" style="margin-top:0px">
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!--单页面开始 pop 表格展示 -->
<div id="tableSearch" class="mui-page">
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>
</button>
<h1 id="TSTitle" class="mui-center mui-title">页面加载中。。。</h1>
<a id='TSDone' class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-right">完成</a>
</div>
<div class="mui-page-content">
<div class="mui-scroll-wrapper">
<div class="mui-scroll" style="height:100%;top:15px">
<div id='TSlist' class="mui-indexed-list" style="height:100%">
<!-- 搜索框 -->
<div class="mui-indexed-list-search mui-input-row mui-search">
<input id="TB_TS_Key" type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="">
</div>
<div class="mui-table-view-divider mui-indexed-list-group"></div>
<!-- 列表 -->
<div>
<div class="col-md-4 col-sm-4" id="viewGrid_Panel" style="width:99%;height:400px;overflow:scroll">
<table id="treeGrid" class="table table-striped table-border table-hover" style="margin-top:0px"></table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--<!--单页面开始 文本框自动填充 tbFullCtrl -->
<div id="tbFullCtrl" class="mui-page">
<div class="mui-navbar-inner mui-bar mui-bar-nav">
<button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left">
<span class="mui-icon mui-icon-left-nav"></span>
</button>
<h1 id="TBFCTitle" class="mui-center mui-title">文本框自动填充</h1>
<a id='TBFCDone' class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-right">完成</a>
</div>
<div class="mui-page-content">
<div class="mui-scroll-wrapper">
<div class="mui-scroll" style="height:100%;top:15px">
<div id='TBFClist' class="mui-indexed-list" style="height:100%">
<!-- 搜索框 -->
<div class="mui-indexed-list-search mui-input-row mui-search">
<input id="TB_TBFC_Key" type="search" class="mui-input-clear mui-indexed-list-search-input" placeholder="">
</div>
<div class="mui-table-view-divider mui-indexed-list-group"></div>
<!-- 列表 -->
<div>
<div class="col-md-4 col-sm-4" id="viewGrid_Panel" style="width:99%;height:400px;overflow:scroll">
<table id="TBFCtreeGrid" class="table table-striped table-border table-hover" style="margin-top:0px"></table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
mui.init({
beforeback: function () {//监听物理返回按键的方法
Back();
return false;
}
});
</script>
</body>
</html>