public void searchOrder(int _search_df, int _search_dt, String _search_filter) { FormPopupNotify.Show(this, "현재 기능을 준비 중 입니다. 추후 업데이트 이후 사용 해 주십시오.", "알림", 3000); //m_search_filter_text = _search_filter; //redrawListControl(); }
// ---------------------------------------------------------- parent event handler // public void saveDlgObjectData() { if (ctr_chk_use_print_ouput_0.Checked || ctr_chk_use_print_ouput_1.Checked || ctr_chk_use_print_ouput_2.Checked || ctr_chk_use_print_ouput_3.Checked) { if (checkBox1.Checked) { FormPopupNotify.Show(this.Owner, "시리얼 포트와 USB포트를 동시에 사용할 수 없습니다. 확인 해 주십시오.", "알림"); return; } } ModelAppDevice device = new ModelAppDevice(); if (null != device) { if (comboBox1.SelectedItem != null) { device.writeConfigLong("CONFIG_PRINT_OUTPUT", "is_use_usb_printer", checkBox1.Checked ? 1 : 0); device.writeConfigString("CONFIG_PRINT_OUTPUT", "usb_printer_name", comboBox1.SelectedItem.ToString()); } } // controls -> object setDlgControlDataToObjects(); // save if (m_config_list.isVailedData()) { m_config_list.saveObjectAll(); } else { FormPopupNotify.Show(this.Owner, "프린트 포트가 중복으로 지정 되었습니다. 확인 해 주십시오.", "알림"); } }
private void FormDlgUpdate_Load(object sender, EventArgs e) { if (null == m_url || 10 > m_url.Length) { FormPopupNotify.Show(this, "업데이트 정보가 없습니다.", "에러"); this.Close(); return; } if (!m_skip_possible) { btn_cancel.Text = "종료"; } }
private void btn_update_Click(object sender, EventArgs e) { try { string runPath = Application.StartupPath; string exeName = Application.ExecutablePath.Substring(runPath.Length + 1, Application.ExecutablePath.Length - runPath.Length - 1); string runParm = m_url + " " + m_key + " " + exeName + " " + m_version.ToString(); Process.Start(runPath + "\\KonsUpdater.exe", runParm); } catch (Exception ex) { FormPopupNotify.Show(this, ex.Message.ToString(), "에러"); } finally { Kons.ShopCallpass.AppMain.AppCore.Instance.exitApp(); } }
private void ctr_btn_req_store_del_Click(object sender, EventArgs e) { String req_store_pno = ctr_tbx_store_pno.Text.Trim().Replace("-", ""); if (0 >= req_store_pno.Length) { FormPopupNotify.Show(this.Owner, "먼저 사업자번호를 입력 해 주십시오.", "알림"); return; } // 이미매핑되어 있는지 확인 if (0 == m_store_reg_info.m_store_id.Length) { FormPopupNotify.Show(this.Owner, "해제할 매핑정보가 없습니다.", "알림"); return; } else { if (DialogResult.Yes != MessageBox.Show(this.Owner, "이미 설정하신 매핑정보를 해제 하시겠습니까? \r\n해제 시 해당 주문연동이 중지됩니다.", "확인", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { return; } } // 매핑해제 요청 ObjApiReqStoreDelResult res_store_del = requestShopDel(m_store_api_info.m_store_pno, m_store_reg_info.m_store_id); if (null == res_store_del) { FormPopupNotify.Show(this.Owner, "상점 매핑해제 요청 중 알수 없는 오류가 발생 하였습니다.", "알림"); return; } if (0 == res_store_del.m_ret_cd && 0 < res_store_del.m_store_id.Length) { m_store_api_info.deleteOnDevice(); m_store_api_info.initObj(); m_store_reg_info.deleteOnDevice(); m_store_reg_info.initObj(); ModelAppDevice device = new ModelAppDevice(); device.writeConfigString("STOREMAPPINGCHECK", "store_mapping_check", "0"); FormPopupNotify.Show(this.Owner, "매핑해제 성공하였습니다. 확인 해 주십시오.", "알림"); } else if (0 < res_store_del.m_ret_msg.Length) { FormPopupNotify.Show(this.Owner, res_store_del.m_ret_msg, "알림"); return; } else { switch (res_store_del.m_ret_cd) { case 1: FormPopupNotify.Show(this.Owner, "인증키가 잘못되었습니다. ( 인증키 오류 )", "알림"); return; case 2: FormPopupNotify.Show(this.Owner, "상점코드가 중복등록 되었습니다. ( 상점 코드 중복 )", "알림"); return; } } // set control setDlgObjectDataToControls(); }
private void ctr_btn_req_store_find_Click(object sender, EventArgs e) { String req_store_pno = ctr_tbx_store_pno.Text.Trim().Replace("-", ""); if (0 >= req_store_pno.Length) { FormPopupNotify.Show(this.Owner, "먼저 사업자번호를 입력 해 주십시오.", "알림"); return; } // 이미매핑되어 있는지 확인 if (0 < m_store_reg_info.m_store_id.Length) { if (DialogResult.Yes != MessageBox.Show(this.Owner, "이미 상점이 매핑되어 있습니다. \r다시 매핑하시겠습니까?", "확인", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { return; } } // 가맹정보 확인 ObjConfigStoreApiInfo sel_store_info = null; ArrayList res_store_list = requestStoreApiInfo(req_store_pno); if (null != res_store_list) { if (1 == res_store_list.Count) { sel_store_info = (ObjConfigStoreApiInfo)res_store_list[0]; } else if (1 < res_store_list.Count) { FormStoreInfoSelecter sel_dlg = new FormStoreInfoSelecter(this, res_store_list); if (DialogResult.OK == sel_dlg.ShowDialog()) { sel_store_info = sel_dlg.m_sel_obj; } } } // 받은 값 확인 if (null == sel_store_info || 0 == sel_store_info.m_store_num.Length) { FormPopupNotify.Show(this.Owner, "선택된 상점 코드가 없습니다. 확인 해 주십시오.", "알림"); return; } if (0 < sel_store_info.m_store_num.Length) { m_store_api_info.setObj(sel_store_info); // 정상적으로 받았으면 교체 m_store_api_info.saveToDevice(); } // 가맹코드( 매핑 ) 할 값 확인 - 로그인키를 사용한다. String req_store_id = Kons.ShopCallpass.AppMain.AppCore.Instance.getLoginUserLoginKey(); // 가맹코드 if (0 > req_store_id.Length) { FormPopupNotify.Show(this.Owner, "상점 매핑을 위한 접속 정보를 가져올 수 없습니다.", "알림"); return; } // 매핑요청 ObjConfigStoreApiRegInfo res_store_reg = requestShopRegInfo(sel_store_info.m_store_num, sel_store_info.m_store_pno, req_store_id); if (null == res_store_reg) { FormPopupNotify.Show(this.Owner, "상점 매핑코드를 가지고 올수 없습니다.", "알림"); return; } if (0 == res_store_reg.m_ret_cd && 0 < res_store_reg.m_store_id.Length) { // 정상적으로 받았으면 교체 m_store_reg_info.setObj(res_store_reg); m_store_reg_info.saveToDevice(); // 마지막 매핑값으로 저장 if (null != m_last_request_config) { m_last_request_config.m_delivery_company_type = KnDevexpressFunc.ComboBoxGetSelectedItemKey(ctr_cbx_open_api_type); m_last_request_config.saveToDevice(); } // 알림 FormPopupNotify.Show(this.Owner, "상점 매핑에 성공하였습니다. 배달요청을 \n이용하실 수 있습니다.", "알림"); } else if (0 < res_store_reg.m_ret_msg.Length) { FormPopupNotify.Show(this.Owner, res_store_reg.m_ret_msg, "알림"); return; } else { switch (res_store_reg.m_ret_cd) { case 1: FormPopupNotify.Show(this.Owner, "인증키가 잘못되었습니다. ( 인증키 오류 )", "알림"); return; case 2: FormPopupNotify.Show(this.Owner, "상점코드가 중복등록 되었습니다. ( 상점 코드 중복 )", "알림"); return; } } // set control setDlgObjectDataToControls(); }