📄 card.java
字号:
if(hsPara.get(CDCmd.PA_TOSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_TO));
else if(hsPara.get(CDCmd.PA_CCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_CC));
else if(hsPara.get(CDCmd.PA_BCCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_BCC));
// 慡慖戰夝彍
buf = (String[])hsPara.get(CDCmd.PA_RESETX);
if(buf!=null) {
hsPara.remove("to");
hsPara.remove("cc");
hsPara.remove("bcc");
address = new MailAddress();
}
try{
next_mail_url = (String)session.getAttribute(GSBase.SESSION_MAIL_URL);
hsPara.put(CDCmd.PA_NEXTURL, next_mail_url);
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
// 搊榐
buf = (String[])hsPara.get(CDCmd.PA_SETX);
if(buf!=null) {
// MailAddress偵抣傪僙僢僩
address = setAddress(address, hsPara, indexs);
session.setAttribute(GSBase.SESSION_MAIL_ADDRESS, address);
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 庢徚
buf = (String[])hsPara.get(CDCmd.PA_CANCELX);
if(buf!=null) {
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 慖戰
buf = (String[])hsPara.get(CDCmd.PA_NOTSELECTX);
if(buf!=null) {
hsPara.remove(CDCmd.AD_SELECTION);
}
HashSet indexs_kaisha = indexs.getItemIndexs(CDCmd.CD_CARD1);
page = new Createaddress_kaisha(hsInitData,hsPara,intpage,uconf.GetDisplayMax(),index,UM,uid,indexs_kaisha);
break;
case CDCmd.AD_ADDRESS2:// 傾僪儗僗挔乮柤慜乯
address = init_address(session);
indexs = init_indexs(hsInitData, hsPara, carddataDir);
if(hsPara.get("addin") == null) {
// index敾暿
indexs.getIndexs(address);
if(indexs.gettoID().length > 0)
hsPara.put("to", indexs.gettoID());
if(indexs.getccID().length > 0)
hsPara.put("cc", indexs.getccID());
if(indexs.getbccID().length > 0)
hsPara.put("bcc", indexs.getbccID());
}
buf = (String[])hsPara.get("arl.x");//慜儁乕僕
if(buf!=null) {
intpage--;
}
buf = (String[])hsPara.get("arr.x");//師儁乕僕
if(buf!=null) {
intpage++;
}
// 慖戰
if(hsPara.get(CDCmd.PA_TOSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_TO));
else if(hsPara.get(CDCmd.PA_CCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_CC));
else if(hsPara.get(CDCmd.PA_BCCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_BCC));
// 慡慖戰夝彍
buf = (String[])hsPara.get(CDCmd.PA_RESETX);
if(buf!=null) {
hsPara.remove("to");
hsPara.remove("cc");
hsPara.remove("bcc");
address = new MailAddress();
}
try{
next_mail_url = (String)session.getAttribute(GSBase.SESSION_MAIL_URL);
hsPara.put(CDCmd.PA_NEXTURL, next_mail_url);
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
// 搊榐
buf = (String[])hsPara.get(CDCmd.PA_SETX);
if(buf!=null) {
// MailAddress偵抣傪僙僢僩
address = setAddress(address, hsPara, indexs);
session.setAttribute(GSBase.SESSION_MAIL_ADDRESS, address);
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 庢徚
buf = (String[])hsPara.get(CDCmd.PA_CANCELX);
if(buf!=null) {
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 慖戰
buf = (String[])hsPara.get(CDCmd.PA_NOTSELECTX);
if(buf!=null) {
hsPara.remove(CDCmd.AD_SELECTION);
}
HashSet indexs_name = indexs.getItemIndexs(CDCmd.CD_CARD2);
page = new Createaddress_name(hsInitData,hsPara,intpage,uconf.GetDisplayMax(),index,UM,indexs_name);
break;
case CDCmd.AD_ADDRESS3:// 傾僪儗僗挔乮扴摉乯
address = init_address(session);
indexs = init_indexs(hsInitData, hsPara, carddataDir);
if(hsPara.get("addin") == null) {
// index敾暿
indexs.getIndexs(address);
if(indexs.gettoID().length > 0)
hsPara.put("to", indexs.gettoID());
if(indexs.getccID().length > 0)
hsPara.put("cc", indexs.getccID());
if(indexs.getbccID().length > 0)
hsPara.put("bcc", indexs.getbccID());
}
buf = (String[])hsPara.get("arl.x");//慜儁乕僕
if(buf!=null) {
intpage--;
}
buf = (String[])hsPara.get("arr.x");//師儁乕僕
if(buf!=null) {
intpage++;
}
// 慖戰
if(hsPara.get(CDCmd.PA_TOSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_TO));
else if(hsPara.get(CDCmd.PA_CCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_CC));
else if(hsPara.get(CDCmd.PA_BCCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_BCC));
// 慡慖戰夝彍
buf = (String[])hsPara.get(CDCmd.PA_RESETX);
if(buf!=null) {
hsPara.remove("to");
hsPara.remove("cc");
hsPara.remove("bcc");
address = new MailAddress();
}
try{
next_mail_url = (String)session.getAttribute(GSBase.SESSION_MAIL_URL);
hsPara.put(CDCmd.PA_NEXTURL, next_mail_url);
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
// 搊榐
buf = (String[])hsPara.get(CDCmd.PA_SETX);
if(buf!=null) {
// MailAddress偵抣傪僙僢僩
address = setAddress(address, hsPara, indexs);
session.setAttribute(GSBase.SESSION_MAIL_ADDRESS, address);
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 庢徚
buf = (String[])hsPara.get(CDCmd.PA_CANCELX);
if(buf!=null) {
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 慖戰
buf = (String[])hsPara.get(CDCmd.PA_NOTSELECTX);
if(buf!=null) {
hsPara.remove(CDCmd.AD_SELECTION);
}
page = new Createaddress_tantou(hsInitData,hsPara,intpage,uconf.GetDisplayMax(),index,UM,gid,uid,usrid);
break;
case CDCmd.AD_ADDRESS4:// 傾僪儗僗挔乮E-MAil乯
address = init_address(session);
indexs = init_indexs(hsInitData, hsPara, carddataDir);
if(hsPara.get("addin") == null) {
// index敾暿
indexs.getIndexs(address);
if(indexs.gettoID().length > 0)
hsPara.put("to", indexs.gettoID());
if(indexs.getccID().length > 0)
hsPara.put("cc", indexs.getccID());
if(indexs.getbccID().length > 0)
hsPara.put("bcc", indexs.getbccID());
}
buf = (String[])hsPara.get("arl.x");//慜儁乕僕
if(buf!=null) {
intpage--;
}
buf = (String[])hsPara.get("arr.x");//師儁乕僕
if(buf!=null) {
intpage++;
}
// 慖戰
if(hsPara.get(CDCmd.PA_TOSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_TO));
else if(hsPara.get(CDCmd.PA_CCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_CC));
else if(hsPara.get(CDCmd.PA_BCCSELECTX) != null)
hsPara.put(CDCmd.AD_SELECTION, Integer.toString(CDCmd.AD_BCC));
// 慡慖戰夝彍
buf = (String[])hsPara.get(CDCmd.PA_RESETX);
if(buf!=null) {
hsPara.remove("to");
hsPara.remove("cc");
hsPara.remove("bcc");
address = new MailAddress();
}
try{
next_mail_url = (String)session.getAttribute(GSBase.SESSION_MAIL_URL);
hsPara.put(CDCmd.PA_NEXTURL, next_mail_url);
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
// 搊榐
buf = (String[])hsPara.get(CDCmd.PA_SETX);
if(buf!=null) {
// MailAddress偵抣傪僙僢僩
address = setAddress(address, hsPara, indexs);
session.setAttribute(GSBase.SESSION_MAIL_ADDRESS, address);
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 庢徚
buf = (String[])hsPara.get(CDCmd.PA_CANCELX);
if(buf!=null) {
try {
dispatcher = req.getRequestDispatcher(next_mail_url);
dispatcher.forward(req, res);
break;
} catch(Exception e) {
throw new GSException(CreateErrorPage.MSG[CreateErrorPage.ERR], e);
}
}
// 慖戰
buf = (String[])hsPara.get(CDCmd.PA_NOTSELECTX);
if(buf!=null) {
hsPara.remove(CDCmd.AD_SELECTION);
}
HashSet indexs_mail = indexs.getItemIndexs(CDCmd.CD_CARD4);
page = new Createaddress_mail(hsInitData,hsPara,intpage,uconf.GetDisplayMax(),index,UM,indexs_mail);
break;
case CDCmd.AD_DATA:// 柤巋徠夛夋柺(傾僪儗僗挔)
address = init_address(session);
indexs = init_indexs(hsInitData, hsPara, carddataDir);
if(hsPara.get("addin") == null) {
// index敾暿
indexs.getIndexs(address);
if(indexs.gettoID().length > 0)
hsPara.put("to", indexs.gettoID());
if(indexs.getccID().length > 0)
hsPara.put("cc", indexs.getccID());
if(indexs.getbccID().length > 0)
hsPara.put("bcc", indexs.getbccID());
}
String cID = (String)((String[])hsPara.get(CDCmd.PA_CID))[0];
page = new Createaddress_disp(hsInitData,hsPara,intpage,cID,UM,mod,index,uid,gid);
break;
}
if(page != null){
page.write(req,res);
}
}
/**
* 僄僋僗億乕僩幚峴儊僜僢僪
*
* @param hsPara 僷儔儊乕僞奿擺僴僢僔儏僥乕僽儖
* @param req 僒乕
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -