private void PopulatePFVoucherInformation(Acc_Voucher aV) { try { SetDataInControls(aV); AccVoucherDetList = manager.GetAllAcc_VoucherDet(aV.VoucherKey); } catch (Exception ex) { throw (ex); } }
private void PopulatePFVoucherInformation(Acc_Voucher aV) { try { SetDataInControls(aV); AccVoucherDetList = manager.GetAllAcc_VoucherDet(aV.VoucherKey); //if (AccVoucherDetList.Count == 2) //{ // ddlDebit.SelectedValue = AccVoucherDetList[0].COAKey.ToString(); // txtDrAmount.Text = AccVoucherDetList[0].Dr.ToString(); // ddlCredit.SelectedValue = AccVoucherDetList[1].COAKey.ToString(); // txtCreditAmount.Text = AccVoucherDetList[1].Cr.ToString(); //} } catch (Exception ex) { throw (ex); } }