コード例 #1
0
 /// <summary>
 /// Function to fill Datagridview
 /// </summary>
 private void OverDuePurchaseOrderGridFill()
 {
     try
     {
         ReminderSP spReminder = new ReminderSP();
         if (cmbAccountLedger.SelectedValue.ToString() != "System.Data.DataRowView" && cmbAccountLedger.Text != "System.Data.DataRowView")
         {
             decimal decLedgerId = decimal.Parse(cmbAccountLedger.SelectedValue.ToString());
             dgvOverduePurchaseOrder.DataSource = spReminder.OverDuePurchaseOrdersCorrespondingAccountLedger(decLedgerId);
             dgvOverduePurchaseOrder.Columns["PurchaseOrderMasterId"].Visible = false;
             dgvOverduePurchaseOrder.Columns["InvoicedMasterId"].Visible      = false;
             dgvOverduePurchaseOrder.Columns["MR_OrderMasterId"].Visible      = false;
             dgvOverduePurchaseOrder.Columns["ledgerId"].Visible = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("ODPO:2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #2
0
 /// <summary>
 /// Function to fill Datagridview
 /// </summary>
 private void OverDuePurchaseOrderGridFill()
 {
     try
     {
         ReminderSP spReminder = new ReminderSP();
         if (cmbAccountLedger.SelectedValue.ToString() != "System.Data.DataRowView" && cmbAccountLedger.Text != "System.Data.DataRowView")
         {
             decimal decLedgerId = decimal.Parse(cmbAccountLedger.SelectedValue.ToString());
             dgvOverduePurchaseOrder.DataSource = spReminder.OverDuePurchaseOrdersCorrespondingAccountLedger(decLedgerId);
             dgvOverduePurchaseOrder.Columns["PurchaseOrderMasterId"].Visible = false;
             dgvOverduePurchaseOrder.Columns["InvoicedMasterId"].Visible = false;
             dgvOverduePurchaseOrder.Columns["MR_OrderMasterId"].Visible = false;
             dgvOverduePurchaseOrder.Columns["ledgerId"].Visible = false;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("ODPO:2" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
コード例 #3
0
 /// <summary>
 /// Function to fill Datagridview
 /// </summary>
 private void OverDuePurchaseOrderGridFill()
 {
     try
     {
         ReminderSP spReminder = new ReminderSP();
         if (cmbAccountLedger.SelectedValue.ToString() != "System.Data.DataRowView" && cmbAccountLedger.Text != "System.Data.DataRowView")
         {
             decimal decLedgerId = decimal.Parse(cmbAccountLedger.SelectedValue.ToString());
             dgvOverduePurchaseOrder.DataSource = spReminder.OverDuePurchaseOrdersCorrespondingAccountLedger(decLedgerId);
             dgvOverduePurchaseOrder.Columns["PurchaseOrderMasterId"].Visible = false;
             dgvOverduePurchaseOrder.Columns["InvoicedMasterId"].Visible      = false;
             dgvOverduePurchaseOrder.Columns["MR_OrderMasterId"].Visible      = false;
             dgvOverduePurchaseOrder.Columns["ledgerId"].Visible = false;
         }
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "ODPO:2" + ex.Message;
     }
 }