Exemple #1
0
        private void btn_Click(Object o, EventArgs e)
        {
            Button button = (Button)o;

            ///  버튼 설정.
            if (button.Name == "등록")
            {
                if (Textbox1.Text == "" || Textbox2.Text == "" || Textbox3.Text == "" || Textbox4.Text == "")
                {
                    fail fail = new fail("입력칸을 모두 채워주세요");
                    fail.ShowDialog();
                    return;
                }

                LOGIN_FORM login = new LOGIN_FORM();


                if (request_book_form_request_register(Textbox1.Text, Textbox2.Text, Textbox3.Text, Textbox4.Text, login.User_Number.ToString()))
                {
                    fail fail = new fail("요청 완료 되었습니다");
                    fail.ShowDialog();
                }
                else
                {
                    fail fail = new fail("요청 실패");
                    fail.ShowDialog();
                }
            }
            else if (button.Name == "취소")
            {
                this.Close();
            }
        }
Exemple #2
0
        private void Passwod_Check_Load(object sender, EventArgs e)
        {
            webapiUrl = comm.WebapiUrl;

            Login = new LOGIN_FORM();
            my    = new MY_INFO_FORM();

            ClientSize     = new Size(sX, sY);              // 폼 사이즈 지정.
            this.BackColor = Color.FromArgb(201, 253, 223); //백컬러

            Label lb = comm.lb(new LBclass(this, "lb_Pass", "비밀번호 확인", 10, 80, 20, 80, 120, label_Click));

            Tb1 = comm.txtbox(new TXTBOXclass(this, "Pass", "", 150, 20, 175, 118, Tb_click));

            Button btn = comm.btn(new BTNclass(this, "확인", "확인", 80, 40, 345, 110, btn1_Click));

            btn.Font      = new Font("견명조", 18F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129))); // FontStyle.Regular
            btn.FlatStyle = FlatStyle.Flat;
            btn.ForeColor = Color.White;
            btn.BackColor = Color.FromArgb(80, 200, 223);
            btn.Region    = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, btn.Width, btn.Height, 15, 15));
            btn.BackColor = Color.FromArgb(114, 241, 168);  // rgb(218,234,244)


            Controls.Add(btn);
            Controls.Add(Tb1);
            Controls.Add(lb);
        }
Exemple #3
0
        private void RENTAL_INFO_FORM_Load(object sender, EventArgs e)
        {
            comm      = new COMMON_Create_Ctl();
            webapiUrl = comm.WebapiUrl;

            FormBorderStyle = FormBorderStyle.None;// 폼 상단 표시줄 제거

            Login = new LOGIN_FORM();

            //this.Region = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, this.Width, this.Height, 15, 15));
            //Point_Print(); //좌표
            ClientSize = new Size(sX, sY);  // 폼 사이즈 지정.

            comm.delay_rental_check();
            mysql          = new MySql();
            this.BackColor = Color.FromArgb(201, 253, 223); //백컬러
            //리스트뷰===============================================================================================================================================

            lv_value = new LISTVIEWclass(this, "ListView1", 1300, 600, 100, 50, listView_MouseClick, listview_mousedoubleclick, 9, "", 0, "대여번호", 120, "도서명", 260, "저자", 158, "출판사", 180, "대여일", 170, "반납일", 170, "연체일", 120, "상태", 120);
            lv       = comm.listView(lv_value);
            Controls.Add(lv);
            lv.Font = new Font("Arial", 18, FontStyle.Bold);


            List_Views();
            //버튼=========================================================================================================================================================
            ArrayList btnArray = new ArrayList();

            btnArray.Add(new BTNclass(this, "반납", "반납", 150, 80, 1250, 660, btn1_Click));

            Button btn = comm.btn((BTNclass)btnArray[0]);

            btn.Font      = new Font("견명조", 24F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129))); // FontStyle.Regular
            btn.FlatStyle = FlatStyle.Flat;
            btn.ForeColor = Color.LawnGreen;
            btn.BackColor = Color.ForestGreen;
            btn.Region    = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 150, 80, 15, 15));
            Controls.Add(btn);
            //라벨 ========================================================================================================================================================
            ArrayList lbarray = new ArrayList();

            lbarray.Add(new LBclass(this, "상태", "상태:", 30, 80, 50, 95, 660, label_Click));
            lbarray.Add(new LBclass(this, "staitus", "대여가능", 15, 100, 20, 170, 668, label_Click));

            for (int i = 0; i < lbarray.Count; i++)
            {
                Label lb = comm.lb((LBclass)lbarray[i]);

                if (lb.Name == "상태")
                {
                    lb.Font = new Font("견명조", 20F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129)));
                }

                Controls.Add(lb);
            }
            //=================================================================================================================================================
        }
Exemple #4
0
        private void btn_Click(Object o, EventArgs e)
        {
            Button button = (Button)o;

            ///  버튼 설정.
            if (button.Name == "등록")
            {
                if (Textbox1.Text == "" || Textbox2.Text == "" || Textbox3.Text == "" || Textbox4.Text == "")
                {
                    MessageBox.Show("입력칸을 모두 채워주세요");
                    return;
                }

                LOGIN_FORM login = new LOGIN_FORM();

                MySql  mysql = new MySql();
                string sql   = string.Format("insert into Receiving_equest(title, author, publisher, genre, user_number) values('{0}', '{1}', '{2}', '{3}', {4});", Textbox1.Text, Textbox2.Text, Textbox3.Text, Textbox4.Text, login.User_Number); // 1 : 입고 요청한 user_number 로 등록되도록 변경 필요.
                mysql.NonQuery_INSERT(sql);
            }
            else if (button.Name == "취소")
            {
                this.Close();
            }
        }
Exemple #5
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.FormBorderStyle = FormBorderStyle.FixedSingle;

            //=======================================================================================================
            user1     = new BOOK_INFO_FORM(this);
            login_frm = new LOGIN_FORM(this);
            Login     = new LOGIN_FORM(this);
            Signup    = new SIGNUP_FORM(this);
            //=======================================================================================================

            ClientSize          = new Size(sX, sY); // 폼 사이즈 지정.
            this.IsMdiContainer = true;             // MDI 설정.

            //좌표 체크시 추가
            //Point_Print();

            // 컨트롤 객체생성.
            COMMON_Create_Ctl comm_create_ctl = new COMMON_Create_Ctl();

            // 생성할 패널 정보 객체 생성.
            PANELclass pn1 = new PANELclass(this, "panel1", "panel_main", 1500, 780, 0, 145);

            panel1 = comm_create_ctl.panel(pn1); // ex) 판넬만들기 :  create_ctl.CTL명(CTL값);
            Controls.Add(panel1);                // 원하는 컨트롤에 추가함.

            BTNclass bt1 = new BTNclass(this, "유저1", "도서정보", 285, 145, 0, 0, btn1_Click);
            BTNclass bt2 = new BTNclass(this, "유저2", "대여목록", 285, 145, 285, 0, btn2_Click);
            BTNclass bt3 = new BTNclass(this, "유저3", "나의정보", 285, 145, 570, 0, btn3_Click);
            BTNclass bt4 = new BTNclass(this, "유저4", "위치정보", 285, 145, 855, 0, btn4_Click);

            BTNclass bt6 = new BTNclass(this, "관리2", "회원정보", 285, 145, 285, 0, btn6_Click);
            BTNclass bt7 = new BTNclass(this, "관리3", "도서관리", 285, 145, 570, 0, btn7_Click);
            BTNclass bt8 = new BTNclass(this, "관리4", "연체관리", 285, 145, 855, 0, btn8_Click);

            btn = comm_create_ctl.btn(bt1);
            ButtonConfig(btn, "book_info");
            btn1 = comm_create_ctl.btn(bt2);
            ButtonConfig(btn1, "rental_list");
            btn2 = comm_create_ctl.btn(bt3);
            ButtonConfig(btn2, "my_information");
            btn3 = comm_create_ctl.btn(bt4);
            ButtonConfig(btn3, "book_location");

            btn5 = comm_create_ctl.btn(bt6);
            ButtonConfig(btn5, "user_management");
            btn6 = comm_create_ctl.btn(bt7);
            ButtonConfig(btn6, "book_management");
            btn7 = comm_create_ctl.btn(bt8);
            ButtonConfig(btn7, "overdue_management");


            Controls.Add(btn);

            Controls.Add(btn1);
            Controls.Add(btn2);
            Controls.Add(btn3);


            Controls.Add(btn5);
            Controls.Add(btn6);
            Controls.Add(btn7);

            //MessageBox.Show("login_frm.Member_rank : " + login_frm.Member_rank);

            if (login_frm.Member_rank == 4) // 비회원
            {
                user1.Show();
                btn1.Hide();
                btn2.Hide();
                btn3.Hide();

                btn5.Hide();
                btn6.Hide();
                btn7.Hide();
            }

            //else if (member_rank == 0) //관리자
            //{

            //    btn.Hide();
            //    btn1.Hide();
            //    btn2.Hide();
            //    btn3.Hide();
            //}
            //else if(member_rank == 1) //유저
            //{
            //    user1.Show();
            //    btn4.Hide();
            //    btn5.Hide();
            //    btn6.Hide();
            //    btn7.Hide();
            //}



            //라벨 ==============================================================================================================================================
            ArrayList lbarray = new ArrayList();

            lbarray.Add(new LBclass(this, "Login", "Login   /", 15, 90, 30, 1500 - 190, 10, label_Click));
            lbarray.Add(new LBclass(this, "Signup", "Signup", 15, 90, 30, 1500 - 100, 10, label2_Click));
            lbarray.Add(new LBclass(this, "Logout", "Logout", 15, 90, 30, 1500 - 100, 10, label3_Click));


            for (int i = 0; i < lbarray.Count; i++)
            {
                Label lb = comm_create_ctl.lb((LBclass)lbarray[i]);
                lb.Visible   = true;
                lb.Cursor    = Cursors.Hand;
                lb.Parent    = pictureBox;
                lb.BackColor = Color.FromArgb(201, 253, 223);
                lb.BringToFront();
                lb.ForeColor = Color.FromArgb(39, 174, 97);

                if (lb.Name == "Login")
                {
                    lb.Font = new Font("견명조", 15F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129)));

                    lb_Login = lb;
                }
                else if (lb.Name == "Signup")
                {
                    lb.Font   = new Font("견명조", 15F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129)));
                    lb_Signup = lb;
                }
                else if (lb.Name == "Logout")
                {
                    lb.Font   = new Font("견명조", 15F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129)));
                    lb_Logout = lb;
                }
                Controls.Add(lb);
            }
            lb_Logout.Hide();

            //=====================================================================================================================================================

            Logo_Load();//로고 이미지

            // Set the Parent Form of the Child window.
            //Child1.TopLevel = false;
            //Child1.TopMost = true;
            //Child1.MdiParent = this;
            //Child1.Dock = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            //panel1.Controls.Add(Child1);

            //Child2.Show();
            //Child1.Show();
            //Child1.Dispose();

            //Set the Parent Form of the Child window.

            user1.TopLevel  = false;
            user1.TopMost   = true;
            user1.MdiParent = this;
            user1.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(user1);

            user2.TopLevel  = false;
            user2.TopMost   = true;
            user2.MdiParent = this;
            user2.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(user2);

            user3.TopLevel  = false;
            user3.TopMost   = true;
            user3.MdiParent = this;
            user3.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(user3);

            user4.TopLevel  = false;
            user4.TopMost   = true;
            user4.MdiParent = this;
            user4.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(user4);

            Login.TopLevel  = false;
            Login.TopMost   = true;
            Login.MdiParent = this;
            Login.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(Login);

            Signup.TopLevel  = false;
            Signup.TopMost   = true;
            Signup.MdiParent = this;
            Signup.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(Signup);


            root2.TopLevel  = false;
            root2.TopMost   = true;
            root2.MdiParent = this;
            root2.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(root2);

            root3.TopLevel  = false;
            root3.TopMost   = true;
            root3.MdiParent = this;
            root3.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(root3);

            root4.TopLevel  = false;
            root4.TopMost   = true;
            root4.MdiParent = this;
            root4.Dock      = DockStyle.Fill; //판넬크기에 맞게 사이즈 늘림.
            panel1.Controls.Add(root4);
        }
