Пример #1
0
        private void frmPayment_Load(object sender, System.EventArgs e)
        {
            DataTable dtMOPs = billingRepository.GetMOPs();

            gcMOP.DataSource          = dtMOPs;
            txtItemQuantity.EditValue = billObj.Quantity;
            txtBilledAmount.EditValue = billObj.Amount;
            decimal.TryParse(billObj.Amount.ToString(), out billedAmount);
            payableAmount   = billedAmount;
            remainingAmount = billedAmount;
            cashRowHandle   = gvMOP.LocateByValue("MOPNAME", "Cash");
            cashRowHandle   = cashRowHandle < 0 ? gvMOP.LocateByValue("MOPNAME", "CASH") : cashRowHandle;
            UpdateLabels();
        }