コード例 #1
0
        //드랍다운리스트 엘리먼트채우기
        private void DDLElementsInitialize()
        {
            ArrayList arrayList = TableConfig.GetOnlyValues("DeptName_root");

            this.DeptName.Items.AddRange(JinsLibrary.CONTROL.Util.GetListItems(arrayList));
            SortedList sortedList = JinsLibrary.CONFIG.TableConfig.GetValues("Class_root");

            this.sClass.Items.AddRange(JinsLibrary.CONTROL.Util.GetListItems(sortedList));
            //소속에 본사 추가
            //JinsLibrary.CONTROL.Util.DDLAddItem(ref position, "본사", "0");
        }
コード例 #2
0
        //라운드트립에서 상태값을 가질 수 있는 콘트롤
        private void InitializeControls()
        {
            URLQuery.Self.SetQueryString();
            URLQuery.Self.Remove("mode");

            //리스트가 어디로 갈것인가
            hlList.NavigateUrl = MbrBaseLib.Self.GetWhichList(Request.QueryString["ml"]);

            //주소찾기버튼
            hlSeekAddr.Attributes["OnClick"] = "WindowOpen('../../CommonApps/PostSeek/PostSeek.aspx','memberZip','scrollbars=yes,resizable=yes')";
            hlSeekAddr.Style.Add("CURSOR", "hand");
            hlSeekOAddr.Attributes["OnClick"] = "WindowOpen('../../CommonApps/PostSeek/PostSeek.aspx','officeZip','scrollbars=yes,resizable=yes')";
            hlSeekOAddr.Style.Add("CURSOR", "hand");

            //아바타이미지 미리보기
            bnAvataImage.Attributes["onChange"] = "javascript:ImagePreview(this, 'AvataImage',260,300);";

            //권한직접입력 인증
            if (Cookie.Self["DeptName"] == "기획/관리" && Convert.ToInt16(Cookie.Self["sLevel"]) >= 30)
            {
                findingA.Visible = true;
            }

            //직원생일
            string scriptStr = "javascript:return popUpCalendar(this," + tbBirthDay.ClientID + @", 'yyyy-mm-dd', '__doPostBack(\'" + tbBirthDay.ClientID + @"\')')";

            tbBirthDay.Attributes["OnClick"] = "blur();"; //OnClientClick 안됨
            tbBirthDay.Attributes.Add("ReadOnly", "ReadOnly");
            dSelectorBirth.ImgCalendar.Attributes["OnClick"] = scriptStr;
            dSelectorBirth.ImgReset.Attributes["onClick"]    = "javascript:" + tbBirthDay.ClientID + ".value = '';ResetRadioBox(" + rblSLBirth.ClientID + ");";

            //결혼기념일
            scriptStr = "javascript:return popUpCalendar(this," + tbWeddingDay.ClientID + @", 'yyyy-mm-dd', '__doPostBack(\'" + tbWeddingDay.ClientID + @"\')')";
            tbWeddingDay.Attributes["onClick"] = "blur();"; //OnClientClick 안됨
            tbWeddingDay.Attributes.Add("ReadOnly", "ReadOnly");
            tbWeddingDay.Attributes["onpropertychange"]        = "rblMarried_1.checked=true;";
            dSelectorWedding.ImgCalendar.Attributes["onClick"] = scriptStr;
            dSelectorWedding.ImgReset.Attributes["onClick"]    = "javascript:" + tbWeddingDay.ClientID + ".value = '';ResetRadioBox(" + rblMarried.ClientID + ");";
            rblMarried.Attributes["onClick"] = "javascript:if(rblMarried_1.checked){pnWA.style.display='block' ;}else{pnWA.style.display='none';}";

            rblMarried.Attributes["onClick"] = "javascript:if(rblMarried_1.checked){pnWA.style.display='block' ;}else{pnWA.style.display='none';}";
            //ibUpdate.Attributes["onClick"] = "return ConfirmJ('수정하시겠습니까?');";생각해보장....
            btnSSN.Attributes["onClick"] = "if(CheckNumbers(this.form)) alert('바른 주민등록번호입니다.');";


            //-------------------드랍다운리스트 엘리먼트채우기
            //모바일서비스넘버
            JinsLibrary.CONTROL.Util.GetMobileNo(ref cellularP1);
            //아이디/패스워드 힌트문제
            SortedList mySL = JinsLibrary.XML.XmlLib.Self.GetResxList("/App_Data/resx/FindingMbrInfo.resx");

            JinsLibrary.CONTROL.Util.DDLAddItem(ref findingID, mySL);
            //취미
            mySL = JinsLibrary.XML.XmlLib.Self.GetResxList("/App_Data/resx/Hobbies.resx");
            Util.CBLAddItem(ref hobbies, mySL);
            //월급
            mySL = JinsLibrary.XML.XmlLib.Self.GetResxList("/App_Data/resx/MonthlyPay.resx");
            Util.DDLAddItem(ref monthlyPay, mySL);
            //자동차정보
            mySL = JinsLibrary.XML.XmlLib.Self.GetResxList("/App_Data/resx/CarInfo.resx");
            Util.DDLAddItem(ref carInfo, mySL);
            //직업정보
            ArrayList arrayList = TableConfig.GetOnlyValues("Jobs_root");

            this.jobType.Items.AddRange(JinsLibrary.CONTROL.Util.GetListItems(arrayList));

            //백버튼
            hlBack.NavigateUrl = "javascript:history.back();";
        }