Commit 41460e5b53fb2c37a65d68a9c80f261459abfce6

Authored by Nikita Kulshreshtha
1 parent 499636be

exception in creating data

350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON.sln 0 → 100644
  1 +
  2 +Microsoft Visual Studio Solution File, Format Version 12.00
  3 +# Visual Studio 2013
  4 +VisualStudioVersion = 12.0.21005.1
  5 +MinimumVisualStudioVersion = 10.0.40219.1
  6 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLToJSON", "SQLToJSON\SQLToJSON.csproj", "{5D1182EE-1620-4BFE-BAE7-60408309DF55}"
  7 +EndProject
  8 +Global
  9 + GlobalSection(SolutionConfigurationPlatforms) = preSolution
  10 + Debug|Any CPU = Debug|Any CPU
  11 + Release|Any CPU = Release|Any CPU
  12 + EndGlobalSection
  13 + GlobalSection(ProjectConfigurationPlatforms) = postSolution
  14 + {5D1182EE-1620-4BFE-BAE7-60408309DF55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
  15 + {5D1182EE-1620-4BFE-BAE7-60408309DF55}.Debug|Any CPU.Build.0 = Debug|Any CPU
  16 + {5D1182EE-1620-4BFE-BAE7-60408309DF55}.Release|Any CPU.ActiveCfg = Release|Any CPU
  17 + {5D1182EE-1620-4BFE-BAE7-60408309DF55}.Release|Any CPU.Build.0 = Release|Any CPU
  18 + EndGlobalSection
  19 + GlobalSection(SolutionProperties) = preSolution
  20 + HideSolutionNode = FALSE
  21 + EndGlobalSection
  22 +EndGlobal
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/App.config 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8" ?>
  2 +<configuration>
  3 + <startup>
  4 + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
  5 + </startup>
  6 +<appSettings>
  7 + <add key ="connectionString" value ="Initial Catalog=AIADatabaseV5; Data Source= 192.168.90.53; Uid=AIA_Dev; Password=india123;"/>
  8 + <add key ="Dissectible Anatomy" value ="da-view-list"/>
  9 + <add key ="Atlas Anatomy" value ="aa-view-list"/>
  10 + <add key ="3D Anatomy" value ="3d-anatomy-list"/>
  11 + <add key ="Clinical Illustrations" value ="ci-list"/>
  12 + <add key ="Clinical Animations" value ="ca-list"/>
  13 + <add key ="Encyclopedia" value ="Link/encyclopedia"/>
  14 + <add key ="Curriculum Builder" value ="cb-list"/>
  15 + <add key ="Anatomy Tests" value ="at-list"/>
  16 + <add key ="IP 10" value ="Link/IP-10"/>
  17 + <add key ="Lab Exercises" value ="le-list"/>
  18 + <add key ="In-Depth Reports" value ="Link/indepth-reports"/>
  19 + <add key ="Complementary and Alternative Medicine" value ="Link/complementary-and-alternate-medicine"/>
  20 + <add key ="A.D.A.M Images" value ="ai-list"/>
  21 + <add key ="Body Guide" value ="Link/bodyguide"/>
  22 + <add key ="Symptom Navigator" value ="Link/symptom-navigator"/>
  23 + <add key ="The Wellness Tools" value ="Link/wellness-tools"/>
  24 + <add key ="A.D.A.M OnDemand" value ="aod-list"/>
  25 +
  26 +
  27 +</appSettings>
  28 +</configuration>
0 \ No newline at end of file 29 \ No newline at end of file
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Custom.cs 0 → 100644
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Data;
  4 +using System.Linq;
  5 +using System.Text;
  6 +using System.Threading.Tasks;
  7 +using Newtonsoft.Json;
  8 +using System.Configuration;
  9 +using System.Data.SqlClient;
  10 +using System.Configuration;
  11 +using Newtonsoft.Json.Linq;
  12 +
  13 +namespace SQLToJSON
  14 +{
  15 + class Custom
  16 + {
  17 + string connString = string.Empty;
  18 + public Custom()
  19 + {
  20 + connString = Convert.ToString(ConfigurationManager.AppSettings["connectionString"]);
  21 + }
  22 +
  23 + public DataTable FetchDataFromTable(string cmd)
  24 + {
  25 + DataTable resultTable;
  26 + SqlDataAdapter da = new SqlDataAdapter(cmd, connString);
  27 + DataSet ds = new DataSet();
  28 + da.Fill(ds);
  29 + resultTable = ds.Tables[0];
  30 + return resultTable;
  31 + }
  32 +
  33 + public string DataTableToJSONWithJSONNet(dynamic table)
  34 + {
  35 + string JSONString = string.Empty;
  36 + JSONString = JsonConvert.SerializeObject(table);
  37 + return JSONString;
  38 + }
  39 +
  40 + public dynamic GetModifiedTableWithUserModules(DataTable userTable, DataTable moduleTable)
  41 + {
  42 + List<User> data2 = null;
  43 + try
  44 + {
  45 +
  46 + List<User> data = (from d in userTable.AsEnumerable()
  47 + join e in moduleTable.AsEnumerable()
  48 + on d.Field<int>("Id") equals
  49 + e.Field<int>("UserId")
  50 + select new User
  51 + {
  52 + loginId = d.Field<string>("loginId"),
  53 + password = d.Field<string>("password"),
  54 + firstName = d.Field<string>("firstName"),
  55 + lastName = d.Field<string>("lastName"),
  56 + userType = d.Field<string>("userType"),
  57 + emailId = d.Field<string>("emailId"),
  58 + isActive = d.Field<Boolean>("isActive"),
  59 + securityQuestion = d.Field<string>("securityQuestion"),
  60 + securityAnswer = d.Field<string>("securityAnswer"),
  61 + creatorId = d.Field<int>("creatorId"),
  62 + creationDate = d.Field<DateTime?>("creationDate"),
  63 + modifierId = d.Field<int>("modifierId"),
  64 + modifiedDate = d.Field<DateTime?>("modifiedDate"),
  65 + deactivationDate = d.Field<DateTime?>("deactivationDate"),
  66 + module = e.Field<string>("Title"),
  67 + }).ToList();
  68 +
  69 +
  70 + data2=data.ToList();
  71 + foreach (var row in data)
  72 + {
  73 +
  74 + string userloginId = row.loginId;
  75 + var Modules = (from m in data
  76 + where m.loginId == userloginId
  77 + select m.module).ToList();
  78 +
  79 + string modu= JsonConvert.SerializeObject(Modules);
  80 +
  81 + var jsonObj = new JObject();
  82 + dynamic mo = jsonObj;
  83 + mo.modules = new JArray() as dynamic;
  84 +
  85 + foreach (var mods in Modules)
  86 + {
  87 + dynamic modul= new JObject();
  88 + modul.name = mods;
  89 + modul.slug = ConfigurationManager.AppSettings[mods];
  90 + mo.modules.Add(modul);
  91 +
  92 + }
  93 +
  94 + data2 = data2.Where(w=>w.loginId == userloginId).Select (r => { r.module = mo.ToString(); return r; }).ToList();
  95 +
  96 + }
  97 +
  98 +
  99 + var result = data2.GroupBy(x => x.loginId).Select(g => g.First());
  100 + string bb = "";
  101 +
  102 + return result;
  103 + }
  104 + catch (Exception e) {
  105 + return e.Message;
  106 + }
  107 +
  108 + }
  109 +
  110 + }
  111 +}
  112 +;
0 \ No newline at end of file 113 \ No newline at end of file
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/DBConstants.cs 0 → 100644
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Text;
  5 +using System.Threading.Tasks;
  6 +
  7 +namespace SQLToJSON
  8 +{
  9 + class DBConstants
  10 + {
  11 + }
  12 +}
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Form1.Designer.cs 0 → 100644
  1 +namespace SQLToJSON
  2 +{
  3 + partial class Form1
  4 + {
  5 + /// <summary>
  6 + /// Required designer variable.
  7 + /// </summary>
  8 + private System.ComponentModel.IContainer components = null;
  9 +
  10 + /// <summary>
  11 + /// Clean up any resources being used.
  12 + /// </summary>
  13 + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
  14 + protected override void Dispose(bool disposing)
  15 + {
  16 + if (disposing && (components != null))
  17 + {
  18 + components.Dispose();
  19 + }
  20 + base.Dispose(disposing);
  21 + }
  22 +
  23 + #region Windows Form Designer generated code
  24 +
  25 + /// <summary>
  26 + /// Required method for Designer support - do not modify
  27 + /// the contents of this method with the code editor.
  28 + /// </summary>
  29 + private void InitializeComponent()
  30 + {
  31 + this.button1 = new System.Windows.Forms.Button();
  32 + this.label1 = new System.Windows.Forms.Label();
  33 + this.SuspendLayout();
  34 + //
  35 + // button1
  36 + //
  37 + this.button1.Location = new System.Drawing.Point(79, 30);
  38 + this.button1.Name = "button1";
  39 + this.button1.Size = new System.Drawing.Size(119, 23);
  40 + this.button1.TabIndex = 0;
  41 + this.button1.Text = "ConvertToJson";
  42 + this.button1.UseVisualStyleBackColor = true;
  43 + this.button1.Click += new System.EventHandler(this.button1_Click);
  44 + //
  45 + // label1
  46 + //
  47 + this.label1.AutoSize = true;
  48 + this.label1.Location = new System.Drawing.Point(115, 97);
  49 + this.label1.Name = "label1";
  50 + this.label1.Size = new System.Drawing.Size(0, 13);
  51 + this.label1.TabIndex = 1;
  52 + //
  53 + // Form1
  54 + //
  55 + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  56 + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  57 + this.ClientSize = new System.Drawing.Size(284, 261);
  58 + this.Controls.Add(this.label1);
  59 + this.Controls.Add(this.button1);
  60 + this.Name = "Form1";
  61 + this.Text = "Form1";
  62 + this.ResumeLayout(false);
  63 + this.PerformLayout();
  64 +
  65 + }
  66 +
  67 + #endregion
  68 +
  69 + private System.Windows.Forms.Button button1;
  70 + private System.Windows.Forms.Label label1;
  71 + }
  72 +}
  73 +
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Form1.cs 0 → 100644
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.ComponentModel;
  4 +using System.Data;
  5 +using System.Drawing;
  6 +using System.IO;
  7 +using System.Linq;
  8 +using System.Text;
  9 +using System.Threading.Tasks;
  10 +using System.Windows.Forms;
  11 +
  12 +namespace SQLToJSON
  13 +{
  14 + public partial class Form1 : Form
  15 + {
  16 + Custom objClass;
  17 + public Form1()
  18 + {
  19 + InitializeComponent();
  20 + objClass = new Custom();
  21 + }
  22 +
  23 + private void button1_Click(object sender, EventArgs e)
  24 + {
  25 + //string aiaUserCommand = "SELECT U.Id, U.LoginId, U.Password, U.FirstName, U.LastName, U.UserTypeId, R.Title AS UserRoleName, U.EmailId, U.IsActive, U.SecurityQuestionId, U.SecurityAnswer, U.CreatorId, U.CreationDate, U.ModifierId, U.ModifiedDate, U.DeactivationDate FROM AIAUser U INNER JOIN AIAUserActivity UA ON U.Id = UA.UserId INNER JOIN ROle R ON UA.RoleId = R.Id";
  26 + //string roleCommand = "SELECT Role.Id, Role.Title, AIAUserActivity.UserId FROM ROle INNER JOIN AIAUserActivity ON Role.Id = AIAUserActivity.RoleId";
  27 +
  28 + //DataTable userTable = objClass.FetchDataFromTable(aiaUserCommand);
  29 + //DataTable roleTable = objClass.FetchDataFromTable(roleCommand);
  30 +
  31 + //DataTable resultTable = objClass.ReturnModifiedTable(userTable, roleTable);
  32 + //string aiaUserJson = objClass.DataTableToJSONWithJSONNet(resultTable);
  33 +
  34 + //System.IO.File.WriteAllText("D:/AIAUser.json", aiaUserJson);
  35 + //label1.Text = "Conversion Successfull.";
  36 +
  37 +
  38 +
  39 + // raw quries having all Columns
  40 + // SELECT U.Id, U.LoginId, U.Password, U.FirstName, U.LastName, U.UserTypeId, UT.Title AS UserRoleName,
  41 + //U.EmailId, U.IsActive, U.SecurityQuestionId, sq.Title as SecurityQuestion, U.SecurityAnswer, U.CreatorId, U.CreationDate, U.ModifierId,
  42 + // U.ModifiedDate, U.DeactivationDate FROM AIAUser U,UserType UT, SecurityQuestion sq
  43 + // WHERE U.UserTypeId = UT.Id and U.SecurityQuestionId = sq.Id
  44 +
  45 + // select distinct ule.UserId,mt.ModuleId,rm.Title from LicenseToEdition le,AIAUserToLicenseEdition ule,
  46 + //ModuleToLicense mt, ResourceModule rm where le.LicenseId = ule.LicenseEditionId and le.LicenseId=mt.LicenseId
  47 + //and rm.Id = mt.ModuleId order by ule.UserId,mt.ModuleId
  48 + try
  49 + {
  50 + string userProfileQuery = "SELECT U.Id, U.LoginId as loginId, U.Password as password, U.FirstName as firstName, U.LastName as lastName, UT.Title AS userType,"
  51 + + " U.EmailId as emailId, cast(U.IsActive as Bit) as isActive, sq.Title as securityQuestion, U.SecurityAnswer as securityAnswer, U.CreatorId as creatorId, U.CreationDate as creationDate, U.ModifierId as modifierId,"
  52 + + " U.ModifiedDate as modifiedDate, U.DeactivationDate as deactivationDate FROM AIAUser U,UserType UT, SecurityQuestion sq"
  53 + + " WHERE U.UserTypeId = UT.Id and U.SecurityQuestionId = sq.Id";
  54 +
  55 + string userModulesQuery = "select distinct ule.UserId,mt.ModuleId,rm.Title from LicenseToEdition le,AIAUserToLicenseEdition ule,"
  56 + + " ModuleToLicense mt, ResourceModule rm where le.LicenseId = ule.LicenseEditionId and le.LicenseId=mt.LicenseId"
  57 + + " and rm.Id = mt.ModuleId order by ule.UserId,mt.ModuleId";
  58 +
  59 + DataTable userTable = objClass.FetchDataFromTable(userProfileQuery);
  60 + userTable.Columns.Add("modules", typeof(System.String));
  61 + DataTable moduleTable = objClass.FetchDataFromTable(userModulesQuery);
  62 +
  63 + dynamic resultTable = objClass.GetModifiedTableWithUserModules(userTable, moduleTable);
  64 + string aiaUserJson = objClass.DataTableToJSONWithJSONNet(resultTable);
  65 + if (File.Exists(@"D:/AIAUser.json"))
  66 + {
  67 + File.Delete(@"D:/AIAUser.json");
  68 + }
  69 + System.IO.File.WriteAllText("D:/AIAUser.json", aiaUserJson);
  70 + label1.Text = "Conversion Successfull.";
  71 + }
  72 + catch (Exception ex)
  73 + {
  74 +
  75 + }
  76 +
  77 +
  78 + }
  79 + }
  80 +}
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Form1.resx 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<root>
  3 + <!--
  4 + Microsoft ResX Schema
  5 +
  6 + Version 2.0
  7 +
  8 + The primary goals of this format is to allow a simple XML format
  9 + that is mostly human readable. The generation and parsing of the
  10 + various data types are done through the TypeConverter classes
  11 + associated with the data types.
  12 +
  13 + Example:
  14 +
  15 + ... ado.net/XML headers & schema ...
  16 + <resheader name="resmimetype">text/microsoft-resx</resheader>
  17 + <resheader name="version">2.0</resheader>
  18 + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
  19 + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
  20 + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
  21 + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
  22 + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
  23 + <value>[base64 mime encoded serialized .NET Framework object]</value>
  24 + </data>
  25 + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
  26 + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
  27 + <comment>This is a comment</comment>
  28 + </data>
  29 +
  30 + There are any number of "resheader" rows that contain simple
  31 + name/value pairs.
  32 +
  33 + Each data row contains a name, and value. The row also contains a
  34 + type or mimetype. Type corresponds to a .NET class that support
  35 + text/value conversion through the TypeConverter architecture.
  36 + Classes that don't support this are serialized and stored with the
  37 + mimetype set.
  38 +
  39 + The mimetype is used for serialized objects, and tells the
  40 + ResXResourceReader how to depersist the object. This is currently not
  41 + extensible. For a given mimetype the value must be set accordingly:
  42 +
  43 + Note - application/x-microsoft.net.object.binary.base64 is the format
  44 + that the ResXResourceWriter will generate, however the reader can
  45 + read any of the formats listed below.
  46 +
  47 + mimetype: application/x-microsoft.net.object.binary.base64
  48 + value : The object must be serialized with
  49 + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
  50 + : and then encoded with base64 encoding.
  51 +
  52 + mimetype: application/x-microsoft.net.object.soap.base64
  53 + value : The object must be serialized with
  54 + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
  55 + : and then encoded with base64 encoding.
  56 +
  57 + mimetype: application/x-microsoft.net.object.bytearray.base64
  58 + value : The object must be serialized into a byte array
  59 + : using a System.ComponentModel.TypeConverter
  60 + : and then encoded with base64 encoding.
  61 + -->
  62 + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  63 + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
  64 + <xsd:element name="root" msdata:IsDataSet="true">
  65 + <xsd:complexType>
  66 + <xsd:choice maxOccurs="unbounded">
  67 + <xsd:element name="metadata">
  68 + <xsd:complexType>
  69 + <xsd:sequence>
  70 + <xsd:element name="value" type="xsd:string" minOccurs="0" />
  71 + </xsd:sequence>
  72 + <xsd:attribute name="name" use="required" type="xsd:string" />
  73 + <xsd:attribute name="type" type="xsd:string" />
  74 + <xsd:attribute name="mimetype" type="xsd:string" />
  75 + <xsd:attribute ref="xml:space" />
  76 + </xsd:complexType>
  77 + </xsd:element>
  78 + <xsd:element name="assembly">
  79 + <xsd:complexType>
  80 + <xsd:attribute name="alias" type="xsd:string" />
  81 + <xsd:attribute name="name" type="xsd:string" />
  82 + </xsd:complexType>
  83 + </xsd:element>
  84 + <xsd:element name="data">
  85 + <xsd:complexType>
  86 + <xsd:sequence>
  87 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
  88 + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
  89 + </xsd:sequence>
  90 + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
  91 + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
  92 + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
  93 + <xsd:attribute ref="xml:space" />
  94 + </xsd:complexType>
  95 + </xsd:element>
  96 + <xsd:element name="resheader">
  97 + <xsd:complexType>
  98 + <xsd:sequence>
  99 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
  100 + </xsd:sequence>
  101 + <xsd:attribute name="name" type="xsd:string" use="required" />
  102 + </xsd:complexType>
  103 + </xsd:element>
  104 + </xsd:choice>
  105 + </xsd:complexType>
  106 + </xsd:element>
  107 + </xsd:schema>
  108 + <resheader name="resmimetype">
  109 + <value>text/microsoft-resx</value>
  110 + </resheader>
  111 + <resheader name="version">
  112 + <value>2.0</value>
  113 + </resheader>
  114 + <resheader name="reader">
  115 + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  116 + </resheader>
  117 + <resheader name="writer">
  118 + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  119 + </resheader>
  120 +</root>
0 \ No newline at end of file 121 \ No newline at end of file
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Program.cs 0 → 100644
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Threading.Tasks;
  5 +using System.Windows.Forms;
  6 +
  7 +namespace SQLToJSON
  8 +{
  9 + static class Program
  10 + {
  11 + /// <summary>
  12 + /// The main entry point for the application.
  13 + /// </summary>
  14 + [STAThread]
  15 + static void Main()
  16 + {
  17 + Application.EnableVisualStyles();
  18 + Application.SetCompatibleTextRenderingDefault(false);
  19 + Application.Run(new Form1());
  20 + }
  21 + }
  22 +}
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Properties/AssemblyInfo.cs 0 → 100644
  1 +using System.Reflection;
  2 +using System.Runtime.CompilerServices;
  3 +using System.Runtime.InteropServices;
  4 +
  5 +// General Information about an assembly is controlled through the following
  6 +// set of attributes. Change these attribute values to modify the information
  7 +// associated with an assembly.
  8 +[assembly: AssemblyTitle("SQLToJSON")]
  9 +[assembly: AssemblyDescription("")]
  10 +[assembly: AssemblyConfiguration("")]
  11 +[assembly: AssemblyCompany("")]
  12 +[assembly: AssemblyProduct("SQLToJSON")]
  13 +[assembly: AssemblyCopyright("Copyright © 2017")]
  14 +[assembly: AssemblyTrademark("")]
  15 +[assembly: AssemblyCulture("")]
  16 +
  17 +// Setting ComVisible to false makes the types in this assembly not visible
  18 +// to COM components. If you need to access a type in this assembly from
  19 +// COM, set the ComVisible attribute to true on that type.
  20 +[assembly: ComVisible(false)]
  21 +
  22 +// The following GUID is for the ID of the typelib if this project is exposed to COM
  23 +[assembly: Guid("9c41cb92-c47d-4501-b7ba-423410194cf7")]
  24 +
  25 +// Version information for an assembly consists of the following four values:
  26 +//
  27 +// Major Version
  28 +// Minor Version
  29 +// Build Number
  30 +// Revision
  31 +//
  32 +// You can specify all the values or you can default the Build and Revision Numbers
  33 +// by using the '*' as shown below:
  34 +// [assembly: AssemblyVersion("1.0.*")]
  35 +[assembly: AssemblyVersion("1.0.0.0")]
  36 +[assembly: AssemblyFileVersion("1.0.0.0")]
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Properties/Resources.Designer.cs 0 → 100644
  1 +//------------------------------------------------------------------------------
  2 +// <auto-generated>
  3 +// This code was generated by a tool.
  4 +// Runtime Version:4.0.30319.42000
  5 +//
  6 +// Changes to this file may cause incorrect behavior and will be lost if
  7 +// the code is regenerated.
  8 +// </auto-generated>
  9 +//------------------------------------------------------------------------------
  10 +
  11 +namespace SQLToJSON.Properties
  12 +{
  13 +
  14 +
  15 + /// <summary>
  16 + /// A strongly-typed resource class, for looking up localized strings, etc.
  17 + /// </summary>
  18 + // This class was auto-generated by the StronglyTypedResourceBuilder
  19 + // class via a tool like ResGen or Visual Studio.
  20 + // To add or remove a member, edit your .ResX file then rerun ResGen
  21 + // with the /str option, or rebuild your VS project.
  22 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
  23 + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  24 + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  25 + internal class Resources
  26 + {
  27 +
  28 + private static global::System.Resources.ResourceManager resourceMan;
  29 +
  30 + private static global::System.Globalization.CultureInfo resourceCulture;
  31 +
  32 + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
  33 + internal Resources()
  34 + {
  35 + }
  36 +
  37 + /// <summary>
  38 + /// Returns the cached ResourceManager instance used by this class.
  39 + /// </summary>
  40 + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
  41 + internal static global::System.Resources.ResourceManager ResourceManager
  42 + {
  43 + get
  44 + {
  45 + if ((resourceMan == null))
  46 + {
  47 + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SQLToJSON.Properties.Resources", typeof(Resources).Assembly);
  48 + resourceMan = temp;
  49 + }
  50 + return resourceMan;
  51 + }
  52 + }
  53 +
  54 + /// <summary>
  55 + /// Overrides the current thread's CurrentUICulture property for all
  56 + /// resource lookups using this strongly typed resource class.
  57 + /// </summary>
  58 + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
  59 + internal static global::System.Globalization.CultureInfo Culture
  60 + {
  61 + get
  62 + {
  63 + return resourceCulture;
  64 + }
  65 + set
  66 + {
  67 + resourceCulture = value;
  68 + }
  69 + }
  70 + }
  71 +}
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Properties/Resources.resx 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<root>
  3 + <!--
  4 + Microsoft ResX Schema
  5 +
  6 + Version 2.0
  7 +
  8 + The primary goals of this format is to allow a simple XML format
  9 + that is mostly human readable. The generation and parsing of the
  10 + various data types are done through the TypeConverter classes
  11 + associated with the data types.
  12 +
  13 + Example:
  14 +
  15 + ... ado.net/XML headers & schema ...
  16 + <resheader name="resmimetype">text/microsoft-resx</resheader>
  17 + <resheader name="version">2.0</resheader>
  18 + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
  19 + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
  20 + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
  21 + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
  22 + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
  23 + <value>[base64 mime encoded serialized .NET Framework object]</value>
  24 + </data>
  25 + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
  26 + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
  27 + <comment>This is a comment</comment>
  28 + </data>
  29 +
  30 + There are any number of "resheader" rows that contain simple
  31 + name/value pairs.
  32 +
  33 + Each data row contains a name, and value. The row also contains a
  34 + type or mimetype. Type corresponds to a .NET class that support
  35 + text/value conversion through the TypeConverter architecture.
  36 + Classes that don't support this are serialized and stored with the
  37 + mimetype set.
  38 +
  39 + The mimetype is used for serialized objects, and tells the
  40 + ResXResourceReader how to depersist the object. This is currently not
  41 + extensible. For a given mimetype the value must be set accordingly:
  42 +
  43 + Note - application/x-microsoft.net.object.binary.base64 is the format
  44 + that the ResXResourceWriter will generate, however the reader can
  45 + read any of the formats listed below.
  46 +
  47 + mimetype: application/x-microsoft.net.object.binary.base64
  48 + value : The object must be serialized with
  49 + : System.Serialization.Formatters.Binary.BinaryFormatter
  50 + : and then encoded with base64 encoding.
  51 +
  52 + mimetype: application/x-microsoft.net.object.soap.base64
  53 + value : The object must be serialized with
  54 + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
  55 + : and then encoded with base64 encoding.
  56 +
  57 + mimetype: application/x-microsoft.net.object.bytearray.base64
  58 + value : The object must be serialized into a byte array
  59 + : using a System.ComponentModel.TypeConverter
  60 + : and then encoded with base64 encoding.
  61 + -->
  62 + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  63 + <xsd:element name="root" msdata:IsDataSet="true">
  64 + <xsd:complexType>
  65 + <xsd:choice maxOccurs="unbounded">
  66 + <xsd:element name="metadata">
  67 + <xsd:complexType>
  68 + <xsd:sequence>
  69 + <xsd:element name="value" type="xsd:string" minOccurs="0" />
  70 + </xsd:sequence>
  71 + <xsd:attribute name="name" type="xsd:string" />
  72 + <xsd:attribute name="type" type="xsd:string" />
  73 + <xsd:attribute name="mimetype" type="xsd:string" />
  74 + </xsd:complexType>
  75 + </xsd:element>
  76 + <xsd:element name="assembly">
  77 + <xsd:complexType>
  78 + <xsd:attribute name="alias" type="xsd:string" />
  79 + <xsd:attribute name="name" type="xsd:string" />
  80 + </xsd:complexType>
  81 + </xsd:element>
  82 + <xsd:element name="data">
  83 + <xsd:complexType>
  84 + <xsd:sequence>
  85 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
  86 + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
  87 + </xsd:sequence>
  88 + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
  89 + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
  90 + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
  91 + </xsd:complexType>
  92 + </xsd:element>
  93 + <xsd:element name="resheader">
  94 + <xsd:complexType>
  95 + <xsd:sequence>
  96 + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
  97 + </xsd:sequence>
  98 + <xsd:attribute name="name" type="xsd:string" use="required" />
  99 + </xsd:complexType>
  100 + </xsd:element>
  101 + </xsd:choice>
  102 + </xsd:complexType>
  103 + </xsd:element>
  104 + </xsd:schema>
  105 + <resheader name="resmimetype">
  106 + <value>text/microsoft-resx</value>
  107 + </resheader>
  108 + <resheader name="version">
  109 + <value>2.0</value>
  110 + </resheader>
  111 + <resheader name="reader">
  112 + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  113 + </resheader>
  114 + <resheader name="writer">
  115 + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  116 + </resheader>
  117 +</root>
0 \ No newline at end of file 118 \ No newline at end of file
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Properties/Settings.Designer.cs 0 → 100644
  1 +//------------------------------------------------------------------------------
  2 +// <auto-generated>
  3 +// This code was generated by a tool.
  4 +// Runtime Version:4.0.30319.42000
  5 +//
  6 +// Changes to this file may cause incorrect behavior and will be lost if
  7 +// the code is regenerated.
  8 +// </auto-generated>
  9 +//------------------------------------------------------------------------------
  10 +
  11 +namespace SQLToJSON.Properties
  12 +{
  13 +
  14 +
  15 + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  16 + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
  17 + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
  18 + {
  19 +
  20 + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
  21 +
  22 + public static Settings Default
  23 + {
  24 + get
  25 + {
  26 + return defaultInstance;
  27 + }
  28 + }
  29 + }
  30 +}
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/Properties/Settings.settings 0 → 100644
  1 +<?xml version='1.0' encoding='utf-8'?>
  2 +<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
  3 + <Profiles>
  4 + <Profile Name="(Default)" />
  5 + </Profiles>
  6 + <Settings />
  7 +</SettingsFile>
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/SQLToJSON.csproj 0 → 100644
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3 + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  4 + <PropertyGroup>
  5 + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  6 + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  7 + <ProjectGuid>{5D1182EE-1620-4BFE-BAE7-60408309DF55}</ProjectGuid>
  8 + <OutputType>WinExe</OutputType>
  9 + <AppDesignerFolder>Properties</AppDesignerFolder>
  10 + <RootNamespace>SQLToJSON</RootNamespace>
  11 + <AssemblyName>SQLToJSON</AssemblyName>
  12 + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  13 + <FileAlignment>512</FileAlignment>
  14 + </PropertyGroup>
  15 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  16 + <PlatformTarget>AnyCPU</PlatformTarget>
  17 + <DebugSymbols>true</DebugSymbols>
  18 + <DebugType>full</DebugType>
  19 + <Optimize>false</Optimize>
  20 + <OutputPath>bin\Debug\</OutputPath>
  21 + <DefineConstants>DEBUG;TRACE</DefineConstants>
  22 + <ErrorReport>prompt</ErrorReport>
  23 + <WarningLevel>4</WarningLevel>
  24 + </PropertyGroup>
  25 + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  26 + <PlatformTarget>AnyCPU</PlatformTarget>
  27 + <DebugType>pdbonly</DebugType>
  28 + <Optimize>true</Optimize>
  29 + <OutputPath>bin\Release\</OutputPath>
  30 + <DefineConstants>TRACE</DefineConstants>
  31 + <ErrorReport>prompt</ErrorReport>
  32 + <WarningLevel>4</WarningLevel>
  33 + </PropertyGroup>
  34 + <ItemGroup>
  35 + <Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
  36 + <SpecificVersion>False</SpecificVersion>
  37 + <HintPath>..\..\..\Newtonsof_Json_Net45\Net45\Newtonsoft.Json.dll</HintPath>
  38 + </Reference>
  39 + <Reference Include="System" />
  40 + <Reference Include="System.Configuration" />
  41 + <Reference Include="System.Core" />
  42 + <Reference Include="System.Xml.Linq" />
  43 + <Reference Include="System.Data.DataSetExtensions" />
  44 + <Reference Include="Microsoft.CSharp" />
  45 + <Reference Include="System.Data" />
  46 + <Reference Include="System.Deployment" />
  47 + <Reference Include="System.Drawing" />
  48 + <Reference Include="System.Windows.Forms" />
  49 + <Reference Include="System.Xml" />
  50 + </ItemGroup>
  51 + <ItemGroup>
  52 + <Compile Include="Custom.cs" />
  53 + <Compile Include="Form1.cs">
  54 + <SubType>Form</SubType>
  55 + </Compile>
  56 + <Compile Include="Form1.Designer.cs">
  57 + <DependentUpon>Form1.cs</DependentUpon>
  58 + </Compile>
  59 + <Compile Include="Program.cs" />
  60 + <Compile Include="Properties\AssemblyInfo.cs" />
  61 + <Compile Include="User.cs" />
  62 + <EmbeddedResource Include="Form1.resx">
  63 + <DependentUpon>Form1.cs</DependentUpon>
  64 + </EmbeddedResource>
  65 + <EmbeddedResource Include="Properties\Resources.resx">
  66 + <Generator>ResXFileCodeGenerator</Generator>
  67 + <LastGenOutput>Resources.Designer.cs</LastGenOutput>
  68 + <SubType>Designer</SubType>
  69 + </EmbeddedResource>
  70 + <Compile Include="Properties\Resources.Designer.cs">
  71 + <AutoGen>True</AutoGen>
  72 + <DependentUpon>Resources.resx</DependentUpon>
  73 + </Compile>
  74 + <None Include="Properties\Settings.settings">
  75 + <Generator>SettingsSingleFileGenerator</Generator>
  76 + <LastGenOutput>Settings.Designer.cs</LastGenOutput>
  77 + </None>
  78 + <Compile Include="Properties\Settings.Designer.cs">
  79 + <AutoGen>True</AutoGen>
  80 + <DependentUpon>Settings.settings</DependentUpon>
  81 + <DesignTimeSharedInput>True</DesignTimeSharedInput>
  82 + </Compile>
  83 + </ItemGroup>
  84 + <ItemGroup>
  85 + <None Include="App.config" />
  86 + </ItemGroup>
  87 + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  88 + <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  89 + Other similar extension points exist, see Microsoft.Common.targets.
  90 + <Target Name="BeforeBuild">
  91 + </Target>
  92 + <Target Name="AfterBuild">
  93 + </Target>
  94 + -->
  95 +</Project>
0 \ No newline at end of file 96 \ No newline at end of file
350-UTILITIES/SQL_To_Json/SQLToJSON/SQLToJSON/User.cs 0 → 100644
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Text;
  5 +using System.Threading.Tasks;
  6 +
  7 +namespace SQLToJSON
  8 +{
  9 + public class User
  10 + {
  11 +
  12 + public string loginId{get;set;}
  13 + public string password { get; set; }
  14 + public string firstName { get; set; }
  15 + public string lastName { get; set; }
  16 + public string userType { get; set; }
  17 + public string emailId { get; set; }
  18 + public bool isActive { get; set; }
  19 + public string securityQuestion { get; set; }
  20 + public string securityAnswer { get; set; }
  21 + public int creatorId { get; set; }
  22 + public DateTime? creationDate{ get; set; }
  23 + public int modifierId { get; set; }
  24 + public DateTime? modifiedDate { get; set; }
  25 + public DateTime? deactivationDate { get; set; }
  26 + public string module { get; set; }
  27 +
  28 + }
  29 +}
400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
@@ -27,7 +27,7 @@ AIA.constant(&#39;pages&#39;, [ @@ -27,7 +27,7 @@ AIA.constant(&#39;pages&#39;, [
27 }, 27 },
28 { // id:3, 28 { // id:3,
29 name: 'Clinical Illustrations', 29 name: 'Clinical Illustrations',
30 - pageSlug: 'clinical-illustrations', 30 + pageSlug: 'ci-list',
31 pageUrl: 'app/views/ci/ci-view.html', 31 pageUrl: 'app/views/ci/ci-view.html',
32 pageController: 'CIController' 32 pageController: 'CIController'
33 33
@@ -35,7 +35,7 @@ AIA.constant(&#39;pages&#39;, [ @@ -35,7 +35,7 @@ AIA.constant(&#39;pages&#39;, [
35 { 35 {
36 // id:4, 36 // id:4,
37 name: 'Clinical Animations', 37 name: 'Clinical Animations',
38 - pageSlug: 'clinical-animations', 38 + pageSlug: 'ca-list',
39 pageUrl: 'app/views/ca/ca-view.html', 39 pageUrl: 'app/views/ca/ca-view.html',
40 pageController: 'CAController' 40 pageController: 'CAController'
41 41
@@ -49,35 +49,35 @@ AIA.constant(&#39;pages&#39;, [ @@ -49,35 +49,35 @@ AIA.constant(&#39;pages&#39;, [
49 }, 49 },
50 { //id:6, 50 { //id:6,
51 name: 'Curriculum Builder', 51 name: 'Curriculum Builder',
52 - pageSlug: 'curriculum-builder', 52 + pageSlug: 'cb-list',
53 pageUrl: 'app/views/CBuild/CBuild-view.html', 53 pageUrl: 'app/views/CBuild/CBuild-view.html',
54 pageController: 'CurrBuildController' 54 pageController: 'CurrBuildController'
55 55
56 }, 56 },
57 { //id:7, 57 { //id:7,
58 name: 'Anatomy Tests', 58 name: 'Anatomy Tests',
59 - pageSlug: 'anatomy-test', 59 + pageSlug: 'at-list',
60 pageUrl: 'app/views/AnatTest/AnatTest-view.html', 60 pageUrl: 'app/views/AnatTest/AnatTest-view.html',
61 pageController: 'AnatTestController' 61 pageController: 'AnatTestController'
62 62
63 }, 63 },
64 { //id:8, 64 { //id:8,
65 name: 'Lab Exercises', 65 name: 'Lab Exercises',
66 - pageSlug: 'lab-exercises', 66 + pageSlug: 'le-list',
67 pageUrl: 'app/views/LabExerc/LabExerc-view.html', 67 pageUrl: 'app/views/LabExerc/LabExerc-view.html',
68 pageController: 'LabExercController' 68 pageController: 'LabExercController'
69 69
70 }, 70 },
71 { //id:9, 71 { //id:9,
72 name: 'ADAM Images', 72 name: 'ADAM Images',
73 - pageSlug: 'ADAM-images', 73 + pageSlug: 'ai-list',
74 pageUrl: 'app/views/ADAMImg/ADAMImg-view.html', 74 pageUrl: 'app/views/ADAMImg/ADAMImg-view.html',
75 pageController: 'ADAMImgController' 75 pageController: 'ADAMImgController'
76 76
77 }, 77 },
78 { //id:10, 78 { //id:10,
79 name: 'ADAM On Demand', 79 name: 'ADAM On Demand',
80 - pageSlug: 'ADAM-on-demand', 80 + pageSlug: 'aod-list',
81 pageUrl: 'app/views/AOD/AOD-view.html', 81 pageUrl: 'app/views/AOD/AOD-view.html',
82 pageController: 'AODController' 82 pageController: 'AODController'
83 83