private void UpdateEmShowOnlineIsFalse(EmCostume item) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } GlobalCache.CostumeList.Find(t => t.ID == item.ID).EmShowOnline = false; UpdateResult result = GlobalCache.EMallServerProxy.UpdateEmShowOnlineIsFalse(item.ID); switch (result) { case UpdateResult.Success: GlobalMessageBox.Show("下架成功!"); RefreshPage(); break; case UpdateResult.Error: GlobalMessageBox.Show("内部错误!"); break; default: break; } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void applyRefund() { try { if (GlobalMessageBox.Show("是否确认操作?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; } if (GlobalUtil.EngineUnconnectioned(this)) { return; } AgreeRefundPara para = new AgreeRefundPara() { EmRefundOrderID = Order.ID, OperateID = CommonGlobalCache.CurrentUserID }; RefundResult result = GlobalCache.EMallServerProxy.AgreeRefund(para); switch (result) { case RefundResult.Success: GlobalMessageBox.Show("已同意退款!"); //this.baseButtonOutbound.Visible = false; this.baseButtonRefused.Visible = false; Order.RefundState = 2; // updateBaseButtonApplyRefund(); //baseButtonApplyRefund.Visible = false; this.RefreshPageAction?.Invoke(this.CurrentTabPage, this.SourceCtrlType); break; case RefundResult.StateIsError: GlobalMessageBox.Show("退款申请状态不符合要求!"); break; case RefundResult.IsRefund: GlobalMessageBox.Show("已经退过货!"); break; case RefundResult.MemberIsNotExist: GlobalMessageBox.Show("会员不存在!"); break; case RefundResult.Error: GlobalMessageBox.Show("内部错误!"); break; default: break; } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
//点击查询销售单 private void BaseButton1_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } String orderID = retailOrderIDTextBox1.SkinTxt.Text; string costumeID = this.CostumeCurrentShopTextBox1.SkinTxt.Text; if (!string.IsNullOrEmpty(orderID)) { retailOrderIDTextBox1.Focus(); SendKeys.SendWait("{Enter}"); } else if (!string.IsNullOrEmpty(costumeID)) { RetailOrderSelectForm orderSelectForm = new RetailOrderSelectForm(costumeID, shopID, false); orderSelectForm.RetailOrderSelected += OrderSelectForm_RetailOrderSelected; orderSelectForm.ShowDialog(); } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void buttonSave_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } // List <EmExpressCompany> companys = DataGridViewUtil.BindingListToList <EmExpressCompany>(dataGridView1.DataSource); foreach (var item in companys) { UpdateCompany(item); } GlobalMessageBox.Show("保存成功!"); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void SetRetailOrderInfo() { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } EmRetailOrder retailOrder = GlobalCache.EMallServerProxy.GetOneEmRetailOrder(this.Order.EmRetailOrderID); skinLabelDiscountAmount.Text = retailOrder.MoneyDeductedByTicket.ToString(); if (retailOrder.State == 0) { this.skinLabelOrderPayTime.Text = String.Empty; } else { this.skinLabelOrderPayTime.Text = retailOrder.TimePay.ToString(DateTimeUtil.DEFAULT_DATETIME_FORMAT); } this.skinLabelSalePrice.Text = retailOrder.TotalEmOnlinePrice.ToString(); //(retailOrder.TotalMoneyReceived - retailOrder.CarriageCost).ToString(); // this.skinLabelCarriage.Text = retailOrder.CarriageCost.ToString(); this.skinLabelOrderPayAmount.Text = retailOrder.TotalMoneyReceived.ToString(); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } string curShopId = ValidateUtil.CheckEmptyValue(this.skinComboBoxShopID.SelectedValue); this.pagePara = new GetCostumePricesPara() { BrandID = (this.skinComboBox_Brand.SelectedValue != null && int.Parse(this.skinComboBox_Brand.SelectedValue.ToString()) != -1) ? int.Parse(this.skinComboBox_Brand.SelectedValue.ToString()) : -1, ClassID = skinComboBoxBigClass.SelectedValue.ClassID, // SubSmallClass = skinComboBoxBigClass.SelectedValue?.SubSmallClass, CostumeID = costumeFromSupplierTextBox1.Text, ShopId = curShopId, }; List <CostumePrice> listPage = GlobalCache.ServerProxy.GetShopCostumePrices(this.pagePara); this.BindingReturnOrderSource(listPage); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void PageControlPanel21_CurrentPageIndexChanged(int index) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } if (this.pagePara == null) { return; } this.pagePara.PageIndex = index; RefundListPage listPage = GlobalCache.ServerProxy.GetRefundListPage(this.pagePara); this.BindingRefundOrderDataSource(listPage); this.BindingRefundDetailDataSource(null); } catch (Exception ee) { GlobalUtil.WriteLog(ee); } finally { GlobalUtil.UnLockPage(this); } }
//public void WorkDeskCtrlSearch(PfCustomerOrderState orderState, RefundStatus refund) //{ // //skinComboBoxOrderState.SelectedValue = orderState; // //skinComboBoxRefundState.SelectedValue = refund; // //DateTimeUtil.DateTimePicker_All(dateTimePicker_Start, dateTimePicker_End); // if (orderState == PfCustomerOrderState.All && refund == RefundStatus.Refunding) // { // tabControl1.SelectTab(4); // } // else if(orderState == PfCustomerOrderState.WaitDelivery && refund == RefundStatus.NotSelect) // { // tabControl1.SelectTab(1); // } // // tabControl1_SelectedIndexChanged(null, null); // // BaseButton_Search_Click(null, null); //} private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index) { try { if (this.pagePara == null) { return; } if (GlobalUtil.EngineUnconnectioned(this)) { return; } pagePara.PageIndex = index; PfCustomerOrderPage listPage = GlobalCache.EMallServerProxy.GetPfCustomerOrderPage(this.pagePara); this.BindingDataSource(listPage); UpdateTabPageTitle(false); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } pagePara = new GetPfCustomerOrderPagePara() { CustomerOrderId = this.skinTextBoxOrderId.Text, StartDate = new Date(this.dateTimePicker_Start.Value), EndDate = new Date(this.dateTimePicker_End.Value), PageIndex = 0, PageSize = this.dataGridViewPagingSumCtrl.PageSize, PfCustomerID = (String)this.skinComboBox_PfCustomer.SelectedValue, CostumeID = this.skinTextBoxID.Text, PfCustomerOrderState = (PfCustomerOrderState)(this.skinComboBoxOrderState.SelectedValue), }; dataGridViewPagingSumCtrl.OrderPara = pagePara; PfCustomerOrderPage listPage = GlobalCache.EMallServerProxy.GetPfCustomerOrderPage(this.pagePara); this.dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingDataSource(listPage); UpdateTabPageTitle(false); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } // pagePara = new GetEmCarriageCostTemplatePagePara() //{ // PageIndex = 0, // PageSize = this.dataGridViewPagingSumCtrl.PageSize //}; // EmCarriageCostTemplatePage listPage = GlobalCache.EMallServerProxy.(this.pagePara); // this.dataGridViewPagingSumCtrl.Initialize(listPage); // this.BindingDataSource(listPage); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButtonConfirm_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } List <PfCustomerDetail> details = (List <PfCustomerDetail>) this.dataGridView1.DataSource; InteractResult result = GlobalCache.EMallServerProxy.PfCustomerOrderDelivery(this.Order.ID, GlobalCache.CurrentUserID, details.FindAll(t => t.IsSelected)); switch (result.ExeResult) { case ExeResult.Error: GlobalMessageBox.Show(this.FindForm(), result.Msg); break; case ExeResult.Success: GlobalMessageBox.Show("发货成功!"); TabPage_Close(this.CurrentTabPage, this.SourceCtrlType); break; default: break; } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void baseButtonSearch_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } this.pagePara = new Core.Dev.InteractEntity.CarriageCostTemplatePagePara() { IsValid = -1, Name = skinTextBoxTitle.Text, PageIndex = 0, PageSize = dataGridViewPagingSumCtrl.PageSize, }; CarriageCostTemplatePage listPage = GlobalCache.EMallServerProxy.GetCarriageCostTemplatePage(pagePara); dataGridViewPagingSumCtrl.OrderPara = pagePara; dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingDataSource(listPage); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void UpSaleNum(string itemID, int SaleNum) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult result = GlobalCache.ServerProxy.UpdateEmSales(itemID, SaleNum); switch (result.ExeResult) { case ExeResult.Success: break; case ExeResult.Error: GlobalMessageBox.Show("内部错误!"); break; default: break; } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void UpIsHot(string itemID, bool isHot) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult result = GlobalCache.EMallServerProxy.IsCostumeHot(itemID, isHot); switch (result.ExeResult) { case ExeResult.Success: break; case ExeResult.Error: GlobalMessageBox.Show(result.Msg); break; default: break; } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButtonQuery_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } para = new GetPfCustomerPage4DistributorPara() { DistributorID = item.ID, PageIndex = 0, PageSize = dataGridViewPagingSumCtrl.PageSize }; PfCustomerPage page = GlobalCache.ServerProxy.GetPfCustomerPage4Distributor(para); dataGridViewPagingSumCtrl.OrderPara = para; dataGridViewPagingSumCtrl.Initialize(page); BindingDataSource(page); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void Delete(List <Brand> list, Brand item) { if (GlobalMessageBox.Show("是否确认操作?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) { return; } if (GlobalUtil.EngineUnconnectioned(this)) { return; } this.dataGridView1.DataSource = null; InteractResult result = GlobalCache.Brand_OnRemove(item.AutoID); switch (result.ExeResult) { case ExeResult.Error: GlobalMessageBox.Show(result.Msg); break; default: this.dataGridView1.DataSource = null; list.Remove(item); this.dataGridView1.DataSource = DataGridViewUtil.ListToBindingList(list); break; } this.dataGridView1.DataSource = DataGridViewUtil.ListToBindingList(list); }
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 BaseButton_AutoReplenish_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } this.SetCostumeDetails(null); AutoReplenishCostumePara para = new AutoReplenishCostumePara() { ShopID = shopID, StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value) }; List <ReplenishDetail> autoReplenishDetailList = GlobalCache.ServerProxy.AutoReplenishCostume(para); if (autoReplenishDetailList != null && autoReplenishDetailList.Count > 0) { this.curReplenishDetailList = autoReplenishDetailList; this.BindingReplenishDetailSource(); } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } pagePara = new GetCostumeStoreAnalysisPara() { ShopID = ValidateUtil.CheckEmptyValue(this.skinComboBoxShopID.SelectedValue), BrandID = (this.skinComboBox_Brand.SelectedValue != null && int.Parse(this.skinComboBox_Brand.SelectedValue.ToString()) != -1) ? int.Parse(this.skinComboBox_Brand.SelectedValue.ToString()) : -1, Season = ValidateUtil.CheckEmptyValue(this.skinComboBoxSeason.SelectedValue), GroupType = (GroupType)skinComboBoxGroup.SelectedValue }; List <CostumeStoreAnalysisData> list = GlobalCache.ServerProxy.GetCostumeStoreAnalysis(this.pagePara); this.BindingDataSource(list); } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void form_ConfirmClick_Edit(PfCustomer item, SaveOffLineCustomerForm form) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } UpdateResult result = GlobalCache.ServerProxy.UpdateDistributor(item.ID, item.Name, item.Password); switch (result) { case UpdateResult.Success: form.DialogResult = DialogResult.OK; RefreshPage(); break; case UpdateResult.Error: GlobalMessageBox.Show("内部错误!"); form.Cancel(); break; default: break; } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (!DataGridViewUtil.CheckPerrmisson(this, sender, e)) { return; } if (e.RowIndex < 0 || e.ColumnIndex < 0) { return; } try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } List <SupplierAccountRecord> list = (List <SupplierAccountRecord>) this.dataGridView1.DataSource; SupplierAccountRecord item = (SupplierAccountRecord)list[e.RowIndex]; if (e.ColumnIndex == sourceOrderIDDataGridViewTextBoxColumn.Index) { if ((AccountType)item.AccountType == AccountType.PurchaseCollection || (AccountType)item.AccountType == AccountType.Other) { SupplierAccountSearchForm form = new SupplierAccountSearchForm(); if (form.ShowDialog(item, true) == DialogResult.OK) { RefreshPage(); } } else { SupplierAccountRecordOrderDetailForm form = new SupplierAccountRecordOrderDetailForm(); form.ShowDialog(item); } //402 在“供应商往来账明细”窗口内,增加点击单据 弹出单据明细窗口 功能。 // this.skinSplitContainer1.Panel2Collapsed = false; // this.SourceOrderDetailClick?.Invoke(item.SourceOrderID, this, this.skinSplitContainer1.Panel2); } else if (e.ColumnIndex == ColumnDelete.Index) { Delete(item); } else if (e.ColumnIndex == ColumnEdit.Index) { Edit(item); } else if (e.ColumnIndex == Column2.Index) { PayPrint(item); } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void SetLogisticCompany(SkinComboBox skinTextBoxLogisticCompany) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } List <EmExpressCompany> list = new List <EmExpressCompany>(); list = GlobalCache.EMallServerProxy.GetEnabledEmExpressCompanys(); if (list != null) { skinTextBoxLogisticCompany.DisplayMember = "ExpressCompanyName"; skinTextBoxLogisticCompany.ValueMember = "ExpressCompanyName"; skinTextBoxLogisticCompany.DataSource = list; } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void form_ConfirmClick(Distributor item, SaveDistributorForm form) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult result = GlobalCache.ServerProxy.InsertDistributor(item); switch (result.ExeResult) { case ExeResult.Success: form.DialogResult = DialogResult.OK; this.RefreshPage(); break; case ExeResult.Error: GlobalMessageBox.Show(result.Msg); form.Cancel(); break; default: break; } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void dataGridViewPagingSumCtrl_CurrentPageIndexChanged(int index) { try { if (this.pagePara == null) { return; } if (GlobalUtil.EngineUnconnectioned(this)) { return; } pagePara.PageIndex = index; DistributorWithdrawRecordPage listPage = GlobalCache.ServerProxy.GetDistributorWithdrawRecordPage(this.pagePara); this.BindingScrapOrderSource(listPage); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } this.pagePara = new GetRetailSummaryPara() { StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), ShopID = this.skinComboBoxShopID.SelectedValue.ToString(), }; RetailSummary listPage = GlobalCache.ServerProxy.GetRetailSummary(this.pagePara); this.BindingReturnOrderSource(listPage); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void Payment(DistributorWithdrawRecord item) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } InteractResult result = GlobalCache.ServerProxy.PayDistributorWithdrawRecord(item.AutoID); switch (result.ExeResult) { case ExeResult.Success: GlobalMessageBox.Show("付款成功!"); RefreshPage(); break; case ExeResult.Error: GlobalMessageBox.Show(result.Msg); break; default: break; } } catch (Exception ex) { GlobalUtil.ShowError(ex); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } pagePara = new GetDistributorWithdrawRecordPagePara() { DistributorID = skinComboBoxShopID.Text, StartDate = new Date(dateTimePicker_Start.Value), EndDate = new Date(dateTimePicker_End.Value), PageIndex = 0, PageSize = dataGridViewPagingSumCtrl.PageSize, State = (DistributorWithdrawRecordState)skinComboBoxState.SelectedValue }; DistributorWithdrawRecordPage listPage = GlobalCache.ServerProxy.GetDistributorWithdrawRecordPage(this.pagePara); dataGridViewPagingSumCtrl.OrderPara = pagePara; this.dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingScrapOrderSource(listPage); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } GetPfCustomerPagePara para = new GetPfCustomerPagePara() { PageIndex = 0, PageSize = int.MaxValue }; PfCustomerPage listPage = GlobalCache.ServerProxy.GetPfCustomerPage(para); this.BindingSource(listPage?.PfCustomers); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButton_Search_Click(object sender, EventArgs e) { try { if (GlobalUtil.EngineUnconnectioned(this)) { return; } string orderID = string.IsNullOrEmpty(this.skinTextBox_OrderID.SkinTxt.Text) ? null : this.skinTextBox_OrderID.SkinTxt.Text; this.pagePara = new PurchaseCostumePagePara() { PurchaseOrderID = orderID, IsOpenDate = true, StartDate = new CJBasic.Date(this.dateTimePicker_Start.Value), EndDate = new CJBasic.Date(this.dateTimePicker_End.Value), PageIndex = 0, PageSize = this.dataGridViewPagingSumCtrl.PageSize, ShopID = ValidateUtil.CheckEmptyValue(this.skinComboBoxShopID.SelectedValue), CostumeID = ValidateUtil.CheckEmptyValue(skinTextBox_costumeID.SkinTxt.Text) }; PurchaseCostumePage listPage = GlobalCache.ServerProxy.GetPurchaseCostumePage(this.pagePara); dataGridViewPagingSumCtrl.OrderPara = pagePara; this.dataGridViewPagingSumCtrl.Initialize(listPage); this.BindingPurchaseOrderSource(listPage); } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { GlobalUtil.UnLockPage(this); } }
private void BaseButtonSaveAccount_Click(object sender, EventArgs e) { try { String supllier = ValidateUtil.CheckEmptyValue(this.skinComboBox_SupplierID.SelectedValue); if (String.IsNullOrEmpty(supllier)) { skinComboBox_SupplierID.Focus(); GlobalMessageBox.Show("请先选择供应商!"); return; } if (String.IsNullOrEmpty(numericTextBox1.Text)) { numericTextBox1.Focus(); return; } //if (GlobalMessageBox.Show("是否确认操作?", "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) //{ // return; //} if (GlobalUtil.EngineUnconnectioned(this)) { return; } decimal money = this.numericTextBox1.Value; Supplier supplier = (Supplier)skinComboBox_SupplierID.SelectedItem; supplier.PaymentBalance = money; //InteractResult result = GlobalCache.ServerProxy.UpdateSupplier(supplier); InteractResult result = GlobalCache.ServerProxy.UpdateSupplierPaymentBalance(supplier.ID, supplier.PaymentBalance); switch (result.ExeResult) { case ExeResult.Success: // GlobalMessageBox.Show("登记完成!"); this.ReLoad(); break; case ExeResult.Error: GlobalMessageBox.Show(result.Msg); break; default: break; } } catch (Exception ee) { GlobalUtil.ShowError(ee); } finally { numericTextBox1.SkinTxt.Text = string.Empty; // this.skinTextBoxRemark.SkinTxt.Text = string.Empty; GlobalUtil.UnLockPage(this); } }