private void SetDataBind_gridView1(string pScodeGrp)
        {
            M_WsSysCodeGrp.WsSysCodeGrp wSvc = null;
            string reCode = "";
            string reMsg  = "";

            M_WsSysCodeGrp.DataSysCodeGrp[] getData = null;
            try
            {
                wSvc         = new M_WsSysCodeGrp.WsSysCodeGrp();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer2 + "/WebSvc/Sys/SysCode/WsSysCodeGrp.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sSysCodeGrp(pScodeGrp, out getData, out reMsg);

                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        dataGridView1.Rows.Clear();
                        for (int i = 0; i < getData.Length; i++)
                        {
                            dataGridView1.Rows.Add();
                            dataGridView1.Rows[i].Cells["dgv1_CHK"].Value          = "0";
                            dataGridView1.Rows[i].Cells["dgv1_SCODE_GRP"].Value    = getData[i].SCODE_GRP.ToString();
                            dataGridView1.Rows[i].Cells["dgv1_SCODE_GRP_NM"].Value = getData[i].SCODE_GRP_NM.ToString();
                            dataGridView1.Rows[i].Cells["dgv1_USING_FLAG"].Value   = getData[i].USING_FLAG.ToString();
                            dataGridView1.Rows[i].Cells["dgv1_SORT_NO"].Value      = getData[i].SORT_NO.ToString();
                            dataGridView1.Rows[i].Cells["dgv1_MEMO"].Value         = getData[i].MEMO.ToString();
                        }

                        SetRowNumber(dataGridView1);
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmSysCodeGrp.cs  (Function)::SetDataBind_gridView1  (Detail)::pScodeGrp=[" + pScodeGrp + "]", "Error");
                logs.SaveLog("[error]  (page)::FrmSysCodeGrp.cs  (Function)::SetDataBind_gridView1  (Detail)::reMsg=[" + reMsg + "]", "Error");
                logs.SaveLog("[error]  (page)::FrmSysCodeGrp.cs  (Function)::SetDataBind_gridView1  (Detail):: " + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (wSvc != null)
                {
                    wSvc.Dispose();
                }
            }
        }
        private void SetDataBind_treeView1()
        {
            treeView1.Nodes.Clear();

            M_WsSysCodeGrp.WsSysCodeGrp wSvc = null;
            string reCode = "";
            string reMsg  = "";

            M_WsSysCodeGrp.DataSysCodeGrp[] getData = null;
            try
            {
                wSvc         = new M_WsSysCodeGrp.WsSysCodeGrp();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer2 + "/WebSvc/Sys/SysCode/WsSysCodeGrp.svc";
                wSvc.Timeout = 1000;

                ImageList myimageList = new ImageList();
                myimageList.Images.Add(Image.FromFile(@"Image\treeicon1.png"));

                treeView1.ImageList  = myimageList;
                treeView1.ImageIndex = 0;

                TreeNode root = new TreeNode();
                root.Tag  = "";
                root.Text = wRM.GetString("wTotal");

                reCode = wSvc.sSysCodeGrp("", out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        for (int i = 0; i < getData.Length; i++)
                        {
                            string scodeGrp_val = getData[i].SCODE_GRP.ToString();
                            string scodeNm_val  = getData[i].SCODE_GRP_NM.ToString();

                            TreeNode node1 = new TreeNode();
                            node1.Tag  = scodeGrp_val;
                            node1.Text = scodeNm_val;

                            root.Nodes.Add(node1);
                        }

                        treeView1.Nodes.Add(root);

                        if (treeView1.Nodes.Count > 0)
                        {
                            treeView1.SelectedNode = treeView1.GetNodeAt(0, 0);
                        }

                        treeView1.ExpandAll();
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmSysCodeGrp.cs  (Function)::setDataBind_treeView1  (Detail):: " + "\r\n" + ex.ToString(), "Error");
            }
            finally
            {
                if (wSvc != null)
                {
                    wSvc.Dispose();
                }
            }
        }