日期:2014-05-20 浏览次数:20786 次
package c_port_packageBJteacher;
public class ManageLocalteacherJButtonOnlineState{
String LocalMyWorkNum = "";
int LocalMyOnlineState = 0;
public ManageLocalteacherJButtonOnlineState(String MyWorkNum,String MyOnlineState){
LocalMyWorkNum = MyWorkNum;
LocalMyOnlineState = Integer.parseInt(MyOnlineState);
}
public void start() throws Exception{
switch(Integer.parseInt(LocalMyWorkNum)){
//语文教师
case 0:
{
if(LocalMyOnlineState==0){
Recv.teacheronline[0]=0;
ChineseTeacher.JB0.setEnabled(false);
MyUserMainUI.ali1.get(0).al1.get(0).repaint();
}else{
Recv.teacheronline[0]=1;
ChineseTeacher.JB0.setEnabled(true);
MyUserMainUI.ali1.get(0).al1.get(0).repaint();
}
break;
}
case 1:
{
if(LocalMyOnlineState==0){
Recv.teacheronline[1]=0;
ChineseTeacher.JB1.setEnabled(false);
MyUserMainUI.ali1.get(0).al1.get(0).repaint();
}else{
Recv.teacheronline[1]=1;
ChineseTeacher.JB1.setEnabled(true);
MyUserMainUI.ali1.get(0).al1.get(0).repaint();
}
break;
}
case 2:
{
if(LocalMyOnlineState==0){
Recv.teacheronline[2]=0;
ChineseTeacher.JB2.setEnabled(false);
MyUserMainUI.ali1.get(0).al1.get(0).repaint();
}else{
Recv.teacheronline[2]=1;
ChineseTeacher.JB2.setEnabled(true);