Example #1
0
        public void Bindropdown()
        {
            CustomProfile        profile       = CustomProfile.GetProfile();
            iProductMasterClient productClient = new iProductMasterClient();

            //ddlProductType.DataSource = productClient.GetProductTypeList(profile.DBConnection._constr);
            //ddlProductType.DataBind();

            //ListItem lst1 = new ListItem();
            //lst1.Text = "-Select-";
            //lst1.Value = "0";
            //ddlProductType.Items.Insert(0, lst1);

            ddlUOM.SelectedIndex = -1;
            ddlUOM.DataSource    = productClient.GetProductUOMList(profile.DBConnection._constr);
            ddlUOM.DataBind();
            ListItem lst3 = new ListItem();

            lst3.Text  = "-Select-";
            lst3.Value = "0";
            ddlUOM.Items.Insert(0, lst3);
            productClient.Close();

            BrilliantWMS.ProductCategoryService.iProductCategoryMasterClient productcategoryClient = new BrilliantWMS.ProductCategoryService.iProductCategoryMasterClient();
            //ProductCategoryService.connectiondetails conn = new ProductCategoryService.connectiondetails() { DataBaseName = Profile.DataBase, DataSource = Profile.DataSource, DBPassword = Profile.DBPassword };

            ddlCategory.SelectedIndex = -1;
            ddlCategory.DataSource    = productcategoryClient.GetProductCategoryListForAsset(profile.DBConnection._constr);
            ddlCategory.DataBind();
            productcategoryClient.Close();
            ListItem lst2 = new ListItem();

            lst2.Text  = "-Select-";
            lst2.Value = "0";
            ddlCategory.Items.Insert(0, lst2);


            iUCCommonFilterClient UCCommonFilter = new iUCCommonFilterClient();

            ddlNewSite.DataSource = UCCommonFilter.GetSiteNameByUserID(profile.Personal.UserID, profile.DBConnection._constr);
            ddlNewSite.DataBind();
            ListItem lst = new ListItem();

            lst.Text  = "--Select--";
            lst.Value = "0";
            ddlNewSite.Items.Insert(0, lst);
        }
        public void binddropdown()
        {
            CustomProfile        profile       = CustomProfile.GetProfile();
            iProductMasterClient productClient = new iProductMasterClient();

            ddlProductType.DataSource = productClient.GetProductTypeList(profile.DBConnection._constr);
            ddlProductType.DataBind();

            ListItem lst1 = new ListItem();

            lst1.Text  = "-Select-";
            lst1.Value = "0";
            ddlProductType.Items.Insert(0, lst1);

            ddlUOM.SelectedIndex = -1;
            ddlUOM.DataSource    = productClient.GetProductUOMList(profile.DBConnection._constr);
            ddlUOM.DataBind();
            ListItem lst3 = new ListItem();

            lst3.Text  = "-Select-";
            lst3.Value = "0";
            ddlUOM.Items.Insert(0, lst3);
            productClient.Close();

            BrilliantWMS.ProductCategoryService.iProductCategoryMasterClient productcategoryClient = new BrilliantWMS.ProductCategoryService.iProductCategoryMasterClient();

            ddlCategory.SelectedIndex = -1;
            ddlCategory.DataSource    = productcategoryClient.GetProductCategoryList(profile.DBConnection._constr);
            ddlCategory.DataBind();
            productcategoryClient.Close();
            ListItem lst2 = new ListItem();

            lst2.Text  = "-Select-";
            lst2.Value = "0";
            ddlCategory.Items.Insert(0, lst2);
        }