예제 #1
0
 /// <summary>
 /// Function to fill Datagirdview
 /// </summary>
 public void RejectionInReportFill()
 {
     try
     {
         RejectionInMasterSP SpRejectionInMaster = new RejectionInMasterSP();
         try
         {
             decimal decDeliveryNoteNo = 0;
             if (cmbDeliveryNoteNo.SelectedIndex != -1)
             {
                 decDeliveryNoteNo = Convert.ToDecimal(cmbDeliveryNoteNo.SelectedValue.ToString());
             }
             string strVoucherNo   = txtVoucherNo.Text;
             string strProductCode = txtProductCode.Text;
             dgvRejectionInReport.DataSource = SpRejectionInMaster.RejectionInReportFill(Convert.ToDateTime(txtFromDate.Text), Convert.ToDateTime(txtToDate.Text), Convert.ToDecimal(cmbVoucherType.SelectedValue.ToString()), strVoucherNo, Convert.ToDecimal(cmbCashorParty.SelectedValue.ToString()), decDeliveryNoteNo, Convert.ToDecimal(cmbSalesMan.SelectedValue.ToString()), strProductCode);
             txtFromDate.Focus();
         }
         catch (Exception ex)
         {
             MessageBox.Show("RIReport:04" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("RIReport:3" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
        public List <DataTable> RejectionInReportFill(DateTime fromDate, DateTime toDate, decimal decVoucherTypeId, string strVoucherNo, decimal decLedgerId, decimal decDeliveryNoteMasterId, decimal decEmployeeId, string strProductCode)
        {
            List <DataTable> list = new List <DataTable>();

            try
            {
                list = spRejectionInMaster.RejectionInReportFill(fromDate, toDate, decVoucherTypeId, strVoucherNo, decLedgerId, decDeliveryNoteMasterId, decEmployeeId, strProductCode);
            }
            catch (Exception ex)
            {
                MessageBox.Show("RI2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(list);
        }