Commit 5dd621e2 authored by mjadhav's avatar mjadhav

changes done in design


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97974 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9ef81011
...@@ -231,32 +231,73 @@ ...@@ -231,32 +231,73 @@
</table> </table>
<!-- <table border="1" align="center" class="headerTable" id="headerTable" cellpadding="3" cellspacing="3" >
<tr>
<table height="208" border="0" align="center" class="headerTable" id="headerTable" cellpadding="3" cellspacing="3" > <td class="headerTextCol3">Receipt No :</td>
<td class="headerTextCol4"><input type="text"
<!--
<tr>
<td colspan="4" class="headerTextCol">Receipt No :&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<input type="text"
id="Detail1.{normalize-space($domIDHeader)}.tran_id" name="Detail1.{normalize-space($domIDHeader)}.tran_id" id="Detail1.{normalize-space($domIDHeader)}.tran_id" name="Detail1.{normalize-space($domIDHeader)}.tran_id"
value="{$tran_id}" size="12" class="headerFieldDisable" value="{$tran_id}" size="12" class="headerFieldDisable"
readonly="readonly" maxlength="10" tabindex="-1"/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; readonly="readonly" maxlength="10" tabindex="-1"/></td>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Transcation Date : <input type="text" <td class="headerTextCol3">Transcation Date : </td>
<td class="headerTextCol4"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.eff_date" name="Detail1.{normalize-space($domIDHeader)}.eff_date" id="Detail1.{normalize-space($domIDHeader)}.eff_date" name="Detail1.{normalize-space($domIDHeader)}.eff_date"
value="{$eff_date}" ispopup="true" value="{$eff_date}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
isServerCallOnChange="true" onblur="return onBlurFunction(this)" isServerCallOnChange="true" onblur="return onBlurFunction(this)"
size="6" class="headerFieldDisable" tabindex="-1" readonly="readonly" /></td> size="6" class="headerFieldDisable" tabindex="-1" readonly="readonly" /></td>
<td colspan="2" class="headerTextCol"></td>
</tr>
</tr>
<tr>
<td colspan="4" class="headerTextCol">Transcation Type :&#160;<input type="text"
</table> -->
<table border="0" align="center" class="headerTable" id="headerTable" cellpadding="3" cellspacing="3" >
<tr>
<td class="headerTextCol6">Receipt No :</td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.tran_id" name="Detail1.{normalize-space($domIDHeader)}.tran_id"
value="{$tran_id}" size="12" class="headerFieldDisable"
readonly="readonly" maxlength="10" tabindex="-1"/></td>
<td class="headerTextCol7">Transcation Date: </td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.eff_date" name="Detail1.{normalize-space($domIDHeader)}.eff_date"
value="{$eff_date}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)"
isServerCallOnChange="true" onblur="return onBlurFunction(this)"
size="10" class="headerFieldDisable" tabindex="-1" readonly="readonly" /></td>
</tr>
<tr>
<td class="headerTextCol6">Transcation Type:</td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.tran_type" name="Detail1.{normalize-space($domIDHeader)}.tran_type" id="Detail1.{normalize-space($domIDHeader)}.tran_type" name="Detail1.{normalize-space($domIDHeader)}.tran_type"
value="L" size="5" class="headerFieldDisable" value="L" size="5" class="headerFieldDisable"
readonly="readonly" maxlength="5" tabindex="-1" />&#160;&#160;&#160;&#160;&#160;&#160;Receipt Mode:&#160;<select id="Detail1.{normalize-space($domIDHeader)}.rcp_mode" readonly="readonly" maxlength="5" tabindex="-1" /></td>
<td class="headerTextCol7">Receipt Date :</td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.tran_date"
name="Detail1.{normalize-space($domIDHeader)}.tran_date"
value="{$tran_date}" size="10"
class="headerFieldDisable" readonly="readonly" tabindex="-1" /></td>
</tr>
<tr>
<td class="headerTextCol6">Receipt Mode:</td>
<td class="headerTextCol8"><select id="Detail1.{normalize-space($domIDHeader)}.rcp_mode"
name="Detail1.{normalize-space($domIDHeader)}.rcp_mode" name="Detail1.{normalize-space($domIDHeader)}.rcp_mode"
class="headerInputField" onchange="selectTypeFrSale('{$updateFlagHeader}')" class="headerInputField" onchange="selectTypeFrSale('{$updateFlagHeader}')"
value="{$rcp_mode}" style="height: 20px" tabindex="1"> value="{$rcp_mode}" style="height: 20px" tabindex="1">
...@@ -265,21 +306,17 @@ ...@@ -265,21 +306,17 @@
<option value="C">Cash</option> <option value="C">Cash</option>
<option value="P">Pay order</option> <option value="P">Pay order</option>
<option value="E">Electronic</option> <option value="E">Electronic</option>
</select> &#160;&#160;&#160;&#160;&#160;&#160;Receipt Date :&#160;<input type="text" </select></td>
id="Detail1.{normalize-space($domIDHeader)}.tran_date" <td class="headerTextCol7"></td>
name="Detail1.{normalize-space($domIDHeader)}.tran_date" <td class="headerTextCol8"></td>
value="{$tran_date}" size="6"
class="headerFieldDisable" readonly="readonly" tabindex="-1" /></td> </tr>
<td width="5%" class="headerTextCol"></td>
<td width="40%" align="left"></td>
<td colspan="2" class="headerTextCol"></td>
</tr> <tr>
<td class="headerTextCol6">Customer Code : </td>
<td colspan="3" class="headerTextCol8"><input type="text"
<tr>
<td colspan="4" class="headerTextCol">Customer Code : &#160;&#160;<input type="text"
id="Detail1.{normalize-space($domIDHeader)}.cust_code" name="Detail1.{normalize-space($domIDHeader)}.cust_code" id="Detail1.{normalize-space($domIDHeader)}.cust_code" name="Detail1.{normalize-space($domIDHeader)}.cust_code"
value="{$cust_code}" ispopup="true" value="{$cust_code}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
...@@ -288,13 +325,16 @@ ...@@ -288,13 +325,16 @@
id="Detail1.{normalize-space($domIDHeader)}.cust_name" name="Detail1.{normalize-space($domIDHeader)}.cust_name" id="Detail1.{normalize-space($domIDHeader)}.cust_name" name="Detail1.{normalize-space($domIDHeader)}.cust_name"
value="{$cust_name}" size="42" class="headerFieldDisable" tabindex="-1" value="{$cust_name}" size="42" class="headerFieldDisable" tabindex="-1"
readonly="readonly" /></td> readonly="readonly" /></td>
<td colspan="2" class="headerTextCol"></td> <td class="headerTextCol7"></td>
</tr> <td class="headerTextCol8"></td>
</tr>
<tr>
<td colspan="4" class="headerTextCol">Site Code : &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<input type="text"
<tr>
<td class="headerTextCol6">Site Code : </td>
<td colspan="3" class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.site_code" name="Detail1.{normalize-space($domIDHeader)}.site_code" id="Detail1.{normalize-space($domIDHeader)}.site_code" name="Detail1.{normalize-space($domIDHeader)}.site_code"
value="{$site_code}" ispopup="true" value="{$site_code}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
...@@ -304,15 +344,16 @@ ...@@ -304,15 +344,16 @@
name="Detail1.{normalize-space($domIDHeader)}.descr" name="Detail1.{normalize-space($domIDHeader)}.descr"
value="{$site_descr}" size="42" value="{$site_descr}" size="42"
class="headerFieldDisable" readonly="readonly" tabindex="-1" /></td> class="headerFieldDisable" readonly="readonly" tabindex="-1" /></td>
<td colspan="2" class="headerTextCol"></td> <td class="headerTextCol7"></td>
</tr> <td class="headerTextCol8"></td>
</tr>
<tr> <tr>
<td colspan="4" class="headerTextCol">Bank Code : &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<input type="text" <td class="headerTextCol6">Bank Code : </td>
<td colspan="3" class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.bank_code" name="Detail1.{normalize-space($domIDHeader)}.bank_code" id="Detail1.{normalize-space($domIDHeader)}.bank_code" name="Detail1.{normalize-space($domIDHeader)}.bank_code"
value="{$bank_code}" ispopup="true" value="{$bank_code}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
...@@ -321,98 +362,91 @@ ...@@ -321,98 +362,91 @@
id="Detail1.{normalize-space($domIDHeader)}.bank_name" name="Detail1.{normalize-space($domIDHeader)}.bank_name" id="Detail1.{normalize-space($domIDHeader)}.bank_name" name="Detail1.{normalize-space($domIDHeader)}.bank_name"
value="{$bank_name}" size="42" class="headerFieldDisable" value="{$bank_name}" size="42" class="headerFieldDisable"
readonly="readonly" tabindex="-1" /></td> readonly="readonly" tabindex="-1" /></td>
<td colspan="2" class="headerTextCol"></td> <td class="headerTextCol7"></td>
</tr> <td class="headerTextCol8"></td>
</tr>
<tr> <tr>
<td colspan="4" class="headerTextCol">Cheque No : &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<input type="text" <td class="headerTextCol6">Cheque No :</td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.ref_no" name="Detail1.{normalize-space($domIDHeader)}.ref_no" id="Detail1.{normalize-space($domIDHeader)}.ref_no" name="Detail1.{normalize-space($domIDHeader)}.ref_no"
value="{$ref_no}" ispopup="true" value="{$ref_no}"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
isServerCallOnChange="true" onblur="return onBlurFunction(this)" isServerCallOnChange="true" onblur="return onBlurFunction(this)"
size="12" class="headerInputField" maxlength="40" tabindex="5" />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Reference Date : &#160;&#160;<input type="text" size="12" class="headerInputField" maxlength="40" tabindex="5" /></td>
<td class="headerTextCol7">Reference Date :</td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.ref_date" name="Detail1.{normalize-space($domIDHeader)}.ref_date" id="Detail1.{normalize-space($domIDHeader)}.ref_date" name="Detail1.{normalize-space($domIDHeader)}.ref_date"
value="{$ref_date}" ispopup="true" value="{$ref_date}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
isServerCallOnChange="true" onblur="return onBlurFunction(this),setDefaultDateFormat(this)" isServerCallOnChange="true" onblur="return onBlurFunction(this),setDefaultDateFormat(this)"
size="12" class="headerInputField" tabindex="6" /> size="10" class="headerInputField" tabindex="6" />
<a id="dd_chq_dt_FrmCAl" <a id="dd_chq_dt_FrmCAl"
href="javascript:NewCal('Detail1.{normalize-space($domIDHeader)}.ref_date','ddmmyyyy')" tabindex="-1"> href="javascript:NewCal('Detail1.{normalize-space($domIDHeader)}.ref_date','ddmmyyyy')" tabindex="-1">
<img src="../css/cal.gif" width="16" height="16" <img src="../css/cal.gif" width="16" height="16"
border="0" alt="Pick a date"></img> border="0" alt="Pick a date"></img>
</a></td> </a></td>
<td colspan="2" class="headerTextCol"></td>
</tr> </tr>
<tr>
<tr> <td class="headerTextCol6">Cheque Amount :</td>
<td colspan="4" class="headerTextCol">Cheque Amount :&#160;&#160;<input type="text" <td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.chq_amt" name="Detail1.{normalize-space($domIDHeader)}.chq_amt" id="Detail1.{normalize-space($domIDHeader)}.chq_amt" name="Detail1.{normalize-space($domIDHeader)}.chq_amt"
value="{$chq_amt}" ispopup="true" value="{$chq_amt}" ispopup="true"
isServerCallOnChange="true" onblur="return onBlurFunction(this),setValueToZero(this)" isServerCallOnChange="true" onblur="return onBlurFunction(this),setValueToZero(this)"
size="12" class="headerInputField" style="text-align:right" maxlength="11" tabindex="7"/></td> size="12" class="headerInputField" style="text-align:right" maxlength="11" tabindex="7"/></td>
<td colspan="2" class="headerTextCol"></td> <td class="headerTextCol7"></td>
</tr> <td class="headerTextCol8"></td>
</tr>
<tr>
<td colspan="4" class="headerTextCol">Currency Code :&#160;&#160;&#160;&#160;<input type="text" <tr>
<td class="headerTextCol6">Currency Code :</td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.curr_code" name="Detail1.{normalize-space($domIDHeader)}.curr_code" id="Detail1.{normalize-space($domIDHeader)}.curr_code" name="Detail1.{normalize-space($domIDHeader)}.curr_code"
value="{$curr_code}" ispopup="true" value="{$curr_code}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
isServerCallOnChange="true" onblur="return onBlurFunction(this)" isServerCallOnChange="true" onblur="return onBlurFunction(this)"
size="12" class="headerFieldDisable" tabindex="-1" maxlength="5" readonly="readonly" />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Exchange Rate :&#160;&#160;<input type="text" size="12" class="headerFieldDisable" tabindex="-1" maxlength="5" readonly="readonly" /></td>
<td class="headerTextCol7">Exchange Rate :</td>
<td class="headerTextCol8"><input type="text"
id="Detail1.{normalize-space($domIDHeader)}.exch_rate" name="Detail1.{normalize-space($domIDHeader)}.exch_rate" id="Detail1.{normalize-space($domIDHeader)}.exch_rate" name="Detail1.{normalize-space($domIDHeader)}.exch_rate"
value="{$exch_rate}" ispopup="true" value="{$exch_rate}" ispopup="true"
onkeydown="return onKeyDownFun(this,event)" onkeydown="return onKeyDownFun(this,event)"
isServerCallOnChange="true" onblur="return onBlurFunction(this),setValueToZero(this)" isServerCallOnChange="true" onblur="return onBlurFunction(this),setValueToZero(this)"
size="12" class="headerInputField" tabindex="8" style="text-align:right" maxlength="8" /></td> size="10" class="headerInputField" tabindex="8" style="text-align:right" maxlength="8" /></td>
<td colspan="2" class="headerTextCol"></td>
</tr> </tr>
<tr>
<td class="headerTextCol6">Remarks :</td>
<td class="headerTextCol8"><input type="text"
<tr>
<td colspan="4" class="headerTextCol">Remarks : &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<input type="text"
id="Detail1.{normalize-space($domIDHeader)}.remarks" name="Detail1.{normalize-space($domIDHeader)}.remarks" id="Detail1.{normalize-space($domIDHeader)}.remarks" name="Detail1.{normalize-space($domIDHeader)}.remarks"
value="{$remarks}" tabindex="9" value="{$remarks}" tabindex="9"
size="40" class="headerInputField" /></td> size="50" class="headerInputField" /></td>
<td colspan="2" class="headerTextCol"></td> <td class="headerTextCol7"></td>
</tr> <td class="headerTextCol8"></td>
</tr>
</table>
<tr>
<td colspan="4" class="headerTextCol">Chg User :&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <input type="text"
id="Detail1.{normalize-space($domIDHeader)}.chg_user" name="Detail1.{normalize-space($domIDHeader)}.chg_user" <!--
value="{$chg_user}" size="12" tabindex="-1" class="headerFieldDisable" readonly="readonly" />&#160;&#160;Chg Date: <input type="text" <table height="208" border="1" align="center" class="headerTable" id="headerTable" cellpadding="3" cellspacing="3" >
id="Detail1.{normalize-space($domIDHeader)}.chg_date" name="Detail1.{normalize-space($domIDHeader)}.chg_date"
value="{$chg_date}" size="12" tabindex="-1" class="headerFieldDisable" readonly="readonly" />&#160;&#160;Chg term: <input type="text"
id="Detail1.{normalize-space($domIDHeader)}.chg_term" name="Detail1.{normalize-space($domIDHeader)}.chg_term"
value="{$chg_term}" size="12" tabindex="-1" class="headerFieldDisable" readonly="readonly" /></td>
<td colspan="2" class="headerTextCol"></td>
</tr>
<tr>
<td width="5%" class="headerTextCol"></td>
<td width="40%" align="left"></td>
<td width="10%"></td>
<td width="40%" align="left"></td>
</tr>
-->
<tr> <tr>
<td colspan="4" class="headerTextCol2">Receipt No :</td> <td colspan="4" class="headerTextCol2">Receipt No :</td>
...@@ -453,29 +487,7 @@ ...@@ -453,29 +487,7 @@
<!-- <tr>
<td colspan="4" class="headerTextCol">Transcation Type :<input type="text"
id="Detail1.{normalize-space($domIDHeader)}.tran_type" name="Detail1.{normalize-space($domIDHeader)}.tran_type"
value="L" size="5" class="headerFieldDisable"
readonly="readonly" maxlength="5" tabindex="-1" />&#160;&#160;&#160;&#160;&#160;&#160;Receipt Mode:&#160;<select id="Detail1.{normalize-space($domIDHeader)}.rcp_mode"
name="Detail1.{normalize-space($domIDHeader)}.rcp_mode"
class="headerInputField" onchange="selectTypeFrSale('{$updateFlagHeader}')"
value="{$rcp_mode}" style="height: 20px" tabindex="1">
<option value="Q">Cheque</option>
<option value="D">Draft</option>
<option value="C">Cash</option>
<option value="P">Pay order</option>
<option value="E">Electronic</option>
</select> &#160;&#160;&#160;&#160;&#160;&#160;Receipt Date :&#160;<input type="text"
id="Detail1.{normalize-space($domIDHeader)}.tran_date"
name="Detail1.{normalize-space($domIDHeader)}.tran_date"
value="{$tran_date}" size="6"
class="headerFieldDisable" readonly="readonly" tabindex="-1" /></td>
<td width="5%" class="headerTextCol"></td>
<td width="40%" align="left"></td>
<td colspan="2" class="headerTextCol"></td>
</tr> -->
...@@ -604,29 +616,7 @@ ...@@ -604,29 +616,7 @@
<!-- <tr>
<td colspan="4" class="headerTextCol">Chg User :&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <input type="text"
id="Detail1.{normalize-space($domIDHeader)}.chg_user" name="Detail1.{normalize-space($domIDHeader)}.chg_user"
value="{$chg_user}" size="12" tabindex="-1" class="headerFieldDisable" readonly="readonly" />&#160;&#160;Chg Date: <input type="text"
id="Detail1.{normalize-space($domIDHeader)}.chg_date" name="Detail1.{normalize-space($domIDHeader)}.chg_date"
value="{$chg_date}" size="12" tabindex="-1" class="headerFieldDisable" readonly="readonly" />&#160;&#160;Chg term: <input type="text"
id="Detail1.{normalize-space($domIDHeader)}.chg_term" name="Detail1.{normalize-space($domIDHeader)}.chg_term"
value="{$chg_term}" size="12" tabindex="-1" class="headerFieldDisable" readonly="readonly" /></td>
<td colspan="2" class="headerTextCol"></td>
</tr> -->
<!--
<tr>
<td width="5%" class="headerTextCol"></td>
<td width="40%" align="left"></td>
<td width="10%"></td>
<td width="40%" align="left"></td>
</tr>
-->
...@@ -634,7 +624,7 @@ ...@@ -634,7 +624,7 @@
</table > </table >
-->
<!-- commented ,start --> <!-- commented ,start -->
...@@ -669,7 +659,7 @@ ...@@ -669,7 +659,7 @@
<table border="0" id="HeaderdetailTable1" class="innerHeaderTable1" > <table border="0" id="HeaderdetailTable1" class="innerHeaderTable1" >
<tr> <tr>
<td>Line No&#160;&#160;&#160;&#160;Line No Reference&#160;&#160;&#160;&#160;&#160;&#160;Reference Series&#160;&#160;&#160;&#160;&#160;Reference No&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Receipt Amount</td> <td>Line No&#160;&#160;&#160;&#160;Line No Reference&#160;&#160;&#160;&#160;&#160;&#160;Reference Series&#160;&#160;&#160;&#160;&#160;Reference No&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Receipt Amount</td>
</tr> </tr>
</table> </table>
...@@ -815,7 +805,7 @@ ...@@ -815,7 +805,7 @@
<td align="middle" width="25%"> <td align="right" width="20%">
<!-- <input type="text" <!-- <input type="text"
id="Detail2.{normalize-space($domIDDetail)}.ref_ser" id="Detail2.{normalize-space($domIDDetail)}.ref_ser"
name="Detail2.{normalize-space($domIDDetail)}.ref_ser" name="Detail2.{normalize-space($domIDDetail)}.ref_ser"
...@@ -835,7 +825,7 @@ ...@@ -835,7 +825,7 @@
</td> </td>
<td align="left" width="25%"> <td align="middle" width="25%">
<input type="text" <input type="text"
...@@ -860,11 +850,11 @@ ...@@ -860,11 +850,11 @@
<td align="left" width="30%"> <td align="middle" width="30%">
<input type="text" <input type="text"
id="Detail2.{normalize-space($domIDDetail)}.rcp_amt" id="Detail2.{normalize-space($domIDDetail)}.rcp_amt"
name="Detail2.{normalize-space($domIDDetail)}.rcp_amt" name="Detail2.{normalize-space($domIDDetail)}.rcp_amt"
value="{$rcp_amt}" class="headerInputField" size="10%" value="{$rcp_amt}" class="headerInputField" size="15%"
style="text-align:right" onkeydown="return onKeyDownFun(this,event)" onblur="setValueToZero(this)" /> style="text-align:right" onkeydown="return onKeyDownFun(this,event)" onblur="setValueToZero(this)" />
</td> </td>
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
{ {
top :50px; top :50px;
left:5px; left:5px;
width:80%; width:90%;
background-color:#E0EFEF; background-color:#E0EFEF;
border-width:1px; border-width:1px;
font-family: Arial; font-family: Arial;
...@@ -99,6 +99,49 @@ ...@@ -99,6 +99,49 @@
font-size : 12px; font-size : 12px;
text-align:left; text-align:left;
}
.headerTextCol3
{
left:8px;
width:100px;
font-size : 12px;
text-align:left;
}
.headerTextCol4
{
left:8px;
width:20px;
font-size : 12px;
text-align:left;
}
.headerTextCol6
{
left:8px;
width:23%;
font-size : 12px;
text-align:left;
}
.headerTextCol7
{
left:8px;
width:23%;
font-size : 12px;
text-align:left;
}
.headerTextCol8
{
left:8px;
width:25%;
font-size : 12px;
text-align:left;
} }
.headerTextColForFSHS .headerTextColForFSHS
{ {
......
var currentDomName = "";
function onLoadWindow()
{
document.getElementById("popupFooter").innerHTML = document.getElementById("popupFooter").innerHTML + "Enter-Set Value <b class=\"seperator\">||</b> Esc- Cancel <b class=\"seperator\">||</b> UP & DOWN arrow - Navigation";
var table = document.getElementById("popupTable");
var tableLength = table.rows.length;
if(table.rows.length == 0)
{
try
{
table.getElementsByTagName("td")[0].style.width = "300px";
table.getElementsByTagName("td")[0].style.height = "250px";
table.getElementsByTagName("td")[0].innerHTML = "<center>NO DATA FOUND</center>";
}
catch(err)
{}
}
try
{
var table = document.getElementById("popupTable");
for( i = 0 ;i<table.rows.length ; i++)
{
table.rows[i].className = "deSelectedRow";
for(j = 2; j<table.rows[i].cells.length ; j++)
{
table.rows[i].children[j].children[0].className = "popupFieldDisable";
}
}
var currentfield = table.rows[1].children[0].children[0];
currentfield.checked = true;
var currentfield = table.rows[1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
catch(err){}
}
document.onkeydown = onKeypressEvent;
function onKeypressEvent(e)
{
var keyID = (window.event) ? event.keyCode : e.keyCode;
switch (keyID)
{
//Esc Key
case 27:
var loc = window.location.href;
var pos = loc.indexOf("FIELDNAME=");
var pos1 = loc.indexOf("&OBJ_NAME");
fieldId = loc.substring(pos+10,pos1);
parent.closePopWindow(fieldId,false);
return false;
break;
}
return true;
}
function onLoadCalculator()
{
document.getElementById("popupFooter").innerHTML = "Esc- Exit";
}
function checkEvent( field,e )
{
var table = document.getElementById("popupTable");
var tableLength = table.rows.length;
var keyID = (window.event) ? event.keyCode : e.keyCode;
// alert("keyID :"+keyID);
if(keyID == "" || keyID == null || keyID == "undefined")
{
keyID = 13;
}
// alert("keyID@@@ :"+keyID);
switch (keyID)
{
//Down Key
case 40:
var curRowId = field.parentNode.parentNode.rowIndex;
if(curRowId == (tableLength - 1))
{
currentfield = table.rows[0].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[0].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
else
{
var currentfield = table.rows[curRowId+1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[curRowId+1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
return false;
break;
//TAB key
case 9:
var curRowId = field.parentNode.parentNode.rowIndex;
if(e.shiftKey)
{
if(curRowId == 0)
{
currentfield = table.rows[tableLength-1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[tableLength-1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
else
{
var currentfield = table.rows[curRowId-1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[curRowId-1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
}
else
{
if(curRowId == (tableLength - 1))
{
currentfield = table.rows[0].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[0].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
else
{
var currentfield = table.rows[curRowId+1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[curRowId+1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
}
return false;
break;
//Up key
case 38:
var curRowId = field.parentNode.parentNode.rowIndex;
if(curRowId == 0)
{
currentfield = table.rows[tableLength-1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[tableLength-1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
else
{
var currentfield = table.rows[curRowId-1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[curRowId-1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
return false;
break;
//Page Down
case 34:
var curRowId = field.parentNode.parentNode.rowIndex;
if((parseInt(curRowId)+20) < tableLength )
{
currentfield = table.rows[curRowId+20].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[curRowId+20].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
else
{
currentfield = table.rows[tableLength-1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[tableLength-1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
return false;
break;
//Page UP
case 33:
var curRowId = field.parentNode.parentNode.rowIndex;
if((parseInt(curRowId)-20) > 0 )
{
currentfield = table.rows[curRowId-20].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[curRowId-20].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
else
{
currentfield = table.rows[0].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[0].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
}
return false;
break;
//Home Key
case 36:
currentfield = table.rows[0].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[0].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
return false;
break;
//End Key
case 35:
currentfield = table.rows[tableLength-1].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[tableLength-1].children[1].children[0];
focusRow(table,currentfield);
currentfield.focus();
return false;
break;
//Esc Key
case 27:
onKeypressEvent(e);
return false;
break;
//Enter Key
case 13:
var loc = window.location.href;
var pos = loc.indexOf("FIELDNAME=");
var pos1 = loc.indexOf("&OBJ_NAME");
fieldId = loc.substring(pos+10,pos1);
domName = fieldId.substring(0,fieldId.lastIndexOf("."));
tableRowField = field.parentNode.parentNode;
parent.setPopValue(tableRowField,domName,fieldId);
parent.closePopWindow(fieldId,true);
return false;
break;
}
return false;
}
function onFocusFun(field)
{
var table = document.getElementById("popupTable");
var tableLength = table.rows.length;
var curRowId = field.parentNode.parentNode.rowIndex;
currentfield = table.rows[curRowId].children[0].children[0];
currentfield.checked = true;
currentfield = table.rows[curRowId].children[1].children[0];
focusRow(table,currentfield);
table.rows[curRowId].children[0].style.textAlign = "right";
currentfield.focus();
currentfield.select();
return false;
}
function focusRow(table,currentfield)
{
currentfield.parentNode.parentNode.className = "selectRow";
rowIndex1 = currentfield.parentNode.parentNode.rowIndex;
for(j = 1; j<table.rows.length ; j++)
{
table.rows[j].children[0].style.textAlign = "left";
}
for(j = 2; j<table.rows[rowIndex1].cells.length ; j++)
{
currentfield.parentNode.parentNode.children[j].children[0].className = "selectRowFieldDisable";
}
currentfield.parentNode.parentNode.children[0].children[0].style.textAlign = "left";
}
function onblurFunction(field)
{
var table = document.getElementById("popupTable");
field.parentNode.parentNode.className = "deSelectedRow";
rowIndex1 = field.parentNode.parentNode.rowIndex;
for(j = 2; j<table.rows[rowIndex1].cells.length ; j++)
{
field.parentNode.parentNode.children[j].children[0].className = "popupFieldDisable";
}
}
function checkCalPopUpEvent(field,e)
{
var table = document.getElementById("popupTable");
var tableLength = table.rows.length;
var keyID = (window.event) ? event.keyCode : e.keyCode;
switch (keyID)
{
//Down Key
case 40:
var curRowId = field.parentNode.parentNode.rowIndex;
if(curRowId == (tableLength - 1))
{
currentfield = table.rows[0].children[1].children[0];
currentfield.focus();
}
else
{
currentfield = table.rows[curRowId+1].children[1].children[0];
currentfield.focus();
}
return false;
break;
//TAB key
case 9:
var curRowId = field.parentNode.parentNode.rowIndex;
if(e.shiftKey)
{
if(curRowId == 0)
{
currentfield = table.rows[tableLength-1].children[1].children[0];
currentfield.focus();
}
else
{
currentfield = table.rows[curRowId-1].children[1].children[0];
currentfield.focus();
}
}
else
{
if(curRowId == (tableLength - 1))
{
currentfield = table.rows[0].children[1].children[0];
currentfield.focus();
}
else
{
currentfield = table.rows[curRowId+1].children[1].children[0];
currentfield.focus();
}
}
return false;
break;
//Up key
case 38:
var curRowId = field.parentNode.parentNode.rowIndex;
if(curRowId == 0)
{
currentfield = table.rows[tableLength-1].children[1].children[0];
currentfield.focus();
}
else
{
currentfield = table.rows[curRowId-1].children[1].children[0];
currentfield.focus();
}
return false;
break;
//Esc Key
case 27:
onKeypressEvent(e);
return false;
break;
}
return true;
}
function getUrlVars(domName,field) {
var vars = "";
var hashes = document.getElementById("paramURL").value.slice(1).split('&');
for(var i = 0; i < hashes.length; i++)
{
popInputField = document.popupform.getElementsByTagName("input");
hash = hashes[i].split('=');
for(cnt = 0; cnt < popInputField.length ; cnt++)
{
if(popInputField[cnt].name.indexOf("Detail") == -1)
{
if(domName + "."+popInputField[cnt].name == hash[0])
{
hash[1] = popInputField[cnt].value;
}
}
else
{
if(popInputField[cnt].name == hash[0])
{
hash[1] = popInputField[cnt].value;
}
}
if(hash[0].indexOf("FOCUSED_COL") != -1)
{
hash[1] = domName+"."+field.name;
}
if(hash[0].indexOf("ACTION") != -1)
{
hash[1] = "post_item_change";
}
}
vars +=hash[0]+"="+hash[1]+"&";
}
return vars;
}
function onServerCallFun(field)
{
var loc = window.location.href;
var pos = loc.indexOf("FIELDNAME=");
var pos1 = loc.indexOf("&OBJ_NAME");
fieldId = loc.substring(pos+10,pos1);
if(field != null && (field.getAttribute("isservercallonchange") != null && field.getAttribute("isservercallonchange") == "true")) // CHECK FIELD IS SET FOR ITEM CHANGE OR NOT
{
createActionEventElement(field);
if(document.getElementById("ACTION") != null)
{
document.getElementById("ACTION").value = "post_item_change";
}
if(document.getElementById("FOCUSED_COL") != null)
{
if(field.name.indexOf("Detail") == -1)
{
document.getElementById("FOCUSED_COL").value = "Detail2.1."+field.name;
}
else
{
document.getElementById("FOCUSED_COL").value = field.name;
}
}
if(document.getElementById("forcedSave") != null)
{
document.getElementById("forcedSave").value = "false";
}
}
domName = fieldId.substring(0,fieldId.lastIndexOf("."));
currentDomName = domName;
keyString = getUrlVars(domName,field);
xmlhttpPost("/ibase/E12SingleTranEditorServlet", keyString,"");
}
function xmlhttpPost(strURL,formname,responsemsg)
{
var xmlHttpReq = false;
var self = this;
// Xhr per Mozilla/Safari/Ie7
if (window.XMLHttpRequest)
{
self.xmlHttpReq = new XMLHttpRequest();
}
// per tutte le altre versioni di IE
else if (window.ActiveXObject)
{
self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
}
self.xmlHttpReq.open("POST", strURL, true);
self.xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
self.xmlHttpReq.onreadystatechange = function()
{
if (self.xmlHttpReq.readyState == 4)
{
setValueInPopUp(self.xmlHttpReq.responseText);
}
}
self.xmlHttpReq.send(keyString);
}
function createActionEventElement(field)
{
if(document.getElementById("ACTION") == null)
{
var element = document.createElement("input");
element.type = "hidden";
element.name = "ACTION";
element.value = "post_item_change";
element.setAttribute("id", "ACTION");
element.setAttribute("readonly", "readonly");
document.popupform.appendChild(element);
}
if(document.getElementById("FOCUSED_COL") == null)
{
var element = document.createElement("input");
element.type = "hidden";
element.name = "FOCUSED_COL";
if(field != null)
{
element.value = field.name;
}
else
{
element.value = "";
}
element.setAttribute("id", "FOCUSED_COL");
element.setAttribute("readonly", "readonly");
document.popupform.appendChild(element);
}
if(document.getElementById("forcedSave") == null)
{
var element = document.createElement("input");
element.type = "hidden";
element.name = "forcedSave";
element.value = "false"
element.setAttribute("id", "forcedSave");
element.setAttribute("readonly", "readonly");
document.popupform.appendChild(element);
}
}
function setValueInPopUp(xmlStr)
{
if (window.DOMParser)
{
parser=new DOMParser();
xmlDoc=parser.parseFromString(xmlStr,"text/xml");
}
else // Internet Explorer
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(xmlStr);
}
if(xmlDoc.getElementsByTagName("Root") != null )
{
var x = xmlDoc.getElementsByTagName("Root")[0].childNodes;
if(x != null)
{
for ( i = 1 ; i < x.length ; i++)
{
detailElement = x[i];
if(detailElement.nodeName.indexOf("Detail1") != -1)
{
detailChild = detailElement.childNodes;
for( j = 1 ;j < detailChild.length ; j++)
{
if(detailChild[j] != null)
{
fieldName = detailChild[j].nodeName;
if(document.getElementById("Detail1.1." + fieldName) != null)
{
try
{
document.getElementById("Detail1.1." + fieldName).value = detailChild[j].childNodes[0].nodeValue;
if(detailChild[j].getAttribute("protect") == "1" || detailChild[j].getAttribute("PROTECT") == "1")
{
document.getElementById("Detail1.1." + fieldName).setAttribute("readonly","true");
document.getElementById("Detail1.1." + fieldName).setAttribute("tabIndex", "-1");
}
}
catch(err){}
}
}
}
}
else
{
detailChild = detailElement.childNodes;
for( j = 0 ;j < detailChild.length ; j++)
{
if(detailChild[j] != null)
{
if(document.getElementById(detailChild[j].nodeName) != null)
{
try{
document.getElementById(detailChild[j].nodeName).value = detailChild[j].childNodes[0].nodeValue;
if(detailChild[j].getAttribute("protect") == "1" || detailChild[j].getAttribute("PROTECT") == "1")
{
document.getElementById(detailChild[j].nodeName).setAttribute("readonly","true");
document.getElementById(detailChild[j].nodeName).setAttribute("tabIndex", "-1");
}
}
catch(err){}
}
}
}
}
}
}
}
}
\ No newline at end of file
...@@ -8,11 +8,13 @@ var numbers = /^[0-9.]+$/; ...@@ -8,11 +8,13 @@ var numbers = /^[0-9.]+$/;
function resizeVideoPage(){ function resizeVideoPage(){
// var width = 850; // var width = 850;
var width = 700; var width = 700;
var height = 700; var height = 710;
window.resizeTo(width, height); window.resizeTo(width, height);
window.moveTo(((screen.width - width) / 2), ((screen.height - height) / 2)); window.moveTo(((screen.width - width) / 2), ((screen.height - height) / 2));
} }
......
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