Commit 47cfc2df authored by Mccoy Z Xia's avatar Mccoy Z Xia

calendar action 页面调整

parent bdd64e12
...@@ -148,7 +148,7 @@ public class CalendarActionServiceImpl extends BaseService implements ICalendarA ...@@ -148,7 +148,7 @@ public class CalendarActionServiceImpl extends BaseService implements ICalendarA
CalendarActionExample actionExample = new CalendarActionExample(); CalendarActionExample actionExample = new CalendarActionExample();
actionExample.createCriteria().andStatusEqualTo((byte) 1); actionExample.createCriteria().andStatusEqualTo((byte) 1);
List<CalendarAction> actionList = calendarActionMapper.selectByExample(null); List<CalendarAction> actionList = calendarActionMapper.selectByExample(actionExample);
List<CalendarActionDto> actionDtoList = new ArrayList<>(); List<CalendarActionDto> actionDtoList = new ArrayList<>();
actionList.forEach(p -> { actionList.forEach(p -> {
......
...@@ -349,7 +349,8 @@ public class CalendarServiceImpl extends BaseService implements ICalendarService ...@@ -349,7 +349,8 @@ public class CalendarServiceImpl extends BaseService implements ICalendarService
@Override @Override
public OperationResultDto getMaxConfigOrder() { public OperationResultDto getMaxConfigOrder() {
return new OperationResultDto(true, "", calendarExtMapper.getMaxConfigOrder() + 1); Integer index = calendarExtMapper.getMaxConfigOrder();
return new OperationResultDto(true, "", index != null ? index + 1 : 1);
} }
@Override @Override
......
...@@ -256,6 +256,7 @@ ...@@ -256,6 +256,7 @@
"TaxCalendarCofigHead":"税务日历设置", "TaxCalendarCofigHead":"税务日历设置",
"CalendarNumber":"日历编号", "CalendarNumber":"日历编号",
"Number":"编号", "Number":"编号",
"TaskName" : "名称",
"Company":"公司", "Company":"公司",
"CompanyName": "公司名称", "CompanyName": "公司名称",
"TaxEvent":"税务事项", "TaxEvent":"税务事项",
...@@ -331,6 +332,10 @@ ...@@ -331,6 +332,10 @@
"RelatedPerson": "相关人员", "RelatedPerson": "相关人员",
"ButtonConfirm": "确定",
"ButtonCancel": "取消",
"ButtonCreate": "新建",
"ButtonSave": "保存",
"~MustBeEndOneApp": "I Must be the End One, please!" "~MustBeEndOneApp": "I Must be the End One, please!"
} }
\ No newline at end of file
<div id="calendar-action"> <div id="calendar-action">
<div class="calendar-action-Head">{{'CalendarActionHead'|translate}}</div> <div class="calendar-action-Head">{{'CalendarActionHead'|translate}}</div>
<div ng-click="refreshAll()">Refresh</div>
<div class="calendar-action-container"> <div class="calendar-action-container">
<div id="data-grid-action"> <div id="data-grid-action">
<div> <div>
...@@ -14,7 +13,7 @@ ...@@ -14,7 +13,7 @@
<div id="editTaskType" ng-click="editTaskTypeList();">Edit</div> <div id="editTaskType" ng-click="editTaskTypeList();">Edit</div>
</th> </th>
<th colspan="9">Jurisdiction of Formation</th> <th colspan="9">Jurisdiction of Formation</th>
<th rowspan="3">Operation</th> <th rowspan="3" style="width: 120px;">Operation</th>
</tr> </tr>
<tr> <tr>
<th colspan="3">Hong Kong</th> <th colspan="3">Hong Kong</th>
...@@ -24,39 +23,43 @@ ...@@ -24,39 +23,43 @@
<tr> <tr>
<th>Valid</th> <th>Valid</th>
<th>Description</th> <th>Description</th>
<th>Logic</th> <th style="width: 150px;">Logic</th>
<th>valid</th> <th>valid</th>
<th>Description</th> <th>Description</th>
<th>Logic</th> <th style="width: 150px;">Logic</th>
<th>valid</th> <th>valid</th>
<th>Description</th> <th>Description</th>
<th>Logic</th> <th style="width: 150px;">Logic</th>
</tr> </tr>
</thead> </thead>
<tbody id="table-body"> <tbody id="table-body">
<tr ng-repeat="action in actionList"> <tr ng-repeat="action in actionList track by $index">
<td>{{action.name}}</td> <td>{{action.name}}</td>
<td>{{action.triggerId}}</td> <td>{{getTriggerName(action.triggerId)}}</td>
<td>{{action.taskTypeId}}</td> <td>{{getTaskTypeName(action.taskTypeId)}}</td>
<td>{{action.status}}</td>
<td>{{action.description}}</td> <td><div dx-check-box="{ value: {{action.jurisdictionDtoList[0].status == 1}}, readOnly:true}"/></td>
<td>{{action.jurisdictionDtoList[0].description}}</td>
<td> <td>
<span>{{action.logicNum}}</span> <div class="logic-num">{{action.jurisdictionDtoList[0].logicNum}}</div>
<span>{{action.logicUnitId}}</span> <div class="logic-unit">{{getLogicUnitName(action.jurisdictionDtoList[0].logicUnit)}}</div>
</td> </td>
<td>{{action.status}}</td>
<td>{{action.description}}</td> <td><div dx-check-box="{ value: {{action.jurisdictionDtoList[1].status == 1}}, readOnly:true}"/></td>
<td>{{action.jurisdictionDtoList[1].description}}</td>
<td> <td>
<span>{{action.logicNum}}</span> <div class="logic-num">{{action.jurisdictionDtoList[1].logicNum}}</div>
<span>{{action.logicUnitId}}</span> <div class="logic-unit">{{getLogicUnitName(action.jurisdictionDtoList[1].logicUnit)}}</div>
</td> </td>
<td>{{action.status}}</td>
<td>{{action.description}}</td> <td><div dx-check-box="{ value: {{action.jurisdictionDtoList[2].status == 1}}, readOnly:true}"/></td>
<td>{{action.jurisdictionDtoList[2].description}}</td>
<td> <td>
<span>{{action.logicNum}}</span> <div class="logic-num">{{action.jurisdictionDtoList[2].logicNum}}</div>
<span>{{action.logicUnitId}}</span> <div class="logic-unit">{{getLogicUnitName(action.jurisdictionDtoList[2].logicUnit)}}</div>
</td> </td>
<td>
<td class="operation-button">
<span ng-click="editAction(action, 'Show')">Detail</span> <span ng-click="editAction(action, 'Show')">Detail</span>
<span ng-click="editAction(action, 'Edit')">Edit</span> <span ng-click="editAction(action, 'Edit')">Edit</span>
<span ng-click="deleteAction(action)">Delete</span> <span ng-click="deleteAction(action)">Delete</span>
...@@ -136,7 +139,7 @@ ...@@ -136,7 +139,7 @@
<div class="modal-header"> <div class="modal-header">
<span class="close" data-dismiss="modal" aria-hidden="true" ng-click="hideEditActionPanel()">&times;</span> <span class="close" data-dismiss="modal" aria-hidden="true" ng-click="hideEditActionPanel()">&times;</span>
<div class="long-title"><h3>Action Details</h3></div> <div class="long-title"><h3>{{title}}</h3></div>
</div> </div>
<div class="modal-body"> <div class="modal-body">
...@@ -148,8 +151,8 @@ ...@@ -148,8 +151,8 @@
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button ng-click="hideEditActionPanel();" class="btn btn-default btn-gray">{{'Cancel' | translate}}</button> <button ng-click="hideEditActionPanel();" class="btn btn-default btn-gray">{{cancelActionText}}</button>
<button ng-click="saveAction();" class="btn btn-default btn-red">{{'NewTaxCalendar' | translate}}</button> <button ng-show="!actionReadOnly" ng-click="saveAction();" class="btn btn-default btn-red">{{saveActionText}}</button>
</div> </div>
</script> </script>
......
...@@ -44,6 +44,24 @@ ...@@ -44,6 +44,24 @@
text-align: center; text-align: center;
} }
#table-body .dx-checkbox-icon {
background: #bbb;
}
#table-body .logic-num {
border: 1px solid #bbb;
width: 40px;
border-radius: 4px;
display: inline-block;
}
#table-body .logic-unit {
border: 1px solid #bbb;
width: 95px;
border-radius: 4px;
display: inline-block;
}
#editTaskType { #editTaskType {
color: red; color: red;
font-size: smaller; font-size: smaller;
...@@ -51,8 +69,12 @@ ...@@ -51,8 +69,12 @@
outline: none; outline: none;
} }
.operation-button span {
color: red;
outline: none;
}
#edit-task-type-pop, #edit-task-type, #edit-action-type-pop { #edit-task-type-pop, #edit-task-type {
.form-title { .form-title {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
...@@ -86,7 +108,12 @@ ...@@ -86,7 +108,12 @@
} }
} }
#edit-action-type-pop { #edit-action-pop {
.modal-header {
height: 75px;
}
#form-container { #form-container {
margin: 10px; margin: 10px;
} }
...@@ -126,4 +153,4 @@ ...@@ -126,4 +153,4 @@
} }
} }
} }
\ No newline at end of file
...@@ -9,7 +9,12 @@ ...@@ -9,7 +9,12 @@
//设置页面标题-->查看,新建,编辑日历设置 //设置页面标题-->查看,新建,编辑日历设置
$scope.PageTitle = ($scope.calendarConfigId ? ($scope.isReadOnly ? $translate.instant('View') : $translate.instant('Edit')) : $translate.instant('NewTaxCalendar')) + $translate.instant('TaxCalendarSet'); $scope.PageTitle = ($scope.calendarConfigId ? ($scope.isReadOnly ? $translate.instant('View') : $translate.instant('Edit')) : $translate.instant('NewTaxCalendar')) + $translate.instant('TaxCalendarSet');
$scope.bhOptions = { $scope.bhOptions = {
readOnly: true readOnly: !!$scope.isReadOnly,
placeholder: $translate.instant('PleaseInput'),
validationRules: [{
type: "required",
message: $translate.instant('ValidDataRequired')
}]
}; };
$scope.companyOptions = { $scope.companyOptions = {
bindingOptions: { bindingOptions: {
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<div class="taxCalendarForm" id="taxCalendarConfigForm" dx-validation-group="{}"> <div class="taxCalendarForm" id="taxCalendarConfigForm" dx-validation-group="{}">
<div class="edit-line row"> <div class="edit-line row">
<div class="col-user-define-left col-padding"> <div class="col-user-define-left col-padding">
<span class="title-first-n">{{'Number' | translate}}:</span> <span class="title-first-n">{{'TaskName' | translate}}:</span>
<div class="form-box bh-box" ng-model="taxCalendarConfiguration.orderIndex" dx-text-box="bhOptions"></div> <div class="form-box bh-box" ng-model="taxCalendarConfiguration.taskName" dx-text-box="bhOptions"></div>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
<div class="form-box" ng-model="taxCalendarConfiguration.status" dx-radio-group="statusOptions"></div> <div class="form-box" ng-model="taxCalendarConfiguration.status" dx-radio-group="statusOptions"></div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment