Beispiel #1
0
        public static void BuildingTab(HtmlGenericControl myDIVTab, object parameter, string cTab)
        {
            var mySPclass = new List <CommonSP> {
                new GeneralList()
            };
            var gradeList = AppsBase.GeneralList <NameValueList>(mySPclass, "TabList", parameter);

            //  var gradeList = GeneralList<NameValueList>("GeneralList", "TabList", parameter);
            var UL = new HtmlGenericControl("ul");

            try
            {
                foreach (var item in gradeList)
                {
                    var a  = getALink(item.Value, item.Name, cTab);
                    var li = getLi(item.Value, item.Name, cTab);

                    li.InnerText = "";
                    li.Controls.Add(a);
                    UL.Controls.Add(li);
                }
                myDIVTab.InnerHtml = "";
                myDIVTab.Controls.Add(UL);
            }
            catch (System.Exception ex)
            {
                var em = ex.Message;
                throw;
            }
        }
Beispiel #2
0
        public static List <T> BatchPrintGeneralList <T>(string ListPage, object parameter, WebControl actionControl)
        {
            var mySPclass = new List <CommonSP> {
                new GeneralList()
            };

            return(AppsBase.GeneralList <T>(mySPclass, ListPage, parameter, actionControl));
        }
Beispiel #3
0
        private List <LastWorkInfo> GetLastWorkInfo()
        {
            var parameter = new
            {
                Operate = "GetAll",
                UserID  = WorkingProfile.UserId
            };

            var myList = AppsBase.GeneralList <LastWorkInfo>("dbo.SIC_sys_UserWorkingTrack", parameter);

            return(myList);
        }