protected void ctlProgramSearchLookupPopupCaller_NotifyPopupResult(object sender, string action, string value)
        {
            if (action != "ok")
            {
                return;
            }

            object returnValue = new object();

            string[]            listID      = value.Split('|');
            IList <ProgramLang> programList = new List <ProgramLang>();

            foreach (string id in listID)
            {
                SuProgramLang programlang = SuProgramLangService.FindByIdentity(UIHelper.ParseLong(id));
                if (programlang != null)
                {
                    ProgramLang pl = new ProgramLang();
                    pl.ProgramId     = programlang.ProgramId;
                    pl.ProgramLangId = programlang.Id;
                    pl.ProgramName   = programlang.ProgramsName;
                    pl.Comment       = programlang.Comment;

                    programList.Add(pl);
                }
            }
            returnValue = programList;
            CallOnObjectLookUpReturn(returnValue);
        }
Exemple #2
0
        public int RequestCount()
        {
            SuProgramLang suProgramLang = new SuProgramLang();

            suProgramLang.ProgramsName = txtCompanyName.Text;
            int count = SuProgramLangService.CountBySuProgramLangCriteria(suProgramLang, UIHelper.ParseShort(RoleId), UserAccount.CurrentLanguageID);

            return(count);
        }
Exemple #3
0
        public Object RequestData(int startRow, int pageSize, string sortExpression)
        {
            SuProgramLang suProgramLang = new SuProgramLang();

            suProgramLang.ProgramsName = txtCompanyName.Text;

            IList <ProgramLang> list = SuProgramLangService.FindBySuProgramLangQuery(suProgramLang, UIHelper.ParseShort(RoleId), UserAccount.CurrentLanguageID, startRow, pageSize, sortExpression);

            return(list);
        }