Exemple #1
0
 /// <summary>
 /// Function to fill the fields for Edit or Delete
 /// </summary>
 public void FillControls()
 {
     try
     {
         PricingLevelSP   spPricingLevel   = new PricingLevelSP();
         PricingLevelInfo infoPricingLevel = new PricingLevelInfo();
         infoPricingLevel         = spPricingLevel.PricingLevelWithNarrationView(Convert.ToDecimal(dgvPricingLevel.CurrentRow.Cells[1].Value.ToString()));
         txtPricingLevelName.Text = infoPricingLevel.PricinglevelName;
         txtNarration.Text        = infoPricingLevel.Narration;
         btnSave.Text             = "Update";
         btnDelete.Enabled        = true;
         decPricingLevel          = infoPricingLevel.PricinglevelId;
         strPricingLevel          = infoPricingLevel.PricinglevelName;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PL8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Exemple #2
0
 /// <summary>
 /// Function to fill the fields for Edit or Delete
 /// </summary>
 public void FillControls()
 {
     try
     {
         PricingLevelSP   spPricingLevel   = new PricingLevelSP();
         PricingLevelInfo infoPricingLevel = new PricingLevelInfo();
         infoPricingLevel         = spPricingLevel.PricingLevelWithNarrationView(Convert.ToDecimal(dgvPricingLevel.CurrentRow.Cells[1].Value.ToString()));
         txtPricingLevelName.Text = infoPricingLevel.PricinglevelName;
         txtNarration.Text        = infoPricingLevel.Narration;
         btnSave.Text             = "Update";
         btnDelete.Enabled        = true;
         decPricingLevel          = infoPricingLevel.PricinglevelId;
         strPricingLevel          = infoPricingLevel.PricinglevelName;
     }
     catch (Exception ex)
     {
         formMDI.infoError.ErrorString = "PL8" + ex.Message;
     }
 }
 /// <summary>
 /// Function to fill the fields for Edit or Delete 
 /// </summary>
 public void FillControls()
 {
     try
     {
         PricingLevelSP spPricingLevel = new PricingLevelSP();
         PricingLevelInfo infoPricingLevel = new PricingLevelInfo();
         infoPricingLevel = spPricingLevel.PricingLevelWithNarrationView(Convert.ToDecimal(dgvPricingLevel.CurrentRow.Cells[1].Value.ToString()));
         txtPricingLevelName.Text = infoPricingLevel.PricinglevelName;
         txtNarration.Text = infoPricingLevel.Narration;
         btnSave.Text = "Update";
         btnDelete.Enabled = true;
         decPricingLevel = infoPricingLevel.PricinglevelId;
         strPricingLevel = infoPricingLevel.PricinglevelName;
     }
     catch (Exception ex)
     {
         MessageBox.Show("PL8" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }