?? modifycellinput.jsp
字號:
<!-- 系統名稱:光大花園物業管理系統 -->
<!-- 程序名稱:ModifyCellInput.jsp -->
<!-- 程序類型:jsp文件 -->
<!-- 功能簡述:修改單元資料輸入頁面 -->
<!-- 作 者:韓立鋒 -->
<!-- 公 司:長春中聯 -->
<!-- 完成時間:2001/08/24 -->
<!-- 修 改 人:畢鋒 -->
<!-- 修改內容:頁面,增加字段--floortype -->
<!-- 修改時間:2001/11/20 --12/08 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="/pmsApp/css/wuye.css">
<title>資料管理-修改單元資料數據</title>
<script language="JavaScript" src="/pmsApp/common/wuye.js"></script>
<script language="JavaScript" src="/pmsApp/common/admin.js"></script>
<%
String number1=(String)request.getParameter("number");
String cellnumb=(String)request.getParameter("cellnumb");
String floortype=(String)request.getParameter("floortype");
String floornumb=(String)request.getParameter("floornumb");
String doornumb=(String)request.getParameter("doornumb");
String buildingnumb=(String)request.getParameter("buildingnumb");
String subareanumb=(String)request.getParameter("subareanumb");
String use=(String)request.getParameter("use");
String structure=(String)request.getParameter("structure");
String architecturearea=(String)request.getParameter("architecturearea");
String usingarea=(String)request.getParameter("usingarea");
String direction=(String)request.getParameter("direction");
String bedroom=(String)request.getParameter("bedroom");
String hall=(String)request.getParameter("hall");
String loo=(String)request.getParameter("loo");
String cookroom=(String)request.getParameter("cookroom");
String balcony=(String)request.getParameter("balcony");
String elseroom=(String)request.getParameter("elseroom");
String addfixture=(String)request.getParameter("addfixture");
String candr=(String)request.getParameter("candr");
String crdate=(String)request.getParameter("crdate");
String useflag=(String)request.getParameter("useflag");
String price=(String)request.getParameter("price");
String paymentway=(String)request.getParameter("paymentway");
String paycontent=(String)request.getParameter("paycontent");
String enterdate=(String)request.getParameter("enterdate");
String fitment=(String)request.getParameter("fitment");
String owner=(String)request.getParameter("owner");
String remark=(String)request.getParameter("remark");
int filesize = Integer.parseInt(request.getParameter("size"));
//拆份日期
int j=0;
int m=0;
String cryear="";
String enteryear="";
String crmonth="";
String entermonth="";
String crday="";
String enterday="";
String str = "";
String str1 = "";
j=crdate.indexOf("-");
cryear = crdate.substring(0,j);
str = crdate.substring(j+1);
j=str.indexOf("-");
crmonth=str.substring(0,j);
crday= str.substring(j+1);
m=enterdate.indexOf("-");
enteryear = enterdate.substring(0,m);
str1 = enterdate.substring(m+1);
m=str1.indexOf("-");
entermonth=str1.substring(0,m);
enterday= str1.substring(m+1);
%>
<script language="JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave this comment intact.
alt=alt+" ** Click window to close **"
if (bgcolor=="") {
bgcolor="#FFFFFF";
}
var adj=10
var w = screen.width;
var h = screen.height;
var byFactor=1;
if(w<740){
var lift=0.90;
}
if(w>=740 & w<835){
var lift=0.91;
}
if(w>=835){
var lift=0.93;
}
if (imageWidth>w){
byFactor = w / imageWidth;
imageWidth = w;
imageHeight = imageHeight * byFactor;
}
if (imageHeight>h-adj){
byFactor = h / imageHeight;
imageWidth = (imageWidth * byFactor);
imageHeight = h;
}
var scrWidth = w-adj;
var scrHeight = (h*lift)-adj;
if (imageHeight>scrHeight){
imageHeight=imageHeight*lift;
imageWidth=imageWidth*lift;
}
var posLeft=0
var posTop=0
if (hugger=="hug image") {
posTop = (scrHeight-imageHeight)/2;
posLeft = ((w-imageWidth)/2);
scrHeight = imageHeight-adj;
scrWidth = imageWidth-adj;
}
imageHeight=imageHeight-adj;
imageWidth=imageWidth-adj;
newWindow = window.open("","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
newWindow.document.open();
newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');
newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt=\"Click\ \;screen\ \;to\ \;close.\" >');
newWindow.document.write('</td></tr></table></body></html>');
newWindow.document.close();
newWindow.focus();
}
//-->
//設置日期的缺省值
function modDate1() {
for(var i = 0; i < 21; i++) {
if(document.form1.cryear[i].value == "<%=cryear%>") {
document.form1.cryear[i].selected = true;
break;
}
}
for(var i = 0; i < 12; i++) {
if(document.form1.crmonth[i].value == "<%=crmonth%>") {
document.form1.crmonth[i].selected = true;
break;
}
}
for(var i = 0; i < 31; i++) {
if(document.form1.crday[i].value == "<%=crday%>")
{
document.form1.crday[i].selected = true;
break;
}
}
}
//設置日期的缺省值
function modDate2() {
for(var i = 0; i < 21; i++) {
if(document.form1.enteryear[i].value == "<%=enteryear%>") {
document.form1.enteryear[i].selected = true;
break;
}
}
for(var i = 0; i < 12; i++) {
if(document.form1.entermonth[i].value == "<%=entermonth%>") {
document.form1.entermonth[i].selected = true;
break;
}
}
for(var i = 0; i < 31; i++) {
if(document.form1.enterday[i].value == "<%=enterday%>")
{
document.form1.enterday[i].selected = true;
break;
}
}
}
//檢查輸入的必須為數字
function ChkDigit1(num)
{
for(i_loop=0;i_loop<num.length;i_loop++)
{
if (!((num.charAt(i_loop)>=0)&&(num.charAt(i_loop)<=9)))
{
return false ;
}
}
}
function ChkDigit2(num)
{
var count = 0;
for(i_loop=0;i_loop<num.length;i_loop++)
{
if (!(((num.charAt(i_loop)>=0)&&(num.charAt(i_loop)<=9))||(num.charAt(i_loop)==".")))
{
return false ;
}
if (num.charAt(i_loop)==".") {
count = count +1 ;
}
if (count>1) {
return false;
}
if((count==1)&&(num.length==1)){
return false;
}
}
}
function ChkFeeStandard(num)
{
for(i_loop=0;i_loop<=num.length;i_loop++)
{
if (!(num.charAt(i_loop)=='.'))
if (!((num.charAt(i_loop)>=0)&&(num.charAt(i_loop)<=9)))
{
alert("輸入的售價不正確");
return false ;
}
}
return true;
}
function CheckForm(inputForm)
{
Nvoid(inputForm);
if (inputForm.cellnumb.value==""){
alert("請輸入單元編號!");
inputForm.cellnumb.focus();
return false;
}
if(inputForm.cellnumb.value.length>2)
{
alert("單元編號長度不能超過兩位!");
inputForm.cellnumb.focus();
return false;
}
if (ChkDigit1(inputForm.cellnumb.value)==false){
alert("單元編號必須為數字!");
inputForm.cellnumb.focus();
return false;
}
if(inputForm.cellnumb.value.length==1){
inputForm.cellnumb.value="0"+inputForm.cellnumb.value;
}
if (inputForm.floornumb.value==""){
alert("請輸入樓層數!");
inputForm.floornumb.focus();
return false;
}
if (inputForm.bedroom.value!=""&&ChkDigit1(inputForm.bedroom.value)==false){
alert("居住間的個數必須為數字!");
inputForm.bedroom.focus();
return false;
}
if (inputForm.hall.value!=""&&ChkDigit1(inputForm.hall.value)==false){
alert("客廳的個數必須為數字!");
inputForm.hall.focus();
return false;
}
if (inputForm.loo.value!=""&&ChkDigit1(inputForm.loo.value)==false){
alert("衛生間的個數必須為數字!");
inputForm.loo.focus();
return false;
}
if (inputForm.cookroom.value!=""&&ChkDigit1(inputForm.cookroom.value)==false){
alert("廚房的個數必須為數字!");
inputForm.cookroom.focus();
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -