12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- // 修改猪舍档案
- function editZsjk(id, from) {
- huimv.loadPage('zsdaRight', 'editZsjk.htm', {
- "id" : id,
- "from" : from
- });
- }
- /**
- * 删除监控档案
- * @param id
- * @param from
- * @param numOfExistLq
- */
- function disableZsjk(id, from) {
- Dialogs.alert("确定作废当前监控档案?", {
- title : '提示信息',
- width : 250,
- height : 80,
- top : 150,
- button : {
- ok : ['确定',function(){
- this.close();
- huimv.showProcessModel('处理数据中');
-
- jQuery.ajax({
- url : 'disableZsjk.htm',
- dataType : 'json',
- type : 'post',
- cache : false,
- data : {"id" : id},
- success : function(data) {
- huimv.hideProcessModel();
- if (data.returnCode > 0) {
- if (from == 'list') {
- huimv.reloadGrid('zsjkGrid');
- } else if (from == 'view') {
- loadZsjkList();
- }
- } else {
- Dialogs.alert("传入参数有误!", {
- width : 300,
- height : 50
- });
- }
- },
- error : function(data) {
- huimv.showError(data.responseText);
- }
- });
- }],
- cancel : ['取消',function(){
- this.close();
- }]
- }
- });
- }
- $("#displayPassword").click(function() {
- if ($("#displayPassword").val() == "显示密码") {
- document.getElementById("password").setAttribute("type", "text");
- $("#displayPassword").val("隐藏密码");
- } else {
- document.getElementById("password").setAttribute("type", "password");
- $("#displayPassword").val("显示密码");
- }
- });
|