2 次代码提交 1d9c4d4f57 ... a87f492ee1

作者 SHA1 备注 提交日期
  wanyong a87f492ee1 Merge branch 'master' of http://47.92.104.23:3000/project/hongtaiyang 5 月之前
  wanyong 2a67db3af9 wanyong:修改实体和功能 5 月之前

+ 150 - 0
addon/customer/web/js/project/projectChangeEdit.js

@@ -0,0 +1,150 @@
+/**
+ * 项目变更
+ */
+shr.defineClass("shr.project.projectChangeEdit",shr.framework.Edit,{
+	initalizeDOM : function() {
+		shr.project.projectChangeEdit.superClass.initalizeDOM.call(this);
+		var _self = this;
+
+		$("#changeProject").shrPromptBox("option", {
+		    onchange: function(e, value) {
+		        if (!value ||!value.current) {
+		            return;
+		        }
+
+		        if (value.current.projectName) {
+		            $("#oriProName").shrTextField("setValue", value.current.projectName);
+		        }
+
+		        if (value.current.number) {
+		            $("#oriProCode").shrTextField("setValue", value.current.number);
+		        }
+
+		        if (value.current.expectedStartTime) {
+		            document.getElementById("oriPlanStartDate").value = value.current.expectedStartTime
+		        }
+
+		        if (value.current.expectedEndTime) {
+		        	document.getElementById("oriPlanEndDate").value = value.current.expectedEndTime;
+		        }
+
+		        if (value.current.totalPersonDays) {
+		            console.log(value.current.totalPersonDays+"项目总人天");
+		            // var totalPersonDays = parseFloat(value.current.totalPersonDays);
+		            $("#oriManDays").shrTextField("setValue", value.current.totalPersonDays);
+
+
+		        }
+
+		        if (value.current.costAmount) {
+		        	
+		            $("#oriManDaysCost").shrTextField("setValue", value.current.costAmount);
+
+		        }
+		        // 根据实际业务需求,决定是否取消下面这行的注释来调用相应函数
+		        // that.getPersonNum(value.current.id);
+		    }
+		});
+
+	},
+
+	/**
+	 * 审核
+	 */
+	auditAction : function(){
+		var that = this;
+		shr.showConfirm('是否现在审核?', function() {
+			top.Messenger().hideAll();
+			that.remoteCall({
+				method : "auditPorject",
+				param : {
+					billId : that.billId
+				},
+				success : function(data) {
+					  // 直接执行成功后的操作,不进行数据判断
+                parent.location.reload();
+                shr.showSuccess({
+                    message: "审核成功!"
+                });
+                $.block.hide();
+				}
+			});
+		});
+	},
+
+
+	// /**
+	//  * 提交
+	//  */
+	// submitAction : function(){
+	// 	var that = this;
+	// 	shr.showConfirm('是否现在提交?', function() {
+	// 		top.Messenger().hideAll();
+	// 		that.remoteCall({
+	// 			method : "submitAction",
+	// 			param : {
+	// 				billId : that.billId
+	// 			},
+	// 			success : function(data) {
+					
+	// 				  // 直接执行成功后的操作,不进行数据判断
+ //                       parent.location.reload();
+ //                       shr.showSuccess({
+ //                           message: "提交成功!"
+ //                        });
+ //                        $.block.hide();
+	// 			}
+	// 		});
+	// 	});
+	// },
+	
+});
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+	

+ 61 - 0
addon/customer/web/js/project/projectChangeList.js

@@ -0,0 +1,61 @@
+/**
+ * 项目变更-列表
+ */
+shr.defineClass("shr.project.projectChangeList",shr.framework.List,{
+	initalizeDOM : function() {
+		shr.project.projectChangeList.superClass.initalizeDOM.call(this);
+		var _self = this;
+	},
+	
+    /**
+	 * 审核
+	 */
+	auditAction : function(){
+		var that = this;
+		var billIds = $("#grid").jqGrid("getSelectedRows");
+		if (billIds == undefined || billIds.length == 0 || (billIds && billIds.length == 1 && billIds[0] == "")) {
+			shr.showWarning({
+				message : "请先选中一行数据!",
+				hideAfter : 5
+			})
+			return;
+		} else {
+		
+			shr.showConfirm('确认审核项目?', function() {
+				top.Messenger().hideAll();
+				that.doRemoteWithBatchAction({
+					method : "auditPorject",
+					billId : billIds.toString()
+				});
+			});
+		}
+	},
+
+ //    /**
+	//  * 提交
+	//  */
+	// submitAction : function(){
+	// 	var that = this;
+	// 	var billIds = $("#grid").jqGrid("getSelectedRows");
+	// 	if (billIds == undefined || billIds.length == 0 || (billIds && billIds.length == 1 && billIds[0] == "")) {
+	// 		shr.showWarning({
+	// 			message : "请先选中一行数据!",
+	// 			hideAfter : 5
+	// 		})
+	// 		return;
+	// 	} else {
+		
+	// 		shr.showConfirm('确认提交项目?', function() {
+	// 			top.Messenger().hideAll();
+	// 			that.doRemoteWithBatchAction({
+	// 				method : "submitAction",
+	// 				billId : billIds.toString()
+	// 			});
+	// 		});
+	// 	}
+	// },
+});
+	
+
+	
+

文件差异内容过多而无法显示
+ 0 - 171
metadata/com/kingdee/eas/hr/project/client/ProjectChangeEditUI.ui


部分文件因为文件数量过多而无法显示