Beispiel #1
0
        private void update_btn_Click(object sender, EventArgs e)
        {
            if (now_form != null)
            {
                mode = "update";
                CRUD_Enabled(false);
                APPLY_Enabled(true);
                control.control_enabled(true, false);

                // 인사기본사항 업데이트 누를 경우 사원 정보 불러옴
                if (now_form == (now_form as insaBasic))
                {
                    if (insaSide.select_empno == null)
                    {
                        common.MsgboxShow("사원을 선택해주세요.");
                    }
                }
            }
        }
Beispiel #2
0
 public void DB_Insert()
 {
     try
     {
         from_control.get_control(this, false);
         if (!from_control.control_nullcheck())
         {
             String nowtime = DateTime.Now.ToString("yyyyMMdd");
             int    nmbox   = Convert.ToInt32(newbie_month_box.Text);
             if (thrm_bas_add(e_no_box.Text, rrn_box.Text, kor_name_box.Text, chn_name_box.Text, eng_name_box.Text,
                              sexxbox.Text, zip_box.Text, address_box.Text, residence_box.Text, phone_box.Text, home_box.Text, email1_box.Text,
                              mil_ok_box.Text, StringToCode(mil_catagory_box), mil_rank_box.Text, marry_box.Text, StringToCode(bank_combox), bank_master_box.Text,
                              bank_number_box.Text, StringToCode(bank2_combox), bank_master_box2.Text, bank_number_box2.Text, contract_box.Text,
                              newbie_check_box.Text, nmbox, slave_start.Value.ToString("yyyyMMdd"), slave_end.Value.ToString("yyyyMMdd"),
                              join_box.Value.ToString("yyyyMMdd"), goodbye_box.Value.ToString("yyyyMMdd"), "", "", state_box.Text, StringToCode(sts_combox), StringToCode(rank_combox), StringToCode(dut_combox),
                              StringToCode(dept_combox), note_box.Text, now_rank_box.Value.ToString("yyyyMMdd"), now_spot_box.Value.ToString("yyyyMMdd"), now_department_box.Value.ToString("yyyyMMdd"),
                              now_newbie_box.Value.ToString("yyyyMMdd"), nowtime, "A", "userid") == 0)
             {
                 common.MsgboxShow("입력이 완료되었습니다.");
                 from_control.control_reset();
                 erpMain.getResult = true;
             }
         }
     }
     catch (Exception a)
     {
         common.MsgboxShow("입력에 실패하였습니다.\n\n" + a);
         erpMain.getResult = false;
     }
 }
Beispiel #3
0
        private void connect_Click(object sender, EventArgs e)
        {
            _Login db = new _Login();

            if (db.Login(idbox.Text, pwbox.Text) == true)
            {
                if (idsave_check.Checked == true)
                {
                    reg.Set_ID_Registry(idbox.Text);
                    reg.Set_Savecheck_Registry(true);
                }
                this.erpMain.Enabled              = true;
                this.erpMain.statusTimer.Enabled  = true;
                this.erpMain.status.Items[1].Text = "현재 로그인 아이디: " + idbox.Text;
                this.Close();
                this.Dispose();
            }
            else
            {
                _Common common = new _Common();
                common.MsgboxShow("아이디/비밀번호가 맞지 않습니다.");
            }
        }
Beispiel #4
0
 private void button2_Click(object sender, EventArgs e)
 {
     common.MsgboxShow("사원을 여러개 및 한개 선택 후\nDelete키를 사용하시면 됩니다.");
 }