示例#1
0
 private void InitializeComponent()
 {
     this.txtUser = new DevExpress.XtraEditors.PopupContainerEdit();
     this.pcContainer = new DevExpress.XtraEditors.PopupContainerControl();
     this.txtPassword = new DevExpress.XtraEditors.TextEdit();
     this.btOk = new DevExpress.XtraEditors.SimpleButton();
     this.btCancel = new DevExpress.XtraEditors.SimpleButton();
     this.backgroundWorker = new System.ComponentModel.BackgroundWorker();
     this.marqueeProgressBarControl1 = new DevExpress.XtraEditors.MarqueeProgressBarControl();
     this.pClose = new System.Windows.Forms.PictureBox();
     ((System.ComponentModel.ISupportInitialize)(this.txtUser.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pcContainer)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.marqueeProgressBarControl1.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pClose)).BeginInit();
     this.SuspendLayout();
     //
     // txtUser
     //
     this.txtUser.Location = new System.Drawing.Point(182, 95);
     this.txtUser.Name = "txtUser";
     this.txtUser.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
     new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
     this.txtUser.Properties.PopupControl = this.pcContainer;
     this.txtUser.Size = new System.Drawing.Size(154, 21);
     this.txtUser.TabIndex = 3;
     this.txtUser.DoubleClick += new System.EventHandler(this.ogmTv_DoubleClick);
     //
     // pcContainer
     //
     this.pcContainer.Location = new System.Drawing.Point(12, 165);
     this.pcContainer.Name = "pcContainer";
     this.pcContainer.Size = new System.Drawing.Size(72, 24);
     this.pcContainer.TabIndex = 4;
     //
     // txtPassword
     //
     this.txtPassword.EditValue = "";
     this.txtPassword.Location = new System.Drawing.Point(183, 127);
     this.txtPassword.Name = "txtPassword";
     this.txtPassword.Size = new System.Drawing.Size(154, 21);
     this.txtPassword.TabIndex = 0;
     //
     // btOk
     //
     this.btOk.Location = new System.Drawing.Point(183, 165);
     this.btOk.Name = "btOk";
     this.btOk.Size = new System.Drawing.Size(75, 23);
     this.btOk.TabIndex = 1;
     this.btOk.Text = "登录";
     this.btOk.Click += new System.EventHandler(this.btOk_Click);
     //
     // btCancel
     //
     this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btCancel.Location = new System.Drawing.Point(261, 165);
     this.btCancel.Name = "btCancel";
     this.btCancel.Size = new System.Drawing.Size(75, 23);
     this.btCancel.TabIndex = 2;
     this.btCancel.Text = "取消";
     //
     // backgroundWorker
     //
     this.backgroundWorker.WorkerReportsProgress = true;
     this.backgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.backgroundWorker_RunWorkerCompleted);
     //
     // marqueeProgressBarControl1
     //
     this.marqueeProgressBarControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.marqueeProgressBarControl1.EditValue = "";
     this.marqueeProgressBarControl1.Location = new System.Drawing.Point(0, 247);
     this.marqueeProgressBarControl1.Name = "marqueeProgressBarControl1";
     this.marqueeProgressBarControl1.Size = new System.Drawing.Size(460, 14);
     this.marqueeProgressBarControl1.TabIndex = 8;
     //
     // pClose
     //
     this.pClose.Image = global::Properties.Resources.关闭;
     this.pClose.InitialImage = null;
     this.pClose.Location = new System.Drawing.Point(431, 2);
     this.pClose.Name = "pClose";
     this.pClose.Size = new System.Drawing.Size(19, 17);
     this.pClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.pClose.TabIndex = 9;
     this.pClose.TabStop = false;
     this.pClose.MouseLeave += new System.EventHandler(this.pClose_MouseLeave);
     this.pClose.Click += new System.EventHandler(this.pClose_Click);
     this.pClose.MouseHover += new System.EventHandler(this.pClose_MouseHover);
     //
     // UserLogin
     //
     this.AcceptButton = this.btOk;
     this.Appearance.BackColor = System.Drawing.Color.Transparent;
     this.Appearance.Options.UseBackColor = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
     this.BackgroundImageLayoutStore = System.Windows.Forms.ImageLayout.Tile;
     this.BackgroundImageStore = global::Properties.Resources.评估管理软件登录;
     this.CancelButton = this.btCancel;
     this.ClientSize = new System.Drawing.Size(460, 261);
     this.Controls.Add(this.pClose);
     this.Controls.Add(this.marqueeProgressBarControl1);
     this.Controls.Add(this.btCancel);
     this.Controls.Add(this.pcContainer);
     this.Controls.Add(this.btOk);
     this.Controls.Add(this.txtPassword);
     this.Controls.Add(this.txtUser);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.LookAndFeel.UseDefaultLookAndFeel = false;
     this.MaximizeBox = false;
     this.Name = "UserLogin";
     this.Text = "UserLogin";
     ((System.ComponentModel.ISupportInitialize)(this.txtUser.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pcContainer)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.txtPassword.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.marqueeProgressBarControl1.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pClose)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#2
0
        //#region 팝업컨테이너 선택값의 유효성검사
        ///// <summary>
        ///// 팝업컨테이너 선택값의 유효성검사
        ///// </summary>
        ///// <param name="popedit">The popedit.</param>
        ///// <param name="CheckData">The check data.</param>
        ///// <returns>
        /////   <c>true</c> if [is pop data check] [the specified popedit]; otherwise, <c>false</c>.
        ///// </returns>

        //private bool IsPopDataCheck(DevExpress.XtraEditors.PopupContainerEdit popedit, string CheckData)
        //{
        //    try
        //    {
        //        ///TODO:[가입금등록]팝업컨테이너 선택값의 유효성검사
        //        bool IsCheck = false;

        //        DataTable dt = Cls.Common.uPopupContainer.GetDataTable(popedit);

        //        int i = 0;

        //        if (popedit.Name == "popMemberNo")
        //        {
        //            string filter = "MEMBER_NO = '" + CheckData.Trim() + "'";
        //            i = (int)dt.Compute("COUNT(MEMBER_NO)", filter);
        //        }

        //        if (CheckData.Trim() == "입력하세요" || CheckData.Trim() == "입력하세요" || CheckData.Trim() == "") i = 1;

        //        if (i > 0) IsCheck = true;

        //        return IsCheck;
        //    }
        //    catch (Exception ex)
        //    {
        //        throw ex;
        //    }
        //}
        //#endregion

        #region 팝업컨테이너 에디트의 컨트롤 바인딩

        /// <summary>
        /// 회원 팝업컨테이너 에티트의 컨트롤 바인딩
        /// </summary>
        /// <param name="popedit">The popedit.</param>
        /// <param name="gridName">Name of the grid.</param>
        /// <param name="gridViewName">Name of the grid view.</param>
        private void SetMemberNoSchma(DevExpress.XtraEditors.PopupContainerEdit popedit,
                                      string gridName,
                                      string gridViewName)
        {
            try
            {
                DevExpress.XtraGrid.GridControl         grid     = new DevExpress.XtraGrid.GridControl();
                DevExpress.XtraGrid.Views.Grid.GridView gridView = new DevExpress.XtraGrid.Views.Grid.GridView();

                grid.Name     = gridName;
                gridView.Name = gridViewName;


                DataTable dt = new DataTable();

                dt.Columns.Add("CUST_NO");
                dt.Columns.Add("MEMBER_SEQ");
                dt.Columns.Add("MEMBER_NO");
                dt.Columns.Add("MEMBER_NAME_KOR");
                dt.Columns.Add("MAIN_MEMBER_SEQ");
                dt.Columns.Add("MAIN_MEMBER_NO");
                dt.Columns.Add("MAIN_MEMBER_NAME");
                dt.Columns.Add("ID_NO");
                dt.Columns.Add("ID_NO_MASK");
                dt.Columns.Add("MEMBER_GROUP_CODE");
                dt.Columns.Add("MEMBER_GROUP_CODE_NAME");
                dt.Columns.Add("GUEST_TYPE");
                dt.Columns.Add("GUEST_TYPE_NAME");
                dt.Columns.Add("HOME_TEL");
                dt.Columns.Add("OFFICE_TEL");
                dt.Columns.Add("MOBILE_TEL");
                dt.Columns.Add("ADDRESS");
                dt.Columns.Add("POST_NAME");
                dt.Columns.Add("OFFICE_POSITION");
                dt.Columns.Add("E_MAIL");
                dt.Columns.Add("EXCLUSIVE_CODE");
                dt.Columns.Add("EXCLUSIVE_CODE_NAME");
                dt.Columns.Add("ENTR_DATE_MASK");

                GridStyle gs = new GridStyle(grid, gridView);
                gs.AddColumn("고객번호[YYYY+SEQ6]", "CUST_NO", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("회원일련번호[YYYY+SEQ6]", "MEMBER_SEQ", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("회원번호", "MEMBER_NO", _ColumnType.Default, 80, _ColumnAlign.Center, true);
                gs.AddColumn("회원명", "MEMBER_NAME_KOR", _ColumnType.Default, 80, _ColumnAlign.Center, true);
                gs.AddColumn("코멘트가없습니다", "MAIN_MEMBER_SEQ", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("주회원번호", "MAIN_MEMBER_NO", _ColumnType.Default, 80, _ColumnAlign.Center, true);
                gs.AddColumn("주회원명", "MAIN_MEMBER_NAME", _ColumnType.Default, 80, _ColumnAlign.Center, true);
                gs.AddColumn("주민사업자", "ID_NO", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("코멘트가없습니다", "ID_NO_MASK", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("회원구분", "MEMBER_GROUP_CODE", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("회원구분명", "MEMBER_GROUP_CODE_NAME", _ColumnType.Default, 80, _ColumnAlign.Center, true);
                gs.AddColumn("우대구분코드[공통:Z0006]", "GUEST_TYPE", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("코멘트가없습니다", "GUEST_TYPE_NAME", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("자택전화", "HOME_TEL", _ColumnType.Default, 80, _ColumnAlign.Center, true);
                gs.AddColumn("직장전화번호", "OFFICE_TEL", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("휴대전화", "MOBILE_TEL", _ColumnType.Default, 80, _ColumnAlign.Center, true);
                gs.AddColumn("주소", "ADDRESS", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("부서명", "POST_NAME", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("직위명", "OFFICE_POSITION", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("이메일주소", "E_MAIL", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("전용구분코드[공통코드:A0006]", "EXCLUSIVE_CODE", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("코멘트가없습니다", "EXCLUSIVE_CODE_NAME", _ColumnType.Default, 80, _ColumnAlign.Center, false);
                gs.AddColumn("코멘트가없습니다", "ENTR_DATE_MASK", _ColumnType.Default, 80, _ColumnAlign.Center, false);

                Cls.Grid.Options.SelectedRow(gridView);
                Cls.Grid.Options.EmbeddedNavigater(grid);
                Cls.Grid.Options.FilterRow(gridView, false);
                grid.DataSource = dt;

                Cls.Common.uPopupContainer.AddPopupGridControl("memberno",
                                                               new System.Drawing.Size(830, 250),
                                                               popedit,
                                                               "입력하세요",
                                                               grid,
                                                               gridView, DevExpress.XtraEditors.Controls.TextEditStyles.Standard);
            }
            catch (Exception ex)
            {
                Basic.ShowMessage(3, ex.Message);
            }
        }