📄 enterprises2.java
字号:
private Command itemCommand65;
private Command itemCommand66;
private Command itemCommand67;//GEN-END:MVDFields
//GEN-LINE:MVDMethods
/** This method initializes UI of the application.//GEN-BEGIN:MVDInitBegin
*/
private void initialize() {//GEN-END:MVDInitBegin
// Insert pre-init code here
getDisplay().setCurrent(get_input1());//GEN-LINE:MVDInitInit
// Insert post-init code here
if(Start == 0)
{
Start = 1;
for(int i = 0 ; i < telphone_num ; i ++)
{
g_sort[i] = i;
g_select[i]=0;
g_phonebookaddr[i] = "";
}
CnToSpell1 = new CnToSpell();
g_calltype = Egetcalltype();
g_pwd = Egetpwd();
g_myphone = Egetphone();
phonebookread1 = new phonebookread("");
phonebookread1.read = 1;
phonebookread1.start();
output = new Alert("提示","",null,null);
// try{ sleep(1000);}catch(Exception ce){}
}
}//GEN-LINE:MVDInitEnd
/** Called by the system to indicate that a command has been invoked on a particular displayable.//GEN-BEGIN:MVDCABegin
* @param command the Command that ws invoked
* @param displayable the Displayable on which the command was invoked
*/
public void commandAction(Command command, Displayable displayable) {//GEN-END:MVDCABegin
// Insert global pre-action code here
if (displayable == input1) {//GEN-BEGIN:MVDCABody
if (command == itemCommand24) {//GEN-END:MVDCABody
// Insert pre-action code here
getDisplay().setCurrent(get_helptextBox1());//GEN-LINE:MVDCAAction53
// Insert post-action code here
helptextBox1.append("本软件是由ECALL通信自主研发的手机JAVA会员平台,是目前功能最强大,性能最稳定的手机会员平台,支持ECALL电话、点歌、短信、电话会议等全部通信功能,同时很好的支持短信、点歌的群选群发,支持歌曲编号的无线下载,十分方便实用。电话本的上传功能能把手机上的电话本直接无线上传到服务器上面,同时自动生成4位数的短号码,从此电话本中的联系人都可以短号码缩位拨号;电话本下载功能还可以替您解决手机遗失或者更换以后通讯录也永无丢失的后顾之忧。ECALL新闻、会员留言和回复查询,会员积分、奖金、话费的查询功能让您不需要电脑也能随时了解公司和会员自己的信息。使用中如有疑问,请通过会员留言直接向客服咨询,ECALL的专业客服人员会在第一时间给您答复,谢谢您使用本软件!");
helptextBox1.setTitle("ECALL帮助");
} else if (command == exitCommand2) {//GEN-LINE:MVDCACase53
// Insert pre-action code here
exitMIDlet();//GEN-LINE:MVDCAAction55
// Insert post-action code here
} else if (command == itemCommand22) {//GEN-LINE:MVDCACase55
// Insert pre-action code here
getDisplay().setCurrent(get_configlist1());//GEN-LINE:MVDCAAction50
// Insert post-action code here
configlist1.deleteAll();
configlist1.setTitle("设置");
configlist1.append("电话号码",null);
configlist1.append("密码",null);
configlist1.append("修改密码",null);
// configlist1.append("拨号方式",null);
// configlist1.append("所在行业",null);
configlist1.append("密码找回",null);
configlist1.append("注册体验客户",null);
configlist1.append("亲情号码绑定",null);
configlist1.append("时间校准",null);
} else if (command == itemCommand14) {//GEN-LINE:MVDCACase50
// Insert pre-action code here
for(int wi = 0 ; wi < telphone_num ; wi ++)g_select[wi]=0;
getDisplay().setCurrent(get_phonebook2());//GEN-LINE:MVDCAAction34
// Insert post-action code here
phonebook2.setTitle("通讯录");
// phonebooklist1.deleteAll();
// phonebooklist1.setTitle("在线通讯录");
// phonebooklist1.append("个人名片",null);
// phonebooklist1.append("手机通讯录",null);
// phonebooklist1.append("企业通讯录",null);
// phonebooklist1.append("私密通讯录",null);
// phonebooklist1.append("通讯录无线同步",null);
} else if (command == itemCommand53) {//GEN-LINE:MVDCACase34
// Insert pre-action code here
getDisplay().setCurrent(get_news1());//GEN-LINE:MVDCAAction218
// Insert post-action code here
news1.setTitle("在线新闻");
news1.deleteAll();
Enetcallthread2 enetcallthread7 = new Enetcallthread2("138");
enetcallthread7.type = 9;
enetcallthread7.start();
/* try
{
enetcallthread7.join();
}catch(Exception tx){} */
//System.out.println(enetcallthread7.retstr);
} else if (command == itemCommand54) {//GEN-LINE:MVDCACase218
// Insert pre-action code here
getDisplay().setCurrent(get_Message1());//GEN-LINE:MVDCAAction220
// Insert post-action code here
Message1.setTitle("在线留言");
Enetcallthread2 enetcallthread7 = new Enetcallthread2("138");
enetcallthread7.type = 7;
enetcallthread7.start();
/*
try
{
enetcallthread7.join();
}catch(Exception tx){}
*/
} else if (command == itemCommand59) {//GEN-LINE:MVDCACase220
// Insert pre-action code here
getDisplay().setCurrent(get_call_Member1());//GEN-LINE:MVDCAAction244
// Insert post-action code here
call_Member1.setTitle("ECALL会员");
g_xiazai =0;
//call_Member1
Enetcallthread2 enetcallthread8 = new Enetcallthread2("138");
enetcallthread8.type = 8;
enetcallthread8.start();
/* try
{
enetcallthread7.join();
}catch(Exception tx){} */
/*
Enetcallthread2 enetcallthread10 = new Enetcallthread2("138");
enetcallthread10.type = 10;
enetcallthread10.start();
try
{
enetcallthread10.join();
}catch(Exception tx){} */
} else if (command == itemCommand57) {//GEN-LINE:MVDCACase244
// Insert pre-action code here
getDisplay().setCurrent(get_call_msg2());//GEN-LINE:MVDCAAction240
// Insert post-action code here
//call_msg2.setTitle("ECALL会议");
String temp_call_m2 = input1.getString();
if(temp_call_m2.length() > 3)
call_msg2.setTitle("ECALL会议->"+temp_call_m2);
else
call_msg2.setTitle("ECALL会议");
} else if (command == itemCommand56) {//GEN-LINE:MVDCACase240
// Insert pre-action code here
getDisplay().setCurrent(get_call_song1());//GEN-LINE:MVDCAAction238
// Insert post-action code here
call_song1.setString("请输入歌曲编号");
String temp_call_m5 = input1.getString();
if(temp_call_m5.length() > 3)
call_song1.setTitle("点歌给:"+temp_call_m5);
else
call_song1.setTitle("ECALL点歌");
} else if (command == itemCommand58) {//GEN-LINE:MVDCACase238
// Insert pre-action code here
getDisplay().setCurrent(get_call_msg2());//GEN-LINE:MVDCAAction242
// Insert post-action code here
String temp_call_m2 = input1.getString();
if(temp_call_m2.length() > 3)
call_msg2.setTitle("ECALL短信->"+temp_call_m2);
else
call_msg2.setTitle("ECALL短信");
//System.out.println("ECALL短信"+input1.getString());
}//GEN-BEGIN:MVDCACase242
} else if (displayable == phonebook2) {
if (command == backCommand3) {//GEN-END:MVDCACase242
// Insert pre-action code here
// Do nothing//GEN-LINE:MVDCAAction68
// Insert post-action code here
} else if (command == backCommand5) {//GEN-LINE:MVDCACase68
// Insert pre-action code here
getDisplay().setCurrent(get_input1());//GEN-LINE:MVDCAAction78
// Insert post-action code here
} else if (command == itemCommand26) {//GEN-LINE:MVDCACase78
// Insert pre-action code here
getDisplay().setCurrent(get_callform1());//GEN-LINE:MVDCAAction81
// Insert post-action code here
callform1.setTitle("拨号");
g_xiazai = 0;
callform1.deleteAll();
callform1.append(g_ii_g[5]);
int i =phonebook2.getSelectedIndex();
StringBuffer phones = new StringBuffer(g_phonebooktel[g_sort[i]]);
String phone = phones.toString();
Enetcallthread netcall1 = new Enetcallthread(phone);
netcall1.start();
callform1.setTitle("正在拨号");
/* try
{
netcall1.join();
}catch(Exception tx){} */
//try{ sleep(1000);}catch(Exception ce){}
// if(netcall1.ret2 == 0)
// callform1.setTitle("拨号成功");
// else
// callform1.setTitle("拨号失败");
} else if (command == itemCommand27) {//GEN-LINE:MVDCACase81
// Insert pre-action code here
phonebook2.sendtype = 0;
getDisplay().setCurrent(get_sentsmstextBox1());//GEN-LINE:MVDCAAction83
// Insert post-action code here
sentsmstextBox1.setTitle("发送消息");
// kkkkk
} else if (command == okCommand9) {//GEN-LINE:MVDCACase83
// Insert pre-action code here
phonebook2.sendtype = 1;
getDisplay().setCurrent(get_sentsmstextBox1());//GEN-LINE:MVDCAAction202
// Insert post-action code here
sentsmstextBox1.setTitle("消息群发");
} else if (command == okCommand11) {//GEN-LINE:MVDCACase202
// Insert pre-action code here
getDisplay().setCurrent(get_call_song1());//GEN-LINE:MVDCAAction207
// Insert post-action code here
call_song1.setTitle("ECALL点歌");
call_song1.setString("请输入歌曲编号");
//sentsmstextBox1.setString("我现在用3G全球通打电话,便宜又好用哦!打长途最低每分钟只要1毛钱,还有很多很实用的功能,如电话本无线同步,换手机不用重输电话本了,不错吧");
} else if (command == itemCommand50) {//GEN-LINE:MVDCACase207
// Insert pre-action code here
phonebook2.sendtype = 3;//电话会议
getDisplay().setCurrent(get_sentsmstextBox1());//GEN-LINE:MVDCAAction209
// Insert post-action code here
sentsmstextBox1.setTitle("电话会议");
int k = phonebook2.getSelectedIndex();
String t_name = "";
StringBuffer t_name_s = new StringBuffer("正在邀请电话会议名单:");
for(int i=0 ; i < g_phonenum1 ;i ++)
{
if(g_select[i]==1)
t_name_s.append("\n").append(g_phonebookname[g_sort[i]]);
}
if(t_name_s.length() > 0)
t_name = t_name_s.toString();
else
t_name = g_phonebookname[g_sort[k]];
sentsmstextBox1.setString(t_name);
} else if (command == itemCommand51) {//GEN-LINE:MVDCACase209
// Insert pre-action code here
getDisplay().setCurrent(get_download6());//GEN-LINE:MVDCAAction212
// Insert post-action code here
download6.setTitle("通讯录下载");
download6.deleteAll();
download6.append("通讯录下载的同时,你可以免费向你的通讯录中的好友推广ECALL业务");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -