Esempio n. 1
0
 /// <summary>
 /// Function to fill the order number combo box
 /// </summary>
 /// <param name="decLedger"></param>
 /// <param name="decvoucherTypeId"></param>
 public void OrderNoComboFill(decimal decLedger, decimal decvoucherTypeId)
 {
     PurchaseMasterSP sppurchasemaster = new PurchaseMasterSP();
     try
     {
         isOrderFil = true;
         DataTable dtbl = new DataTable();
         dtbl = sppurchasemaster.GetOrderNoCorrespondingtoLedger(decLedger, decMaterialReceiptMasterId, decvoucherTypeId);
         cmbOrderNo.DataSource = dtbl;
         if (cmbOrderNo.DataSource != null)
         {
             cmbOrderNo.DisplayMember = "invoiceNo";
             cmbOrderNo.ValueMember = "purchaseOrderMasterId";
             cmbOrderNo.SelectedIndex = -1;
         }
         isOrderFil = false;
     }
     catch (Exception ex)
     {
         MessageBox.Show("MR29:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }