Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
098ba078
Commit
098ba078
authored
Jul 11, 2019
by
frank.xa.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed page issue -- frank
parent
d861941a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
39 deletions
+34
-39
OrganizationHKServiceImpl.java
.../taxtech/atms/service/impl/OrganizationHKServiceImpl.java
+8
-8
OrganizationHKDto.java
.../pwc/taxtech/atms/organization/dpo/OrganizationHKDto.java
+4
-0
edit-organization-director-modal.ctrl.js
...n-director-modal/edit-organization-director-modal.ctrl.js
+6
-2
edit-organization-modal.ctrl.js
...s/edit-organization-modal/edit-organization-modal.ctrl.js
+16
-29
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/OrganizationHKServiceImpl.java
View file @
098ba078
...
...
@@ -279,15 +279,15 @@ public class OrganizationHKServiceImpl {
private
OperationResultDto
checkExist
(
OrganizationHKDto
orgDto
)
{
Assert
.
notNull
(
orgDto
,
"orgDto null point error"
);
OrganizationHK
queryRoot
=
null
;
OrganizationHKExample
example
=
new
OrganizationHKExample
();
OrganizationHKExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andCodeEqualTo
(
orgDto
.
getCode
());
if
(
orgDto
.
getId
()
!=
null
)
{
criteria
.
andIdNotEqualTo
(
orgDto
.
getId
());
}
queryRoot
=
organizationHKMapper
.
selectByExample
(
example
).
stream
().
findFirst
().
orElse
(
null
);
OrganizationHKExample
example
=
new
OrganizationHKExample
();
OrganizationHKExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andCodeEqualTo
(
orgDto
.
getCode
());
if
(
orgDto
.
getId
()
!=
null
)
{
criteria
.
andIdNotEqualTo
(
orgDto
.
getId
());
}
queryRoot
=
organizationHKMapper
.
selectByExample
(
example
).
stream
().
findFirst
().
orElse
(
null
);
if
(
queryRoot
!=
null
&&
orgDto
.
getId
()
!=
null
&&
orgDto
.
getId
()
==
0
)
{
if
(
queryRoot
!=
null
&&
orgDto
.
getId
()
!=
null
&&
orgDto
.
getId
()
==
0
)
{
return
new
OperationResultDto
(
false
,
OrganizationMessage
.
ClientCodeIsExist
);
}
OperationResultDto
operationResult
=
checkOrgNameOrOrgCode
(
orgDto
);
...
...
atms-dao/src/main/java/pwc/taxtech/atms/organization/dpo/OrganizationHKDto.java
View file @
098ba078
package
pwc
.
taxtech
.
atms
.
organization
.
dpo
;
import
com.fasterxml.jackson.databind.annotation.JsonSerialize
;
import
com.fasterxml.jackson.databind.ser.std.ToStringSerializer
;
import
java.util.List
;
public
class
OrganizationHKDto
{
@JsonSerialize
(
using
=
ToStringSerializer
.
class
)
private
Long
id
;
private
String
name
;
private
String
code
;
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-director-modal/edit-organization-director-modal.ctrl.js
View file @
098ba078
...
...
@@ -66,7 +66,9 @@ commonModule.controller('editOrganizationDirectorModalController', ['$scope', '$
},
type
:
"date"
,
value
:
now
,
width
:
300
width
:
300
,
displayFormat
:
constant
.
date
.
dateFormatyyyyMMdd
,
dateSerializationFormat
:
constant
.
date
.
dateFormatyyyyMMdd
},
dateOfResignationOption
:
{
bindingOptions
:
{
...
...
@@ -74,7 +76,9 @@ commonModule.controller('editOrganizationDirectorModalController', ['$scope', '$
},
type
:
"date"
,
value
:
now
,
width
:
300
width
:
300
,
displayFormat
:
constant
.
date
.
dateFormatyyyyMMdd
,
dateSerializationFormat
:
constant
.
date
.
dateFormatyyyyMMdd
},
executiveOption
:
{
bindingOptions
:
{
...
...
atms-web/src/main/webapp/app/common/controls/edit-organization-modal/edit-organization-modal.ctrl.js
View file @
098ba078
...
...
@@ -106,19 +106,19 @@
};
var
saveLocalOrg
=
function
()
{
var
hasSpecialChar
=
window
.
PWC
.
hasSpecialChar
(
$scope
.
editOrgModel
.
name
);
if
(
hasSpecialChar
)
{
$scope
.
editOrgModel
.
nameError
=
$translate
.
instant
(
'SpecialChar'
);
$scope
.
isShowBasic
=
true
;
return
false
;
}
//
var hasSpecialChar = window.PWC.hasSpecialChar($scope.editOrgModel.name);
//
if (hasSpecialChar) {
//
$scope.editOrgModel.nameError = $translate.instant('SpecialChar');
//
$scope.isShowBasic = true;
//
return false;
//
}
if
(
$scope
.
orgControlForm
.
$invalid
)
{
$scope
.
isShowBasic
=
true
;
return
;
}
else
{
$scope
.
isShowBasic
=
false
;
}
//
if ($scope.orgControlForm.$invalid) {
//
$scope.isShowBasic = true;
//
return;
//
} else {
//
$scope.isShowBasic = false;
//
}
var
editModel
=
$scope
.
editOrgModel
;
...
...
@@ -129,10 +129,8 @@
SweetAlert
.
warning
(
$translate
.
instant
(
orgId
.
resultMsg
));
return
;
}
$
(
selectedModel
).
modal
(
'hide'
);
$scope
.
modalManage
.
editOrgModal
.
close
();
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
refreshOrg
();
$scope
.
operateType
=
null
;
$scope
.
isUpdate
=
true
;
...
...
@@ -140,7 +138,6 @@
}
else
{
orgHKService
.
updateOrg
(
editModel
).
success
(
function
(
data
)
{
if
(
data
&&
!
data
.
result
)
{
//SweetAlert.info("Disable", orgId);
SweetAlert
.
warning
(
$translate
.
instant
(
data
.
resultMsg
));
return
;
}
...
...
@@ -157,8 +154,6 @@
// 加载机构
var
loadOrg
=
function
(
orgId
)
{
resetRegion
();
//清空组织机构,重新获取,达到刷新效果
$scope
.
editOrgModel
=
{
TypeLevel
:
1
...
...
@@ -182,16 +177,6 @@
$scope
.
serviceList
=
[];
$scope
.
OrgAccountRowIndex
=
1
;
});
if
(
$scope
.
isInternational
)
{
$
(
'.localRequired'
).
removeAttr
(
"required"
);
$
(
'.orgAreaRequired'
).
removeAttr
(
"required"
);
}
// set first active page is basic info
$
(
'#orgControlTab a:first'
).
tab
(
'show'
);
// $('#orgModalFooter').css('padding-left','139px');
$
(
selectedModel
).
modal
(
'show'
);
};
$scope
.
removeDisabled
=
function
()
{
...
...
@@ -732,7 +717,9 @@
value
:
'editOrgModel.dateOfIncorporation'
},
type
:
"date"
,
value
:
now
value
:
now
,
displayFormat
:
constant
.
date
.
dateFormatyyyyMMdd
,
dateSerializationFormat
:
constant
.
date
.
dateFormatyyyyMMdd
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment