Exemplo n.º 1
0
        //패널
        public Panel panel(pnSet pn)
        {
            Panel panel = new Panel();

            panel.Size     = new Size(pn.SX, pn.SY);
            panel.Location = new Point(pn.PX, pn.PY);
            //pn.Form.Controls.Add(panel);
            return(panel);
        }
Exemplo n.º 2
0
        public void View()
        {
            pnSet pn1 = new pnSet(this, 100, 900, 0, 0);

            head = ct.panel(pn1);
            Controls.Add(head);

            pnSet pn2 = new pnSet(this, 1100, 900, 100, 0);

            body = ct.panel(pn2);
            Controls.Add(body);

            btnSet bs1 = new btnSet(this, "book", "예약하기", 100, 100, 0, 100, btn_Book_click);

            book = ct.btn(bs1);
            head.Controls.Add(book);

            btnSet bs2 = new btnSet(this, "check", "예약조회·변경", 100, 100, 0, 200, btn_Check_click);

            check = ct.btn(bs2);
            head.Controls.Add(check);

            CheckForm();
        }
Exemplo n.º 3
0
        public void View()
        {
            pn1  = new pnSet(this, 1200, 900, 0, 0);
            head = ct.panel(pn1);
            Controls.Add(head);

            pn1             = new pnSet(this, 150, 300, 50, 150);
            first           = ct.panel(pn1);
            first.BackColor = Color.Coral;
            head.Controls.Add(first);

            pn1              = new pnSet(this, 150, 300, 300, 150);
            second           = ct.panel(pn1);
            second.BackColor = Color.DimGray;
            head.Controls.Add(second);

            pn1             = new pnSet(this, 200, 300, 550, 150);
            third           = ct.panel(pn1);
            third.BackColor = Color.DeepSkyBlue;
            head.Controls.Add(third);

            pn1              = new pnSet(this, 150, 300, 850, 150);
            fourth           = ct.panel(pn1);
            fourth.BackColor = Color.Cornsilk;
            head.Controls.Add(fourth);


            lb1      = new lbSet(this, "top", "폐가전제품 방문수거 배출예약", 300, 40, 50, 10, 14);
            top      = ct.label(lb1);
            top.Font = new Font("Verdana", 20.5f, FontStyle.Bold);
            head.Controls.Add(top);
            label_list = new ArrayList();
            label_list.Add(new lbSet(this, "first", "약관동의", 200, 50, 50, 50, 15));
            label_list.Add(new lbSet(this, "second", "기본정보 입력", 200, 50, 300, 50, 15));
            label_list.Add(new lbSet(this, "third", "배출품목 입력", 200, 50, 550, 50, 15));
            label_list.Add(new lbSet(this, "fourth", "예약완료", 200, 50, 800, 50, 15));

            for (int i = 0; i < label_list.Count; i++)
            {
                Label label = ct.label((lbSet)label_list[i]);
                if (i == 2)
                {
                    label.BackColor = Color.Beige;
                }

                label.Font      = new Font("Verdana", 15.5f, FontStyle.Bold);
                label.TextAlign = ContentAlignment.MiddleCenter;
                head.Controls.Add(label);
            }
            lb1          = new lbSet(this, "first", "대분류", 150, 30, 0, 0, 10);
            fl           = ct.label(lb1);
            fl.Font      = new Font("Verdana", 13.5f, FontStyle.Bold);
            fl.BackColor = Color.Silver;
            fl.TextAlign = ContentAlignment.MiddleCenter;
            first.Controls.Add(fl);

            CreateLb(second, new lbSet(this, "second", "중분류", 150, 30, 0, 0, 10));
            CreateLb(third, new lbSet(this, "third", "소분류", 200, 30, 0, 0, 10));

            lb1          = new lbSet(this, "ll", "수량", 150, 30, 0, 0, 10);
            ll           = ct.label(lb1);
            ll.Font      = new Font("Verdana", 13.5f, FontStyle.Bold);
            ll.BackColor = Color.Silver;
            ll.TextAlign = ContentAlignment.MiddleCenter;
            fourth.Controls.Add(ll);

            bt1  = new btnSet(this, "next", "다음단계", 100, 50, 960, 750, Next_Click);
            next = ct.btn(bt1);
            head.Controls.Add(next);

            bt1    = new btnSet(this, "behind", "이전단계", 100, 50, 850, 750, Behind_Click);
            behind = ct.btn(bt1);
            head.Controls.Add(behind);

            bt1 = new btnSet(this, "add", "추가", 70, 30, 60, 80, Add_Click);
            add = ct.btn(bt1);
            fourth.Controls.Add(add);
            //150 300
            tbSet ts = new tbSet(this, "count", 60, 30, 45, 40);

            count           = ct.txtbox(ts);
            count.Font      = new Font("Verdana", 13.5f, FontStyle.Regular);
            count.Multiline = false;
            count.MaxLength = 2;
            fourth.Controls.Add(count);

            lvSet ls = new lvSet(this, "리스트뷰", 400, 200, 50, 500, lv_Click);

            lv = ct.listview(ls);
            lv.FullRowSelect = true;
            lv.Columns.Add("번호", 50, HorizontalAlignment.Center);
            lv.Columns.Add("폐가전제품", 250, HorizontalAlignment.Center);
            lv.Columns.Add("수량", 100, HorizontalAlignment.Center);
            lv.Font = new Font("Verdana", 11.5f, FontStyle.Bold);
            head.Controls.Add(lv);
        }
Exemplo n.º 4
0
        public void View()
        {
            pnSet pn1 = new pnSet(this, 1200, 900, 0, 0);

            head = ct.panel(pn1);
            Controls.Add(head);

            lbSet lb1 = new lbSet(this, "top", "폐가전제품 방문수거 배출예약", 300, 40, 50, 10, 14);

            top      = ct.label(lb1);
            top.Font = new Font("Verdana", 20.5f, FontStyle.Bold);
            head.Controls.Add(top);
            label_list = new ArrayList();
            label_list.Add(new lbSet(this, "first", "약관동의", 200, 50, 50, 50, 15));
            label_list.Add(new lbSet(this, "second", "기본정보 입력", 200, 50, 300, 50, 15));
            label_list.Add(new lbSet(this, "third", "배출품목 입력", 200, 50, 550, 50, 15));
            label_list.Add(new lbSet(this, "fourth", "예약완료", 200, 50, 800, 50, 15));

            for (int i = 0; i < label_list.Count; i++)
            {
                Label label = ct.label((lbSet)label_list[i]);
                if (i == 1)
                {
                    label.BackColor = Color.Beige;
                }
                label.Font      = new Font("Verdana", 15.5f, FontStyle.Bold);
                label.TextAlign = ContentAlignment.MiddleCenter;
                head.Controls.Add(label);
            }
            lb1          = new lbSet(this, "content", "※ 배출예약 시 주의사항", 200, 18, 50, 130, 9);
            warning      = ct.label(lb1);
            warning.Font = new Font("맑은고딕", 9.5f, FontStyle.Bold);
            head.Controls.Add(warning);
            lb1          = new lbSet(this, "warning", "1. 주소가 입력되지 않은 상태에서는 품목 및 희망 배출일 선택이 되지 않습니다. 주소를 우선적으로 입력해주세요.\n2. 접수 시 불편사항이나 문의사항은 1599 - 0903으로 연락 바랍니다.", 1000, 50, 50, 158, 10);
            content      = ct.label(lb1);
            content.Font = new Font("맑은고딕", 10.5f);
            head.Controls.Add(content);

            //name,pnumber,number,addr,home,outdate,memo
            label_list = new ArrayList();
            label_list.Add(new lbSet(this, "name", "이름\n(*)", 90, 50, 50, 220, 10));
            label_list.Add(new lbSet(this, "pnumber", "휴대폰번호(*)", 90, 50, 50, 280, 10));
            label_list.Add(new lbSet(this, "number", "전화번호", 90, 50, 50, 340, 10));
            label_list.Add(new lbSet(this, "addr", "주소\n(*)", 90, 160, 50, 400, 10));
            label_list.Add(new lbSet(this, "home", "주거방법", 90, 50, 50, 570, 10));
            label_list.Add(new lbSet(this, "outdate", "배출희망날짜(*)", 90, 50, 50, 630, 10));
            label_list.Add(new lbSet(this, "memo", "메모", 90, 50, 50, 690, 10));


            for (int i = 0; i < label_list.Count; i++)
            {
                Label label = ct.label((lbSet)label_list[i]);
                if (i == 3)
                {
                    label.BackColor = Color.Bisque;
                }
                else if (i == 7 || i == 8)
                {
                    label.Font      = new Font("Verdana", 9.5f, FontStyle.Bold);
                    label.TextAlign = ContentAlignment.MiddleCenter;
                }
                label.Font      = new Font("Verdana", 11.5f, FontStyle.Bold);
                label.TextAlign = ContentAlignment.MiddleCenter;
                head.Controls.Add(label);
            }
            label_list = new ArrayList();
            label_list.Add(new lbSet(this, "hipen1", "-", 10, 30, 218, 290, 10));
            label_list.Add(new lbSet(this, "hipen2", "-", 10, 30, 295, 290, 10));
            label_list.Add(new lbSet(this, "hipen3", "-", 10, 30, 218, 340, 10));
            label_list.Add(new lbSet(this, "hipen4", "-", 10, 30, 295, 340, 10));
            for (int i = 0; i < label_list.Count; i++)
            {
                Label label = ct.label((lbSet)label_list[i]);
                label.Font      = new Font("Verdana", 9.5f, FontStyle.Bold);
                label.TextAlign = ContentAlignment.MiddleCenter;
                head.Controls.Add(label);
            }
            //RichTextBox name_box, pnb_box1, pnb_box2, pnb_box3, nb_box1, nb_box2, nb_box3, addr_box, road_box, memo_box;
            rb1                = new richtbSet(this, "name_box", 220, 30, 150, 230);
            name_box           = ct.richbox(rb1);
            name_box.Font      = new Font("Verdana", 11.5f);
            name_box.MaxLength = 4;
            name_box.Multiline = false;
            head.Controls.Add(name_box);

            rb1                = new richtbSet(this, "pnb_box3", 65, 30, 150, 290);
            pnb_box1           = ct.richbox(rb1);
            pnb_box1.Font      = new Font("Verdana", 11.5f);
            pnb_box1.KeyPress += Tb_KeyPress;
            pnb_box1.MaxLength = 3;
            pnb_box1.Multiline = false;
            head.Controls.Add(pnb_box1);

            rb1                = new richtbSet(this, "pnb_box2", 65, 30, 228, 290);
            pnb_box2           = ct.richbox(rb1);
            pnb_box2.Font      = new Font("Verdana", 11.5f);
            pnb_box2.KeyPress += Tb_KeyPress;
            pnb_box2.MaxLength = 4;
            pnb_box2.Multiline = false;
            head.Controls.Add(pnb_box2);

            rb1                = new richtbSet(this, "pnb_box3", 65, 30, 305, 290);
            pnb_box3           = ct.richbox(rb1);
            pnb_box3.Font      = new Font("Verdana", 11.5f);
            pnb_box3.KeyPress += Tb_KeyPress;
            pnb_box3.MaxLength = 4;
            pnb_box3.Multiline = false;
            head.Controls.Add(pnb_box3);

            rb1               = new richtbSet(this, "nb_box1", 65, 30, 150, 340);
            nb_box1           = ct.richbox(rb1);
            nb_box1.Font      = new Font("Verdana", 11.5f);
            nb_box1.KeyPress += Tb_KeyPress;
            nb_box1.MaxLength = 3;
            nb_box1.Multiline = false;
            head.Controls.Add(nb_box1);

            rb1               = new richtbSet(this, "nb_box2", 65, 30, 228, 340);
            nb_box2           = ct.richbox(rb1);
            nb_box2.Font      = new Font("Verdana", 11.5f);
            nb_box2.KeyPress += Tb_KeyPress;
            nb_box2.MaxLength = 4;
            nb_box2.Multiline = false;
            head.Controls.Add(nb_box2);

            rb1               = new richtbSet(this, "nb_box3", 65, 30, 305, 340);
            nb_box3           = ct.richbox(rb1);
            nb_box3.Font      = new Font("Verdana", 11.5f);
            nb_box3.KeyPress += Tb_KeyPress;
            nb_box3.MaxLength = 4;
            nb_box3.Multiline = false;
            head.Controls.Add(nb_box3);

            bt1         = new btnSet(this, "search", "주소검색", 70, 30, 160, 400, Search_click);
            search      = ct.btn(bt1);
            search.Font = new Font("맑은고딕", 11.5f);
            head.Controls.Add(search);

            lb1            = new lbSet(this, "addr", "구주소", 60, 30, 160, 440, 9);
            addr           = ct.label(lb1);
            addr.TextAlign = ContentAlignment.MiddleCenter;
            addr.Font      = new Font("맑은고딕", 11.5f);
            head.Controls.Add(addr);
            lb1             = new lbSet(this, "raddr", "새주소", 60, 30, 160, 480, 9);
            raddr           = ct.label(lb1);
            raddr.TextAlign = ContentAlignment.MiddleCenter;
            raddr.Font      = new Font("맑은고딕", 11.5f);
            head.Controls.Add(raddr);

            rb1                = new richtbSet(this, "addr", 350, 30, 225, 440);
            addr_box           = ct.richbox(rb1);
            addr_box.Font      = new Font("Verdana", 11.5f);
            addr_box.Multiline = false;
            head.Controls.Add(addr_box);

            rb1                = new richtbSet(this, "raddr", 350, 30, 225, 480);
            road_box           = ct.richbox(rb1);
            road_box.Font      = new Font("Verdana", 11.5f);
            road_box.Multiline = false;
            head.Controls.Add(road_box);

            rb1                  = new richtbSet(this, "raddr", 250, 30, 225, 520);
            detail_box           = ct.richbox(rb1);
            detail_box.Font      = new Font("Verdana", 11.5f);
            detail_box.Text      = "상세주소";
            detail_box.ForeColor = Color.Gray;
            detail_box.Multiline = false;
            detail_box.Click    += detail_box_Click;

            head.Controls.Add(detail_box);

            cb1       = new comboboxSet(this, "home", 100, 30, 160, 580);
            home      = ct.combobox(cb1);
            home.Font = new Font("Verdana", 11.5f);
            home.Text = ("주거형태");
            home.Items.Add("아파트");
            home.Items.Add("연립주택");
            home.Items.Add("단층주택");
            home.Items.Add("빌딩");
            head.Controls.Add(home);

            cb1           = new comboboxSet(this, "elevator", 130, 30, 270, 580);
            elevator      = ct.combobox(cb1);
            elevator.Font = new Font("Verdana", 11.5f);
            elevator.Text = ("엘레베이터 유무");

            /*
             * elevator.Items.Add("유");
             * elevator.Items.Add("무");
             */
            Dictionary <string, string> dict = new Dictionary <string, string>();

            dict.Add("Y", "유");
            dict.Add("N", "무");
            elevator.DataSource    = new BindingSource(dict, null);
            elevator.DisplayMember = "Value";
            elevator.ValueMember   = "Key";
            head.Controls.Add(elevator);

            DateSet ds1 = new DateSet(this, "date", 170, 30, 160, 650);

            date         = ct.datepic(ds1);
            date.Font    = new Font("Verdana", 11.5f);
            date.MinDate = DateTime.Today;
            head.Controls.Add(date);

            rb1                = new richtbSet(this, "memo", 420, 30, 160, 700);
            memo_box           = ct.richbox(rb1);
            memo_box.Font      = new Font("Verdana", 11.5f);
            memo_box.Multiline = false;
            head.Controls.Add(memo_box);

            bt1  = new btnSet(this, "next", "다음단계", 100, 50, 960, 750, next_click);
            next = ct.btn(bt1);
            head.Controls.Add(next);

            bt1    = new btnSet(this, "behind", "이전단계", 100, 50, 850, 750, behind_click);
            behind = ct.btn(bt1);
            head.Controls.Add(behind);
        }
Exemplo n.º 5
0
        public void View()
        {
            pnSet pn1 = new pnSet(this, 1200, 900, 0, 0);

            head = ct.panel(pn1);
            Controls.Add(head);

            lbSet lb1 = new lbSet(this, "top", "폐가전제품 방문수거 배출예약", 300, 40, 50, 10, 14);

            top      = ct.label(lb1);
            top.Font = new Font("Verdana", 20.5f, FontStyle.Bold);
            head.Controls.Add(top);
            label_list = new ArrayList();
            label_list.Add(new lbSet(this, "first", "약관동의", 200, 50, 50, 50, 15));
            label_list.Add(new lbSet(this, "second", "기본정보 입력", 200, 50, 300, 50, 15));
            label_list.Add(new lbSet(this, "third", "배출품목 입력", 200, 50, 550, 50, 15));
            label_list.Add(new lbSet(this, "fourth", "예약완료", 200, 50, 800, 50, 15));

            for (int i = 0; i < label_list.Count; i++)
            {
                Label label = ct.label((lbSet)label_list[i]);
                if (i == 0)
                {
                    label.BackColor = Color.Beige;
                }

                label.Font      = new Font("Verdana", 15.5f, FontStyle.Bold);
                label.TextAlign = ContentAlignment.MiddleCenter;
                head.Controls.Add(label);
            }

            richtbSet rt1 = new richtbSet(this, "service_text", 950, 200, 50, 170);

            service_box          = ct.richbox(rt1);
            service_box.ReadOnly = true;
            service_box.Text     = service_string;
            Point(service_box, 0, 11);
            Point(service_box, 2, 10);
            Point(service_box, 6, 10);
            head.Controls.Add(service_box);

            richtbSet rt2 = new richtbSet(this, "info_text", 450, 200, 50, 440);

            info_box             = ct.richbox(rt2);
            service_box.ReadOnly = true;
            info_box.Text        = info_string;
            Point(info_box, 2, 10);
            Point(info_box, 16, 10);
            head.Controls.Add(info_box);

            richtbSet rt3 = new richtbSet(this, "apply_text", 450, 200, 550, 440);

            apply_box          = ct.richbox(rt3);
            apply_box.ReadOnly = true;
            apply_box.Text     = apply_string;
            head.Controls.Add(apply_box);

            checkedSet ch1 = new checkedSet(this, "service", "▶ 서비스 약관(필수)", 950, 50, 50, 120);

            service_check            = ct.checkbox(ch1);
            service_check.CheckAlign = ContentAlignment.MiddleRight;
            head.Controls.Add(service_check);

            checkedSet ch2 = new checkedSet(this, "info", "▶ 개인정보 이용 동의(필수)", 450, 50, 50, 390);

            info_check            = ct.checkbox(ch2);
            info_check.CheckAlign = ContentAlignment.MiddleRight;
            head.Controls.Add(info_check);

            checkedSet ch3 = new checkedSet(this, "apply", "▶ 개인정보 제 3자 제공 동의(필수)", 450, 50, 550, 390);

            apply_check            = ct.checkbox(ch3);
            apply_check.CheckAlign = ContentAlignment.MiddleRight;
            head.Controls.Add(apply_check);

            checkedSet ch4 = new checkedSet(this, "all", "전체동의", 100, 50, 490, 650);

            all_check = ct.checkbox(ch4);
            all_check.CheckedChanged += check_all_click;
            head.Controls.Add(all_check);

            btnSet bt1 = new btnSet(this, "next", "다음단계", 100, 50, 960, 750, btn_next_click);

            next = ct.btn(bt1);
            head.Controls.Add(next);
        }