protected void ddlItem_SelectedIndexChanged(object sender, EventArgs e) { int ItemId = int.Parse(ddlItem.SelectedValue); txtItemCode.Text = ITEM_MASTER.GetByITEM_ID(ItemId).CODE; txtrate.Text = ITEM_MASTER.GetByITEM_IDRATE(ItemId).Price.ToString(); }
public void Member_detail(int MID) { try { string Color = dropcolor.SelectedValue; string Unit = dropSize.SelectedValue; ITEM_MASTER drms = ITEM_MASTER.GetByITEM_ID(MID); if (drms.ITEM_ID > 0) { #region ViewState["MID"] = MID; lblItemName.Text = drms.ITEMNAME; lblprice.Text = ITEM_MASTER.GetByITEM_IDRATE(MID).Price.ToString();// txtrate.Text = ITEM_MASTER.GetByITEM_IDRATE(ItemId).Price.ToString(); lblDescription.Text = drms.Description; if (string.IsNullOrWhiteSpace(drms.Image)) { ImageOneUrl = "../images/NoImage"; } else { ImageOneUrl = "../images/ItemImages/" + drms.Image; } if (string.IsNullOrWhiteSpace(drms.Image1)) { ImageTwoUrl = "../images/NoImage"; } else { ImageTwoUrl = "../images/ItemImages/" + drms.Image1; } if (string.IsNullOrWhiteSpace(drms.Image2)) { ImageThreeUrl = "../images/NoImage"; } else { ImageThreeUrl = "../images/ItemImages/" + drms.Image2; } #endregion } } catch (Exception ex) { string script = "<script>alert('" + ex.Message + "');</script>"; } }
protected void ddlItem_SelectedIndexChanged(object sender, EventArgs e) { try { if (ddlItem.SelectedIndex > 0) { if (ddlUser.SelectedIndex > 0) { int ItemId = int.Parse(ddlItem.SelectedValue); int User = ddlUser.SelectedIndex; txtItemCode.Text = ITEM_MASTER.GetByITEM_ID(ItemId).HSNCODE; txtrate.Text = ITEM_MASTER.GetByITEM_IDRATE(ItemId).Price.ToString(); int UserState = USERPROFILEMASTER.GetByRegistration_ID(User).State; int PicUpState = PickupMaster.GetByPickupID(int.Parse(Session["PickupID"].ToString())).State; if (UserState == PicUpState) { txtigst.Text = "0"; txtcgst.Text = ITEM_MASTER.GetByITEM_ID(ItemId).CGST.ToString(); txtsgst.Text = ITEM_MASTER.GetByITEM_ID(ItemId).SGST.ToString(); } else { txtcgst.Text = "0"; txtsgst.Text = "0"; txtigst.Text = ITEM_MASTER.GetByITEM_ID(ItemId).IGST.ToString(); } } else { ScriptManager.RegisterStartupScript(this, typeof(Page), "Alert", "<Script>alert('Plz Select User');</Script>", false); ddlUser.Focus(); return; } } else { txtcgst.Text = "0"; txtsgst.Text = "0"; txtigst.Text = "0"; } } catch (Exception ew) { } }
protected void ddlItem_SelectedIndexChanged(object sender, EventArgs e) { try { if (ddlItem.SelectedIndex > 0) { int ItemId = int.Parse(ddlItem.SelectedValue); txtItemCode.Text = ITEM_MASTER.GetByITEM_ID(ItemId).HSNCODE; txtrate.Text = ITEM_MASTER.GetByITEM_IDRATE(ItemId).Price.ToString(); txtcgst.Text = ITEM_MASTER.GetByITEM_ID(ItemId).CGST.ToString(); txtsgst.Text = ITEM_MASTER.GetByITEM_ID(ItemId).SGST.ToString(); txtigst.Text = ITEM_MASTER.GetByITEM_ID(ItemId).IGST.ToString(); } else { txtcgst.Text = "0"; txtsgst.Text = "0"; txtigst.Text = "0"; } } catch (Exception ew) { } }