private void BindDeliveryItem() { DataSet ds = BLL_POLOG_Delivery.POLOG_Get_Delivery_Item_Details(UDFLib.ConvertToInteger(Request.QueryString["ID"].ToString()), UDFLib.ConvertToInteger(txtDeliveryID.Text)); if (ds.Tables[0].Rows.Count > 0) { txtDelivery_ItemID.Text = ds.Tables[0].Rows[0]["Delivery_Item_ID"].ToString(); // txtDeliveryID.Text = ds.Tables[0].Rows[0]["ID"].ToString(); txtName.Text = ds.Tables[0].Rows[0]["Delivered_Item_Name"].ToString(); txtPoQty.Text = ds.Tables[0].Rows[0]["POQty"].ToString(); txtPoPrice.Text = ds.Tables[0].Rows[0]["POprice"].ToString(); txtConQty.Text = ds.Tables[0].Rows[0]["DeliveryQty"].ToString(); txtConPrice.Text = ds.Tables[0].Rows[0]["DeliveryPrice"].ToString(); txtRemarks.Text = ds.Tables[0].Rows[0]["Delivered_Item_Description"].ToString(); lblPOUnit.Text = ds.Tables[0].Rows[0]["Item_Unit"].ToString(); lblPOCurrency.Text = ds.Tables[0].Rows[0]["Currency"].ToString(); txtDeliveryUnit.Text = ds.Tables[0].Rows[0]["Delivered_Item_Unit"].ToString(); lblDeliveryCurrency.Text = ds.Tables[0].Rows[0]["Currency"].ToString();; } else { txtName.Text = "Non PO Item"; txtPoQty.Text = "0.00"; txtPoPrice.Text = "0.00"; } }
protected void BindDeliveryItem() { string type = "Edit"; DataSet ds = BLL_POLOG_Delivery.POLOG_Get_Delivery_Item_Details(UDFLib.ConvertStringToNull(txtDeliveryID.Text.ToString()), UDFLib.ConvertToInteger(Request.QueryString["Supply_ID"].ToString()), type, UDFLib.ConvertToInteger(GetSessionUserID())); if (ds.Tables[0].Rows.Count > 0) { dtGridItems = ds.Tables[0]; gvDeliveryItem.DataSource = ds.Tables[0]; gvDeliveryItem.DataBind(); } ViewState["dtGridItems"] = dtGridItems; }