Beispiel #1
0
    private void FillDropDowns()
    {
        UserDetail usrDetails = Session["UserDetails"] as UserDetail;

        TurningpointDataComponent turningPointComponent = new TurningpointDataComponent();

        search_params_class_dropdown.Items.Add(new ListItem()
        {
            Text = "", Value = ""
        });
        foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemClasses(usrDetails.TPSCustomerNumber))
        {
            search_params_class_dropdown.Items.Add(new ListItem()
            {
                Text = kv.Value, Value = kv.Key
            });
        }

        search_params_vendor_dropdown.Items.Add(new ListItem()
        {
            Text = "", Value = ""
        });
        foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemVendors())
        {
            search_params_vendor_dropdown.Items.Add(new ListItem()
            {
                Text = kv.Value, Value = kv.Key
            });
        }

        foreach (KeyValuePair <string, string> kv in turningPointComponent.GetRoundingCodes())
        {
            rounding_dropdown.Items.Add(new ListItem()
            {
                Text = kv.Value, Value = kv.Key
            });
        }

        foreach (KeyValuePair <string, string> kv in turningPointComponent.GetRoundingCodes())
        {
            rounding_dropdown_item.Items.Add(new ListItem()
            {
                Text = kv.Value, Value = kv.Key
            });
        }

        class_dropdown.Items.Add(new ListItem()
        {
            Text = "", Value = ""
        });
        foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemClasses(usrDetails.TPSCustomerNumber))
        {
            class_dropdown.Items.Add(new ListItem()
            {
                Text = kv.Value, Value = kv.Key
            });
        }
    }
Beispiel #2
0
    private void FillDropDowns()
    {
        UserDetail usrDetails = Session["UserDetails"] as UserDetail;

        TurningpointDataComponent turningPointComponent = new TurningpointDataComponent();

        search_params_class_dropdown.Items.Add(new ListItem()
        {
            Text = "", Value = ""
        });
        if (ConfigurationManager.AppSettings["RX_V6"] == "yes")
        {
            foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemClasses2())
            {
                search_params_class_dropdown.Items.Add(new ListItem()
                {
                    Text = kv.Value, Value = kv.Key
                });
            }
        }
        else
        {
            foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemClasses(usrDetails.TPSCustomerNumber))
            {
                search_params_class_dropdown.Items.Add(new ListItem()
                {
                    Text = kv.Value, Value = kv.Key
                });
            }
        }

        search_params_vendor_dropdown.Items.Add(new ListItem()
        {
            Text = "", Value = ""
        });
        foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemVendors())
        {
            search_params_vendor_dropdown.Items.Add(new ListItem()
            {
                Text = kv.Value, Value = kv.Key
            });
        }

        this.day_of_week_dd.Items.Add(new ListItem("", ""));
        this.day_of_week_dd.Items.Add(new ListItem("MONDAY", "MO"));
        this.day_of_week_dd.Items.Add(new ListItem("TUESDAY", "TU"));
        this.day_of_week_dd.Items.Add(new ListItem("WEDNESDAY", "WE"));
        this.day_of_week_dd.Items.Add(new ListItem("THURSDAY", "TH"));
        this.day_of_week_dd.Items.Add(new ListItem("FRIDAY", "FR"));
        this.day_of_week_dd.Items.Add(new ListItem("SATURDAY", "SA"));
        this.day_of_week_dd.Items.Add(new ListItem("SUNDAY", "SU"));
    }
    private void FillDropDowns()
    {
        UserDetail usrDetails = Session["UserDetails"] as UserDetail;

        TurningpointDataComponent turningPointComponent = new TurningpointDataComponent();

        search_params_class_dropdown.Items.Add(new ListItem()
        {
            Text = "", Value = ""
        });
        if (ConfigurationManager.AppSettings["RX_V6"] == "yes")
        {
            foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemClasses2())
            {
                search_params_class_dropdown.Items.Add(new ListItem()
                {
                    Text = kv.Value, Value = kv.Key
                });
            }
        }
        else
        {
            foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemClasses(usrDetails.TPSCustomerNumber))
            {
                search_params_class_dropdown.Items.Add(new ListItem()
                {
                    Text = kv.Value, Value = kv.Key
                });
            }
        }

        search_params_vendor_dropdown.Items.Add(new ListItem()
        {
            Text = "", Value = ""
        });
        foreach (KeyValuePair <string, string> kv in turningPointComponent.GetItemVendors())
        {
            search_params_vendor_dropdown.Items.Add(new ListItem()
            {
                Text = kv.Value, Value = kv.Key
            });
        }
    }