Edit.cshtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. @model CP.Admin.Tcp3InfoModel
  2. @{
  3. Layout = null;
  4. Page.Title = "编辑P3、5开奖信息";
  5. }
  6. <link href="~/Static/css/bootstrap.min.css" rel="stylesheet" />
  7. <link href="~/Static/css/font-awesome.min.css" rel="stylesheet" />
  8. <link href="~/Static/css/style.css" rel="stylesheet" />
  9. <link href="~/Static/css/base.css" rel="stylesheet" />
  10. <style>
  11. .form-width {
  12. width: 60px;
  13. padding: 6px 6px;
  14. display: -webkit-inline-box;
  15. }
  16. .form-width100 {
  17. width: 100px;
  18. padding: 6px 6px;
  19. display: -webkit-inline-box;
  20. }
  21. </style>
  22. <script src="~/Static/custom/jquery.min.js"></script>
  23. <script src="~/Static/custom/jquery.easyui.min.js"></script>
  24. <script src="~/Static/custom/easyui-lang-zh_CN.js"></script>
  25. <link href="~/Static/custom/uimaker/easyui.css" rel="stylesheet" />
  26. <link href="~/Static/custom/uimaker/icon.css" rel="stylesheet" />
  27. <script src="~/Static/js/bootstrap.min.js"></script>
  28. <script src="~/static/js/jquery.form.js"></script>
  29. <script src="~/Static/js/validate/jquery.validate.min.js"></script>
  30. <script src="~/Static/js/validate/messages_zh.min.js"></script>
  31. <script src="~/Static/js/serializeObj.js"></script>
  32. <script src="~/Static/js/common.js?v=11114"></script>
  33. <script src="~/Static/js/DateTimeOverFlowFormat.js"></script>
  34. <script src="~/Static/layer/layer.min.js"></script>
  35. <div class="row">
  36. <div class="col-sm-12">
  37. <div class="ibox float-e-margins">
  38. <div class="ibox-title">
  39. <h5>@Html.Raw(Page.Title)</h5>
  40. </div>
  41. <div class="ibox-content">
  42. @using (Html.BeginForm("Edit", "Tcp3Num", FormMethod.Post, new { @id = "signupForm", @class = "form-horizontal" }))
  43. {
  44. @Html.AntiForgeryToken()
  45. @Html.ValidationSummary(true)
  46. @Html.HiddenFor(model => model.id);
  47. <div class="form-group">
  48. @Html.Label("期号", new { @class = "col-sm-2 control-label" })
  49. <div class="col-sm-2">
  50. @Html.TextBoxFor(model => model.qi, new { @class = "form-control" })
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. @Html.Label("开机号", new { @class = "col-sm-2 control-label" })
  55. <div class="col-sm-2">
  56. <input class="form-width text-box single-line onlyNum_one" name="kjihlist1" type="text" value="@(Model.kjih1=="-1"?"-1":Model.kjih1.Substring(0,1))">
  57. <input class="form-width text-box single-line onlyNum_one" name="kjihlist1" type="text" value="@(Model.kjih1=="-1"?"-1":Model.kjih1.Substring(1,1))">
  58. <input class="form-width text-box single-line onlyNum_one" name="kjihlist1" type="text" value="@(Model.kjih1=="-1"?"-1":Model.kjih1.Substring(2,1))">
  59. </div>
  60. @Html.Label("(必填:前六位红球在0-9取值)", new { @class = "col-sm-2 control-label", style = "color:red;text-align: left" })
  61. </div>
  62. <div class="form-group">
  63. @Html.Label("试机号", new { @class = "col-sm-2 control-label" })
  64. <div class="col-sm-2">
  65. <input class="form-width text-box single-line onlyNum_one" name="sjhlist1" type="text" value="@(Model.sjh1=="-1"?"-1":Model.sjh1.Substring(0,1))">
  66. <input class="form-width text-box single-line onlyNum_one" name="sjhlist1" type="text" value="@(Model.sjh1=="-1"?"-1":Model.sjh1.Substring(1,1))">
  67. <input class="form-width text-box single-line onlyNum_one" name="sjhlist1" type="text" value="@(Model.sjh1=="-1"?"-1":Model.sjh1.Substring(2,1))">
  68. </div>
  69. @Html.Label("(必填:在0-9取值)", new { @class = "col-sm-2 control-label", style = "color:red;text-align: left" })
  70. </div>
  71. <div class="form-group">
  72. @Html.Label("开奖号", new { @class = "col-sm-2 control-label" })
  73. <div class="col-sm-3">
  74. @Html.TextBoxFor(m => m.n1, new { @class = "form-width onlyNum_one" })
  75. @Html.TextBoxFor(m => m.n2, new { @class = "form-width onlyNum_one" })
  76. @Html.TextBoxFor(m => m.n3, new { @class = "form-width onlyNum_one" })
  77. @Html.TextBoxFor(m => m.n4, new { @class = "form-width onlyNum_one" })
  78. @Html.TextBoxFor(m => m.n5, new { @class = "form-width onlyNum_one" })
  79. </div>
  80. @Html.Label("(必填:在0-9取值)", new { @class = "col-sm-2 control-label", style = "color:red;text-align: left" })
  81. </div>
  82. <div class="form-group">
  83. @Html.Label("开奖日期", new { @class = "col-sm-2 control-label" })
  84. <div class="col-sm-2">
  85. <input id="date" name="date" type="text" class="easyui-datetimebox" style="height:31px;width:240px;">
  86. </div>
  87. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  88. </div>
  89. <div class="form-group">
  90. @Html.Label("投注金额", new { @class = "col-sm-2 control-label" })
  91. <div class="col-sm-2">
  92. @Html.TextBoxFor(model => model.tzmoney, new { @class = "form-control" })
  93. </div>
  94. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  95. </div>
  96. <div class="form-group">
  97. @Html.Label("P5投注金额", new { @class = "col-sm-2 control-label" })
  98. <div class="col-sm-2">
  99. @Html.TextBoxFor(model => model.p5_tzmoney, new { @class = "form-control" })
  100. </div>
  101. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  102. </div>
  103. <div class="form-group">
  104. @Html.Label("排三直选注数", new { @class = "col-sm-2 control-label" })
  105. <input class="col-sm-1 text-box single-line" id="dj1" name="dj1" type="hidden" value="排三直选注数">
  106. <div class="col-sm-1">
  107. <input class="col-sm-1 text-box single-line" id="djnum1" name="djnum1" type="number" value="@(Model.listp3==null?"0":Model.listp3[0].wincount)">
  108. </div>
  109. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  110. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  111. <div class="col-sm-1">
  112. <input class="col-sm-1 text-box single-line" id="jj1" name="jj1" type="number" value="@(Model.listp3==null?"1040":Model.listp3[0].winmoney)">
  113. </div>
  114. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  115. </div>
  116. <div class="form-group">
  117. @Html.Label("排三组三注数", new { @class = "col-sm-2 control-label" })
  118. <input class="col-sm-1 text-box single-line" id="dj2" name="dj2" type="hidden" value="排三组三注数">
  119. <div class="col-sm-1">
  120. <input class="col-sm-1 text-box single-line" id="djnum2" name="djnum2" type="number" value="@(Model.listp3==null?"0":Model.listp3[1].wincount)">
  121. </div>
  122. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  123. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  124. <div class="col-sm-1">
  125. <input class="col-sm-1 text-box single-line" id="jj2" name="jj2" type="number" value="@(Model.listp3==null?"346":Model.listp3[1].winmoney)">
  126. </div>
  127. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  128. </div>
  129. <div class="form-group">
  130. @Html.Label("排三组六注数", new { @class = "col-sm-2 control-label" })
  131. <input class="col-sm-1 text-box single-line" id="dj3" name="dj3" type="hidden" value="排三组六注数">
  132. <div class="col-sm-1">
  133. <input class="col-sm-1 text-box single-line" id="djnum3" name="djnum3" type="number" value="@(Model.listp3==null?"0":Model.listp3[2].wincount)">
  134. </div>
  135. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  136. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  137. <div class="col-sm-1">
  138. <input class="col-sm-1 text-box single-line" id="jj3" name="jj3" type="number" value="@(Model.listp3==null?"173":Model.listp3[2].winmoney)">
  139. </div>
  140. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  141. </div>
  142. <div class="form-group">
  143. @Html.Label("排五直选注数", new { @class = "col-sm-2 control-label" })
  144. <input class="col-sm-1 text-box single-line" id="dj4" name="dj4" type="hidden" value="排五直选注数">
  145. <div class="col-sm-1">
  146. <input class="col-sm-1 text-box single-line" id="djnum4" name="djnum4" type="number" value="@(Model.listp5==null?"0":Model.listp5[0].wincount)">
  147. </div>
  148. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  149. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  150. <div class="col-sm-1">
  151. <input class="col-sm-1 text-box single-line" id="jj4" name="jj4" type="number" value="@(Model.listp5==null?"100000":Model.listp5[0].winmoney)">
  152. </div>
  153. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  154. </div>
  155. <div class="form-group">
  156. <div class="col-sm-8" style="text-align:center">
  157. <a class="btn btn-info" href="@Url.Action("Index")"><i class="fa fa-list"></i>返回列表</a>
  158. <button class="btn btn-success" type="submit" style="margin-left:30px; "><i class="fa fa-check"></i>保存</button>
  159. </div>
  160. </div>
  161. }
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <script type="text/javascript">
  167. $().ready(function () {
  168. var icon = "<i class='fa fa-times-circle'></i> ";
  169. // 在键盘按下并释放及提交后验证提交表单
  170. $("#signupForm").validate({
  171. submitHandler: function () {
  172. formResult("signupForm", true, null, null, "/Tcp3Num/index");
  173. },
  174. });
  175. $('#date').datetimebox('setValue', '@(Model.date)');
  176. });
  177. function funcall() {
  178. //var checked = $("#chkContinueEdit").is(':checked');
  179. //var isAdd = $("#chkContinueEdit").attr("data-isadd");
  180. //if (checked && isAdd == 1) {
  181. // clear();
  182. //}
  183. //else {
  184. location.href = "/Tcp3Num/index";
  185. //}
  186. }
  187. function clear() {
  188. //$("#Name").val("");
  189. }
  190. </script>