Exemplo n.º 1
0
 /// <summary>
 /// Function to view the details of product
 /// </summary>
 /// <param name="decId"></param>
 public void view(decimal decId)
 {
     try
     {
         ProductSP spproduct = new ProductSP();
         DataTable dtbl = spproduct.ProductDetailsForProductSearch(decId);
         foreach (DataRow dr in dtbl.Rows)
         {
             lblProductCode.Text = dr["productCode"].ToString();
             lblProductGroup.Text = dr["groupName"].ToString();
             lblProductName.Text = dr["productName"].ToString();
             lblBrand.Text = dr["brandName"].ToString();
             lblCurrentStock.Text = dr["Currentstock"].ToString();
             lblModelNo.Text = dr["modelNo"].ToString();
             lblSize.Text = dr["size"].ToString();
             lbltax.Text = dr["taxName"].ToString();
             lblUnit.Text = dr["unitName"].ToString();
             lblTaxApplicable.Text = dr["taxapplicableOn"].ToString();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PD :01" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }