private void DataGrid_凭证明细_Cell_MouseDoubleClick(object sender, RoutedEventArgs e) { if (Voucher.审核标志 == 1) { return; } Model_凭证明细 SelectedRow = this.DataGrid_凭证明细.SelectedCells[0].Item as Model_凭证明细; DataGridCellInfo DoubleClickCell = this.DataGrid_凭证明细.CurrentCell; CellId = SelectedRow.序号; if (DoubleClickCell.Column.Header.ToString() == "科目" || DoubleClickCell.Column.Header.ToString() == "子细目") { PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目 page; page = new PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目(); page.FillDate += new Pages.Pop.凭证录入.Page_凭证录入_子细目_FillDateEventHandle(DoFillData); this.Frame_科目子细目.Content = page; this.Popup_科目子细目.IsOpen = true; this.Window_记账凭证.IsEnabled = false; } else if (DoubleClickCell.Column.Header.ToString() == "记账") { if (VoucherDetails[CellId].记账 == 0) { VoucherDetails[CellId].记账 = 1; } else { VoucherDetails[CellId].记账 = 0; } } }
private void TextBox_二级科目_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (string.IsNullOrEmpty(TextBox_一级科目.Text.Trim())) { MessageBoxCommon.Show("请选择一级科目后再操作!"); return; } PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目 page = new PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目(TextBox_一级科目.Text.ToString().Split('\t')[0], false); page.FillDate += new Pages.Pop.凭证录入.Page_凭证录入_子细目_FillDateEventHandle(DoFillData); this.Frame_科目子细目.Content = page; this.Popup_科目子细目.IsOpen = true; }
private void TextBox_多栏明细账_三_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (TextBox_多栏明细账_二.Text == null || TextBox_多栏明细账_二.Text.Equals("")) { MessageBoxCommon.Show("请选择二级科目编号及名称!"); TextBox_多栏明细账_二.Focus(); return; } string subject_id = TextBox_多栏明细账_二.Text.Split('\t')[0]; PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目 page = new PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目(subject_id, true); page.FillDate += new Pages.Pop.凭证录入.Page_凭证录入_子细目_FillDateEventHandle(FillData多栏明细账_三); this.Frame_科目子细目.Content = page; this.Popup_科目子细目.IsOpen = true; }
private void TextBox_多栏明细账_二_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (TextBox_多栏明细账_一.Text == null || TextBox_多栏明细账_一.Text.Equals("")) { MessageBoxCommon.Show("请选择一级科目编号及名称!"); TextBox_多栏明细账_一.Focus(); return; } string subject_id = TextBox_多栏明细账_一.Text.Split('\t')[0]; PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目 page = new PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目(subject_id, true); page.FillDate += new Pages.Pop.凭证录入.Page_凭证录入_子细目_FillDateEventHandle(FillData多栏明细账_二); this.Frame_科目子细目.Content = page; this.Popup_科目子细目.IsOpen = true; }
private void TextBox_二级科目_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if (string.IsNullOrEmpty(TextBox_一级科目.Text.Trim())) { MessageBoxCommon.Show("请选择一级科目后再操作!"); return; } PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目 page = new PA.View.Pages.Pop.凭证录入.Page_凭证录入_子细目(TextBox_一级科目.Text.ToString().Split('\t')[0],false); page.FillDate += new Pages.Pop.凭证录入.Page_凭证录入_子细目_FillDateEventHandle(DoFillData); this.Frame_科目子细目.Content = page; this.Popup_科目子细目.IsOpen = true; }