private void modify_Click(object sender, EventArgs e) { userInterfaceValue uiValue = new userInterfaceValue(); uiValue.winText = this.Text + "编辑"; uiValue.isAccountReceivable = m_isAccountReceivable; uiValue.isEditDate = true; uiValue.textBoxText = m_currentDataGridViedRecordName; uiValue.pkey = m_currentDataGridViedRecordPkey; InitAccountReceivableTable data = new InitAccountReceivableTable(); if (m_isAccountReceivable) { data = InitAccountReceivable.getInctance().getAccountReceivableInfoFromPkey(m_currentDataGridViedRecordPkey); } else { data = InitAccountPayable.getInctance().getAccountPayableInfoFromPkey(m_currentDataGridViedRecordPkey); } uiValue.textBoxBalance = Convert.ToString(data.balance); uiValue.dateTimePickerDateText = data.tradingDate; uiValue.customerOrSupplierID = data.customerOrSupplierID; FormAccountReceivablerEdit fare = new FormAccountReceivablerEdit(uiValue); fare.ShowDialog(); updateDataGridView(); }
public FormAccountReceivablerEdit(userInterfaceValue uiValue) { InitializeComponent(); this.Text = uiValue.winText; m_userInterfaceValue = uiValue; }
private void add_Click(object sender, EventArgs e) { userInterfaceValue uiValue = new userInterfaceValue(); uiValue.winText = this.Text + "新增"; uiValue.isAccountReceivable = m_isAccountReceivable; uiValue.isEditDate = false; FormAccountReceivablerEdit fare = new FormAccountReceivablerEdit(uiValue); fare.ShowDialog(); updateDataGridView(); }