|
@@ -209,6 +209,135 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ }else{
|
|
|
+ if(null != projectStartDate && undefined != projectStartDate && '' != projectStartDate){
|
|
|
+ if(startDate.getTime() > projectStartDate.getTime()){
|
|
|
+ parent.layer.msg("工作结束日期不得大于工作计划最早结束时间!", {icon: 5});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(null != projectEndDate && undefined != projectEndDate && '' != projectEndDate){
|
|
|
+ if(endingDate.getTime() < projectEndDate.getTime()){
|
|
|
+ parent.layer.msg("工作结束日期不得小于工作计划最晚开始时间!", {icon: 5});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var ziXunShouRu = $("#ziXunShouRu").val();
|
|
|
+ if(null == ziXunShouRu || undefined == ziXunShouRu || '' == ziXunShouRu || parseFloat(ziXunShouRu)<=0){
|
|
|
+ top.layer.msg("造价咨询营业收入必须大于0!", {icon: 0});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (leng1<=1){
|
|
|
+ top.layer.msg("请添加咨询员信息!", {icon: 0});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ for(var i=0; i<leng; i++) {
|
|
|
+ var numberStr = $("#file_attachment tr").eq(i).find("td:first").html();
|
|
|
+ var second = $("#file_attachment tr").eq(i).find("td:eq(1)").html();
|
|
|
+ var fileFlag = $("#file_attachment tr").eq(i).find("td:last").html();
|
|
|
+ if(second == 1){
|
|
|
+ if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
+ if (fileFlag==1){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ top.layer.msg("请上传成果文件!", {icon: 0});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ <%--$.ajax({--%>
|
|
|
+ <%-- type: 'post',--%>
|
|
|
+ <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
+ <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
+ <%-- dataType: "json",--%>
|
|
|
+ <%-- async: false--%>
|
|
|
+ <%--}).success(function (result) {--%>
|
|
|
+ <%-- if(result == 0){--%>
|
|
|
+ <%-- boolFlag = false;--%>
|
|
|
+ <%-- top.layer.msg("请上传成果文件!", {icon: 0});--%>
|
|
|
+ <%-- return false;--%>
|
|
|
+ <%-- }--%>
|
|
|
+ <%--}).error(function () {--%>
|
|
|
+ <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
+ <%--});--%>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(boolFlag){
|
|
|
+ var gistdata = $("#file_gistdata tr").length;
|
|
|
+ for(var i=0; i<gistdata; i++) {
|
|
|
+ var numberStr = $("#file_gistdata tr").eq(i).find("td:first").html();
|
|
|
+ var second = $("#file_gistdata tr").eq(i).find("td:eq(1)").html();
|
|
|
+ var fileFlag = $("#file_gistdata tr").eq(i).find("td:last").html();
|
|
|
+ if(second == 1){
|
|
|
+ if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
+ if (fileFlag==1){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ top.layer.msg("请上传依据性文件!", {icon: 0});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ <%--$.ajax({--%>
|
|
|
+ <%-- type: 'post',--%>
|
|
|
+ <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
+ <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
+ <%-- dataType: "json",--%>
|
|
|
+ <%-- async: false--%>
|
|
|
+ <%--}).success(function (result) {--%>
|
|
|
+ <%-- if(result == 0){--%>
|
|
|
+ <%-- boolFlag = false;--%>
|
|
|
+ <%-- top.layer.msg("请上传依据性文件!", {icon: 0});--%>
|
|
|
+ <%-- return false;--%>
|
|
|
+ <%-- }--%>
|
|
|
+ <%--}).error(function () {--%>
|
|
|
+ <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
+ <%--});--%>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(boolFlag){
|
|
|
+ var other = $("#file_other tr").length;
|
|
|
+ for(var i=0; i<other; i++) {
|
|
|
+ var numberStr = $("#file_other tr").eq(i).find("td:first").html();
|
|
|
+ var second = $("#file_other tr").eq(i).find("td:eq(1)").html(); var fileFlag = $("#file_gistdata tr").eq(i).find("td:last").html();
|
|
|
+ var fileFlag = $("#file_other tr").eq(i).find("td:last").html();
|
|
|
+ if(second == 1){
|
|
|
+ if(numberStr != undefined && numberStr !=null && numberStr !=''){
|
|
|
+ if (fileFlag==1){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ top.layer.msg("请上传其它文件!", {icon: 0});
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ <%--$.ajax({--%>
|
|
|
+ <%-- type: 'post',--%>
|
|
|
+ <%-- url:'${ctx}/projectAccessoryRelation/projectAccessoryRelation/getAttachmentCount',--%>
|
|
|
+ <%-- data: {"attachmentId":numberStr,"projectId":projectId},--%>
|
|
|
+ <%-- dataType: "json",--%>
|
|
|
+ <%-- async: false--%>
|
|
|
+ <%--}).success(function (result) {--%>
|
|
|
+ <%-- if(result == 0){--%>
|
|
|
+ <%-- boolFlag = false;--%>
|
|
|
+ <%-- top.layer.msg("请上传其他文件!", {icon: 0});--%>
|
|
|
+ <%-- return false;--%>
|
|
|
+ <%-- }--%>
|
|
|
+ <%--}).error(function () {--%>
|
|
|
+ <%-- top.layer.msg("文件载入失败!");--%>
|
|
|
+ <%--});--%>
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(boolFlag){
|
|
|
+ if(obj == 1){
|
|
|
+ $("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectMessageNew/reportAudit");
|
|
|
+ }else{
|
|
|
+ $("#inputForm").attr("action","${ctx}/ruralProject/ruralCostProjectMessageNew/reportAudit");
|
|
|
+ }
|
|
|
+ $("#inputForm").submit();
|
|
|
+ top.layer.closeAll();//关闭对话框。
|
|
|
+ return true;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|