Beispiel #1
0
 protected void ctlUserFavoriteLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e)
 {
     UserControls.LOV.SCG.DB.UserProfileLookup lookup = sender as UserControls.LOV.SCG.DB.UserProfileLookup;
     //lookup.UserId = ctlUserAutoCompleteLookup.UserID;
     lookup.SearchFavoriteApprover = IsApprover;
     lookup.RequesterID            = RequesterID;
 }
        protected void CtlInitiatorLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e)
        {
            StringBuilder userFilter = new StringBuilder();
            List <DocumentInitiatorLang> documentInitiatorList = GetInitiators();

            //set filter userid
            UserControls.LOV.SCG.DB.UserProfileLookup lookup = sender as UserControls.LOV.SCG.DB.UserProfileLookup;
            //lookup.RequesterID = RequesterID;
            if (documentInitiatorList != null)
            {
                foreach (DocumentInitiatorLang item in documentInitiatorList)
                {
                    userFilter.AppendFormat("{0},", item.UserID);
                }
            }
            lookup.UserIdNotIn = userFilter.ToString().TrimEnd(',');
        }