📄 enterprises2.java
字号:
// Insert pre-action code here
getDisplay().setCurrent(get_input1());//GEN-LINE:MVDCAAction287
// Insert post-action code here
}//GEN-BEGIN:MVDCACase287
} else if (displayable == helptextBox1) {
if (command == backCommand32) {//GEN-END:MVDCACase287
// Insert pre-action code here
getDisplay().setCurrent(get_input1());//GEN-LINE:MVDCAAction292
// Insert post-action code here
}//GEN-BEGIN:MVDCACase292
} else if (displayable == download6) {
if (command == itemCommand63) {//GEN-END:MVDCACase292
// Insert pre-action code here
getDisplay().setCurrent(get_download1());//GEN-LINE:MVDCAAction297
// Insert post-action code here
download1.setTitle("正在下载...");
g_xiazai = 0;
download1.deleteAll();
download1.append(g_ii_g[4]);
/*
Enetcallthread2 enetcallthread2 = new Enetcallthread2("138");
enetcallthread2.type = 4;
enetcallthread2.start();
try
{
enetcallthread2.join();
}catch(Exception tx){}
// System.out.println(enetcallthread2.retstr);
*/
Enetcallthread2 enetcallthread3 = new Enetcallthread2("138");
enetcallthread3.type = 4;
enetcallthread3.start();
/* try
{
enetcallthread3.join();
}catch(Exception tx){} */
} else if (command == itemCommand62) {//GEN-LINE:MVDCACase297
// Insert pre-action code here
getDisplay().setCurrent(get_download1());//GEN-LINE:MVDCAAction295
// Insert post-action code here
download1.setTitle("正在下载...");
g_xiazai = 0;
download1.deleteAll();
download1.append(g_ii_g[4]);
/*
Enetcallthread2 enetcallthread2 = new Enetcallthread2("138");
enetcallthread2.type = 4;
enetcallthread2.start();
try
{
enetcallthread2.join();
}catch(Exception tx){}
// System.out.println(enetcallthread2.retstr);
*/
Enetcallthread2 enetcallthread3 = new Enetcallthread2("138");
enetcallthread3.type = 4;
enetcallthread3.start();
/* try
{
enetcallthread3.join();
}catch(Exception tx){} */
} else if (command == backCommand33) {//GEN-LINE:MVDCACase295
// Insert pre-action code here
getDisplay().setCurrent(get_phonebook2());//GEN-LINE:MVDCAAction299
// Insert post-action code here
}//GEN-BEGIN:MVDCACase299
} else if (displayable == upload6) {
if (command == itemCommand64) {//GEN-END:MVDCACase299
// Insert pre-action code here
getDisplay().setCurrent(get_download1());//GEN-LINE:MVDCAAction304
// Insert post-action code here
g_xiazai = 0;
if(servertype ==0 )
{
download1.setTitle("正在下载...");
download1.deleteAll();
download1.append(g_ii_g[4]);
Enetcallthread2 enetcallthread2 = new Enetcallthread2("138");
enetcallthread2.type = 4;
enetcallthread2.start();
try
{
enetcallthread2.join();
}catch(Exception tx){}
// System.out.println(enetcallthread2.retstr);
Enetcallthread2 enetcallthread3 = new Enetcallthread2("138");
enetcallthread3.type = 4;
enetcallthread3.start();
try
{
enetcallthread3.join();
}catch(Exception tx){}
// System.out.println(enetcallthread3.retstr);
System.out.println("下载完毕,正在存储...1 ");
// g_downphonebook2 = getphonebook2(enetcallthread3.retstr); //0920
g_downphonebook2 = enetcallthread3.retstr;
System.out.println("下载完毕,正在存储... "+g_downphonebook2.length());
download1.setTitle("下载完毕,正在存储... "+g_downphonebook2.length());
get_phone_LIST_ADDLIST_DELETELIST(); //处理下载通讯录
save_phone_ADDLIST_DELETELIST(); //存储下载通讯录
download1.setTitle("下载完毕,正在排序... "+g_phonenum2);
if(g_phonenum2 > g_phonenum1)
{
for(int ic=g_phonenum1+1 ; ic <= g_phonenum2 ; ic ++)
sorting(ic);
g_phonenum1 = g_phonenum2;
}
g_phonenum1 = g_phonenum2;
get_phone_ADDLIST_DELETELIST(); //产生上传通讯录
Enetcallthread2 enetcallthread4 = new Enetcallthread2("138");
enetcallthread4.type = 5;
enetcallthread4.start();
try
{
enetcallthread4.join();
}catch(Exception tx){}
download1.setTitle("同步完毕");
// download1.append(g_ii);
//download1.append(enetcallthread2.retstr);
return ;
}
if(servertype ==1 )
{
download1.setTitle("正在上传...");
download1.deleteAll();
download1.append(g_ii[4]);
Enetcallthread2 enetcallthread4 = new Enetcallthread2("138");
enetcallthread4.type = 5;
enetcallthread4.start();
/*try
{
enetcallthread4.join();
}catch(Exception tx){}
download1.setTitle("上传完毕");
**/
}
} else if (command == backCommand34) {//GEN-LINE:MVDCACase304
// Insert pre-action code here
getDisplay().setCurrent(get_phonebook2());//GEN-LINE:MVDCAAction302
// Insert post-action code here
} else if (command == itemCommand65) {//GEN-LINE:MVDCACase302
// Insert pre-action code here
getDisplay().setCurrent(get_download1());//GEN-LINE:MVDCAAction306
// Insert post-action code here
g_xiazai = 0;
if(servertype ==0 )
{
download1.setTitle("正在下载...");
download1.deleteAll();
download1.append(g_ii_g[4]);
Enetcallthread2 enetcallthread2 = new Enetcallthread2("138");
enetcallthread2.type = 4;
enetcallthread2.start();
try
{
enetcallthread2.join();
}catch(Exception tx){}
// System.out.println(enetcallthread2.retstr);
Enetcallthread2 enetcallthread3 = new Enetcallthread2("138");
enetcallthread3.type = 4;
enetcallthread3.start();
try
{
enetcallthread3.join();
}catch(Exception tx){}
// System.out.println(enetcallthread3.retstr);
System.out.println("下载完毕,正在存储...1 ");
// g_downphonebook2 = getphonebook2(enetcallthread3.retstr); //0920
g_downphonebook2 = enetcallthread3.retstr;
System.out.println("下载完毕,正在存储... "+g_downphonebook2.length());
download1.setTitle("下载完毕,正在存储... "+g_downphonebook2.length());
get_phone_LIST_ADDLIST_DELETELIST(); //处理下载通讯录
save_phone_ADDLIST_DELETELIST(); //存储下载通讯录
download1.setTitle("下载完毕,正在排序... "+g_phonenum2);
if(g_phonenum2 > g_phonenum1)
{
for(int ic=g_phonenum1+1 ; ic <= g_phonenum2 ; ic ++)
sorting(ic);
g_phonenum1 = g_phonenum2;
}
g_phonenum1 = g_phonenum2;
get_phone_ADDLIST_DELETELIST(); //产生上传通讯录
Enetcallthread2 enetcallthread4 = new Enetcallthread2("138");
enetcallthread4.type = 5;
enetcallthread4.start();
try
{
enetcallthread4.join();
}catch(Exception tx){}
download1.setTitle("同步完毕");
// download1.append(g_ii);
//download1.append(enetcallthread2.retstr);
return ;
}
if(servertype ==1 )
{
download1.setTitle("正在上传...");
download1.deleteAll();
download1.append(g_ii[4]);
Enetcallthread2 enetcallthread4 = new Enetcallthread2("138");
enetcallthread4.type = 5;
enetcallthread4.start();
/*try
{
enetcallthread4.join();
}catch(Exception tx){}
download1.setTitle("上传完毕");
**/
}
}//GEN-BEGIN:MVDCACase306
}//GEN-END:MVDCACase306
// Insert global post-action code here
}//GEN-LINE:MVDCAEnd
/**
* This method should return an instance of the display.
*/
public Display getDisplay() {//GEN-FIRST:MVDGetDisplay
return Display.getDisplay(this);
}//GEN-LAST:MVDGetDisplay
public Displayable getDisplayCur() {
return getDisplay().getCurrent();
// public Displayable getCurrent( );
}
/**
* This method should exit the midlet.
*/
public void exitMIDlet() {//GEN-FIRST:MVDExitMidlet
getDisplay().setCurrent(null);
destroyApp(true);
notifyDestroyed();
}//GEN-LAST:MVDExitMidlet
/** This method returns instance for exitCommand component and should be called instead of accessing exitCommand fie
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -