ZIS9100.js
3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
//**************** 勘定科目入力画面表示 ****************
//*** 新規 ***//
function Input_Disp(div_id,oya_id){
//不要DIVクローズ
for (i = 0; i <= document.frm.div_count.value; i = i +1){
if (i != div_id){
Input_Close(i);
}
}
prm = "div_id="+div_id;
prm += "&oya_id="+oya_id;
loadHTMLInput("ZIS9120.php", prm);
function loadHTMLInput(fName,prm){
httpObjInput = createXMLHttpRequest(displayInput);
if (httpObjInput){
httpObjInput.open("POST",fName,true);
httpObjInput.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObjInput.send(prm);
}
}
function displayInput(){
if ((httpObjInput.readyState == 4) && (httpObjInput.status == 200)){
document.getElementById("input_"+div_id).innerHTML = httpObjInput.responseText;
document.getElementById("input_"+div_id).style.display = "block";
}else{
$("input_"+div_id).innerHTML = "<b>Loading...</b>";
}
}
}
//*** 更新 ***//
function Input_Disp2(div_id,kamoku_id){
//不要DIVクローズ
for (i = 0; i <= document.frm.div_count.value; i = i +1){
if (i != div_id){
Input_Close(i);
}
}
prm = "div_id="+div_id;
prm += "&kamoku_id="+kamoku_id;
loadHTMLInput("ZIS9130.php", prm);
function loadHTMLInput(fName,prm){
httpObjInput = createXMLHttpRequest(displayInput);
if (httpObjInput){
httpObjInput.open("POST",fName,true);
httpObjInput.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObjInput.send(prm);
}
}
function displayInput(){
if ((httpObjInput.readyState == 4) && (httpObjInput.status == 200)){
document.getElementById("input_"+div_id).innerHTML = httpObjInput.responseText;
document.getElementById("input_"+div_id).style.display = "block";
}else{
$("input_"+div_id).innerHTML = "<b>Loading...</b>";
}
}
}
//*** 移動 ***//
function Input_Disp3(div_id,kamoku_id){
//不要DIVクローズ
for (i = 0; i <= document.frm.div_count.value; i = i +1){
if (i != div_id){
Input_Close(i);
}
}
prm = "div_id="+div_id;
prm += "&kamoku_id="+kamoku_id;
loadHTMLInput("ZIS9140.php", prm);
function loadHTMLInput(fName,prm){
httpObjInput = createXMLHttpRequest(displayInput);
if (httpObjInput){
httpObjInput.open("POST",fName,true);
httpObjInput.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
httpObjInput.send(prm);
}
}
function displayInput(){
if ((httpObjInput.readyState == 4) && (httpObjInput.status == 200)){
document.getElementById("input_"+div_id).innerHTML = httpObjInput.responseText;
document.getElementById("input_"+div_id).style.display = "block";
}else{
$("input_"+div_id).innerHTML = "<b>Loading...</b>";
}
}
}
//**************** 勘定科目入力画面閉じる ****************
function Input_Close(div_id){
document.getElementById("input_"+div_id).style.display = "none";
document.getElementById("input_"+div_id).innerHTML="";
}
//**************** 勘定科目データ更新 ****************
//*** 新規 ***//
function Input_Sinki(){
if (hissu_chk("勘定科目名",document.frm.txtInpName.value)==false) {
return false;
}
document.frm.action = "ZIS9190.php";
document.frm.method="POST";
document.frm.submit();
}
//*** 更新 ***//
function Input_Update(){
if (hissu_chk("勘定科目名",document.frm.txtInpName.value)==false) {
return false;
}
document.frm.pMode.value = 2;
document.frm.action = "ZIS9190.php";
document.frm.method="POST";
document.frm.submit();
}
//*** 削除 ***//
function Input_Delete(){
if(confirm("勘定科目データは消去されます\nよろしいですか?")){
document.frm.pMode.value = 3;
document.frm.action = "ZIS9190.php";
document.frm.method="POST";
document.frm.submit();
}
}