public PayPaymentOrderPackAddChangeForm() { this.InitializeComponent(); this.set_Text("Новоя пачка"); this.m_OrderPack = new PayPaymentOrderPack(); this.m_IsEdit = false; }
public PayPaymentOrderPackAddChangeForm(PayPaymentOrderPack orderPack) : this() { this.set_Text("Изменить пачку"); this.m_OrderPack = orderPack; this.tbNumber.set_Text(orderPack.Number); this.tbSumm.set_Text(orderPack.Summ.ToString()); this.m_IsEdit = true; }
public static void AddNextPack(PayPaymentOrderPack paymentOrder) { Mappers.PayPaymentOrderPackMapper.AddNext(paymentOrder); }
private void tsbSelect_Click(object sender, System.EventArgs e) { this.m_PayPaymentOrderPack = this.bsPaymentOrderPacks.get_Current() as PayPaymentOrderPack; if (this.m_PayPaymentOrderPack != null) { base.set_DialogResult(System.Windows.Forms.DialogResult.OK); } }
internal bool AutoAddNextPack() { this.m_PayPaymentOrderPack = new PayPaymentOrderPack(); this.m_PayPaymentOrderPack.PaymentOrderId = this.m_PayPaymentOrder.Id; this.m_PayPaymentOrderPack.PaymentAgentId = this.m_PayPaymentOrder.PaymentAgentId; this.m_PayPaymentOrderPack.PackSumm = 0M; this.m_PayPaymentOrderPack.UserId = User.CurrentUser.Id; PayPaymentOrderPack.AddNextPack(this.m_PayPaymentOrderPack); return (bool) (this.m_PayPaymentOrderPack.Number != "0"); }
private void btnNextPackNumber_Click(object sender, System.EventArgs e) { if ((this.m_PaymentOrder == null) || (this.m_PaymentOrder == AIS.SN.Model.DomainObjects.PayPaymentOrder.Null)) { System.Windows.Forms.MessageBox.Show("Не выбрано платежное поручение", "Внимание"); } else { PaymentOrdersPackCashierForm form = new PaymentOrdersPackCashierForm(this.m_PaymentOrder); if (!this.m_AutoPaymentOrderPack) { if (System.Windows.Forms.DialogResult.OK == form.ShowDialog()) { this.m_PaymentOrderPack = form.SelectedPayPaymentOrderPack; this.tbxPackNumber.set_Text(this.m_PaymentOrderPack.Number); } } else if (form.AutoAddNextPack()) { this.m_PaymentOrderPack = form.SelectedPayPaymentOrderPack; this.tbxPackNumber.set_Text(this.m_PaymentOrderPack.Number); } } }