Exemple #1
0
        public void fillUser()
        {
            BrilliantWMS.WMSInbound.iInboundClient Inbound = new WMSInbound.iInboundClient();
            iUCCommonFilterClient          objService      = new iUCCommonFilterClient();
            List <vGetUserProfileByUserID> UsersList       = new List <vGetUserProfileByUserID>();

            try
            {
                CustomProfile profile = CustomProfile.GetProfile();
                List <SP_GWC_GetUserInfo_Result> Usrlst = new List <SP_GWC_GetUserInfo_Result>();
                Usrlst = objService.GetUsrLst1("", "", profile.DBConnection._constr).ToList();
                Usrlst = Usrlst.Where(u => u.ID == profile.Personal.UserID).ToList();
                ddlWTWTransferBy.DataSource = Usrlst;
                ddlWTWTransferBy.DataBind();
                ListItem lstUsr = new ListItem {
                    Text = "-Select-", Value = "0"
                };
                ddlWTWTransferBy.Items.Insert(0, lstUsr);
            }
            catch { }
            finally { objService.Close(); }
        }