Пример #1
0
 public JELogHelper(string rstrJELogFile, string rstrJEUsers, string rstrUsername)
 {
     xdoc = new XDocument();
     xdoc = XDocument.Load(rstrJELogFile);
     user = new JEuser(rstrUsername, rstrJEUsers, "username");
     this.strJELogFile = rstrJELogFile;
 }
Пример #2
0
        public static void initialize()
        {
            CommonCodes.gUsername = System.Configuration.ConfigurationManager.AppSettings["Username"];

            CommonCodes.gUserDatafile    = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["UserDataFile"]);
            CommonCodes.gCompanyDatafile = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["CompanyDataFile"]);
            CommonCodes.gJEDocDatafile   = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["JEDataFile"]);
            CommonCodes.gLogDatafile     = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["LogFile"]);
            CommonCodes.gVATCodeDatafile = System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["VATCodeFile"]);

            CommonCodes.gUser = new JEuser(CommonCodes.gUsername, CommonCodes.gUserDatafile, "username");
            CommonCodes.gLog  = new JELogHelper(CommonCodes.gLogDatafile, CommonCodes.gUserDatafile, CommonCodes.gUsername);
        }