Exemplo n.º 1
0
        // 자세히보기 버튼 클릭 Recruit 안 WriteDetail.cs 호출
        private void show_detail(string num)
        {
            try
            {
                if (w_num != null)
                {
                    SqlCommand cmd = new SqlCommand();
                    cmd.Connection = conn;
                    DataSet ds = new DataSet();
                    cmd.CommandText = "select * from RECRUIT where W_NUM= @W_NUM";
                    SqlDataAdapter adpt = new SqlDataAdapter(cmd);
                    cmd.Parameters.AddWithValue("@W_NUM", w_num);
                    adpt.Fill(ds);
                    WriteDetail wd = new WriteDetail(ds);

                    wd.MaximizeBox = false;         // WriteDetail 호출시 최소화,최대화 버튼 삭제
                    wd.MinimizeBox = false;
                    wd.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("btn_show_detail_click Error");                       // 에러메세지
                Console.WriteLine(ex.StackTrace);
                Console.WriteLine(ex.Message);
                Console.WriteLine(ex.Source);
            }
            finally
            {
                conn.Close();
            }
        }