Ejemplo n.º 1
0
 //Get Selected Item For updation
 public void GetSelectedItem(ItemBLL it)
 {
     try
     {
         itemBLLObj.BLLGetSelectedItem(it);
         txtItemName.Text        = itemBLLObj.itemName;
         txtItemDescription.Text = itemBLLObj.itemDescription;
         cmbCity.SelectedValue   = Convert.ToString(itemBLLObj.cityId);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
    public void LoadItemDescription(UISearchBLL usb)
    {
        DataTable dt = itBLLObj.BLLGetSelectedItem(itBLLObj);

        lblItemName.Text        = Convert.ToString(dt.Rows[0]["ItemName"]);        // itBLLObj.itemName;
        lblItemDescription.Text = Convert.ToString(dt.Rows[0]["ItemDescription"]); //itBLLObj.itemDescription;


        DataTable dtItemDescription = usBLLObj.BLLItemDescription(usb);

        gvItemDisplay.DataSource = dtItemDescription;
        gvItemDisplay.DataBind();
        Session["itemDiscription"] = dtItemDescription;

        DataTable dtItemDescriptionImage = usBLLObj.BLLItemDescriptionImageDisplay(usb);


        if (dtItemDescriptionImage.Rows.Count > 0)
        {
            DataRow dtRowImage = dtItemDescriptionImage.Rows[0];
            imageSet = Convert.ToInt32(Convert.ToString(dtRowImage["imageSet"]));

            if (imageSet == 0)
            {
                gvImageSet1.DataSource = dtItemDescriptionImage;
                gvImageSet1.DataBind();
            }
            else if (imageSet == 1)
            {
                gvImageSet2.DataSource = dtItemDescriptionImage;
                gvImageSet2.DataBind();
            }
            else if (imageSet == 2)
            {
                gvImageSet3.DataSource = dtItemDescriptionImage;
                gvImageSet3.DataBind();
            }
        }
        else
        {
            imageSet = 9;
        }
    }