first commit

This commit is contained in:
Ray
2026-02-19 03:37:37 +08:00
commit ccfd8c79a4
2813 changed files with 453657 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Class-Path:

View File

@@ -0,0 +1,110 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="include/pagetop.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="include/head.jsp"%>
</head>
<body>
<%@ include file="include/loading.jsp"%>
<%@ include file="include/top.jsp"%>
<%@ include file="include/menu_left.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTENT -->
<div class="content">
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTAINER -->
<div class="container-default">
<h3>交易杠杆</h3>
<%@ include file="include/alert.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START queryForm -->
<form action="<%=basePath%>normal/adminItemLeverageAction!list.action" method="post" id="queryForm">
<s:hidden name="pageNo" id="pageNo"></s:hidden>
<s:hidden name="itemid" id="itemid"></s:hidden>
</form>
<!-- END queryForm -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<div class="row">
<div class="col-md-12 col-lg-12">
<div class="panel panel-default">
<div class="panel-title">
新增杠杆
<ul class="panel-tools">
<li><a class="icon minimise-tool"><i
class="fa fa-minus"></i></a></li>
<li><a class="icon expand-tool"><i class="fa fa-expand"></i></a></li>
</ul>
</div>
<div class="panel-body">
<form class="form-horizontal" action="<%=basePath%>normal/adminItemLeverageAction!add.action" method="post" name="mainForm" id="mainForm">
<s:hidden name="itemid" id="itemid"></s:hidden>
<div class="form-group">
<label class="col-sm-2 control-label form-label">杠杆倍数</label>
<div class="col-sm-3">
<div class="input-group">
<s:textfield id="leverage" name="leverage" cssClass="form-control " />
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<a href="javascript:goUrl(<s:property value="pageNo" />)" class="btn">取消</a> <a
href="javascript:submit()" class="btn btn-default">保存</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- END CONTAINER -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/footer.jsp"%>
</div>
<!-- End Content -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/js.jsp"%>
<script type="text/javascript">
function submit(){
swal({
title : "是否保存?",
text : "",
type : "warning",
showCancelButton : true,
confirmButtonColor : "#DD6B55",
confirmButtonText : "确认",
closeOnConfirm : false
}, function() {
document.getElementById("mainForm").submit();
});
}
</script>
</body>
</html>

View File

@@ -0,0 +1,116 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="include/pagetop.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="include/head.jsp"%>
</head>
<body>
<%@ include file="include/loading.jsp"%>
<%@ include file="include/top.jsp"%>
<%@ include file="include/menu_left.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTENT -->
<div class="content">
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTAINER -->
<div class="container-default">
<h3>交易杠杆</h3>
<%@ include file="include/alert.jsp"%>
<div class="row">
<div class="col-md-12">
<!-- Start Panel -->
<div class="panel panel-default">
<div class="panel-title">查询结果</div>
<a href="<%=basePath%>normal/adminItemLeverageAction!toAdd.action?itemid=<s:property value="itemid" />" class="btn btn-light" style="margin-bottom: 10px" >新增杠杆参数</a>
<div class="panel-body">
<table class="table table-bordered table-striped">
<thead>
<tr>
<td>杠杆(倍)</td>
<td width="130px"></td>
</tr>
</thead>
<tbody>
<s:iterator value="page.elements" status="stat">
<tr>
<td><fmt:formatNumber value="${leverage}"
pattern="#0.00" /></td>
<td>
<div class="btn-group">
<button type="button" class="btn btn-light">操作</button>
<button type="button" class="btn btn-light dropdown-toggle"
data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span> <span class="sr-only">Toggle
Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a
href="javascript:ondelete('<s:property value="id" />')">删除</a></li>
</ul>
</div>
</td>
</tr>
</s:iterator>
</tbody>
</table>
<%@ include file="include/page_simple.jsp"%>
<nav>
</div>
</div>
<!-- End Panel -->
</div>
</div>
</div>
<!-- END CONTAINER -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/footer.jsp"%>
</div>
<!-- End Content -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/js.jsp"%>
<form action="normal/adminItemLeverageAction!delete.action"
method="post" id="ondelete">
<input type="hidden" name="pageNo" id="pageNo"
value="${param.pageNo}">
<s:hidden name="id" id="id"></s:hidden>
<s:hidden name="itemid" id="itemid"></s:hidden>
</form>
<script type="text/javascript">
function ondelete(id) {
$("#id").val(id);
swal({
title : "是否确认删除?",
text : "",
type : "warning",
showCancelButton : true,
confirmButtonColor : "#DD6B55",
confirmButtonText : "确认",
closeOnConfirm : false
}, function() {
document.getElementById("ondelete").submit();
});
}
</script>
</body>
</html>

View File

