Beispiel #1
0
        public static string GetUserStationNameHtml(string userCode)
        {
            string text7;

            try
            {
                EntityData stationByUserCode = OBSDAO.GetStationByUserCode(userCode);
                string     text  = "";
                int        count = stationByUserCode.CurrentTable.Rows.Count;
                for (int i = 0; i < count; i++)
                {
                    stationByUserCode.SetCurrentRow(i);
                    string text2        = stationByUserCode.GetString("StationCode");
                    string unitFullName = GetUnitFullName(stationByUserCode.GetString("UnitCode"));
                    string text4        = stationByUserCode.GetString("unitCode");
                    string text5        = stationByUserCode.GetString("StationName");
                    string text6        = "../Systems/StationInfo.aspx?StationCode=" + text2 + "&UnitCode=" + text4 + "";
                    string text8        = text;
                    text = text8 + "<a style=\"CURSOR: hand\" onclick=OpenMyStaionSetWindow(\"" + text6 + "\")>" + unitFullName + "->" + text5 + "</a><br>";
                }
                stationByUserCode.Dispose();
                text7 = text;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(text7);
        }