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.

154 lines
6.0 KiB
Plaintext

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden 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>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-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">-->
<title>草稿</title>
<link href="js/mui/css/mui.min.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/jquery.min.js" type="text/javascript"></script>
<script src="./Scripts/config.js" type="text/javascript"></script>
<script src="./Comm/Gener.js" type="text/javascript"></script>
<script src="./Scripts/QueryString.js" type="text/javascript"></script>
<style type="text/css">
/**.mui-bar{ background-color:rgb(75, 75, 105) !important;}
.mui-title{color:white !important;}
.mui-bar-nav a{color: white !important;}
.mui-table-view-cell{border-radius:0.7em 0.7em 0.7em 0.7em}
#topTitle{font-family:PingFangSC-Semibold;font-weight:600;}
body
{
background:#2C3649;
background-color:#2C3649;
position:absolute;
top:0;right:0;
left:0;
bottom:0;
}
.mui-content
{
background:#2C3649;
}
.mui-content .mui-table-view:before
{
background:#2C3649 !important;
background-color: #2C3649 !important;
}
.mui-content .mui-table-view:after
{
background:#2C3649 !important;
background-color: #2C3649 !important;
}
.mui-bar {
background-color:#2C3649 !important
}
.mui-bar-nav{box-shadow:none}*/
</style>
<script type="text/javascript">
mui.init();
mui.ready(
//加载数据
function Load_EmpWorks() {
if(mui.os.android){ //注意这里是小写的android
}else{
//$("#header").css("height","95px");
//$("#topTitle").css("margin-top","45px");
//$("#aback").css("margin-top","45px");
//$("#div_list").css("margin-top","50px");
}
var handler = new HttpHandler("BP.WF.HttpHandler.WF");
var data = handler.DoMethodReturnString("Draft_Init");
if (data.indexOf('err@') == 0) {
mui.alert(data);
return;
}
$("#LV_Draftlist").empty();
var pushData = cceval('(' + data + ')');
var _Html = "";
var flowNames = "";
//判断是否有数据
if (pushData.length == 0) {
mui.alert("记录为空!", function () {
SetHref('Home.htm?s=' + Math.random());
});
}
for (var k = 0; k < pushData.length; k++) {
if (flowNames.indexOf(pushData[k].FlowName) > -1)
continue;
flowNames += pushData[k].FlowName + ",";
}
var flowName_Arrary = flowNames.split(",");
for (var j = 0; j < flowName_Arrary.length; j++) {
if (flowName_Arrary[j] == "")
continue;
_Html += "<li class='mui-table-view-cell mui-collapse mui-active' style='margin-bottom:10px;background-color:rgba(255,255,255,1);border-radius:12px 12px 0px 0p;'><a class='mui-navigate-right' href='#' style='background-color:#eee;padding-left: 28px;font-family:PingFang-SC-Medium;font-weight:600;'>" + flowName_Arrary[j] + "</a>";
_Html += "<ul class='mui-table-view mui-table-view-chevron'>";
for (var i = 0; i < pushData.length; i++) {
if (pushData[i].FlowName != flowName_Arrary[j])
continue;
var en = pushData[i];
var href = "MyFlow.htm?FK_Flow=" + en.FK_Flow + "&From=Home&FK_Node=" + en.FK_Node + "&WorkID=" + en.WorkID + "&FID=" + en.FID + "&T=" + Math.random();
_Html += "<li class='mui-table-view-cell' style='margin-bottom:10px;font-family:PingFang-SC-Medium;font-weight:500;padding-left: 22px'>";
_Html += " <a href='" + href + "' target='_self'>";
_Html += " <h5 style=\"color:#096BC1;\">" + en.Title + "</h5>";
//_Html += " <h6 style='float:left' >当前节点:" + en.NodeName + "</h6>";
_Html += " <h6 style='float:right'>发起时间:" + en.RDT+ "</h6>";
//退回
if (pushData[i].WFState == "5") {
_Html += DB_ReturnWorks(fk_node, workid);
}
_Html += " </a>";
_Html += "</li>";
}
_Html += " </ul>";
_Html += "</li>";
}
//展显
$("#LV_Draftlist").html("");
$("#LV_Draftlist").append(_Html);
}
);
function Back() {
SetHref('Home.htm?s=' + Math.random());
return;
}
</script>
</head>
<body style="position: absolute;top: 0;right: 0;bottom: 0;left: 0;background-color: #2C3649 !important;background: #2C3649 !important;">
<header class="mui-bar mui-bar-nav" id='header'>
<a class="mui-icon mui-icon-left-nav mui-pull-left" id='aback' href="javascript:Back();"></a>
<h1 class="mui-title" id='topTitle'>草稿</h1>
</header>
<div class="mui-content">
<div class="mui-scroll-wrapper" id='div_list'>
<div class="mui-scroll" style="background-color:rgba(44,54,73,1);">
<ul id="LV_Draftlist" class="mui-table-view mui-table-view-chevron" style="top:46px;height:auto;background-color:rgb(75, 75, 105);"></ul>
</div>
</div>
</div>
</body>
<script type="text/javascript">
//初始化单页的区域滚动
mui('.mui-scroll-wrapper').scroll();
</script>
</html>