//DEV TYPE COMBO
        private void set_Grideview1Combo1(int rnum, string column_name)
        {
            Mem_WsDevice.WsDevice wSvc = null;
            string reCode = "";
            string reMsg  = "";

            Mem_WsDevice.DataDevCombo[] getData = null;
            try
            {
                wSvc         = new Mem_WsDevice.WsDevice();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer1 + "/WebSvc/Sys/Device/WsDevice.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.devTypeCmb(out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].SCODE_NM.ToString(), getData[i].SCODE.ToString());
                        }
                        DataGridViewComboBoxCell constCombo1 = new DataGridViewComboBoxCell();

                        constCombo1.DisplayMember = "TEXT";
                        constCombo1.ValueMember   = "VALUE";

                        constCombo1.DataSource = setCmb.GetDataTable();

                        dataGridView1.Rows[rnum].Cells[column_name] = constCombo1;
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmAccessDevice.cs  (Function)::SetDataBind_CmbMember  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #2
0
        private void set_Grideview1Combo2(int rnum, string column_name)
        {
            Mem_WsInOut.WsInOut wSvc = null;
            string reCode            = "";
            string reMsg             = "";

            Mem_WsInOut.DataComCombo[] getData = null;
            try
            {
                wSvc         = new Mem_WsInOut.WsInOut();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer2 + "/WebSvc/Worker/InOut/WsInOut.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.team_Cmb(AppInfo.SsSiteCd, out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].TEXT.ToString(), getData[i].VALUE.ToString());
                        }
                        DataGridViewComboBoxCell teamCombo1 = new DataGridViewComboBoxCell();

                        teamCombo1.DisplayMember = "TEXT";
                        teamCombo1.ValueMember   = "VALUE";

                        teamCombo1.DataSource = setCmb.GetDataTable();

                        dataGridView1.Rows[rnum].Cells[column_name] = teamCombo1;
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmInOut.cs  (Function)::set_Grideview1Combo2  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
        private void SetDataBind_Combo()
        {
            try
            {
                Class.Common.ComboBoxItemSet setCmb = null;

                setCmb = new Class.Common.ComboBoxItemSet();

                setCmb.AddColumn();

                setCmb.AddRow(wRM.GetString("wUse"), "1");
                setCmb.AddRow(wRM.GetString("wTotal"), "");

                setCmb.Bind(cmbUse);
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmCompany.cs  (Function)::FrmCompany_Load  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #4
0
        private void SetDataBind_CmbInOut()
        {
            try
            {
                Class.Common.ComboBoxItemSet setCmb = null;

                setCmb = new Class.Common.ComboBoxItemSet();

                setCmb.AddColumn();

                setCmb.AddRow(wRM.GetString("wAttendance"), "1");
                setCmb.AddRow(wRM.GetString("wNotAttendance"), "0");

                setCmb.Bind(searchCondition21.cmbInOut);
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmInOut.cs  (Function)::SetDataBind_CmbInOut  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #5
0
        //TCODE TYPE CMB BOX
        private void SetDataBind_TcodeCmb()
        {
            Mem_WsWorkerLaborSearch.WsWorkerLaborSearch wSvc = null;
            string reCode = "";
            string reMsg  = "";

            Mem_WsWorkerLaborSearch.DataComComboStr[] getData = null;
            try
            {
                wSvc         = new Mem_WsWorkerLaborSearch.WsWorkerLaborSearch();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer1 + "/WebSvc/Worker/Labor/WsWorkerLaborSearch.svc";
                wSvc.Timeout = 1000;



                reCode = wSvc.sLabTcodeList(AppInfo.SsSiteCd, CcodeCmb.SelectedValue.ToString(), LabInfoTypeCmb.SelectedValue.ToString(), wRM.GetString("wCategory"), AppInfo.SsLabAuth, out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].TEXT.ToString(), getData[i].VALUE.ToString());
                        }

                        setCmb.Bind(TcodeCmb);
                        TcodeCmb.SelectedValue = "0";
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmLaborSearch.cs  (Function)::SetDataBind_LabInfoTypeCmb  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #6
0
        private void SetDataBind_CmbMenuTop()
        {
            M_WsMenuMainDB.WsMenuMainDB wSvc = null;
            string reCode = "";
            string reMsg  = "";

            M_WsMenuMainDB.DataMenuTop[] getData1 = null;
            try
            {
                wSvc         = new M_WsMenuMainDB.WsMenuMainDB();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer2 + "/WebSvc/Sys/Menu/WsMenuMainDB.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sMenuTopTreeView(out getData1, out reMsg);

                if (reCode == "Y")
                {
                    if (getData1 != null && getData1.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData1.Length; i++)
                        {
                            string tmenuCd_val = getData1[i].TOP_MENU_CD.ToString();
                            string tmenuNm_val = getData1[i].TOP_MENU_NM.ToString();
                            setCmb.AddRow(getData1[i].TOP_MENU_NM.ToString(), getData1[i].TOP_MENU_CD.ToString());
                        }

                        setCmb.Bind(cmbMenuTop);
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmMenuSetAuthSite.cs  (Function)::SetDataBind_CmbMenuTop  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #7
0
        private void SetDataBind_LabSearchCondition()
        {
            try
            {
                Class.Common.ComboBoxItemSet setCmb = null;

                setCmb = new Class.Common.ComboBoxItemSet();

                setCmb.AddColumn();

                setCmb.AddRow("근로자 이름", "1");
                setCmb.AddRow("휴대폰 번호", "2");
                setCmb.AddRow("생년월일", "3");
                setCmb.AddRow("직종 이름", "4");

                setCmb.Bind(searchCondition11.comboBox5);
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmSysAuthMainDB_Load.cs  (Function)::setDataBind_Combo  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #8
0
        //COMBO BOX 가 없을 때 Null Exception
        private void set_Grideview4Combo1()
        {
            Mem_WsWorkerLaborSearch.WsWorkerLaborSearch wSvc = null;
            string reCode = "";
            string reMsg  = "";

            Mem_WsWorkerLaborSearch.DataAddinfoCcodesub[] getData = null;
            try
            {
                wSvc         = new Mem_WsWorkerLaborSearch.WsWorkerLaborSearch();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer1 + "/WebSvc/Worker/Labor/WsWorkerLaborSearch.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sLaborAddInfoSub(AppInfo.SsDbNm, TcodeCmb.SelectedValue.ToString(), out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].TSCODE_NM.ToString(), getData[i].TSCODE.ToString());
                        }

                        setCmb.Bind(comboSearch);
                        //comboSearch.SelectedValue = "0";
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmCompany.cs  (Function)::SetDataBind_CmbMember  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
        private void SetDataBind_Combo()
        {
            try
            {
                Class.Common.ComboBoxItemSet setCmb = null;

                setCmb = new Class.Common.ComboBoxItemSet();

                setCmb.AddColumn();

                setCmb.AddRow(wRM.GetString("wUse"), "1");
                setCmb.AddRow(wRM.GetString("wNotUsing"), "0");
                setCmb.AddRow(wRM.GetString("wTotal"), "");

                setCmb.Bind(cmbUse);

                cmbUse.SelectedIndex = cmbUse.Items.Count - 1;
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmSysAuthMainDB.cs  (Function)::setDataBind_Combo  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
        private void SetDataBind_CmbMember()
        {
            M_WsMember.WsMember wSvc = null;
            string reCode            = "";
            string reMsg             = "";

            M_WsMember.DataMemberMainDB[] getData = null;
            try
            {
                wSvc         = new M_WsMember.WsMember();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer2 + "/WebSvc/Sys/MemberSite/WsMember.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sMemberMainDB(out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].MEMCO_NM.ToString(), getData[i].MEMCO_CD.ToString());
                        }

                        setCmb.Bind(cmbMember);
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmSite.cs  (Function)::SetDataBind_CmbMember  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #11
0
        //CmbBox -> SITE
        private void SetDataBind_CmbSite()
        {
            Mem_WsSysAuthMemberDB.WsSysAuthMemberDB wSvc = null;
            string reCode = "";
            string reMsg  = "";

            Mem_WsSysAuthMemberDB.DataSiteMainDB[] getData = null;
            try
            {
                wSvc         = new Mem_WsSysAuthMemberDB.WsSysAuthMemberDB();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer1 + "/WebSvc/Sys/SysAuth/WsSysAuthMemberDB.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sSiteMainDB(AppInfo.SsMemcoCd, out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].SITE_NM.ToString(), getData[i].SITE_CD.ToString());
                        }

                        setCmb.Bind(cmbSite);
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmSysAuthSiteDB.cs  (Function)::SetDataBind_CmbMember  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #12
0
        //업체 콤보 박스
        private void SetDataBind_CompanyCmb()
        {
            Mem_WsSysCompanyTeam.WsSysCompanyTeam wSvc = null;
            string reCode = "";
            string reMsg  = "";

            Mem_WsSysCompanyTeam.DataCompanyCmb[] getData = null;
            try
            {
                wSvc         = new Mem_WsSysCompanyTeam.WsSysCompanyTeam();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer1 + "/WebSvc/Sys/CompanyTeam/WsSysCompanyTeam.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.companyCmb(AppInfo.SsSiteCd, out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].CO_NM.ToString(), getData[i].CO_CD.ToString());
                        }

                        setCmb.Bind(cmbCom);
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmSite.cs  (Function)::SetDataBind_CmbMember  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
        private void SetDataBind_CmbSite()
        {
            M_WsCCodeGrp.WsComnCodeGrp wSvc = null;
            string reCode = "";
            string reMsg  = "";

            M_WsCCodeGrp.DataCodeAuthSiteMemberDB[] getData = null;
            try
            {
                wSvc         = new M_WsCCodeGrp.WsComnCodeGrp();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer2 + "/WebSvc/Sys/ComnCode/WsComnCodeGrp.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sCodeAuthSiteMemberDB(AppInfo.SsDbNm, out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].AUTH_NM.ToString(), getData[i].AUTH_CD.ToString());
                        }

                        setCmb.Bind(cmbSite);
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmCodeTAuthSite.cs  (Function)::SetDataBind_CmbSite  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #14
0
        //COMPANY CMB BOX
        private void SetDataBind_CompanyCmb()
        {
            Mem_WsWorkerLaborSearch.WsWorkerLaborSearch wSvc = null;
            string reCode = "";
            string reMsg  = "";

            Mem_WsWorkerLaborSearch.DataComCombo[] getData = null;
            try
            {
                wSvc         = new Mem_WsWorkerLaborSearch.WsWorkerLaborSearch();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer1 + "/WebSvc/Worker/Labor/WsWorkerLaborSearch.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sLaborCompanyList(AppInfo.SsSiteCd, AppInfo.SsLabAuth, AppInfo.SsCoCd, wRM.GetString("wCompany"), out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].TEXT.ToString(), getData[i].VALUE.ToString());
                        }
                        setCmb.Bind(searchCondition11.comboBox3);
                        searchCondition11.comboBox3.SelectedIndex = searchCondition11.comboBox3.Items.Count - 1;
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmLaborSearch.cs  (Function)::SetDataBind_CmbMember  (Detail):: " + "\r\n" + ex.ToString());
            }
        }
Пример #15
0
        //업체 콤보 박스
        private void SetDataBind_CompanyCmb()
        {
            Mem_WsInOut.WsInOut wSvc = null;
            string reCode            = "";
            string reMsg             = "";

            Mem_WsInOut.DataComCombo[] getData = null;
            try
            {
                wSvc         = new Mem_WsInOut.WsInOut();
                wSvc.Url     = "http://" + AppInfo.SsWsvcServer2 + "/WebSvc/Worker/InOut/WsInOut.svc";
                wSvc.Timeout = 1000;

                reCode = wSvc.sLaborCompanyList(AppInfo.SsSiteCd, AppInfo.SsLabAuth, AppInfo.SsCoCd, out getData, out reMsg);
                if (reCode == "Y")
                {
                    if (getData != null && getData.Length > 0)
                    {
                        Class.Common.ComboBoxItemSet setCmb = null;

                        setCmb = new Class.Common.ComboBoxItemSet();
                        setCmb.AddColumn();

                        for (int i = 0; i < getData.Length; i++)
                        {
                            setCmb.AddRow(getData[i].TEXT.ToString(), getData[i].VALUE.ToString());
                        }

                        setCmb.Bind(searchCondition21.cmbCom);
                    }
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::FrmInOut.cs  (Function)::SetDataBind_CompanyCmb  (Detail):: " + "\r\n" + ex.ToString());
            }
        }