/// <summary>
 /// fill controlls here for editing
 /// </summary>
 public void FillControls()
 {
     try
     {
         AccountLedgerInfo infoAccountledger = new AccountLedgerInfo();
         AccountLedgerBll bllAccountledger = new AccountLedgerBll();
         infoAccountledger = bllAccountledger.AccountLedgerViewForSupplier(Convert.ToDecimal(strLedgerId.ToString()));
         txtSupplierName.Text = infoAccountledger.LedgerName;
         txtMailingName.Text = infoAccountledger.MailingName;
         txtOpeningBalance.Text = Convert.ToString(Math.Round(infoAccountledger.OpeningBalance, PublicVariables._inNoOfDecimalPlaces));
         cmbDrOrCr.Text = infoAccountledger.CrOrDr.ToString();
         txtAcNo.Text = infoAccountledger.BankAccountNumber;
         txtBranchName.Text = infoAccountledger.BranchName;
         txtBranchCode.Text = infoAccountledger.BranchCode;
         txtMobile.Text = infoAccountledger.Mobile.ToString();
         txtPhone.Text = infoAccountledger.Phone.ToString();
         txtAddress.Text = infoAccountledger.Address;
         txtEmail.Text = infoAccountledger.Email;
         if (infoAccountledger.BillByBill)
         {
             cmbBillbyBill.Text = "Yes";
         }
         else
         {
             cmbBillbyBill.Text = "No";
         }
         txtTin.Text = infoAccountledger.Tin;
         txtPan.Text = infoAccountledger.Pan;
         txtCst.Text = infoAccountledger.Cst;
         cmbArea.SelectedValue = infoAccountledger.AreaId.ToString();
         cmbRoute.SelectedValue = infoAccountledger.RouteId.ToString();
         txtNarration.Text = infoAccountledger.Narration;
         decLedger = infoAccountledger.LedgerId;
     }
     catch (Exception ex)
     {
         MessageBox.Show("SUP6" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }