private void butModify_Click(object sender, EventArgs e) { sMFlag = sFlag.修改; panel1.Visible = true; textwsid.Enabled = false; butDelete.Enabled = false; butAdd.Enabled = false; }
private void butmodify_Click(object sender, EventArgs e) { panel1.Visible = true; edtuserid.Enabled = false; butadd.Enabled = false; butdelete.Enabled = false; sSFlag = sFlag.修改; }
private void imbt_Add_Click(object sender, EventArgs e) { imbt_Add.Enabled = true; imbt_Modify.Enabled = false; imbt_Delete.Enabled = false; _sFlag = sFlag.新增; txt_CHECK_NO.Text = Get_CHEK_NUMBER(); PanelData.Visible = true; txt_REST_TIME.Text = "10:00~10:15|11:50~12:40|15:00~15:15|17:40~18:20|22:00~22:15|23:50~00:40|03:00~03:15|05:40~06:20"; }
private void butadd_Click(object sender, EventArgs e) { panel1.Visible = true; edtuserId.Text = ""; combfacname.Text = ""; edtdeptname.Text = ""; edtdeptdesc.Text = ""; butmodify.Enabled = false; butdelete.Enabled = false; combfacname.Enabled = true; sSFlag = sFlag.新增; }
private void butAdd_Click(object sender, EventArgs e) { sMFlag = sFlag.新增; panel1.Visible = true; textwsid.Text = ""; textfacid.Text = ""; textuserid.Text = ""; textwsname.Text = ""; textwsid.Enabled = true; butModify.Enabled = false; butDelete.Enabled = false; }
private void butadd_Click(object sender, EventArgs e) { panel1.Visible = true; edtwfid.Text = ""; edtwfdesc.Text = ""; edtwfcaption.Text = ""; edtrolecaption.Text = ""; edtworkurl.Text = ""; butmodify.Enabled = false; butdelete.Enabled = false; ssFlag = sFlag.新增; edtwfid.SelectAll(); edtwfid.Focus(); }
private void butadd_Click(object sender, EventArgs e) { panel1.Visible = true; butdelete.Enabled = false; butmodify.Enabled = false; combdeptname.Text = ""; edtpwd.Text = ""; edtuseremail.Text = ""; edtuserid.Text = ""; edtusername.Text = ""; edtuserphone.Text = ""; edtuserid.Enabled = true; combfacId.Text = ""; combdeptname.Text = ""; comrolecaption.Text = ""; sSFlag = sFlag.新增; }
private void imbt_Modify_Click(object sender, EventArgs e) { if (SelectIndex != -1) { //string err = refwebtEditing.Instance.ChktEditing(new WebServices.tEditing.tEditing1() //{ // userId = this.mFrm.gUserInfo.userId, // prj = "TimeOut", // funname = this.dgvTimeOut[0, SelectIndex].Value.ToString(), // username = this.mFrm.gUserInfo.username, // PC_NAME = FrmBLL.publicfuntion.HostName + " IP:" + ((LsIp.Count > 1) ? LsIp[1] : LsIp[0]), // MAC_ADD = FrmBLL.publicfuntion.getMacList()[0] //}); string err = FrmBLL.publicfuntion.ChktEditing(this.dgvTimeOut[0, SelectIndex].Value.ToString(), "TimeOut", this.mFrm.gUserInfo.userId, this.mFrm.gUserInfo.username); if (err != "OK") { if (err.IndexOf("ERROR") != -1) { this.mFrm.ShowPrgMsg(err, MainParent.MsgType.Error); return; } else { MessageBoxEx.Show(string.Format("用户:[{0}]/[{1}]--{2}正在编辑中,您现在不能进行修改!!", err.Split(':')[1].Split(',')[0], err.Split(':')[1].Split(',')[1], err.Split(':')[1].Split(',')[2]), "提示!!"); return; } } PanelData.Visible = true; imbt_Add.Enabled = false; imbt_Modify.Enabled = true; imbt_Delete.Enabled = false; _sFlag = sFlag.修改; } }
public void cdivide(stateObject state)//플래그에 따라 버퍼를 나눔 { sFlag Flag = new sFlag(); Flag = (sFlag)BytetoStruct(state.buffer, typeof(sFlag), 256); //플래그 확인 if (Flag.flag == (char)eMSG.em_USER_LOGIN) { vLogin(state.buffer); //로그인 시 받는 메시지 } else if (Flag.flag == (char)eMSG.em_USER_MATCHING) { vMatching(); //매칭 시 받는 메시지 } else if (Flag.flag == (char)eMSG.em_USER_POSITION) { Set_Position(state.buffer); //위치 받을 시 받는 메시지 } else if (Flag.flag == (char)eMSG.em_USER_TEAM) { Set_Team(state.buffer); //팀 결정 시 받는 메시지 } else if (Flag.flag == (char)eMSG.em_USER_RAYSHOT) { Set_Rayshot(state.buffer); //레이에 관한 메시지 } else if (Flag.flag == (char)eMSG.em_USER_CAMERA) { Set_Camera(state.buffer); //카메라 정보값 } else if (Flag.flag == (char)eMSG.em_USER_FKEY) { Set_Fkey(state.buffer); //Fkey 정보값 } else if (Flag.flag == (char)eMSG.em_USER_ZKEY) { Set_Zkey(state.buffer); //Zkey 정보값 } else if (Flag.flag == (char)eMSG.em_USER_XKEY) { Set_Xkey(state.buffer); } else if (Flag.flag == (char)eMSG.em_USER_CKEY) { Set_Ckey(state.buffer); //Fkey 정보값 } else if (Flag.flag == (char)eMSG.em_USER_VKEY) { Set_Vkey(state.buffer); //Fkey 정보값 } else if (Flag.flag == (char)eMSG.em_USER_RKEY) { Set_Rkey(state.buffer); //Rkey 정보값 } else if (Flag.flag == (char)eMSG.em_USER_GAMEDEATH) { Set_Gamedeath(state.buffer); } else if (Flag.flag == (char)eMSG.em_USER_RESOURCE) { Set_Resource(state.buffer);//자원값 } else if (Flag.flag == (char)eMSG.em_USER_STATUS) { Set_status(state.buffer);//상태값 } else if (Flag.flag == (char)eMSG.em_OBJECT_TREE) { Set_Tree(state.buffer);//나무 상태값 } else if (Flag.flag == (char)eMSG.em_OBJECT_STONE) { Set_Stone(state.buffer);//돌 상태값 } else if (Flag.flag == (char)eMSG.em_OBJECT_BULLET) { Set_Bullet(state.buffer);//총알상자 상태값 } else if (Flag.flag == (char)eMSG.em_MAP_MAPSETTING) { //set_Mapsetting(state.buffer); } else if (Flag.flag == (char)eMSG.em_OBJECT_FLOOR) { Set_Floor(state.buffer);//박스 상태값 } else if (Flag.flag == (char)eMSG.em_USER_LOGOUT) { //게임도중 로그아웃시 설정 Set_Logout(state.buffer); } }