private void bunifuThinButton21_Click(object sender, EventArgs e) { PL.Pay frm = new Pay(); frm.txtID.Text = this.id.ToString(); frm.txtName.Text = this.bunifuCustomDataGrid1.CurrentRow.Cells[0].Value.ToString(); //frm.OldDebt = (debt.getTotalInvDebt(id) + debt.getTotalDocDebt(id)); frm.txtOldDept.Text = string.Format("{0:n0}", debt.getTotalDocDebt(id)); frm.State = "doc"; frm.ShowDialog(); }
private void btnREP_Click(object sender, EventArgs e) { PL.Pay frm = new Pay(); frm.txtID.Text = this.id.ToString(); frm.txtName.Text = this.txtName.Text; //frm.OldDebt = (debt.getTotalInvDebt(id) + debt.getTotalDocDebt(id)); frm.txtOldDept.Text = string.Format("{0:n0}", debt.getTotalInvDebt(id)); frm.temp = Convert.ToInt32(debt.getTotalInvDebt(id)); frm.State = "inv"; frm.ShowDialog(); UpDateInfo(); }
private void btnREP_Click(object sender, EventArgs e) { try { PL.Pay frm = new Pay(); frm.txtID.Text = this.CustomerNo.ToString(); frm.txtName.Text = this.txtName.Text; //frm.OldDebt = (debt.getTotalInvDebt(id) + debt.getTotalDocDebt(id)); frm.txtOldDept.Text = string.Format("{0:n0}", debt.GetFinalValueOfDebt(CustomerNo).Rows[0][0]); frm.temp = Convert.ToInt32(debt.GetFinalValueOfDebt(CustomerNo).Rows[0][0]); frm.State = "inv"; frm.ShowDialog(); UpDateInfo(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }