Exemple #1
0
        private void popup_FormClosed(object sender, FormClosedEventArgs e)
        {
            popup.FormClosed -= popup_FormClosed;

            popup = null;
        }
Exemple #2
0
        private void BtnDispYes_Click(object sender, EventArgs e)
        {
            popup = new frmMM07_Pop01();

            popup.pIDX   = advBandedGridView1.GetFocusedRowCellValue("res_u_id").ToString();
            popup.pLEVEL = advBandedGridView1.GetFocusedRowCellValue("u_chef_level_cd").ToString();

            popup.pSEND_ID    = advBandedGridView1.GetFocusedRowCellValue("res_login_id").ToString();
            popup.pU_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_u_name").ToString();
            popup.pU_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_u_nickname").ToString();


            string sLevel = string.Empty;

            sLevel = advBandedGridView1.GetFocusedRowCellValue("u_chef_level_cd").ToString();

            if (Convert.ToInt16(sLevel.ToString()) >= 3)
            {
                MessageAgent.MessageShow(MessageType.Warning, " 변경할수 없는 등급의 추천인 입니다!");
                return;
            }

            if (sLevel.ToString() == "0")
            {
                popup.pRECV_ID         = advBandedGridView1.GetFocusedRowCellValue("res_gen_u_id").ToString();
                popup.pRECV_U_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_gen_u_name").ToString();
                popup.pRECV_U_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_gen_u_nickname").ToString();
            }
            if (sLevel.ToString() == "1")
            {
                popup.pRECV_ID         = advBandedGridView1.GetFocusedRowCellValue("res_vip_u_id").ToString();
                popup.pRECV_U_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_vip_u_name").ToString();
                popup.pRECV_U_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_vip_u_nickname").ToString();
            }
            if (sLevel.ToString() == "2")
            {
                popup.pRECV_ID         = advBandedGridView1.GetFocusedRowCellValue("res_chef_u_id").ToString();
                popup.pRECV_U_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_chef_u_name").ToString();
                popup.pRECV_U_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_chef_u_nickname").ToString();
            }


            popup.pRECV_GEN_ID         = advBandedGridView1.GetFocusedRowCellValue("res_gen_u_id").ToString();
            popup.pRECV_GEN_U_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_gen_u_name").ToString();
            popup.pRECV_GEN_U_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_gen_u_nickname").ToString();

            popup.pRECV_VIP_ID         = advBandedGridView1.GetFocusedRowCellValue("res_vip_u_id").ToString();
            popup.pRECV_VIP_U_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_vip_u_name").ToString();
            popup.pRECV_VIP_U_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_vip_u_nickname").ToString();

            popup.pRECV_SHEF_ID         = advBandedGridView1.GetFocusedRowCellValue("res_chef_u_id").ToString();
            popup.pRECV_SHEF_U_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_chef_u_name").ToString();
            popup.pRECV_SHEF_U_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_chef_u_nickname").ToString();

            popup.pDOMA_ID         = advBandedGridView1.GetFocusedRowCellValue("res_doma_u_id").ToString();
            popup.pDOMA_U_NAME     = advBandedGridView1.GetFocusedRowCellValue("res_doma_u_name").ToString();
            popup.pDOMA_U_NICKNAME = advBandedGridView1.GetFocusedRowCellValue("res_doma_u_nickname").ToString();

            popup.pmd_leader_id       = advBandedGridView1.GetFocusedRowCellValue("md_leader_id").ToString();
            popup.pmd_leader_name     = advBandedGridView1.GetFocusedRowCellValue("md_leader_name").ToString();
            popup.pmd_leader_nickname = advBandedGridView1.GetFocusedRowCellValue("md_leader_nickname").ToString();
            popup.pmd_leader          = advBandedGridView1.GetFocusedRowCellValue("md_leader").ToString();

            popup.FormClosed += popup_FormClosed;
            popup.ShowDialog();
        }