From 9b8bfe22286d717480c3d80619906244be975676 Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Sun, 8 Mar 2015 19:33:15 +0100 Subject: [PATCH] =?UTF-8?q?Na=20formul=C3=A1=C5=99=20po=C5=BEadavku=20na?= =?UTF-8?q?=20slu=C5=BEebn=C3=AD=20byl=20p=C5=99id=C3=A1n=20checkbox=20pro?= =?UTF-8?q?=20vygenerov=C3=A1n=C3=AD=20vy=C3=BA=C4=8Dtov=C3=A1n=C3=AD=20sl?= =?UTF-8?q?u=C5=BEebn=C3=AD=20cesty=20i=20pro=20spolucestuj=C3=ADc=C3=AD.?= =?UTF-8?q?=20Spolucestuj=C3=ADc=C3=AD=20nem=C5=AF=C5=BEou=20vy=C3=BA?= =?UTF-8?q?=C4=8Dtov=C3=A1n=C3=AD=20m=C4=9Bnit.=20closes=20#212?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../info/bukova/isspst/data/TripBillItem.java | 34 ++++++++++++-- .../bukova/isspst/data/TripRequirement.java | 9 ++++ .../TripRequirementServiceImpl.java | 16 ++++--- .../tripbill/TripBillServiceImpl.java | 31 ++++++++++++- .../isspst/ui/tripbill/TripBillForm.java | 10 +++++ src/main/webapp/app/search/searchForm.zul | 4 +- src/main/webapp/img/search-072.png | Bin 0 -> 9041 bytes .../trips/requirements/requirementsForm.zul | 3 ++ .../main/trips/requirements/tripBill.zul | 2 +- .../webapp/main/trips/tripBillInterior.zul | 42 +++++++++--------- 10 files changed, 117 insertions(+), 34 deletions(-) create mode 100644 src/main/webapp/img/search-072.png diff --git a/src/main/java/info/bukova/isspst/data/TripBillItem.java b/src/main/java/info/bukova/isspst/data/TripBillItem.java index 577f01a6..062f6f31 100644 --- a/src/main/java/info/bukova/isspst/data/TripBillItem.java +++ b/src/main/java/info/bukova/isspst/data/TripBillItem.java @@ -2,15 +2,14 @@ package info.bukova.isspst.data; import info.bukova.isspst.Constants; -import java.math.BigDecimal; -import java.util.Date; - import javax.persistence.AttributeOverride; import javax.persistence.AttributeOverrides; import javax.persistence.Column; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.Table; +import java.math.BigDecimal; +import java.util.Date; @Entity @Table(name = "TRIP_BILL_ITEMS") @@ -65,6 +64,35 @@ public class TripBillItem extends BaseData { @Column(name = "ADJUSTED_TOTAL", precision = 15, scale = 4) private BigDecimal adjustedTotal; + public TripBillItem() { + + } + + public TripBillItem(TripBillItem src) { + date = src.getDate(); + to = src.getTo(); + back = src.getBack(); + toDeparture = src.getToDeparture(); + toArrival = src.getToArrival(); + backDeparture = src.getBackDeparture(); + backArrival = src.getBackArrival(); + toVehicle = src.getToVehicle(); + backVehicle = src.getBackVehicle(); + beginWork = src.getBeginWork(); + endWork = src.getEndWork(); + freeMealsCount = src.getFreeMealsCount(); + distance = src.getDistance(); + fuelConsumption = src.getFuelConsumption(); + distanceAmount = src.getDistanceAmount(); + fuelAmount = src.getFuelAmount(); + carefare = src.getCarefare(); + housing = src.getHousing(); + meals = src.getMeals(); + otherExpenses = src.getOtherExpenses(); + total = src.getTotal(); + adjustedTotal = src.getAdjustedTotal(); + } + public Date getDate() { return date; } diff --git a/src/main/java/info/bukova/isspst/data/TripRequirement.java b/src/main/java/info/bukova/isspst/data/TripRequirement.java index 6339cbac..d10ab802 100644 --- a/src/main/java/info/bukova/isspst/data/TripRequirement.java +++ b/src/main/java/info/bukova/isspst/data/TripRequirement.java @@ -42,6 +42,8 @@ public class TripRequirement extends RequirementBase implements EntityWithAttach @LazyCollection(LazyCollectionOption.TRUE) @IndexedEmbedded private List attachedFiles; + @Column(name = "BILL_FOR_PASSENGERS") + private Boolean billForPassengers; public TripRequirement() { this.setOwnedBy(new User()); @@ -140,4 +142,11 @@ public class TripRequirement extends RequirementBase implements EntityWithAttach attachedFiles.remove(metainfo); } + public Boolean getBillForPassengers() { + return billForPassengers; + } + + public void setBillForPassengers(Boolean billForPassengers) { + this.billForPassengers = billForPassengers; + } } diff --git a/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java b/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java index 6071221b..1a2b4952 100644 --- a/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java +++ b/src/main/java/info/bukova/isspst/services/requirement/TripRequirementServiceImpl.java @@ -110,13 +110,15 @@ public class TripRequirementServiceImpl extends RequirementBaseServiceImpl implemen @Override @Transactional - @LazyLoader("print") + @LazyLoader({"print", "form"}) public void loadOwner(TripBill bill) { TripBill tb = dao.getById(bill.getId()); tb.getOwnedBy().getFirstName(); + tb.getRequirement().getOwnedBy().getFirstName(); bill.setOwnedBy(tb.getOwnedBy()); + bill.getRequirement().setOwnedBy(tb.getRequirement().getOwnedBy()); } @Override @@ -196,4 +198,31 @@ public class TripBillServiceImpl extends AbstractOwnedService implemen bill.getRequirement().setPassengers(tr.getPassengers()); } + @Override + @Transactional + @PreAuthorize("hasPermission(this, 'PERM_EDIT') or hasPermission(#entity, this.getUpdateEntityPermission())") + public void update(TripBill entity) { + super.update(entity); + + TripRequirement req = entity.getRequirement(); + Query q = dao.getQuery("from TripBill where requirement = :req and id != :id"); + q.setParameter("req", req); + q.setParameter("id", entity.getId()); + + List bills = q.list(); + for (TripBill tb : bills) { + tb.getBillItems().clear(); + + for (TripBillItem item : entity.getBillItems()) { + tb.getBillItems().add(new TripBillItem(item)); + } + + tb.setFreeCarfare(entity.isFreeCarfare()); + tb.setFreeHousing(entity.isFreeHousing()); + tb.setFreeMeals(entity.isFreeMeals()); + calculate(tb); + super.update(tb); + } + + } } diff --git a/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java b/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java index fcfe8c75..91f4420b 100644 --- a/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java +++ b/src/main/java/info/bukova/isspst/ui/tripbill/TripBillForm.java @@ -38,4 +38,14 @@ public class TripBillForm extends FormWithUpload { return vehicles; } + public boolean isBillDisabled() { + if (getDataBean().getRequirement().getBillForPassengers() != null + && getDataBean().getRequirement().getBillForPassengers() + && !getDataBean().getOwnedBy().equals(getDataBean().getRequirement().getOwnedBy())) { + return true; + } + + return false; + } + } diff --git a/src/main/webapp/app/search/searchForm.zul b/src/main/webapp/app/search/searchForm.zul index bbeacd0c..c13bf717 100644 --- a/src/main/webapp/app/search/searchForm.zul +++ b/src/main/webapp/app/search/searchForm.zul @@ -16,7 +16,9 @@
- +
+ +
diff --git a/src/main/webapp/img/search-072.png b/src/main/webapp/img/search-072.png new file mode 100644 index 0000000000000000000000000000000000000000..cd4c8b5c41f456faa200c2b7e474be136fc8c921 GIT binary patch literal 9041 zcmYki1ymH@8~;xUOQ*1ebS(ldjZ62k^rDn>N=r&3DWG(BE{JqWE=ULxf~~jpjvnSYeD0BjE65Y%((Q^w4x{7MQiRIu06Fh4IPmkp~mSUz60cB8uAo_lioq}fx>NHn)e?$s}1 z!okz9;ee&+^@RtMou43`ewm(fvMH68=zy!Eo1Vk#ci9tzx-_vUj=Kw&>I!fH<U_k8PL`i(lb>=dE+ke5?T2byulB^S`>|mm7@uYl)-fMdbU`ef6|ql$?|yYKaB)`q z3mfUhMNx@B4jdN>I>i|=EFb@-?$^cpZc6(mEqZ>F?^_W>McS0pMlkKGvv!`geT!^C zqYY6F0~AE7TIR~~H>gN*Ct!;V!SKE3U)Uoc`#tP z5qlZ1dT#20xm0Qh#ID@mU6-cZ?U6*DB1ozXKOkcn$lyB^o1eLUHZWqp6%Fm4zOrHh z@qK-kWQkNp8uFS7rs=zA=kdqeaaO6<4|g|9>Zze5=@N|Ni4A>ZV~?6$*4t?>9_w$~8?Km)Aovg~)c7*-{nF^;(hYLQ$ z%{u7H=smLbp$_4G=;-N5h*d!{f13pAq@F$MuyO~2n`;lznQD<2+6W1pw;x`&7w9o! zU7kj4_y}#{cY3bsKP|OGjk8OFnnm7OH)-{nAec2?_UH>`TTm1DM1!l+#DPN2@y5Qd zW?E`W`+L6p9*cP6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hnP>){;$TKNDCj4ImpH!Jv@>hGPXsuRi1SuAT9}vYzZRbF%5l<=kU)L3 z1o<6~{Ry_VwWcWxH1$Edlhqj%{R!uG`k}NwEua2gfEX|Cz@k0W6VkxaU8D)T;?4Z# z(eN-rfnulh>Jq9=-~$-;%uE^&WCJ#-a~DjAnQ^E*~$VT$O5-J#2? zx&4jzG;6<~Nqc`;BW*y{f0EQYv^3NM#;erLCvAP3Idgw@Jma}>e&11&n`vFE(!FtX zJN#Q+x-KK%{|MHL`Qg?flE#9Ik^!y+P#4I@n=1_te|w4FwXkN8HrV#2OZD3-T`i#guRb5g7A|WmUmc%tM+vH`(HDLZ<560fk{;%zP mo$yo~z3rViwLR@zoZwD&j=?@(o#b(q@U%7b)f-i9qyG=Z2X_Gg literal 0 HcmV?d00001 diff --git a/src/main/webapp/main/trips/requirements/requirementsForm.zul b/src/main/webapp/main/trips/requirements/requirementsForm.zul index 0aaee1b2..62e03fc0 100644 --- a/src/main/webapp/main/trips/requirements/requirementsForm.zul +++ b/src/main/webapp/main/trips/requirements/requirementsForm.zul @@ -147,6 +147,9 @@ sclass="nicebutton" disabled="@load(vm.selUser eq null)"/> + diff --git a/src/main/webapp/main/trips/requirements/tripBill.zul b/src/main/webapp/main/trips/requirements/tripBill.zul index 7fdaa8fd..1c35e63f 100644 --- a/src/main/webapp/main/trips/requirements/tripBill.zul +++ b/src/main/webapp/main/trips/requirements/tripBill.zul @@ -21,7 +21,7 @@ zclass="form-caption" label="${labels.TravelOrdersFormTitle}" /> - + diff --git a/src/main/webapp/main/trips/tripBillInterior.zul b/src/main/webapp/main/trips/tripBillInterior.zul index 07bf2c2a..50d1342a 100644 --- a/src/main/webapp/main/trips/tripBillInterior.zul +++ b/src/main/webapp/main/trips/tripBillInterior.zul @@ -56,21 +56,21 @@ + disabled="@load(vm.billDisabled or disabled)"/> + disabled="@load(vm.billDisabled or disabled)" /> + disabled="@load(vm.billDisabled or disabled)" /> @@ -237,12 +237,12 @@ value="@load(each.to)" maxlength="@load(vm.lengthText)" sclass="grid-textbox-max-left" - readonly="${disabled}"/> + readonly="@load(vm.billDisabled or disabled)"/> + readonly="@load(vm.billDisabled or disabled)"/>
+ disabled="@load(vm.billDisabled or disabled)"/> + disabled="@load(vm.billDisabled or disabled)"/> + disabled="@load(vm.billDisabled or disabled)"/> + disabled="@load(vm.billDisabled or disabled)"/> + disabled="@load(vm.billDisabled or disabled)"> @@ -289,7 +289,7 @@ selectedItem="@bind(each.backVehicle)" width="67px" readonly="true" - disabled="${disabled}"> + disabled="@load(vm.billDisabled or disabled)"> @@ -300,12 +300,12 @@ width="68px" value="@bind(each.beginWork)" format="short" - disabled="${disabled}"/> + disabled="@load(vm.billDisabled or disabled)"/> + disabled="@load(vm.billDisabled or disabled)"/> + readonly="@load(vm.billDisabled or disabled)"/> + readonly="@load(vm.billDisabled or disabled)"/> + readonly="@load(vm.billDisabled or disabled)"/> + readonly="@load(vm.billDisabled or disabled)"/> + readonly="@load(vm.billDisabled or disabled)"/> + readonly="@load(vm.billDisabled or disabled)"/> @@ -366,7 +366,7 @@ value="@bind(each.otherExpenses) @converter(vm.standardBigDecimalConverter)" maxlength="@load(vm.lengthText)" onChange="@command('calculate')" - readonly="${disabled}"/> + readonly="@load(vm.billDisabled or disabled)"/>