@@ -0,0 +1,142 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="include/pagetop.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="include/head.jsp"%>
</head>
<body>
<%@ include file="include/loading.jsp"%>
<%@ include file="include/top.jsp"%>
<%@ include file="include/menu_left.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTENT -->
<div class="content">
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTAINER -->
<div class="container-default">
<h3>交易品种</h3>
<%@ include file="include/alert.jsp"%>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-title">操作</div>
<div class="panel-body">
<form class="form-horizontal"
action="<%=basePath%>normal/adminItemAction!order_open.action"
method="post" id="queryForm">
<s:hidden name="pageNo" id="pageNo"></s:hidden>
<div class="col-md-12 col-lg-4">
<fieldset>
<div class="control-group">
<div class="controls">
<s:select id="order_open" cssClass="form-control "
name="order_open" list="#{'true':'交易开启','false':'交易关闭(关闭后,所有品种不可开仓和平仓)'}"
listKey="key" listValue="value"
value="order_open" />
</div>
</div>
</fieldset>
</div>
<div class="col-md-12 col-lg-2">
<button type="submit" class="btn btn-block btn-default">确定</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<!-- Start Panel -->
<div class="panel panel-default">
<div class="panel-title">查询结果</div>
<div class="panel-body">
<table class="table table-bordered table-striped">
<thead>
<tr>
<td>名称</td>
<td>代码</td>
<td>交易对</td>
<td>每张金额</td>
<td>每张手续费</td>
<td>最小变动单位</td>
<td>最小变动单位的盈亏金额</td>
<!--
<td>市场</td> -->
<td width="130px"></td>
</tr>
</thead>
<tbody>
<s:iterator value="page.elements" status="stat">
<tr>
<td><s:property value="name" /></td>
<td><s:property value="symbol" /></td>
<td><s:property value="symbol_data" /></td>
<td><s:property value="unit_amount" /></td>
<td><s:property value="unit_fee" /></td>
<td><s:property value="pips" /></td>
<td><s:property value="pips_amount" /></td>
<!--
<td><s:if test='market=="1"'>币币交易</s:if><s:if test='market=="2"'>合约交易</s:if></td>
-->
<td>
<div class="btn-group">
<button type="button" class="btn btn-light">操作</button>
<button type="button" class="btn btn-light dropdown-toggle"
data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span> <span class="sr-only">Toggle
Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a
href="<%=basePath%>normal/adminItemAction!toUpdate.action?id=<s:property value="id" />">修改</a></li>
<li><a
href="<%=basePath%>normal/adminItemLeverageAction!list.action?itemid=<s:property value="id" />">交易杠杆</a></li>
</ul>
</div>
</td>
</tr>
</s:iterator>
</tbody>
</table>
<%@ include file="include/page_simple.jsp"%>
<nav>
</div>
</div>
<!-- End Panel -->
</div>
</div>
</div>
<!-- END CONTAINER -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/footer.jsp"%>
</div>
<!-- End Content -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/js.jsp"%>
</body>
</html>

View File

@@ -0,0 +1,153 @@
<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="include/pagetop.jsp"%>
<!DOCTYPE html>
<html>
<head>
<%@ include file="include/head.jsp"%>
</head>
<body>
<%@ include file="include/loading.jsp"%>
<%@ include file="include/top.jsp"%>
<%@ include file="include/menu_left.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTENT -->
<div class="content">
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START CONTAINER -->
<div class="container-default">
<h3>交易品种</h3>
<%@ include file="include/alert.jsp"%>
<!-- //////////////////////////////////////////////////////////////////////////// -->
<!-- START queryForm -->
<form action="<%=basePath%>normal/adminItemAction!list.action" method="post" id="queryForm">
<s:hidden name="pageNo" id="pageNo"></s:hidden>
</form>
<!-- END queryForm -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<div class="row">
<div class="col-md-12 col-lg-12">
<div class="panel panel-default">
<div class="panel-title">
修改交易品种
<ul class="panel-tools">
<li><a class="icon minimise-tool"><i
class="fa fa-minus"></i></a></li>
<li><a class="icon expand-tool"><i class="fa fa-expand"></i></a></li>
</ul>
</div>
<div class="panel-body">
<form class="form-horizontal" action="<%=basePath%>normal/adminItemAction!update.action" method="post" name="mainForm" id="mainForm">
<s:hidden name="id" id="id"></s:hidden>
<h5>基础信息</h5>
<div class="form-group">
<label class="col-sm-2 control-label form-label">名称</label>
<div class="col-sm-5">
<s:textfield id="name" name="name" cssClass="form-control " />
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label form-label">代码</label>
<div class="col-sm-5">
<s:textfield id="symbol" name="symbol" cssClass="form-control " readonly="true"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label form-label">交易对</label>
<div class="col-sm-5">
<s:textfield id="symbol_data" name="symbol_data" cssClass="form-control " readonly="true"/>
</div>
</div>
<h5>交易信息</h5>
<p class="ballon color1">盈亏公式:(合约总金额 /每张金额)*(涨跌点数/最小变动单位*最小变动单位的盈亏金额)。</p>
<div class="form-group">
<label class="col-sm-2 control-label form-label">金额/张</label>
<div class="col-sm-3">
<s:textfield id="unit_amount" name="unit_amount" cssClass="form-control " placeholder="合约每张金额"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label form-label">手续费/张</label>
<div class="col-sm-3">
<s:textfield id="unit_fee" name="unit_fee" cssClass="form-control " placeholder="合约每张金额"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label form-label">最小变动单位</label>
<div class="col-sm-3">
<s:textfield id="pips" name="pips" cssClass="form-control " placeholder="报价变动的最小幅度"/>
<p>报价变动的最小幅度,行情低于设置单位不会计价盈亏"</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label form-label">最小变动单位的盈亏金额</label>
<div class="col-sm-3">
<s:textfield id="pips_amount" name="pips_amount" cssClass="form-control " placeholder="最小变动单位的盈亏金额"/>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<a href="javascript:goUrl(<s:property value="pageNo" />)" class="btn">取消</a> <a
href="javascript:submit()" class="btn btn-default">保存</a>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- END CONTAINER -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/footer.jsp"%>
</div>
<!-- End Content -->
<!-- //////////////////////////////////////////////////////////////////////////// -->
<%@ include file="include/js.jsp"%>
<script type="text/javascript">
function submit(){
swal({
title : "是否保存?",
text : "",
type : "warning",
showCancelButton : true,
confirmButtonColor : "#DD6B55",
confirmButtonText : "确认",
closeOnConfirm : false
}, function() {
document.getElementById("mainForm").submit();
});
}
</script>
</body>
</html>