123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- @model CP.Admin.Tcp3InfoModel
- @{
- Layout = null;
- Page.Title = "编辑P3、5开奖信息";
- }
- <link href="~/Static/css/bootstrap.min.css" rel="stylesheet" />
- <link href="~/Static/css/font-awesome.min.css" rel="stylesheet" />
- <link href="~/Static/css/style.css" rel="stylesheet" />
- <link href="~/Static/css/base.css" rel="stylesheet" />
- <style>
- .form-width {
- width: 60px;
- padding: 6px 6px;
- display: -webkit-inline-box;
- }
- .form-width100 {
- width: 100px;
- padding: 6px 6px;
- display: -webkit-inline-box;
- }
- </style>
- <script src="~/Static/custom/jquery.min.js"></script>
- <script src="~/Static/custom/jquery.easyui.min.js"></script>
- <script src="~/Static/custom/easyui-lang-zh_CN.js"></script>
- <link href="~/Static/custom/uimaker/easyui.css" rel="stylesheet" />
- <link href="~/Static/custom/uimaker/icon.css" rel="stylesheet" />
- <script src="~/Static/js/bootstrap.min.js"></script>
- <script src="~/static/js/jquery.form.js"></script>
- <script src="~/Static/js/validate/jquery.validate.min.js"></script>
- <script src="~/Static/js/validate/messages_zh.min.js"></script>
- <script src="~/Static/js/serializeObj.js"></script>
- <script src="~/Static/js/common.js?v=11114"></script>
- <script src="~/Static/js/DateTimeOverFlowFormat.js"></script>
- <script src="~/Static/layer/layer.min.js"></script>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>@Html.Raw(Page.Title)</h5>
- </div>
- <div class="ibox-content">
- @using (Html.BeginForm("Edit", "Tcp3Num", FormMethod.Post, new { @id = "signupForm", @class = "form-horizontal" }))
- {
- @Html.AntiForgeryToken()
- @Html.ValidationSummary(true)
- @Html.HiddenFor(model => model.id);
- <div class="form-group">
- @Html.Label("期号", new { @class = "col-sm-2 control-label" })
- <div class="col-sm-2">
- @Html.TextBoxFor(model => model.qi, new { @class = "form-control" })
- </div>
- </div>
- <div class="form-group">
- @Html.Label("开机号", new { @class = "col-sm-2 control-label" })
- <div class="col-sm-2">
- <input class="form-width text-box single-line onlyNum_one" name="kjihlist1" type="text" value="@(Model.kjih1=="-1"?"-1":Model.kjih1.Substring(0,1))">
- <input class="form-width text-box single-line onlyNum_one" name="kjihlist1" type="text" value="@(Model.kjih1=="-1"?"-1":Model.kjih1.Substring(1,1))">
- <input class="form-width text-box single-line onlyNum_one" name="kjihlist1" type="text" value="@(Model.kjih1=="-1"?"-1":Model.kjih1.Substring(2,1))">
- </div>
- @Html.Label("(必填:前六位红球在0-9取值)", new { @class = "col-sm-2 control-label", style = "color:red;text-align: left" })
- </div>
- <div class="form-group">
- @Html.Label("试机号", new { @class = "col-sm-2 control-label" })
- <div class="col-sm-2">
- <input class="form-width text-box single-line onlyNum_one" name="sjhlist1" type="text" value="@(Model.sjh1=="-1"?"-1":Model.sjh1.Substring(0,1))">
- <input class="form-width text-box single-line onlyNum_one" name="sjhlist1" type="text" value="@(Model.sjh1=="-1"?"-1":Model.sjh1.Substring(1,1))">
- <input class="form-width text-box single-line onlyNum_one" name="sjhlist1" type="text" value="@(Model.sjh1=="-1"?"-1":Model.sjh1.Substring(2,1))">
- </div>
- @Html.Label("(必填:在0-9取值)", new { @class = "col-sm-2 control-label", style = "color:red;text-align: left" })
- </div>
- <div class="form-group">
- @Html.Label("开奖号", new { @class = "col-sm-2 control-label" })
- <div class="col-sm-3">
- @Html.TextBoxFor(m => m.n1, new { @class = "form-width onlyNum_one" })
- @Html.TextBoxFor(m => m.n2, new { @class = "form-width onlyNum_one" })
- @Html.TextBoxFor(m => m.n3, new { @class = "form-width onlyNum_one" })
- @Html.TextBoxFor(m => m.n4, new { @class = "form-width onlyNum_one" })
- @Html.TextBoxFor(m => m.n5, new { @class = "form-width onlyNum_one" })
- </div>
- @Html.Label("(必填:在0-9取值)", new { @class = "col-sm-2 control-label", style = "color:red;text-align: left" })
- </div>
- <div class="form-group">
- @Html.Label("开奖日期", new { @class = "col-sm-2 control-label" })
- <div class="col-sm-2">
- <input id="date" name="date" type="text" class="easyui-datetimebox" style="height:31px;width:240px;">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- </div>
- <div class="form-group">
- @Html.Label("投注金额", new { @class = "col-sm-2 control-label" })
- <div class="col-sm-2">
- @Html.TextBoxFor(model => model.tzmoney, new { @class = "form-control" })
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- </div>
- <div class="form-group">
- @Html.Label("P5投注金额", new { @class = "col-sm-2 control-label" })
- <div class="col-sm-2">
- @Html.TextBoxFor(model => model.p5_tzmoney, new { @class = "form-control" })
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- </div>
- <div class="form-group">
- @Html.Label("排三直选注数", new { @class = "col-sm-2 control-label" })
- <input class="col-sm-1 text-box single-line" id="dj1" name="dj1" type="hidden" value="排三直选注数">
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="djnum1" name="djnum1" type="number" value="@(Model.listp3==null?"0":Model.listp3[0].wincount)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="jj1" name="jj1" type="number" value="@(Model.listp3==null?"1040":Model.listp3[0].winmoney)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- </div>
- <div class="form-group">
- @Html.Label("排三组三注数", new { @class = "col-sm-2 control-label" })
- <input class="col-sm-1 text-box single-line" id="dj2" name="dj2" type="hidden" value="排三组三注数">
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="djnum2" name="djnum2" type="number" value="@(Model.listp3==null?"0":Model.listp3[1].wincount)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="jj2" name="jj2" type="number" value="@(Model.listp3==null?"346":Model.listp3[1].winmoney)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- </div>
- <div class="form-group">
- @Html.Label("排三组六注数", new { @class = "col-sm-2 control-label" })
- <input class="col-sm-1 text-box single-line" id="dj3" name="dj3" type="hidden" value="排三组六注数">
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="djnum3" name="djnum3" type="number" value="@(Model.listp3==null?"0":Model.listp3[2].wincount)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="jj3" name="jj3" type="number" value="@(Model.listp3==null?"173":Model.listp3[2].winmoney)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- </div>
- <div class="form-group">
- @Html.Label("排五直选注数", new { @class = "col-sm-2 control-label" })
- <input class="col-sm-1 text-box single-line" id="dj4" name="dj4" type="hidden" value="排五直选注数">
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="djnum4" name="djnum4" type="number" value="@(Model.listp5==null?"0":Model.listp5[0].wincount)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
- <div class="col-sm-1">
- <input class="col-sm-1 text-box single-line" id="jj4" name="jj4" type="number" value="@(Model.listp5==null?"100000":Model.listp5[0].winmoney)">
- </div>
- @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
- </div>
- <div class="form-group">
- <div class="col-sm-8" style="text-align:center">
- <a class="btn btn-info" href="@Url.Action("Index")"><i class="fa fa-list"></i>返回列表</a>
- <button class="btn btn-success" type="submit" style="margin-left:30px; "><i class="fa fa-check"></i>保存</button>
- </div>
- </div>
- }
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $().ready(function () {
- var icon = "<i class='fa fa-times-circle'></i> ";
- // 在键盘按下并释放及提交后验证提交表单
- $("#signupForm").validate({
- submitHandler: function () {
- formResult("signupForm", true, null, null, "/Tcp3Num/index");
- },
- });
- $('#date').datetimebox('setValue', '@(Model.date)');
- });
- function funcall() {
- //var checked = $("#chkContinueEdit").is(':checked');
- //var isAdd = $("#chkContinueEdit").attr("data-isadd");
- //if (checked && isAdd == 1) {
- // clear();
- //}
- //else {
- location.href = "/Tcp3Num/index";
- //}
- }
- function clear() {
- //$("#Name").val("");
- }
- </script>
|