Exemple #1
0
        private void BtnQueryAudit_Click(object sender, EventArgs e)
        {
            if (DgvCostApprove.SelectedRows.Count != 1)
            {
                MessageBox.Show("请仅选择一个费用单查看详情!", "信息提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            int costId = (int)DgvCostApprove.SelectedRows[0].Cells["ApprCostId"].Value;
            CostApplyDetailForm costApplyDetailForm = new CostApplyDetailForm(costId);

            costApplyDetailForm.ShowDialog();
        }
Exemple #2
0
        private void BtnQueryCost_Click(object sender, EventArgs e)
        {
            if (DgvCostApply.SelectedRows.Count != 1)
            {
                MessageBox.Show("请选择一行记录进行查看");
                return;
            }
            int costId = (int)DgvCostApply.SelectedRows[0].Cells["cost_id"].Value;
            CostApplyDetailForm costApplyDetailForm = new CostApplyDetailForm(costId);

            costApplyDetailForm.ShowDialog();
        }