Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <ui:composition xmlns="http://www.w3.org/1999/xhtml"
- xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
- xmlns:h="http://xmlns.jcp.org/jsf/html"
- xmlns:p="http://primefaces.org/ui" xmlns:f="http://xmlns.jcp.org/jsf/core"
- xmlns:s="http://java.sun.com/jsp/jstl/core"
- template="layouts/standard.xhtml">
- <script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
- <ui:define name="header"><h:outputText value="#{msg['text.fikirOlustur']}"></h:outputText></ui:define>
- <ui:define name="content">
- <h:form prependId="false" id="addIdeaForm" cache="true">
- <h:panelGrid id="addIdeaPanel" cache="true">
- <p:tab id="firstPage" cache="true">
- <br/>
- <h:outputLabel value="1. #{msg['question.1']}"/>
- <i id="help1" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Buraya bakarlar!"/>
- <h:panelGrid columns="2" columnClasses="panel-col" disabled="#{ideaBean.createdIdea}">
- <p:autoComplete id="autocomp" value="#{ideaBean.owners}" var="user" multiple="true"
- completeMethod="#{ideaBean.completeUser}" required="true"
- requiredMessage="Bu alan boş bırakılamaz."
- itemLabel="#{user.fullName} (#{user.email}) " itemValue="#{user}"
- converter="userConvertertwo" disabled="#{ideaBean.createdIdea}"
- forceSelection="true" styleClass="ui-autocomplete-multiple-container"
- dropdownMode="true" scrollHeight="250">
- <div onclick="openNewExternalMemberWindow('#{user.employeeNumber}');">
- <p:column style="text-align:center">
- <p:graphicImage value="//tr-is/pers_info/foto/#{user.employeeNumber}.jpg"
- rendered="#{user.employeeNumber != null}" width="100px"/>
- <p:graphicImage library="images" name="anonymousUserPhoto.png" height="20%"
- rendered="#{user.employeeNumber == null}"/>
- </p:column>
- <p:column>
- <br/>
- <div class="media-body">
- <h4 class="media-heading">#{user.fullName}</h4>
- <p>#{user.email}</p>
- <p>#{user.title.split(' - ')[1]}</p>
- <p>#{user.department}</p>
- </div>
- </p:column>
- </div>
- </p:autoComplete>
- </h:panelGrid>
- <p:message for="autocomp" display="text"/>
- <br/>
- <h:outputLabel value="2. #{msg['question.2']}"/>
- <h:panelGrid id="volkan" columns="1" columnClasses="panel-col" style="margin-left: 9px">
- <h:panelGrid id="reasonFikirGrid" columns="1" columnClasses="panel-col">
- <p:selectBooleanCheckbox id="fikirCheckbox" itemLabel="#{msg['text.fikir']}"
- styleClass="labelNormal"
- value="#{true}" disabled="true"/>
- </h:panelGrid>
- <h:panelGrid id="reasonPatentGrid" columns="2" style="width:400px">
- <p:selectBooleanCheckbox id="patentCheckbox" itemLabel="#{msg['text.patent']}"
- styleClass="labelNormal"
- value="#{ideaBean.newIdea.answer.patentReason}"
- disabled="#{ideaBean.createdIdea}">
- <p:ajax event="change" update="patentSelectMenu"/>
- </p:selectBooleanCheckbox>
- <h:panelGrid id="patentSelectMenu" columns="1" style="width:250px">
- <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerPatent}"
- styleClass="form-control"
- rendered="#{ideaBean.newIdea.answer.patentReason}"
- disabled="#{ideaBean.createdIdea}">
- <f:selectItem itemLabel="#{msg['text.choose']}" itemValue=""
- noSelectionOption="true"/>
- <f:selectItems
- value="#{ideaBean.influenceAreas}"/>
- </h:selectOneMenu>
- </h:panelGrid>
- </h:panelGrid>
- <h:panelGrid id="reasonTesvikGrid" columns="2" style="width:400px">
- <p:selectBooleanCheckbox id="tesvikCheckbox" itemLabel="#{msg['text.tesvik']}"
- styleClass="labelNormal"
- value="#{ideaBean.newIdea.answer.tesvikReason}"
- disabled="#{ideaBean.createdIdea}">
- <p:ajax event="change" update="tesvikSelectMenu"/>
- </p:selectBooleanCheckbox>
- <h:panelGrid id="tesvikSelectMenu" columns="1" style="width:250px">
- <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerTesvik}"
- styleClass="form-control"
- rendered="#{ideaBean.newIdea.answer.tesvikReason}"
- disabled="#{ideaBean.createdIdea}">
- <f:selectItem itemLabel="#{msg['text.choose']}" itemValue=""
- noSelectionOption="true"/>
- <f:selectItem itemLabel="#{msg['text.h2020']}"
- itemValue="#{msg['text.h2020']}"/>
- <f:selectItem itemLabel="#{msg['text.teydeb']}"
- itemValue="#{msg['text.teydeb']}"/>
- <f:selectItem itemLabel="#{msg['text.udh']}" itemValue="#{msg['text.udh']}"/>
- <f:selectItem itemLabel="#{msg['text.other']}" itemValue="#{msg['text.other']}"/>
- <f:selectItem/>
- </h:selectOneMenu>
- </h:panelGrid>
- </h:panelGrid>
- <h:panelGrid id="reasonMakaleGrid" columns="1" columnClasses="panel-col">
- <p:selectBooleanCheckbox id="makaleCheckbox" itemLabel="#{msg['text.article']}"
- styleClass="labelNormal"
- value="#{ideaBean.newIdea.answer.makaleReason}"
- disabled="#{ideaBean.createdIdea}"/>
- </h:panelGrid>
- </h:panelGrid>
- <br/>
- <h:outputLabel value="3. #{msg['question.3']}"/>
- <i id="help4" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Fikrinizi en iyi şekilde özetleyecek bir başlık giriniz."/>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <h:inputText value="#{ideaBean.newIdea.title}" required="true" id="q3"
- requiredMessage="Bu alan boş bırakılamaz."
- readonly="#{ideaBean.createdIdea}" styleClass="form-control"/>
- </h:panelGrid>
- <p:message for="q3" display="text"/>
- <br/>
- <h:outputLabel value="4. #{msg['question.4']}"/>
- <i id="help5" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Buraya bakarlar!"/>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <p:inputTextarea value="#{ideaBean.newIdea.desc}" readonly="#{ideaBean.createdIdea}"
- required="true" style="overflow: auto" autoResize="true"
- requiredMessage="Bu alan boş bırakılamaz."
- styleClass="form-control" id="q4"/>
- </h:panelGrid>
- <p:message for="q4" display="text"/>
- <br/>
- <h:outputLabel value="5. #{msg['question.5']}"/>
- <i id="help1111" class="fa fa-lg fa-question-circle help noprint"
- title="#{msg['text.help']}" style="visibility: hidden;"></i>
- <h:panelGrid columns="2" columnClasses="panel-col" style="width: 50%">
- <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerProjectTechnologyPart}"
- requiredMessage="Bu alan boş bırakılamaz." styleClass="form-control"
- disabled="#{ideaBean.createdIdea}" id="q5" required="true">
- <f:selectItem itemLabel="#{msg['text.choose']}" itemValue="" noSelectionOption="true"/>
- <f:selectItems value="#{ideaBean.technologyAreas}"/>
- </h:selectOneMenu>
- </h:panelGrid>
- <p:message for="q5" display="text"/>
- <br/>
- <h:outputLabel value="6. #{msg['question.6']}"/>
- <i id="help1000" class="fa fa-lg fa-question-circle help noprint"
- title="#{msg['text.help']}" style="visibility: hidden;"></i>
- <h:panelGrid columns="2" columnClasses="panel-col" width="100%">
- <h:inputText value="#{ideaBean.newIdea.keyWords}" readonly="#{ideaBean.createdIdea}"
- required="true" styleClass="form-control" id="q6"
- requiredMessage="Bu alan boş bırakılamaz.">
- <f:passThroughAttribute name="placeholder" value="#{msg['placeholder.keyword']}"/>
- </h:inputText>
- </h:panelGrid>
- <p:message for="q6" display="text"/>
- <br/>
- <h:outputLabel value="7. #{msg['question.7']}"/>
- <i id="help2222" class="fa fa-lg fa-question-circle help noprint"
- title="#{msg['text.help']}" style="visibility: hidden;"></i>
- <h:panelGrid columns="2" columnClasses="panel-col" style="width: 50%">
- <h:selectOneMenu value="#{ideaBean.newIdea.answer.answerProjectStage}" id="q7"
- required="true"
- styleClass="form-control" disabled="#{ideaBean.createdIdea}"
- requiredMessage="Bu alan boş bırakılamaz.">
- <f:selectItem itemLabel="#{msg['text.choose']}" itemValue="" noSelectionOption="true"/>
- <f:selectItems value="#{ideaBean.projectStages}"/>
- </h:selectOneMenu>
- </h:panelGrid>
- <p:message for="q7" display="text"/>
- <br/>
- <p:message for="q8" display="text"/>
- <br/>
- <h:outputLabel value="8. #{msg['question.9']}"/>
- <i id="help9" class="fa fa-lg fa-question-circle help noprint"
- title="#{msg['text.help']}"></i>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <p:inputTextarea value="#{ideaBean.newIdea.answer.answerTargetCustomer}"
- readonly="#{ideaBean.createdIdea}" rows="6" cols="90"
- style="overflow: auto" autoResize="true" id="q9"
- styleClass="form-control" required="true"
- requiredMessage="Bu alan boş bırakılamaz."/>
- </h:panelGrid>
- <p:message for="q9" display="text"/>
- <br/>
- <h:panelGrid columns="2" id="question15head" styleClass="noprint">
- <h:outputLabel value="9. #{msg['question.15']}" style="width: 820px"/>
- </h:panelGrid>
- <h:panelGrid columns="1" columnClasses="panel-col" styleClass="noprint">
- <h:panelGrid id="fileTable" style="width: 1000px" styleClass="datagrid">
- <table>
- <thead>
- <tr>
- <th>Ad</th>
- <th>Tür</th>
- <th>Boyut</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <ui:repeat varStatus="status" value="#{ideaBean.newIdea.fileList}" var="file">
- <tr>
- <td>#{file.fileName}</td>
- <td>#{file.contentType}</td>
- <td>
- <h:outputText value="#{file.size/1048576}">
- <f:convertNumber pattern="#0.00"/>
- </h:outputText>
- <span>MB</span>
- </td>
- <td>
- <p:commandLink ajax="false" id="downloadButton"
- styleClass="btn btn-info"
- rendered="#{ideaBean.newIdea.template}">
- <i class="glyphicon glyphicon-save"/>
- <p:fileDownload value="#{ideaBean.downloadFile(status.index)}"/>
- </p:commandLink>
- <span/>
- <p:commandLink id="removeButton" styleClass="btn btn-info"
- rendered="#{!ideaBean.createdIdea}">
- <i class="glyphicon glyphicon-remove"/>
- <p:ajax listener="#{ideaBean.removeFile(status.index)}"
- update="fileTable question15head"/>
- </p:commandLink>
- </td>
- </tr>
- </ui:repeat>
- </tbody>
- </table>
- <s:if test="#{ideaBean.newIdea.fileList.size() != 0}">
- <p:outputPanel style="float: right">
- <p:commandLink ajax="false" id="downloadAll" styleClass="btn btn-primary">
- <i class="glyphicon glyphicon-save"></i>
- <span>#{msg['text.downloadAllFiles']}</span>
- <p:fileDownload value="#{ideaBean.downloadAllFiles()}"/>
- <f:param name="id" value="#{ideaBean.newIdea.id}"/>
- <f:param name="page" value="ideas"/>
- </p:commandLink>
- </p:outputPanel>
- </s:if>
- </h:panelGrid>
- <p:fileUpload fileUploadListener="#{ideaBean.handleFileUpload}" mode="advanced"
- dragDropSupport="true" id="uploadPanel" disabled="#{ideaBean.createdIdea}"
- uploadLabel="#{msg['btn.upload']}" label="#{msg['btn.choose']}"
- cancelLabel="#{msg['btn.cancel']}" sizeLimit="16793600" auto="true"
- multiple="true" fileLimit="10" update="fileTable question15head"/>
- </h:panelGrid>
- <br/><br/>
- <h:outputLabel value="10.Bu fikir projelendirelebilecek bir fikir mi?"/>
- <br/>
- <h:selectOneRadio id="fikirorProje" required="true" value="#{ideaBean.newIdea.fikirProje}"
- enabledClass="labelNormalRadio" disabled="#{ideaBean.createdIdea}"
- requiredMessage="Bu alan boş bırakılamaz.">
- <f:selectItem itemValue="#{false}"
- itemLabel="Hayır" uptade="butonThree"/>
- <f:selectItem itemValue="#{true}" itemLabel="Evet"/>
- <p:ajax event="change" update="addIdeaForm" />
- <p:ajaxStatus onstart="PF('status').show()" onsuccess="PF('status').hide()"/>
- </h:selectOneRadio>
- <p:dialog widgetVar="status" draggable="false" closable="false" resizable="false" showHeader="false"
- modal="true">
- <h:graphicImage url="../resources/images/loading.gif"/>
- </p:dialog>
- <!-- ****************** ********************************** 2. SAYFA **************************************************** -->
- <p:tab id="secondPage" rendered="#{ideaBean.newIdea.fikirProje}">
- <br/>
- <h:outputLabel value="11. #{msg['question.10']}"/>
- <i id="help14" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Proje/ürün, müşterinin hangi ihtiyacını karşılıyor veya problemini çözüyor sorusuna yanıt verilmelidir. Örneğin risk ve maliyet düşürücü, elverişli kullanım, performans artırıcı yönü ve kattığı yenilik."/>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <p:inputTextarea value="#{ideaBean.newIdea.answer.answerDifferenceOnCustomer}"
- required="true"
- rows="6" cols="90" style="overflow: auto" autoResize="true"
- requiredMessage="Bu alan boş bırakılamaz."
- styleClass="form-control" readonly="#{ideaBean.createdIdea}" id="q10"/>
- <p:message for="q10" display="text"/>
- </h:panelGrid>
- <br/>
- <h:outputLabel value="12. #{msg['question.11']}"/>
- <i id="help10" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Proje/ürünün benzeri var mıdır? Rakip ürünlerin isimleri ve özellikleri nelerdir? Rakip firmalar kimdir? Rakip ürünlerin karşılaştırmalı tablosu varsa dosya olarak da yükleyebilirsiniz."/>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <p:inputTextarea value="#{ideaBean.newIdea.answer.answerCompetitorAnalysis}"
- readonly="#{ideaBean.createdIdea}" required="true"
- requiredMessage="Bu alan boş bırakılamaz."
- rows="6" cols="90" style="overflow: auto" autoResize="true"
- styleClass="form-control" id="q11"/>
- <p:message for="q11" display="text"/>
- </h:panelGrid>
- <br/>
- <h:outputLabel value="13. #{msg['question.12']}"/>
- <i id="help11" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Proje/üründen sağlanacak gelir modelini belirtiniz. Örneğin gelir kullanım/abonelik ücreti, lisanslama ücreti, reklam veya ürün satış fiyatı üzerinden olabilir. Aylara/yıllara bölünmüş detaylı gelir planı varsa dosya olarak da yükleyebilirsiniz."/>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <p:inputTextarea value="#{ideaBean.newIdea.answer.answerRevenueModel}"
- readonly="#{ideaBean.createdIdea}" required="true"
- requiredMessage="Bu alan boş bırakılamaz."
- rows="6" cols="90" style="overflow: auto" autoResize="true"
- styleClass="form-control" id="q12"/>
- <p:message for="q12" display="text"/>
- </h:panelGrid>
- <br/>
- <h:outputLabel value="14. #{msg['question.14']}"/>
- <i id="help12" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Proje/ürünün maliyet yapısı nedir sorusuna yanıt verilmeli ve maliyet kalemleri listelenmelidir. En fazla maliyet neden veya hangi nedenden oluşuyor? Örneğin sabit maliyetler (personel maaşı, kira, su/elektrik/ısınma), donanım ve/veya lisans almak gerekiyorsa onun maliyeti, ürün geliştirme süresince gerekli diğer maliyetler. Aylara/yıllara bölünmüş detaylı maliyet planı varsa dosya olarak da yükleyebilirsiniz."/>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <p:inputTextarea value="#{ideaBean.newIdea.answer.answerInvestmentAndSupport}"
- readonly="#{ideaBean.createdIdea}" required="true"
- requiredMessage="Bu alan boş bırakılamaz."
- rows="6" cols="90" style="overflow: auto" autoResize="true"
- styleClass="form-control" id="q13"/>
- <p:message for="q13" display="text"/>
- </h:panelGrid>
- <br/>
- <h:outputLabel value="15. #{msg['question.8']}"/>
- <h:panelGrid columns="2" columnClasses="panel-col" style="width: 47.5%">
- <h:panelGroup>
- <div class="input-group">
- <h:inputText value="#{ideaBean.newIdea.answer.answerProjectCompleteDuration}"
- onkeypress="return isNumberKey(event)"
- readonly="#{ideaBean.createdIdea}" required="true" type="number"
- styleClass="form-control" id="q8"
- requiredMessage="Bu alan boş bırakılamaz.">
- </h:inputText>
- <span class="input-group-addon">Adam/Ay</span>
- </div>
- </h:panelGroup>
- </h:panelGrid>
- <br/>
- <h:outputLabel value="16. #{msg['question.13']}"/>
- <i id="help13" class="fa fa-lg fa-question-circle help noprint" title="#{msg['text.help']}"
- data-content="Buraya bakarlar!"/>
- <h:panelGrid columns="2" columnClasses="panel-col">
- <p:inputTextarea value="#{ideaBean.newIdea.answer.answerCostPlan}"
- readonly="#{ideaBean.createdIdea}" required="true"
- requiredMessage="Bu alan boş bırakılamaz."
- rows="6" cols="90" style="overflow: auto" autoResize="true"
- styleClass="form-control" id="q14"/>
- <p:message for="q14" display="text"/>
- </h:panelGrid>
- </p:tab>
- </p:tab>
- <p:tab id="butonThree" rendered="true">
- <br/>
- <h:outputLabel value="#{msg['question.16']}"/>
- <h:panelGrid id="scopePanel" columns="2" columnClasses="panel-col">
- <h:selectOneRadio id="scopeRadio" required="true" value="#{ideaBean.newIdea.scopeOfIdea}"
- enabledClass="labelNormalRadio" disabled="#{ideaBean.createdIdea}"
- requiredMessage="Bu alan boş bırakılamaz.">
- <f:selectItem itemValue="Herkes"
- itemLabel="Herkes "/>
- <f:selectItem itemValue="Komite Üyeleri" itemLabel="Komite Üyeleri"/>
- </h:selectOneRadio>
- </h:panelGrid>
- <p:message for="scopeRadio" display="text"/>
- <br/>
- <h:selectBooleanCheckbox id="submitCheckx" value="#{ideaBean.newIdea.answer.answerSubmit}"
- disabled="#{ideaBean.createdIdea}">
- <p:ajax event="change" update="sendx saveDraftx printx"/>
- </h:selectBooleanCheckbox>
- <p:outputLabel for="submitCheckx" value="#{msg['text.agreement']}" styleClass="labelNormal"/>
- <br/><br/>
- <br/><br/>
- <p:separator/>
- <p:outputPanel>
- <p:commandButton id="printx" value="#{msg['btn.print']}" icon="fa fa-print"
- update="addIdeaForm" ajax="false"
- styleClass="btn btn-print noprint"
- style="float: left; font-size: large; width: 15%">
- <f:param name="id" value="#{msg['btn.print']}"/>
- <p:printer target="addIdeaPanel"/>
- </p:commandButton>
- <p:commandButton id="sendx" value="#{msg['btn.save']}" icon="fa fa-check-circle"
- action="ideas.xhtml?faces-redirect=true" ajax="false"
- disabled="#{!ideaBean.newIdea.answer.answerSubmit}"
- actionListener="#{ideaBean.sendMailAndAddNewIdea}"
- rendered="#{!ideaBean.createdIdea}"
- styleClass="btn btn-success noprint"
- style="float:right; font-size: large; width: 25%">
- </p:commandButton>
- <p:commandButton id="saveDraftx" value="#{msg['btn.saveAsDraft']}" icon="fa fa-save"
- action="ideas.xhtml?faces-redirect=true" ajax="false"
- disabled="#{!ideaBean.newIdea.answer.answerSubmit}"
- actionListener="#{ideaBean.saveIdeaAsDraft}"
- rendered="#{!ideaBean.createdIdea}"
- styleClass="btn btn-warning noprint"
- style="font-size: large; float: right; width: 25%">
- </p:commandButton>
- </p:outputPanel>
- </p:tab>
- </h:panelGrid>
- </h:form>
- <script>
- function isNumberKey(evt) {
- var charCode = (evt.which) ? evt.which : event.keyCode;
- if (charCode > 31 && (charCode < 48 || charCode > 57)) return false;
- return true;
- }
- </script>
- </ui:define>
- </ui:composition>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement