Browse Source

git-svn-id: https://192.168.57.71/svn/jsgkj@1710 931142cf-59ea-a443-aa0e-51397b428577

ld_lixh 8 years ago
parent
commit
e6de17220e

+ 0 - 12
gkaqv2/trunk/modules/web/src/main/webapp/static/js/jyr/AddOrEditInfo.js

@@ -1,12 +0,0 @@
-/**
- * js
- */
-var zywxhwpm ='';
-/**
- * 初始化
- */
-jQuery(function($) {
-	// 初始化Grid
-
-});
-

+ 24 - 12
gkaqv2/trunk/modules/web/src/main/webapp/static/js/jyr/index.js

@@ -134,10 +134,12 @@ function getLookInfo (id) {
 				$("#jyrInfoform .easyui-datetimebox").datetimebox({ disabled: true });//禁用表单元素日期控件
 				$("#jyrInfoform").find("textarea").attr("disabled","true");//禁用表单元素select
 				$("#tab-tools").attr("hidden",true);
-				manageInfo(data);
+				manageInfo(data);//加载数据
+				//启用其他选项卡
 				$("#tt").tabs('enableTab',1);
 				$("#tt").tabs('enableTab',2);
 				$("#tt").tabs('enableTab',3);
+				//加载选项卡的数据
 				bw_initGrid(data[0].id);
 				ck_initGrid(data[0].id);
 				dc_initGrid(data[0].id);
@@ -280,14 +282,12 @@ function editInfo() {
 				showModelDialog("jyrwin", "编辑");
 				$("#jyrInfoform").form("reset");//重置表单数据
 				$("#tab-tools").removeAttr("hidden");
-				formQY();
-				manageInfo(data);
+				formQY();//启用from中的元素
+				manageInfo(data);//加载数据
+				//隐藏其他选项卡
 				$("#tt").tabs("disableTab",1);
 				$("#tt").tabs("disableTab",2);
 				$("#tt").tabs("disableTab",3);
-//				$("#myTab a:gt(0)").html("");
-//				$("#myTab a:gt(0)").removeAttr("href");
-//				$("#myTab a:gt(0)").prop("hidden",true);
 				
 			},
 			error: function (XMLHttpRequest, textStatus, errorThrown) {
@@ -400,27 +400,37 @@ function xzqhSelect() {
      }
  });
 }
-
+/**
+ * 启用from表单中的元素
+ */
 function formQY () {
 	$("#jyrInfoform").find("input").removeAttr("disabled");//禁用表单元素input
 	$("#jyrInfoform").find("select").removeAttr("disabled");//禁用表单元素select
 	$("#jyrInfoform .easyui-datetimebox").datetimebox({ disabled: false });//禁用表单元素日期控件
 	$("#jyrInfoform").find("textarea").removeAttr("disabled");//禁用表单元素select
 }
-
+/**
+ * 打印
+ */
 function printInfo () {
 	location.href = basePath + '/jyr/printJyrInfo';
 }
-
+/**
+ * 关闭模拟框
+ */
 function closeWin () {
 	 hideModelDialog("jyrwin");
 }
-
+/**
+ * 关闭模拟框
+ */
 function closeModelJyr() {
 	 $('#tt').tabs('select',0);
 	hideModelDialog("jyrwin");
 }
-
+/**
+ * 日期格式转换
+ */
 formatterDate = function (date) {
 	var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
 	var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"
@@ -430,7 +440,9 @@ formatterDate = function (date) {
 	var sec = date.getSeconds();
 	return date.getFullYear() + '-' + month + '-' + day+" "+hor+":"+min+":"+sec;
 };
-
+/**
+ * 日期格式转换
+ */
 formatterDateNotsfm = function (date) {
 	var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
 	var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"

+ 1 - 0
gkaqv2/trunk/modules/web/src/main/webapp/static/js/zyfzsq/whxx.js

@@ -67,6 +67,7 @@ function showWhxx() {
     var m = Math.random();
     var obj = {
         'id':Math.random(),
+        'name':'mbw',
         'qynbbh':'xxx'+m,
         'wxhwm':'yyy'+m
     };