Exemple #6
0
 public Passwod_Check(LOGIN_FORM Login)
 {
     this.Login = Login;
 }
Exemple #7
0
        private void MY_INFO_FORM_Load(object sender, EventArgs e)
        {
            COMMON_Create_Ctl comm = new COMMON_Create_Ctl();

            webapiUrl = comm.WebapiUrl;

            this.BackColor = Color.FromArgb(201, 253, 223); //백컬러

            ClientSize = new Size(sX, sY);                  // 폼 사이즈 지정.

            FormBorderStyle = FormBorderStyle.None;         // 폼 상단 표시줄 제거

            /// 좌표 체크시 추가 ///
            //Point_Print();
            Login = new LOGIN_FORM();


            ArrayList lbarray  = new ArrayList();
            ArrayList Tbarray  = new ArrayList();
            ArrayList btnArray = new ArrayList();

            lbarray.Add(new LBclass(this, "lb_ID", "아이디", 10, 150, 20, 20, 60, label_Click));
            lbarray.Add(new LBclass(this, "lb_Pass", "비밀번호", 10, 150, 20, 20, 120, label_Click));
            lbarray.Add(new LBclass(this, "lb_PassCon", "이름", 10, 50, 20, 20, 180, label_Click));
            lbarray.Add(new LBclass(this, "lb_Name", "성별", 10, 150, 20, 20, 240, label_Click));
            lbarray.Add(new LBclass(this, "lb_Gender", "생일", 10, 150, 20, 20, 300, label_Click));
            lbarray.Add(new LBclass(this, "lb_Birth", "이메일", 10, 150, 20, 20, 360, label_Click));
            lbarray.Add(new LBclass(this, "lb_email", "휴대폰", 10, 150, 20, 20, 420, label_Click));
            lbarray.Add(new LBclass(this, "lb_Phon", "주소", 10, 150, 20, 20, 480, label_Click));

            //Tbarray.Add(new TXTBOXclass(this, "ID", "", 150, 20, 180, 60, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "Pass", "", 150, 20, 180, 120, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "PassCon", "", 150, 20, 180, 180, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "Name", "", 150, 20, 180, 240, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "Gender", "", 150, 20, 180, 300, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "Birth", "", 150, 20, 180, 360, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "email", "", 150, 20, 180, 420, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "Phon", "", 150, 20, 180, 480, Tb_click));
            //Tbarray.Add(new TXTBOXclass(this, "addres", "", 150, 20, 180, 540, Tb_click));

            Tb1 = comm.txtbox(new TXTBOXclass(this, "ID", "", 150, 20, 180, 60 - 1, Tb_click));
            Tb2 = comm.txtbox(new TXTBOXclass(this, "Pass", "", 150, 20, 180, 120 - 1, Tb_click));
            Tb3 = comm.txtbox(new TXTBOXclass(this, "name", "", 150, 20, 180, 180 - 1, Tb_click));
            Tb4 = comm.txtbox(new TXTBOXclass(this, "Name", "", 150, 20, 180, 240 - 1, Tb_click));
            Tb5 = comm.txtbox(new TXTBOXclass(this, "Gender", "", 150, 20, 180, 300 - 1, Tb_click));
            Tb6 = comm.txtbox(new TXTBOXclass(this, "Birth", "", 150, 20, 180, 360 - 1, Tb_click));
            Tb7 = comm.txtbox(new TXTBOXclass(this, "email", "", 150, 20, 180, 420 - 1, Tb_click));
            Tb8 = comm.txtbox(new TXTBOXclass(this, "Phon", "", 150, 20, 180, 480 - 1, Tb_click));


            //combobox1 = comm.comboBox(new COMBOBOXclass(this, "ComboBox1", 50, 100, 230, 300 - 1, ComboBox_SelectedIndexChanged, 5, "01", "02", "03", "04", "05"));
            //Tb9 = comm.txtbox(new TXTBOXclass(this, "Gender1", "", 40, 20, 290, 300 - 1, Tb_click));


            //pan1.Controls.Add(Tb9);
            //pan1.Controls.Add(combobox1);
            //combobox1.Items.Add("06");
            //combobox1.Items.Add("07");
            //combobox1.Items.Add("08");
            //combobox1.Items.Add("09");
            //combobox1.Items.Add("10");
            //combobox1.Items.Add("11");
            //combobox1.Items.Add("12");
            //combobox1.Text = "월";


            pan1.Controls.Add(Tb1);
            pan1.Controls.Add(Tb2);
            pan1.Controls.Add(Tb3);
            pan1.Controls.Add(Tb4);
            pan1.Controls.Add(Tb5);
            pan1.Controls.Add(Tb6);
            pan1.Controls.Add(Tb7);
            pan1.Controls.Add(Tb8);


            //=================================================================================================================================================


            pan1.Height    = 650;
            pan1.Width     = 500;
            pan1.Location  = new Point(470, 50);
            pan1.BackColor = Color.FromArgb(218, 234, 244);

            Controls.Add(pan1);
            //==================================================================================================================================================


            //버튼==============================================================================================================================================

            // BTNclass bt1 = new BTNclass(this, "버튼Name", "버튼Text", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 버튼클릭이벤트);



            btn1 = comm.btn(new BTNclass(this, "비밀번호 변경", "비밀번호 변경", 100, 50, 100, 580, btn1_Click));
            btn2 = comm.btn(new BTNclass(this, "정보수정", "정보수정", 100, 50, 300, 580, btn2_Click));
            btn3 = comm.btn(new BTNclass(this, "취소", "취소", 100, 50, 400, 580, btn3_Click));

            pan1.Controls.Add(btn1);
            pan1.Controls.Add(btn2);
            pan1.Controls.Add(btn3);
            btn3.Hide();
            //for (int i = 0; i < btnArray.Count; i++)
            //{
            //    btn = comm.btn((BTNclass)btnArray[i]);

            //    if (btn.Name == "비밀번호 변경")
            //    {
            //        btn.Font = new Font("견명조", 9F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129)));  // FontStyle.Regular
            //        btn.FlatStyle = FlatStyle.Flat;
            //        btn.ForeColor = Color.LawnGreen;
            //        btn.BackColor = Color.ForestGreen;
            //    }
            //    else if (btn.Name == "정보수정")
            //    {
            //        btn.Font = new Font("견명조", 9F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129)));  // FontStyle.Regular
            //        btn.FlatStyle = FlatStyle.Flat;
            //        btn.ForeColor = Color.LawnGreen;
            //        btn.BackColor = Color.ForestGreen;
            //    }

            //    else if (btn.Name == "취소")
            //    {
            //        btn.Font = new Font("견명조", 9F, FontStyle.Bold, GraphicsUnit.Point, ((byte)(129)));  // FontStyle.Regular
            //        btn.FlatStyle = FlatStyle.Flat;
            //        btn.ForeColor = Color.LawnGreen;
            //        btn.BackColor = Color.ForestGreen;
            //    }
            //    pan1.Controls.Add(btn);
            //}
            //==================================================================================================================================================
            //기본 띄어지는 유저정보

            List_View();



            Tb1.ReadOnly = ReadYn();
            Tb2.ReadOnly = ReadYn();
            Tb3.ReadOnly = ReadYn();
            Tb4.ReadOnly = ReadYn();
            Tb5.ReadOnly = ReadYn();
            Tb6.ReadOnly = ReadYn();
            Tb7.ReadOnly = ReadYn();
            Tb8.ReadOnly = ReadYn();



            //==================================================================================================================================================



            //==================================================================================================================================================
            //for (int i = 0; i < Tbarray.Count; i++)
            //{
            //    tb = comm.txtbox((TXTBOXclass)Tbarray[i]);

            //    Controls.Add(tb);
            //}

            for (int i = 0; i < lbarray.Count; i++)
            {
                Label lb = comm.lb((LBclass)lbarray[i]);

                pan1.Controls.Add(lb);
            }
        }
Exemple #8
0
 public MY_INFO_FORM(LOGIN_FORM Login)
 {
     this.Login = Login;
 }
Exemple #9
0
 public RENTAL_INFO_FORM(LOGIN_FORM Logi)
 {
     InitializeComponent();
     this.Login = Login;
 }
Exemple #10
0
        private void BOOK_INFO_FORM_Load(object sender, EventArgs e)
        {
            comm.delay_rental_check();
            login_frm = new LOGIN_FORM(form);

            if (login_frm.Member_rank == 1)
            {
                user  = true;
                admin = false;
            }
            else if (login_frm.Member_rank == 0)
            {
                user  = false;
                admin = true;
            }
            //else if (MAIN_FORM.member_rank == 4)
            //{
            //    user = true;
            //    admin = false;
            //}



            FormBorderStyle = FormBorderStyle.None; //폼 상단 표시줄 제거
            //this.BackColor = Color.Aquamarine;
            this.BackColor = Color.FromArgb(201, 253, 223);

            ClientSize = new Size(sX, sY);  // 폼 사이즈 지정.

            /// 좌표 체크시 추가 ///
            //Point_Print();

            COMMON_Create_Ctl create_ctl = new COMMON_Create_Ctl();

            // BTNclass bt1 = new BTNclass(this, "버튼Name", "버튼Text", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 버튼클릭이벤트);
            BTNclass bt1 = new BTNclass(this, "Home", "button1", 100, 100, 10, 10, btn_Click);
            // LBclass lb1 = new LBclass(this, "라벨Name", "라벨Text", 라벨Font사이즈, 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 라벨클릭이벤트);
            LBclass lb1 = new LBclass(this, "label1", "label_name~", 24, 100, 100, 10, 10, label_Click);
            // PANELclass pn1 = new PANELclass(this, "패널Name", "패널Text", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 패널마우스이동이벤트);
            PANELclass pn1 = new PANELclass(this, "panel1", "panel_txt~", 200, 200, 100, 100);
            // TABCTLclass tabctl = new TABCTLclass(this, "탭컨트롤Name", "탭컨트롤Text", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 탭높이, 탭컨트롤마우스이동이벤트);
            TABCTLclass tabctl = new TABCTLclass(this, "tabctl1", "tabctl1~", 450, 160, 7, 313, 30, tabctl_MouseMove);
            // TABPAGEclass tabpg1 = new TABPAGEclass(this, "탭페이지Name", "탭페이지Text", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 탭페이지마우스이동이벤트);
            TABPAGEclass tabpg1 = new TABPAGEclass(this, "tabpage1", "tapage1~", 100, 100, 0, 0, tabpage_MouseMove);
            // CHKBOXclass bhkbox1 = new CHKBOXclass(this, "체크박스Name", 체크박스Text", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 체크박스클릭이벤트);
            CHKBOXclass chkbox1 = new CHKBOXclass(this, "chkbox1", "chkbox1~", 100, 100, 20, 20, chkbox_Click);
            // LISTVIEWclass listview1 = new LISTVIEWclass(this, "리스트뷰Name", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 리스트뷰더블클릭이벤트, 컬럼갯수, "컬럼1번Name", 컬럼1간격, "컬럼2번Name", 컬럼2간격, "컬럼3번Name", 컬럼3간격, ~ 동일방식 10개 컬럼까지 가능);
            LISTVIEWclass listview1 = new LISTVIEWclass(this, "ListView1", 500, 500, 10, 10, listview_mousedoubleclick, listview_mousedoubleclick, 3, "col1", 100, "col2", 100, "col3", 100);
            // COMBOBOXclass combobox1 = new COMBOBOXclass(this, "콤보박스Name", 가로사이즈, 세로사이즈, 가로포인트, 세로포인트, 콤보박스클릭이벤트, 리스트추가갯수, "test1", "test2", "test3", "test4", "test5");
            COMBOBOXclass combobox1 = new COMBOBOXclass(this, "ComboBox1", 100, 100, 721, 12, ComboBox_SelectedIndexChanged, 5, "test1", "test2", "test3", "test4", "test5");

            if (user)
            {
                // 책정보패널
                PANELclass 책정보패널값 = new PANELclass(this, "책정보패널", "책정보패널", 550, 600, 10, 10);
                책정보패널 = comm.panel(책정보패널값);
            }
            else
            {
                // 책정보패널
                PANELclass 책정보패널값 = new PANELclass(this, "책정보패널", "책정보패널", 550, 750, 10, 10);
                책정보패널 = comm.panel(책정보패널값);
            }

            //(좌측상단여백, 우측상단여백, 컨트롤 넓이, 컨트롤 높이, 가로 모서리 원기울기, 세로 모서리 원기울기)
            책정보패널.Region    = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 책정보패널.Width, 책정보패널.Height, 15, 15));
            책정보패널.BackColor = Color.FromArgb(218, 234, 244);  // rgb(218,234,244)
            Controls.Add(책정보패널);

            // 도서사진 픽쳐박스
            PICTUREBOXclass picturboxValue = new PICTUREBOXclass(this, "picturebox1", "picturebox_txt1", 220, 260, 10, 20, "default_book_image.png", picturbox_Click);

            책이미지 = comm.load_PictureBox(picturboxValue);
            책정보패널.Controls.Add(책이미지);

            // 간략소개상자 - TextBOX
            TXTBOXclass 간략소개상자값 = new TXTBOXclass(this, "간략소개상자", "", 500, 150, 26, 324, txtbox_Click);

            간략소개상자            = comm.txtbox(간략소개상자값);
            간략소개상자.Font       = new Font("Arial", 24, FontStyle.Bold);
            간략소개상자.ReadOnly   = true;
            간략소개상자.Multiline  = true;
            간략소개상자.Region     = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 간략소개상자.Width, 간략소개상자.Height, 18, 18));
            간략소개상자.ScrollBars = ScrollBars.Vertical;
            책정보패널.Controls.Add(간략소개상자);

            // 책정보 검색박스상자 - TextBOX
            TXTBOXclass 책정보검색상자값 = new TXTBOXclass(this, "책정보_검색박스", "", 430, 150, 920, 89, txtbox_Click);

            책정보검색상자      = comm.txtbox(책정보검색상자값);
            책정보검색상자.Font = new Font(책정보검색상자.Font.Name, 24, FontStyle.Bold);
            Controls.Add(책정보검색상자); // 수정중


            // 책정보패널 고정라벨
            ArrayList arry = new ArrayList();

            arry.Add(new LBclass(this, "번호", "번호    :", 17, 110, 40, 235, 40, label_Click));
            arry.Add(new LBclass(this, "제목", "제목    :", 17, 110, 40, 235, 90, label_Click));
            arry.Add(new LBclass(this, "저자", "저자    :", 17, 110, 40, 235, 140, label_Click));
            arry.Add(new LBclass(this, "출판사", "출판사 :", 17, 110, 40, 235, 190, label_Click));
            arry.Add(new LBclass(this, "장르", "장르    :", 17, 110, 40, 235, 240, label_Click));
            arry.Add(new LBclass(this, "간략소개", "간략소개 :", 17, 110, 40, 26, 293, label_Click));
            if (user)
            {
                arry.Add(new LBclass(this, "대여가능여부", "대여가능여부    :", 17, 200, 40, 22, 496, label_Click));
                arry.Add(new LBclass(this, "도서위치", "    도서위치    :", 17, 180, 40, 38, 540, label_Click));
            }
            else
            {
                arry.Add(new LBclass(this, "대여가능여부", "대여가능여부   :", 17, 220, 40, 22, 530, label_Click));
                arry.Add(new LBclass(this, "대여자", "대여자  :", 17, 130, 40, 115, 600, label_Click));
                arry.Add(new LBclass(this, "도서위치", "도서위치   :", 17, 170, 40, 75, 670, label_Click));
            }


            for (int i = 0; i < arry.Count; i++)
            {
                Label label = comm.lb((LBclass)arry[i]);

                if (label.Name == "간략소개")
                {
                    label.Font = new Font(label.Font.Name, 14, FontStyle.Bold | FontStyle.Underline);
                }
                else if (admin && label.Name == "대여가능여부")
                {
                    label.Font = new Font(label.Font.Name, 20, FontStyle.Bold);
                }
                else if (admin && label.Name == "대여자")
                {
                    label.Font = new Font(label.Font.Name, 20, FontStyle.Bold);
                }
                else if (admin && label.Name == "도서위치")
                {
                    label.Font = new Font(label.Font.Name, 20, FontStyle.Bold);
                }
                else
                {
                    label.Font = new Font(label.Font.Name, 17, FontStyle.Bold);
                }

                책정보패널.Controls.Add(label);
            }

            // 책정보패널 선택한 리스트 라벨값
            ArrayList arryValue = new ArrayList();

            arryValue.Add(new LBclass(this, "번호값", "번호값", 17, 200, 40, 349, 40, label_Click));
            arryValue.Add(new LBclass(this, "제목값", "제목값", 17, 200, 40, 349, 90, label_Click));
            arryValue.Add(new LBclass(this, "저자값", "저자값", 17, 200, 40, 349, 140, label_Click));
            arryValue.Add(new LBclass(this, "출판사값", "출판사값", 17, 200, 40, 349, 190, label_Click));
            arryValue.Add(new LBclass(this, "장르값", "장르값", 17, 200, 40, 349, 240, label_Click));

            if (user)
            {
                arryValue.Add(new LBclass(this, "대여가능여부값", "가능", 17, 110, 40, 236, 497, label_Click));
                arryValue.Add(new LBclass(this, "도서위치값", "A열 2 - 1", 17, 110, 40, 238, 540, label_Click));
            }

            else
            {
                arryValue.Add(new LBclass(this, "대여가능여부값", "가능", 17, 1000, 40, 246, 530, label_Click));
                arryValue.Add(new LBclass(this, "대여자여부값", "없음", 17, 100, 40, 245, 600, label_Click));
                arryValue.Add(new LBclass(this, "도서위치값", "A열 2 - 1", 17, 100, 40, 248, 670, label_Click));
            }

            for (int i = 0; i < arryValue.Count; i++)
            {
                Label label = comm.lb((LBclass)arryValue[i]);
                label.Font = new Font(label.Font.Name, 17, FontStyle.Bold);
                책정보패널.Controls.Add(label);

                if (label.Name == "번호값")
                {
                    번호값 = label;
                }
                else if (label.Name == "제목값")
                {
                    제목값 = label;
                }
                else if (label.Name == "저자값")
                {
                    저자값 = label;
                }
                else if (label.Name == "출판사값")
                {
                    출판사값 = label;
                }
                else if (label.Name == "장르값")
                {
                    장르값 = label;
                }
                else if (label.Name == "대여가능여부값")
                {
                    대여가능여부값 = label;
                }
                else if (label.Name == "도서위치값")
                {
                    도서위치값 = label;
                }

                if (admin && label.Name == "대여가능여부값")
                {
                    label.Font = new Font(label.Font.Name, 20, FontStyle.Bold);
                }
                else if (admin && label.Name == "대여자여부값")
                {
                    대여자여부값     = label;
                    label.Font = new Font(label.Font.Name, 20, FontStyle.Bold);
                }
                else if (admin && label.Name == "도서위치값")
                {
                    label.Font = new Font(label.Font.Name, 20, FontStyle.Bold);
                }
            }


            /*
             *  제목값.Hide();
             *  저자값.Hide();
             *  출판사값.Hide();
             *  장르값.Hide();
             *  도서위치값.Hide();
             *
             */



            if (user)
            {
                // 입고요청패널
                PANELclass 입고요청패널값 = new PANELclass(this, "입고요청패널", "입고요청패널", 550, 160, 10, 610);
                Panel      입고요청패널  = comm.panel(입고요청패널값);

                //(좌측상단여백, 우측상단여백, 컨트롤 넓이, 컨트롤 높이, 가로 모서리 원기울기, 세로 모서리 원기울기)
                입고요청패널.Region    = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 입고요청패널.Width, 입고요청패널.Height, 15, 15));
                입고요청패널.BackColor = Color.FromArgb(114, 241, 168);  // rgb(218,234,244)
                Controls.Add(입고요청패널);

                // 입고요청 고정라벨
                LBclass 입고요청라벨값 = new LBclass(this, "입고요청", "※ 찾으시는 도서가 없으신가요?\n    그럼 입고요청을 해주세요.", 17, 360, 50, 17, 17, label_Click);
                Label   입고요청라벨  = comm.lb(입고요청라벨값);
                입고요청패널.Controls.Add(입고요청라벨);

                // 대여 버튼
                BTNclass 버튼대여버튼값 = new BTNclass(this, "대여버튼", "대여", 130, 60, 410, 530, btn_Click);
                Button   대여버튼    = comm.btn(버튼대여버튼값);
                대여버튼.BackColor = Color.FromArgb(50, 178, 223);
                대여버튼.Font      = new Font(대여버튼.Font.Name, 17, FontStyle.Bold);
                대여버튼.FlatStyle = FlatStyle.Flat;
                대여버튼.ForeColor = Color.White;
                대여버튼.Region    = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 대여버튼.Width, 대여버튼.Height, 18, 18));
                책정보패널.Controls.Add(대여버튼);

                // 입고 버튼
                BTNclass 버튼입고요청값 = new BTNclass(this, "입고버튼", "입고요청", 130, 60, 410, 30, btn_Click);
                Button   버튼입고요청  = comm.btn(버튼입고요청값);
                버튼입고요청.BackColor = Color.FromArgb(50, 178, 223);
                버튼입고요청.Font      = new Font(버튼입고요청.Font.Name, 17, FontStyle.Bold);
                버튼입고요청.FlatStyle = FlatStyle.Flat;
                버튼입고요청.ForeColor = Color.White;
                버튼입고요청.Region    = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 버튼입고요청.Width, 버튼입고요청.Height, 18, 18));
                입고요청패널.Controls.Add(버튼입고요청);
            }
            else
            {
                // 정보수정 && 수정 취소 버튼
                ArrayList btnArray = new ArrayList();
                btnArray.Add(new BTNclass(this, "정보수정버튼", "정보 수정", 140, 60, 385, 640, btn_Click));
                btnArray.Add(new BTNclass(this, "수정취소버튼", "수정 취소", 140, 60, 385, 640, btn_Click));
                btnArray.Add(new BTNclass(this, "수정완료버튼", "수정 완료", 140, 60, 385, 570, btn_Click));

                for (int i = 0; i < btnArray.Count; i++)
                {
                    Button 버튼 = comm.btn((BTNclass)btnArray[i]);

                    버튼.BackColor = Color.FromArgb(50, 178, 223);
                    버튼.Font      = new Font(버튼.Font.Name, 17, FontStyle.Bold);
                    버튼.FlatStyle = FlatStyle.Flat;
                    버튼.ForeColor = Color.White;
                    버튼.Region    = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 버튼.Width, 버튼.Height, 18, 18));
                    책정보패널.Controls.Add(버튼);

                    if (버튼.Name == "정보수정버튼")
                    {
                        정보수정 = 버튼;
                    }
                    else if (버튼.Name == "수정취소버튼")
                    {
                        수정취소 = 버튼;
                    }
                    else if (버튼.Name == "수정완료버튼")
                    {
                        수정완료 = 버튼;
                    }
                }
                수정취소.Hide();
                수정완료.Hide();

                // 책정보패널 - 책정보 수정을 위한 텍스트박스 값
                ArrayList TextBox_arryValue = new ArrayList();
                TextBox_arryValue.Add(new TXTBOXclass(this, "텍스트박스_제목값", "텍스트박스_제목값", 180, 40, 349, 80, txtbox_Click)); //  200, 40, 349, 90,
                TextBox_arryValue.Add(new TXTBOXclass(this, "텍스트박스_저자값", "텍스트박스_저자값", 180, 40, 349, 130, txtbox_Click));
                TextBox_arryValue.Add(new TXTBOXclass(this, "텍스트박스_출판사값", "텍스트박스_출판사값", 180, 40, 349, 180, txtbox_Click));
                TextBox_arryValue.Add(new TXTBOXclass(this, "텍스트박스_장르값", "텍스트박스_장르값", 180, 40, 349, 230, txtbox_Click));
                TextBox_arryValue.Add(new TXTBOXclass(this, "텍스트박스_도서위치값", "A열 2 - 1", 100, 40, 248, 660, txtbox_Click));

                for (int i = 0; i < TextBox_arryValue.Count; i++)
                {
                    TextBox textbox = comm.txtbox((TXTBOXclass)TextBox_arryValue[i]);
                    textbox.Font = new Font(textbox.Font.Name, 20, FontStyle.Bold);
                    책정보패널.Controls.Add(textbox);

                    if (textbox.Name == "텍스트박스_제목값")
                    {
                        텍스트박스_제목값 = textbox;
                    }
                    else if (textbox.Name == "텍스트박스_저자값")
                    {
                        텍스트박스_저자값 = textbox;
                    }
                    else if (textbox.Name == "텍스트박스_출판사값")
                    {
                        텍스트박스_출판사값 = textbox;
                    }
                    else if (textbox.Name == "텍스트박스_장르값")
                    {
                        텍스트박스_장르값 = textbox;
                    }
                    else if (textbox.Name == "텍스트박스_도서위치값")
                    {
                        텍스트박스_도서위치값 = textbox;
                    }
                }
                텍스트박스_제목값.Hide();
                텍스트박스_저자값.Hide();
                텍스트박스_출판사값.Hide();
                텍스트박스_장르값.Hide();
                텍스트박스_도서위치값.Hide();
            }


            BTNclass 검색버튼값 = new BTNclass(this, "검색버튼", "검색버튼", 130, 48, 1350, 87, btn_Click);
            Button   버튼검색  = comm.btn(검색버튼값);

            버튼검색.BackColor = Color.FromArgb(50, 178, 223);
            버튼검색.Font      = new Font(버튼검색.Font.Name, 17, FontStyle.Bold);
            버튼검색.FlatStyle = FlatStyle.Flat;
            버튼검색.ForeColor = Color.White;
            //버튼검색.Region = Region.FromHrgn(COMMON_Create_Ctl.CreateRoundRectRgn(2, 2, 버튼검색.Width, 버튼검색.Height, 18, 18));
            Controls.Add(버튼검색);


            LBclass 라벨책정보검색값 = new LBclass(this, "책정보", "도서 검색 :", 26, 200, 40, 590, 95, label_Click);
            Label   라벨책정보검색  = comm.lb(라벨책정보검색값);

            Controls.Add(라벨책정보검색);


            LISTVIEWclass 책정보검색_리스트뷰값 = new LISTVIEWclass(this, "ListView1", 900, 580, 589, 190, listView_MouseClick, listview_mousedoubleclick, 6, "", 0, "책번호", 100, "대여", 120, "도서명", 460, "저자", 100, "출판사", 115);

            책정보검색_리스트뷰 = comm.listView(책정보검색_리스트뷰값);


            책정보검색_리스트뷰.Font = new Font("Arial", 24, FontStyle.Bold);

            MySql mysql = new MySql();

            ArrayList bookinfoSearch_arry = mysql.GetSelect();

            foreach (Hashtable ht in bookinfoSearch_arry)
            {
                ListViewItem item = new ListViewItem("");
                item.SubItems.Add(ht["book_number"].ToString());
                item.SubItems.Add(ht["availability"].ToString());
                item.SubItems.Add(ht["title"].ToString());
                item.SubItems.Add(ht["author"].ToString());
                item.SubItems.Add(ht["publisher"].ToString());
                item.Font = new Font("Arial", 18, FontStyle.Italic);


                책정보검색_리스트뷰.Items.Add(item);
            }

            Controls.Add(책정보검색_리스트뷰);



            COMBOBOXclass 검색카테고리값 = new COMBOBOXclass(this, "ComboBox1", 130, 120, 790, 89, ComboBox_SelectedIndexChanged, 3, "도서명", "저자", "출판사");

            콤보박스검색카테고리               = comm.comboBox(검색카테고리값);
            콤보박스검색카테고리.Font          = new Font(콤보박스검색카테고리.Font.Name, 27, FontStyle.Regular);
            콤보박스검색카테고리.DropDownStyle = ComboBoxStyle.DropDownList;
            콤보박스검색카테고리.SelectedIndex = 0;
            Controls.Add(콤보박스검색카테고리);
        }