Edit.cshtml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. @model CP.Admin.TcdltInfoModel
  2. @{
  3. Layout = null;
  4. Page.Title = "编辑大乐透开奖信息";
  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. </style>
  17. <script src="~/Static/custom/jquery.min.js"></script>
  18. <script src="~/Static/custom/jquery.easyui.min.js"></script>
  19. <script src="~/Static/custom/easyui-lang-zh_CN.js"></script>
  20. <link href="~/Static/custom/uimaker/easyui.css" rel="stylesheet" />
  21. <link href="~/Static/custom/uimaker/icon.css" rel="stylesheet" />
  22. <script src="~/Static/js/bootstrap.min.js"></script>
  23. <script src="~/static/js/jquery.form.js"></script>
  24. <script src="~/Static/js/validate/jquery.validate.min.js"></script>
  25. <script src="~/Static/js/validate/messages_zh.min.js"></script>
  26. <script src="~/Static/js/serializeObj.js"></script>
  27. <script src="~/Static/js/common.js?c=1"></script>
  28. <script src="~/Static/js/DateTimeOverFlowFormat.js"></script>
  29. <script src="~/Static/layer/layer.min.js"></script>
  30. <div class="row">
  31. <div class="col-sm-12">
  32. <div class="ibox float-e-margins">
  33. <div class="ibox-title">
  34. <h5>@Html.Raw(Page.Title)</h5>
  35. </div>
  36. <div class="ibox-content">
  37. @using (Html.BeginForm("Edit", "TcdltNum", FormMethod.Post, new { @id = "signupForm", @class = "form-horizontal" }))
  38. {
  39. @Html.AntiForgeryToken()
  40. @Html.ValidationSummary(true)
  41. @Html.HiddenFor(model => model.id);
  42. <div class="form-group">
  43. @Html.Label("期号", new { @class = "col-sm-2 control-label" })
  44. <div class="col-sm-2">
  45. @Html.TextBoxFor(model => model.qi, new { @class = "form-control" })
  46. </div>
  47. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left" })
  48. </div>
  49. <div class="form-group">
  50. @Html.Label("开机号", new { @class = "col-sm-2 control-label" })
  51. <div class="col-sm-4">
  52. <input class="form-width text-box single-line onlyNum_two_35" name="kjihlist" type="text" value="@(Model.kjih==null?"0":Model.kjih.Split(',', '+')[0])">
  53. <input class="form-width text-box single-line onlyNum_two_35" name="kjihlist" type="text" value="@(Model.kjih==null?"0":Model.kjih.Split(',', '+')[1])">
  54. <input class="form-width text-box single-line onlyNum_two_35" name="kjihlist" type="text" value="@(Model.kjih==null?"0":Model.kjih.Split(',', '+')[2])">
  55. <input class="form-width text-box single-line onlyNum_two_35" name="kjihlist" type="text" value="@(Model.kjih==null?"0":Model.kjih.Split(',', '+')[3])">
  56. <input class="form-width text-box single-line onlyNum_two_35" name="kjihlist" type="text" value="@(Model.kjih==null?"0":Model.kjih.Split(',', '+')[4])"> +
  57. <input class="form-width text-box single-line onlyNum_two_12" name="kjihlist" type="text" value="@(Model.kjih==null?"0":Model.kjih.Split(',', '+')[5])">
  58. <input class="form-width text-box single-line onlyNum_two_12" name="kjihlist" type="text" value="@(Model.kjih==null?"0":Model.kjih.Split(',', '+')[6])">
  59. </div>
  60. @Html.Label("(必填:在01-35取值)", 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-4">
  65. @Html.TextBoxFor(m => m.n1, new { @class = "form-width onlyNum_two_35" })
  66. @Html.TextBoxFor(m => m.n2, new { @class = "form-width onlyNum_two_35" })
  67. @Html.TextBoxFor(m => m.n3, new { @class = "form-width onlyNum_two_35" })
  68. @Html.TextBoxFor(m => m.n4, new { @class = "form-width onlyNum_two_35" })
  69. @Html.TextBoxFor(m => m.n5, new { @class = "form-width onlyNum_two_35" }) +
  70. @Html.TextBoxFor(m => m.n6, new { @class = "form-width onlyNum_two_12" })
  71. @Html.TextBoxFor(m => m.n7, new { @class = "form-width onlyNum_two_12" })
  72. </div>
  73. @Html.Label("(必填:在01-35取值)", new { @class = "col-sm-2 control-label", style = "color:red;text-align: left" })
  74. </div>
  75. <div class="form-group">
  76. @Html.Label("开奖日期", new { @class = "col-sm-2 control-label" })
  77. <div class="col-sm-2">
  78. <input id="date" name="date" type="text" class="easyui-datetimebox" style="height:31px;width:240px;">
  79. </div>
  80. @Html.Label("(必填)", new { @class = "col-sm-1 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. @Html.TextBoxFor(model => model.tzmoney, new { @class = "form-control" })
  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.nextmoney, 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("一等奖注数", new { @class = "col-sm-2 control-label" })
  98. <input class="col-sm-1 text-box single-line" id="dj1" name="dj1" type="hidden" value="一等奖">
  99. <div class="col-sm-1">
  100. <input class="col-sm-1 text-box single-line" id="djnum1" name="djnum1" type="number" value="@(Model.list==null?"0":Model.list[0].wincount)">
  101. </div>
  102. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  103. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  104. <div class="col-sm-1">
  105. <input class="col-sm-1 text-box single-line" id="jj1" name="jj1" type="number" value="@(Model.list==null?"0":Model.list[0].winmoney)">
  106. </div>
  107. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  108. </div>
  109. <div class="form-group">
  110. @Html.Label("一等奖追加注数", new { @class = "col-sm-2 control-label" })
  111. <input class="col-sm-1 text-box single-line" id="zj1" name="zj1" type="hidden" value="一等奖追加">
  112. <div class="col-sm-1">
  113. <input class="col-sm-1 text-box single-line" id="zjnum1" name="zjnum1" type="number" value="@(Model.list==null?"0":Model.list[1].wincount)">
  114. </div>
  115. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  116. @Html.Label("追加奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  117. <div class="col-sm-1">
  118. <input class="col-sm-1 text-box single-line" id="zjjj1" name="zjjj1" type="number" value="@(Model.list==null?"0":Model.list[1].winmoney)">
  119. </div>
  120. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  121. </div>
  122. <div class="form-group">
  123. @Html.Label("二等奖注数", new { @class = "col-sm-2 control-label" })
  124. <input class="col-sm-1 text-box single-line" id="dj2" name="dj2" type="hidden" value="二等奖">
  125. <div class="col-sm-1">
  126. <input class="col-sm-1 text-box single-line" id="djnum2" name="djnum2" type="number" value="@(Model.list==null?"0":Model.list[2].wincount)">
  127. </div>
  128. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  129. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  130. <div class="col-sm-1">
  131. <input class="col-sm-1 text-box single-line" id="jj2" name="jj2" type="number" value="@(Model.list==null?"0":Model.list[2].winmoney)">
  132. </div>
  133. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  134. </div>
  135. <div class="form-group">
  136. @Html.Label("二等奖追加注数", new { @class = "col-sm-2 control-label" })
  137. <input class="col-sm-1 text-box single-line" id="zj2" name="zj2" type="hidden" value="二等奖追加">
  138. <div class="col-sm-1">
  139. <input class="col-sm-1 text-box single-line" id="zjnum2" name="zjnum2" type="number" value="@(Model.list==null?"0":Model.list[3].wincount)">
  140. </div>
  141. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  142. @Html.Label("追加奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  143. <div class="col-sm-1">
  144. <input class="col-sm-1 text-box single-line" id="zjjj2" name="zjjj2" type="number" value="@(Model.list==null?"0":Model.list[3].winmoney)">
  145. </div>
  146. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  147. </div>
  148. <div class="form-group">
  149. @Html.Label("三等奖注数", new { @class = "col-sm-2 control-label" })
  150. <input class="col-sm-1 text-box single-line" id="dj3" name="dj3" type="hidden" value="三等奖">
  151. <div class="col-sm-1">
  152. <input class="col-sm-1 text-box single-line" id="djnum3" name="djnum3" type="number" value="@(Model.list==null?"0":Model.list[4].wincount)">
  153. </div>
  154. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  155. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  156. <div class="col-sm-1">
  157. <input class="col-sm-1 text-box single-line" id="jj3" name="jj3" type="number" value="@(Model.list==null?"10000":Model.list[4].winmoney)">
  158. </div>
  159. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  160. </div>
  161. @*<div class="form-group">
  162. @Html.Label("三等奖追加注数", new { @class = "col-sm-2 control-label" })
  163. <input class="col-sm-1 text-box single-line" id="zj3" name="zj3" type="hidden" value="三等奖追加">
  164. <div class="col-sm-1">
  165. <input class="col-sm-1 text-box single-line" id="zjnum3" name="zjnum3" type="number" value="@(Model.list==null?"0":Model.list[8].wincount)">
  166. </div>
  167. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  168. @Html.Label("追加奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  169. <div class="col-sm-1">
  170. <input class="col-sm-1 text-box single-line" id="zjjj3" name="zjjj3" type="number" value="@(Model.list==null?"0":Model.list[8].winmoney)">
  171. </div>
  172. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  173. </div>*@
  174. <div class="form-group">
  175. @Html.Label("四等奖注数", new { @class = "col-sm-2 control-label" })
  176. <input class="col-sm-1 text-box single-line" id="dj4" name="dj4" type="hidden" value="四等奖">
  177. <div class="col-sm-1">
  178. <input class="col-sm-1 text-box single-line" id="djnum4" name="djnum4" type="number" value="@(Model.list==null?"0":Model.list[5].wincount)">
  179. </div>
  180. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  181. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  182. <div class="col-sm-1">
  183. <input class="col-sm-1 text-box single-line" id="jj4" name="jj4" type="number" value="@(Model.list==null?"3000":Model.list[5].winmoney)">
  184. </div>
  185. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  186. </div>
  187. @*<div class="form-group">
  188. @Html.Label("四等奖追加注数", new { @class = "col-sm-2 control-label" })
  189. <input class="col-sm-1 text-box single-line" id="zj4" name="zj4" type="hidden" value="四等奖追加">
  190. <div class="col-sm-1">
  191. <input class="col-sm-1 text-box single-line" id="zjnum4" name="zjnum4" type="number" value="@(Model.list==null?"0":Model.list[9].wincount)">
  192. </div>
  193. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  194. @Html.Label("追加奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  195. <div class="col-sm-1">
  196. <input class="col-sm-1 text-box single-line" id="zjjj4" name="zjjj4" type="number" value="@(Model.list==null?"0":Model.list[9].winmoney)">
  197. </div>
  198. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  199. </div>*@
  200. <div class="form-group">
  201. @Html.Label("五等奖注数", new { @class = "col-sm-2 control-label" })
  202. <input class="col-sm-1 text-box single-line" id="dj5" name="dj5" type="hidden" value="五等奖">
  203. <div class="col-sm-1">
  204. <input class="col-sm-1 text-box single-line" id="djnum5" name="djnum5" type="number" value="@(Model.list==null?"0":Model.list[6].wincount)">
  205. </div>
  206. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  207. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  208. <div class="col-sm-1">
  209. <input class="col-sm-1 text-box single-line" id="jj5" name="jj5" type="number" value="@(Model.list==null?"300":Model.list[6].winmoney)">
  210. </div>
  211. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  212. </div>
  213. @*<div class="form-group">
  214. @Html.Label("五等奖追加注数", new { @class = "col-sm-2 control-label" })
  215. <input class="col-sm-1 text-box single-line" id="zj5" name="zj5" type="hidden" value="五等奖追加">
  216. <div class="col-sm-1">
  217. <input class="col-sm-1 text-box single-line" id="zjnum5" name="zjnum5" type="number" value="@(Model.list==null?"0":Model.list[10].wincount)">
  218. </div>
  219. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  220. @Html.Label("追加奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  221. <div class="col-sm-1">
  222. <input class="col-sm-1 text-box single-line" id="zjjj5" name="zjjj5" type="number" value="@(Model.list==null?"0":Model.list[10].winmoney)">
  223. </div>
  224. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  225. </div>*@
  226. <div class="form-group">
  227. @Html.Label("六等奖注数", new { @class = "col-sm-2 control-label" })
  228. <input class="col-sm-1 text-box single-line" id="dj6" name="dj6" type="hidden" value="六等奖">
  229. <div class="col-sm-1">
  230. <input class="col-sm-1 text-box single-line" id="djnum6" name="djnum6" type="number" value="@(Model.list==null?"0":Model.list[7].wincount)">
  231. </div>
  232. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  233. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  234. <div class="col-sm-1">
  235. <input class="col-sm-1 text-box single-line" id="zjjj6" name="jj6" type="number" value="@(Model.list==null?"200":Model.list[7].winmoney)">
  236. </div>
  237. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  238. </div>
  239. <div class="form-group">
  240. @Html.Label("七等奖注数", new { @class = "col-sm-2 control-label" })
  241. <input class="col-sm-1 text-box single-line" id="zj3" name="zj3" type="hidden" value="七等奖">
  242. <div class="col-sm-1">
  243. <input class="col-sm-1 text-box single-line" id="zjnum3" name="zjnum3" type="number" value="@(Model.list==null?"0":Model.list[8].wincount)">
  244. </div>
  245. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  246. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  247. <div class="col-sm-1">
  248. <input class="col-sm-1 text-box single-line" id="zjjj3" name="zjjj3" type="number" value="@(Model.list==null?"100":Model.list[8].winmoney)">
  249. </div>
  250. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  251. </div>
  252. <div class="form-group">
  253. @Html.Label("八等奖注数", new { @class = "col-sm-2 control-label" })
  254. <input class="col-sm-1 text-box single-line" id="zj4" name="zj4" type="hidden" value="八等奖">
  255. <div class="col-sm-1">
  256. <input class="col-sm-1 text-box single-line" id="zjnum4" name="zjnum4" type="number" value="@(Model.list==null?"0":Model.list[9].wincount)">
  257. </div>
  258. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  259. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  260. <div class="col-sm-1">
  261. <input class="col-sm-1 text-box single-line" id="zjjj4" name="zjjj4" type="number" value="@(Model.list==null?"15":Model.list[9].winmoney)">
  262. </div>
  263. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  264. </div>
  265. <div class="form-group">
  266. @Html.Label("九等奖注数", new { @class = "col-sm-2 control-label" })
  267. <input class="col-sm-1 text-box single-line" id="zj5" name="zj5" type="hidden" value="九等奖">
  268. <div class="col-sm-1">
  269. <input class="col-sm-1 text-box single-line" id="zjnum5" name="zjnum5" type="number" value="@(Model.list==null?"0":Model.list[10].wincount)">
  270. </div>
  271. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  272. @Html.Label("奖金", new { @class = "col-sm-1 control-label", style = "width:100px;" })
  273. <div class="col-sm-1">
  274. <input class="col-sm-1 text-box single-line" id="zjjj5" name="zjjj5" type="number" value="@(Model.list==null?"5":Model.list[10].winmoney)">
  275. </div>
  276. @Html.Label("(必填)", new { @class = "col-sm-1 control-label", style = "color:red;text-align: left;width:45px" })
  277. </div>
  278. <div class="form-group">
  279. <div class="col-sm-8" style="text-align:center">
  280. <a class="btn btn-info" href="@Url.Action("Index")"><i class="fa fa-list"></i>返回列表</a>
  281. <button class="btn btn-success" type="submit" style="margin-left:30px; "><i class="fa fa-check"></i>保存</button>
  282. </div>
  283. </div>
  284. }
  285. </div>
  286. </div>
  287. </div>
  288. </div>
  289. <script type="text/javascript">
  290. $().ready(function () {
  291. var icon = "<i class='fa fa-times-circle'></i> ";
  292. // 在键盘按下并释放及提交后验证提交表单
  293. $("#signupForm").validate({
  294. submitHandler: function () {
  295. formResult("signupForm", true, null, null, "/TcdltNum/index");
  296. },
  297. });
  298. $('#date').datetimebox('setValue', '@(Model.date)');
  299. });
  300. function funcall() {
  301. //var checked = $("#chkContinueEdit").is(':checked');
  302. //var isAdd = $("#chkContinueEdit").attr("data-isadd");
  303. //if (checked && isAdd == 1) {
  304. // clear();
  305. //}
  306. //else {
  307. location.href = "/TcdltNum/index";
  308. //}
  309. }
  310. function clear() {
  311. //$("#Name").val("");
  312. }
  313. </script>