You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.7 KiB
62 lines
1.7 KiB
<%@ page import ="org.dbforms.config.DbFormsConfigRegistry,java.sql.Connection,java.sql.Statement,java.sql.ResultSet" %> |
|
<% |
|
//der superx-Default-Mandant ist bei dbforms ein Leerstring |
|
if(mandantenid.equals("default")) |
|
mandantenid=""; |
|
|
|
|
|
Connection conmm=null; |
|
String organigramm_neue_tid=""; |
|
try { |
|
|
|
conmm = DbFormsConfigRegistry.instance().lookup().getConnection(mandantenid); |
|
|
|
|
|
//Ausgabe holen: |
|
|
|
Statement st_output; |
|
ResultSet rs_output; |
|
st_output=conmm.createStatement(); |
|
String sql_output = "select nvl(max(tid)+1,1) from organigramm"; |
|
rs_output = st_output.executeQuery(sql_output); |
|
|
|
while (rs_output.next()) |
|
{ if(rs_output.getObject(1) !=null) |
|
//organigramm_neue_tid=rs_output.getObject(1).toString(); |
|
organigramm_neue_tid=rs_output.getString(1); |
|
} |
|
rs_output.close(); |
|
st_output.close(); |
|
if(organigramm_neue_tid==null || organigramm_neue_tid.equals("")) |
|
organigramm_neue_tid="<p>Text konnte nicht geladen werden, wenden Sie sich an den Administrator</p>"; |
|
//Ende Ausgabe holen |
|
|
|
conmm.close(); |
|
}//ende Suche DB Verbindung |
|
catch (Exception e) { |
|
out.print("<html><body>Fehler bei Datenverbindung: "+e+ " <br>MandantID: "+mandantenid+"</body></html>"); |
|
} |
|
|
|
%> |
|
<tr> |
|
<td class="db_label"> |
|
Laufnummer</td><td align="left"> |
|
<div id="fld_tid"> |
|
<% |
|
String current_tid=""; |
|
if(currentRow_organigramm != null |
|
&& currentRow_organigramm.get("tid") != null |
|
&& !currentRow_organigramm.get("tid").toString().equals("")) |
|
{ |
|
current_tid=currentRow_organigramm.get("tid").toString(); |
|
} |
|
else |
|
{ |
|
current_tid=organigramm_neue_tid; |
|
} |
|
|
|
%> |
|
<db:textField readOnly="true" nullFieldValue="" onBlur="" style="background-color:#c9c2c2;" id="inp_organigrammtid" size="6" fieldName="tid" overrideValue="<%= current_tid %>"/> |
|
</div> |
|
</td> |
|
</tr>
|
|
|