12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace LYFZ.Software.MainBusiness.DoorCityProcess
- {
- public partial class frmPlusPickDescription: LYFZ.Software.UI.DoorCityProcess.frmPlusPickDescription
- {
- decimal mySumMoney = 0;
- public string PickInfo
- {
- get { return this.tx_PickupProduct.Text.Trim(); }
- }
- public decimal PickMoney
- {
- get { return this.nb_thisMoney.Value; }
- }
- public frmPlusPickDescription(decimal sumMoney)
- {
- this.mySumMoney = sumMoney;
- this.nb_totalMoney.Value = sumMoney;
- this.nb_thisMoney.ValueChanged += Nb_thisMoney_ValueChanged;
- this.btn_Cancel.Click += Btn_Cancel_Click;
- this.btn_save.Click += Btn_save_Click;
- }
- private void Btn_save_Click(object sender, EventArgs e)
- {
- if (this.tx_PickupProduct.Text.Length > 0)
- {
- this.DialogResult = System.Windows.Forms.DialogResult.OK;
- }
- else
- {
- ExMessageBoxCustom.Show("当前加挑商品不能为空");
- }
- }
- private void Btn_Cancel_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- private void Nb_thisMoney_ValueChanged(object sender, EventArgs e)
- {
- this.nb_totalMoney.Value = this.mySumMoney + this.nb_thisMoney.Value;
- }
- }
- }
|