protected void Page_Load(object sender, EventArgs e)
        {
            Choose_SearchByUserLocation_Click(sender, e);

            if (!IsPostBack)
            {
            }

            if (!ClientScript.IsStartupScriptRegistered("initialize"))
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(),
                                                        "initialize", "initialize();", true);
            }



            if (Request.QueryString["Product_ID_Array"] != null)
            {
                product_id_array = Request.QueryString["Product_ID_Array"].Split(',');

                SelectedProduct_div.InnerHtml = "<table border='10', width=100%, borderColor='#00FF00'><tr><td style=\"padding: 5px 10px 5px 10px; background-color: #666666; font-size:large;\">Order Information:</td></tr></table>";
                int orderNumber = 0;
                // Loop over strings
                for (int i = 0; i < product_id_array.Length; i++)
                {
                    orderNumber++;

                    products = products.Select(Convert.ToInt32(product_id_array[i]));
                    warehouse_product_location = warehouse_product_location.Select_By_Product_ID(Convert.ToInt32(product_id_array[i]));
                    Location = Location.Select(warehouse_product_location.Location_ID);



                    Lat  = Convert.ToDecimal(Location.n_lat);
                    Long = Convert.ToDecimal(Location.n_long);

                    passProduct_ID_hf.Value = Convert.ToString(products.FEMA_Description);



                    SelectedProduct_div.InnerHtml += "<Table border='2' width='100%' align ='center'><tr><td width='10%'>" + "<b><font color='black' size='3'>#" + orderNumber + "</b></font></td ><td width='90%' bgcolor='#333333' ></td></tr>" +
                                                     "<tr><td colspan='2'><b><font color='black'>Name: </b>" + products.product_name + "</td></tr>" +
                                                     "<tr><td colspan='2'><b><font color='black'>Type: </b>" + products.product_type + "</font></td></tr>" +
                                                     "<tr><td colspan='2'><b><font color='black'>Discription: </b>" + products.product_desc + "</font></td></tr>" +
                                                     "<tr><td colspan='2'><b><font color='black'>Lat/Long: </b>" + Lat + "/" + Long + "</font></td></tr>" +
                                                     "</td></tr></Table>";

                    EName.Add(products.product_name);
                    EType.Add(products.product_type);
                    EDescription.Add(products.product_desc);

                    //Page.ClientScript.RegisterStartupScript(this.GetType(),
                    //"showMap", "showMap("+ Lat +", " + Long + ");", true);
                }
            }
            else
            {
                //Response.Write("<script>alert('Your order does not exist; This instance has been loged and well be looked into.');</script>");
            }
        }
示例#2
0
        protected void Add_To_Order()
        {
            var Product_id = GlobalVariables.JStoC_Product_ID;

            products = products.Select(Convert.ToInt32(Product_id));
            Response.Write("<script>alert('here is the results jimmy - " + products.product_name + " - " + products.product_id + " ' );</script>");
        }
示例#3
0
 public products Insert_products_select(int ID)
 {
     products = products.Select(ID);
     Insert_Resource_ID_txt.Text         = Convert.ToString(products.Resource_ID);
     Insert_product_name_txt.Text        = Convert.ToString(products.product_name);
     Insert_product_type_txt.Text        = Convert.ToString(products.product_type);
     Insert_product_qty_txt.Text         = Convert.ToString(products.product_qty);
     Insert_product_desc_txt.Text        = Convert.ToString(products.product_desc);
     Insert_product_color_txt.Text       = Convert.ToString(products.product_color);
     Insert_product_size_txt.Text        = Convert.ToString(products.product_size);
     Insert_product_cost_txt.Text        = Convert.ToString(products.product_cost);
     Insert_Product_exp_date_txt.Text    = Convert.ToString(products.Product_exp_date);
     Insert_Product_Alergy_info_txt.Text = Convert.ToString(products.Product_Alergy_info);
     Insert_Product_refrigde_txt.Text    = Convert.ToString(products.Product_refrigde);
     Insert_Product_Flammable_txt.Text   = Convert.ToString(products.Product_Flammable);
     Insert_Product_Hazard_txt.Text      = Convert.ToString(products.Product_Hazard);
     Insert_Product_Other_txt.Text       = Convert.ToString(products.Product_Other);
     Insert_Product_Min_Inv_txt.Text     = Convert.ToString(products.Product_Min_Inv);
     Insert_Product_Barcode_txt.Text     = Convert.ToString(products.Product_Barcode);
     Insert_Product_subtype_txt.Text     = Convert.ToString(products.Product_subtype);
     Insert_Make_txt.Text             = Convert.ToString(products.Make);
     Insert_Model_txt.Text            = Convert.ToString(products.Model);
     Insert_FEMA_Description_txt.Text = Convert.ToString(products.FEMA_Description);
     Insert_Year_txt.Text             = Convert.ToString(products.Year);
     Insert_RFID_txt.Text             = Convert.ToString(products.RFID);
     Insert_GPS_txt.Text               = Convert.ToString(products.GPS);
     Insert_Serial_Number_txt.Text     = Convert.ToString(products.Serial_Number);
     Insert_Height_txt.Text            = Convert.ToString(products.Height);
     Insert_Length_txt.Text            = Convert.ToString(products.Length);
     Insert_Depth_txt.Text             = Convert.ToString(products.Depth);
     Insert_Weight_txt.Text            = Convert.ToString(products.Weight);
     Insert_OAI_txt.Text               = Convert.ToString(products.OAI);
     Insert_OAI_Type_txt.Text          = Convert.ToString(products.OAI_Type);
     Insert_Use_txt.Text               = Convert.ToString(products.Use);
     Insert_Brand_txt.Text             = Convert.ToString(products.Brand);
     Insert_Power_Supply_txt.Text      = Convert.ToString(products.Power_Supply);
     Insert_Gas_Type_txt.Text          = Convert.ToString(products.Gas_Type);
     Insert_Needs_Gas_txt.Text         = Convert.ToString(products.Needs_Gas);
     Insert_Needs_Electricity_txt.Text = Convert.ToString(products.Needs_Electricity);
     Insert_Availability_txt.Text      = Convert.ToString(products.Availability);
     Insert_Datetime_txt.Text          = Convert.ToString(products.Datetime);
     Insert_OpenStatus_txt.Text        = Convert.ToString(products.OpenStatus);
     return(products);
 }
        public string get_product_id(string ID)
        {
            products = products.Select(Convert.ToInt32(ID));

            return(products.product_name);
        }