private void Panel()
        {
            hashtable = new Hashtable();
            hashtable.Add("size", new Size(455, 290));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "Calender_pnl");
            Calendar_pnl             = cmm.getPanel(hashtable, this);
            Calendar_pnl.BorderStyle = BorderStyle.FixedSingle;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(455, 317));
            hashtable.Add("point", new Point(0, 295));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "Locker_pnl");
            Locker_pnl             = cmm.getPanel(hashtable, this);
            Locker_pnl.BorderStyle = BorderStyle.FixedSingle;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(455, 53));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "Calender_title");
            Calender_title             = cmm.getPanel(hashtable, Calendar_pnl);
            Calender_title.BorderStyle = BorderStyle.FixedSingle;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(455, 53));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "Locker_title");
            Locker_title             = cmm.getPanel(hashtable, Locker_pnl);
            Locker_title.BorderStyle = BorderStyle.FixedSingle;
        }
Exemple #2
0
        private void Form_infoAdd_Load(object sender, EventArgs e)
        {
            api = new WebAPI();
            fonts();

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(1441, 613));
            hashtable.Add("point", new Point(10, 10));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "pn1");
            main_pnl = cmm.getPanel2(hashtable, this);

            /* 왼쪽 패널 */
            hashtable = new Hashtable();
            hashtable.Add("size", new Size(780, 540));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "pn1");
            pn1 = cmm.getPanel(hashtable, main_pnl);

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(1461, 60));
            hashtable.Add("point", new Point(0, 550));
            hashtable.Add("color", Color.FromArgb(45, 35, 135));
            hashtable.Add("name", "pn2");
            pn2 = cmm.getPanel(hashtable, main_pnl);

            /* 오른쪽 패널 */
            hashtable = new Hashtable();
            hashtable.Add("size", new Size(650, 540));
            hashtable.Add("point", new Point(790, 0));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "pn4");
            pn4             = cmm.getPanel(hashtable, main_pnl);
            pn4.BorderStyle = BorderStyle.FixedSingle;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(650, 540));
            hashtable.Add("point", new Point(0, 0));
            hashtable.Add("pictureboxsizemode", PictureBoxSizeMode.CenterImage);
            pc1       = cmm.getPictureBox(hashtable, pn4);
            pc1.Image = Properties.Resources.normal_img;

            //------------------------------------------------패널 2번

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 50));
            hashtable.Add("point", new Point(1114, 5));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "update");
            hashtable.Add("text", "수정");
            hashtable.Add("click", (EventHandler)btn_click);
            btn1           = cmm.getButton(hashtable, pn2);
            btn1.Font      = font1;
            btn1.ForeColor = Color.White;
            btn1.FlatStyle = FlatStyle.Flat;
            btn1.FlatAppearance.BorderSize = 0;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 50));
            hashtable.Add("point", new Point(1223, 5));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "insert");
            hashtable.Add("text", "저장");
            hashtable.Add("click", (EventHandler)btn_click);
            btn2           = cmm.getButton(hashtable, pn2);
            btn2.Font      = font1;
            btn2.ForeColor = Color.White;
            btn2.FlatStyle = FlatStyle.Flat;
            btn2.FlatAppearance.BorderSize = 0;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 50));
            hashtable.Add("point", new Point(1332, 5));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "delete");
            hashtable.Add("text", "삭제");
            hashtable.Add("click", (EventHandler)btn_click);
            btn3           = cmm.getButton(hashtable, pn2);
            btn3.Font      = font1;
            btn3.ForeColor = Color.White;
            btn3.FlatStyle = FlatStyle.Flat;
            btn3.FlatAppearance.BorderSize = 0;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(70, 50));
            hashtable.Add("point", new Point(709, 5));
            hashtable.Add("color", Color.FromArgb(45, 35, 135));
            hashtable.Add("name", "btn6");
            hashtable.Add("text", "");
            hashtable.Add("click", (EventHandler)upload_click);
            btn6           = cmm.getButton(hashtable, pn2);
            btn6.Image     = Properties.Resources.file_img;
            btn6.ForeColor = Color.White;
            btn6.FlatStyle = FlatStyle.Flat;
            btn6.FlatAppearance.BorderSize = 0;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(100, 50));
            hashtable.Add("point", new Point(1005, 5));
            hashtable.Add("color", Color.Black);
            hashtable.Add("name", "btn7");
            hashtable.Add("text", "초기화");
            hashtable.Add("click", (EventHandler)btn_clear);
            btn7           = cmm.getButton(hashtable, pn2);
            btn7.Font      = font1;
            btn7.ForeColor = Color.White;
            btn7.FlatStyle = FlatStyle.Flat;
            btn7.FlatAppearance.BorderSize = 0;

            //=========================================여기까지 패널2번
            //--------------------------------------여기부터 패널3번부분

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(67, 30));
            hashtable.Add("point", new Point(10, 13));
            hashtable.Add("color", Color.FromArgb(45, 35, 135));
            hashtable.Add("name", "lb1");
            hashtable.Add("text", "제품명");
            lb1           = cmm.getLabel(hashtable, pn2);
            lb1.Font      = font2;
            lb1.ForeColor = Color.White;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(67, 30));
            hashtable.Add("point", new Point(240, 13));
            hashtable.Add("color", Color.FromArgb(45, 35, 135));
            hashtable.Add("name", "lb2");
            hashtable.Add("text", "회사명");
            lb2           = cmm.getLabel(hashtable, pn2);
            lb2.Font      = font2;
            lb2.ForeColor = Color.White;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(50, 30));
            hashtable.Add("point", new Point(468, 13));
            hashtable.Add("color", Color.FromArgb(45, 35, 135));
            hashtable.Add("name", "lb3");
            hashtable.Add("text", "무게");
            lb3           = cmm.getLabel(hashtable, pn2);
            lb3.Font      = font2;
            lb3.ForeColor = Color.White;

            hashtable = new Hashtable();
            hashtable.Add("size", new Size(50, 30));
            hashtable.Add("point", new Point(591, 13));
            hashtable.Add("color", Color.FromArgb(45, 35, 135));
            hashtable.Add("name", "lb4");
            hashtable.Add("text", "수량");
            lb4           = cmm.getLabel(hashtable, pn2);
            lb4.Font      = font2;
            lb4.ForeColor = Color.White;
            //--------------------------------------------------------------------

            hashtable = new Hashtable();
            hashtable.Add("width", "150");
            hashtable.Add("point", new Point(77, 14));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "tb2");
            hashtable.Add("enabled", true);
            tb2      = cmm.getTextBox(hashtable, pn2);
            tb2.Font = font1;

            hashtable = new Hashtable();
            hashtable.Add("width", "150");
            hashtable.Add("point", new Point(306, 14));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "tb3");
            hashtable.Add("enabled", true);
            tb3      = cmm.getTextBox(hashtable, pn2);
            tb3.Font = font1;

            hashtable = new Hashtable();
            hashtable.Add("width", "60");
            hashtable.Add("point", new Point(518, 14));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "tb4");
            hashtable.Add("enabled", true);
            tb4      = cmm.getTextBox(hashtable, pn2);
            tb4.Font = font1;

            hashtable = new Hashtable();
            hashtable.Add("width", "60");
            hashtable.Add("point", new Point(641, 14));
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "tb5");
            hashtable.Add("enabled", true);
            tb5      = cmm.getTextBox(hashtable, pn2);
            tb5.Font = font1;

            hashtable = new Hashtable();
            hashtable.Add("color", Color.White);
            hashtable.Add("name", "listView");
            hashtable.Add("click", (MouseEventHandler)listView_click);
            lv = cmm.getListView(hashtable, pn1);
            lv.Columns.Add("제품번호", 80, HorizontalAlignment.Center);
            lv.Columns.Add("제품명", 150, HorizontalAlignment.Center);
            lv.Columns.Add("회사명", 150, HorizontalAlignment.Center);
            lv.Columns.Add("무게(kg)", 80, HorizontalAlignment.Center);
            lv.Columns.Add("수량", 80, HorizontalAlignment.Center);
            lv.Columns.Add("구매일", 235, HorizontalAlignment.Center);
            lv.Font = font1;
            lv.ColumnWidthChanging += Lv_ColumnWidthChanging;
            option();
            api.SelectListView("http://192.168.3.12:5000/select", lv);
            tb2.Text = "";
            tb3.Text = "";
            tb4.Text = "";
            tb5.Text = "";
            urlstr   = "";
            hNo      = "";
            filename = "";
        }