Professional Applications Programmers/Consultants برمجة واستشارات تطبيقات الإنترنت
Skip Navigation LinksHome » Code Library » Administration

Public general use code classes and xml files that we've compiled and used over the years:

Administration support class for Next Generation Network (NGN) web application (Intranet) model.

   1:  using System;
   2:  using System.Web;
   3:  using System.Xml;
   4:  using System.Xml.Linq;
   5:  using System.IO;
   6:  using System.Configuration;
   7:  using System.Text;
   8:  using System.Text.RegularExpressions;
   9:  using System.Data;
  10:  using System.Data.SqlClient;
  11:  using System.Web.UI;
  12:  using System.Web.UI.WebControls;
  13:  using System.Collections;
  14:  using System.Linq;
  15:   
  16:  namespace Ia.Ngn.Ofn.Wa.Model.Data
  17:  {
  18:      ////////////////////////////////////////////////////////////////////////////
  19:   
  20:      /// <summary publish="true">
  21:      /// Administration support class for Next Generation Network (NGN) web application (Intranet) model.
  22:      /// </summary>
  23:      /// 
  24:      /// <remarks> 
  25:      /// Copyright © 2006-2017 Jasem Y. Al-Shamlan (info@ia.com.kw), Internet Applications - Kuwait. All Rights Reserved.
  26:      ///
  27:      /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
  28:      /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
  29:      ///
  30:      /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  31:      /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  32:      /// 
  33:      /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
  34:      /// 
  35:      /// Copyright notice: This notice may not be removed or altered from any source distribution.
  36:      /// </remarks> 
  37:      public class Administration
  38:      {
  39:          ////////////////////////////////////////////////////////////////////////////
  40:   
  41:          /// <summary>
  42:          ///
  43:          /// </summary>
  44:          public Administration()
  45:          {
  46:          }
  47:   
  48:          ////////////////////////////////////////////////////////////////////////////
  49:   
  50:          /// <summary>
  51:          ///
  52:          /// </summary>
  53:          public static string FieldTndWorkorderPaperFormHtml
  54:          {
  55:              get
  56:              {
  57:                  string formText, path;
  58:   
  59:                  path = Ia.Cl.Model.Default.AbsolutePath() + @"app_data\administration\field-tnd-workorder-paper-form.html";
  60:   
  61:                  if (File.Exists(path))
  62:                  {
  63:                      formText = File.ReadAllText(path);
  64:                  }
  65:                  else formText = "";
  66:   
  67:                  return formText;
  68:              }
  69:          }
  70:   
  71:          ////////////////////////////////////////////////////////////////////////////
  72:   
  73:          /// <summary>
  74:          ///
  75:          /// </summary>
  76:          public static string FieldTndWorkorderEmailFormText
  77:          {
  78:              get
  79:              {
  80:                  string formText, path;
  81:   
  82:                  path = Ia.Cl.Model.Default.AbsolutePath() + @"app_data\administration\field-tnd-workorder-email-form.txt";
  83:   
  84:                  if (File.Exists(path))
  85:                  {
  86:                      formText = File.ReadAllText(path);
  87:                  }
  88:                  else formText = string.Empty;
  89:   
  90:                  return formText;
  91:              }
  92:          }
  93:   
  94:          ////////////////////////////////////////////////////////////////////////////
  95:          ////////////////////////////////////////////////////////////////////////////   
  96:      }
  97:   
  98:      ////////////////////////////////////////////////////////////////////////////
  99:      ////////////////////////////////////////////////////////////////////////////   
 100:  }