public List <DataTable> GetOrderNoCorrespondingtoLedgerForMaterialReceiptRpt(decimal decLedgerId)
        {
            List <DataTable> ListObj = new List <DataTable>();

            try
            {
                ListObj = spMaterialReceiptMaster.GetOrderNoCorrespondingtoLedgerForMaterialReceiptRpt(decLedgerId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("MRBLL7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(ListObj);
        }
Пример #2
0
 /// <summary>
 ///  Function to fill OrderNo combobox
 /// </summary>
 /// <param name="decLedger"></param>
 public void OrderNoComboFill(decimal decLedger)
 {
     try
     {
         DataTable dtbl = new DataTable();
         MaterialReceiptMasterSP spMaterialReceiptMaster = new MaterialReceiptMasterSP();
         dtbl = spMaterialReceiptMaster.GetOrderNoCorrespondingtoLedgerForMaterialReceiptRpt(Convert.ToDecimal(cmbCashOrParty.SelectedValue.ToString()));
         DataRow drow = dtbl.NewRow();
         drow["invoiceNo"]             = "All";
         drow["purchaseOrderMasterId"] = -1;
         dtbl.Rows.InsertAt(drow, 0);
         if (dtbl != null)
         {
             cmbOrderNo.DataSource    = dtbl;
             cmbOrderNo.DisplayMember = "invoiceNo";
             cmbOrderNo.ValueMember   = "purchaseOrderMasterId";
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("MRR4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }