Пример #1
0
 private void popup2_FormClosed(object sender, FormClosedEventArgs e)
 {
     popup2.FormClosed -= popup2_FormClosed;
     if (popup2.DialogResult == DialogResult.OK)
     {
         if (!string.IsNullOrEmpty(popup2.U_NAME))
         {
             this.cmbQ1.EditValue     = "0";
             this.cmbQ3.ItemIndex     = 0;
             this.cmbQ2.ItemIndex     = 0;
             this.dt1.EditValue       = null;
             this.dt2.EditValue       = null;
             this.txtSearch.EditValue = popup2.U_NAME;
             Search();
         }
     }
     popup2 = null;
 }
Пример #2
0
        private void BtnSch1_Click(object sender, EventArgs e)
        {
            //이름+생년월일 중복자 검색
            //try
            //{
            //    Cursor.Current = Cursors.WaitCursor;

            //    _is_dupchk = true;

            //    DataSet ds = ServiceAgent.ExecuteDataSet(true, "CONIS_IBS", "USP_MM_MM05_SELECT_02"
            //    , this.txtCOMPANYCD.Text
            //    , this.cmbQ1.EditValue
            //    , this.txtSearch.Text
            //    , this.cmbQ2.EditValue
            //    , this.cmbQ3.EditValue
            //    );

            //    efwGridControl1.DataBind(ds);
            //    this.efwGridControl1.MyGridView.BestFitColumns();
            //}
            //catch (Exception ex)
            //{
            //    MessageAgent.MessageShow(MessageType.Error, ex.ToString());
            //}
            //finally
            //{
            //    Cursor.Current = Cursors.Default;
            //}

            popup2 = new frmMemberInfo_Dup
            {
                COMPANYCD   = txtCOMPANYCD.EditValue.ToString(),
                COMPANYNAME = txtCOMPANYNAME.EditValue.ToString()
            };
            popup2.FormClosed += popup2_FormClosed;
            PopUpBizAgent.Show(this, popup2);
        }