private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } brand = skinComboBox_Brand.SelectedItem as Brand; CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoSwitchShop); isFilter = false; cb.BeginInvoke(null, null); ShowProgressForm(); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } finally { CompleteProgressForm(); UnLockPage(); } }
private void ShowDeliver(EmRetailOrder item) { try { EmOrderDeliverForm2 form = new EmOrderDeliverForm2(item); // form.RefreshPageAction += EmOrderDeliverForm_RefreshPageAction; if (form.ShowDialog(this) == DialogResult.OK) { if (GlobalMessageBox.Show("是否确认操作?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { if (GlobalUtil.EngineUnconnectioned(this)) { return; } para = form.Result; CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.GetInfo); cb.BeginInvoke(null, null); } } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { // GlobalUtil.UnLockPage(this); } }
private void BaseButtonConfirm_Click(object sender, EventArgs e) { try { if (skinRadioButtonOnline.Checked) { if (String.IsNullOrEmpty(ValidateUtil.CheckEmptyValue(this.skinTextBoxLogisticCompany.SelectedValue))) { // GlobalMessageBox.Show("物流公司不能为空"); skinTextBoxLogisticCompany.Focus(); return; } if (String.IsNullOrEmpty(this.skinTextBoxLogisticId.Text)) { // GlobalMessageBox.Show("单号不能为空"); skinTextBoxLogisticId.Focus(); return; } if (GlobalMessageBox.Show("是否确认操作?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { if (!GlobalUtil.EngineUnconnectioned(this)) { CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.GetInfo); cb.BeginInvoke(null, null); } } } } catch (Exception ex) { GlobalUtil.ShowError(ex); } }
private void form_ConfirmClick(string shopID, string path, MemberImportForm form) { importShopID = shopID; importPath = path; string fileExt = Path.GetExtension(path); if (fileExt != ".xlsx" && fileExt != ".xls") { ShowMessage("你所选择文件格式不正确,请重新上传文件!"); return; } if (GlobalMessageBox.Show("是否开始导入" + System.IO.Path.GetFileName(path), "友情提示", MessageBoxButtons.OKCancel) != DialogResult.OK) { importPath = null; importForm.Cancel(); return; } try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoImport); cb.BeginInvoke(null, null); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } }
private void baseButtonSaveLogistic_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.GetInfo); cb.BeginInvoke(null, null); } catch (Exception ex) { GlobalUtil.ShowError(ex); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoSwitchShop); cb.BeginInvoke(null, null); ShowProgressForm(); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } }
private void Btn_Save_Click(object sender, EventArgs e) { skinPanel1.Enabled = false; try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoImport); cb.BeginInvoke(null, null); ShowProgressForm(); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } }
private void SearchDetail() { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.BindingRetailDetailDataSourceAndCleanLabel); cb.BeginInvoke(null, null); ShowProgressForm(); } catch (Exception ee) { ShowError(ee); } }
private void form_ConfirmClick(DateTime datetime, DateSelectForm form) { try { para = new UpdateTimePara() { CreateTime = datetime, OrderId = editOrder?.ID }; this.form = form; CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoUpdate); cb.BeginInvoke(null, null); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } }
private void baseButtonExport_Click(object sender, EventArgs e) { path = CJBasic.Helpers.FileHelper.GetPathToSave("保存文件", "会员管理" + new Date(DateTime.Now).ToDateInteger() + ".xls", Environment.GetFolderPath(Environment.SpecialFolder.Personal)); if (String.IsNullOrEmpty(path)) { return; } try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoExport); cb.BeginInvoke(null, null); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } }
private void form_ConfirmClick(DateTime dateTime, String shopId, CreateAllReportSelectForm form) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } this.dateTime = dateTime; createAllReportParaShopId = shopId; this.form = form; CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoUpdate); cb.BeginInvoke(null, null); ShowProgressForm(); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } }
private void EmOrderLogisticsForm_Load(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } //异步调用 CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.GetInfo); cb.BeginInvoke(null, null); } catch (Exception ex) { GlobalUtil.ShowError(ex); } }
private void baseButtonImport_Click(object sender, EventArgs e) { path = CJBasic.Helpers.FileHelper.GetFileToOpen("请选择导入文件"); if (String.IsNullOrEmpty(path)) { return; } string fileExt = Path.GetExtension(path); if (fileExt != ".xlsx" && fileExt != ".xls") { ShowMessage("你所选择文件格式不正确,请重新上传文件!"); return; } if (GlobalMessageBox.Show("是否开始导入" + System.IO.Path.GetFileName(path), "友情提示", MessageBoxButtons.OKCancel) != DialogResult.OK) { path = null; return; } /* if (NPOIHelper.IsFileInUse(path)) * { * ShowMessage("你所选择文件已被打开,请关闭后再重新导入!"); * return; * } */ try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoImport); cb.BeginInvoke(null, null); } catch (Exception ex) { GlobalUtil.ShowError(ex); } }
private void EmCostumeManageCtrl_Load(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } skinLabelResult.Text = string.Empty; //异步调用 CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.GetInfo); cb.BeginInvoke(null, null); } catch (Exception ex) { GlobalUtil.ShowError(ex); } }
private void CheckLogin() { try { if (!CheckValidate()) { return; } if (CommonGlobalUtil.EngineUnconnectioned(this, true)) { return; } skinLabelLinkState.Text = "连接中……"; CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoConnect); cb.BeginInvoke(null, null); } catch (Exception ex) { GlobalMessageBox.Show(ex.Message); } }
private void skinCheckBoxZone_CheckedChanged(object sender, EventArgs e) { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoSelected); cb.BeginInvoke(null, null); ShowProgressForm(); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } finally { CompleteProgressForm(); UnLockPage(); } }
private void ShowUnCheck() { try { if (CommonGlobalUtil.EngineUnconnectioned(this)) { return; } CJBasic.CbGeneric cb = new CJBasic.CbGeneric(this.DoShowUnCheck); cb.BeginInvoke(null, null); ShowProgressForm(); } catch (Exception ex) { CommonGlobalUtil.ShowError(ex); } finally { CompleteProgressForm(); UnLockPage(); } }