public static void LoadProject_Equipment(pmanAPI.App_Data.pmanDB.Project_EquipmentRow row, Project_Equipment d)
        {
            try { d.project_id = row.project_id; }
            catch (Exception) { }

            try { d.camera_x2 = row.camera_x2; }
            catch (Exception) { }

            try { d.camera_50D = row.camera_50D; }
            catch (Exception) { }

            try { d.lights_650WArri = row.lights_650WArri; }
            catch (Exception) { }

            try { d.lights_300WArri = row.lights_300WArri; }
            catch (Exception) { }

            try { d.lights_softbox = row.lights_softbox; }
            catch (Exception) { }

            try { d.mic_shotgun = row.mic_shotgun; }
            catch (Exception) { }

            try { d.mic_wireliess_lav = row.mic_wireliess_lav; }
            catch (Exception) { }

            try { d.mic_ktec_booms = row.mic_ktec_booms; }
            catch (Exception) { }

            try { d.monitor = row.monitor; }
            catch (Exception) { }

            try { d.tripod_miller = row.tripod_miller; }
            catch (Exception) { }

            try { d.tripod_sachtler = row.tripod_sachtler; }
            catch (Exception) { }

            try { d.cables_coax = row.cables_coax; }
            catch (Exception) { }

            try { d.c_stands = row.c_stands; }
            catch (Exception) { }

            try { d.tape = row.tape; }
            catch (Exception) { }

            try { d.backdrops = row.backdrops; }
            catch (Exception) { }

            try { d.teleprompter = row.teleprompter; }
            catch (Exception) { }

            try { d.steadicam = row.steadicam; }
            catch (Exception) { }

            try { d.switcher = row.switcher; }
            catch (Exception) { }

            try { d.audio_marantz = row.audio_marantz; }
            catch (Exception) { }

            try { d.audio_other = row.audio_other; }
            catch (Exception) { }

            try { d.firestore = row.firestore; }
            catch (Exception) { }

            try { d.battery_dionic = row.battery_dionic; }
            catch (Exception) { }

            try { d.battery_charger = row.battery_charger; }
            catch (Exception) { }

            try { d.battery_aa = row.battery_aa; }
            catch (Exception) { }

            try { d.battery_aaa = row.battery_aaa; }
            catch (Exception) { }

            try { d.battery_9volt = row.battery_9volt; }
            catch (Exception) { }

            try { d.createdate = row.createdate; }
            catch (Exception) { }

            try { d.modifydate = row.modifydate; }
            catch (Exception) { }
        }
        public static void LoadProject(pmanAPI.App_Data.pmanDB.ProjectRow row, Project d)
        {
            try { d.id = row.id; }
            catch (Exception) { }

            try { d.name = row.name; }
            catch (Exception) { }

            try { d.description = row.description; }
            catch (Exception) { }

            try { d.creator_id = row.creator_id; }
            catch (Exception) { }

            try { d.createdate = row.createdate; }
            catch (Exception) { }

            try { d.modifydate = row.modifydate; }
            catch (Exception) { }

            try { d.startdate = row.startdate; }
            catch (Exception) { }

            try { d.enddate = row.enddate; }
            catch (Exception) { }
        }
        public static void LoadProject_Location(pmanAPI.App_Data.pmanDB.Project_LocationRow row, Project_Location d)
        {
            try { d.id = row.id; }
            catch (Exception) { }

            try { d.location_id = row.location_id; }
            catch (Exception) { }

            try { d.details = row.details; }
            catch (Exception) { }

            try { d.createdate = row.createdate; }
            catch (Exception) { }

            try { d.modifydate = row.modifydate; }
            catch (Exception) { }
        }
 static Project_Location LoadFromModel(pmanAPI.App_Data.pmanDB.Project_LocationRow row)
 {
     Project_Location d = new Project_Location();
     LoadProject_Location(row, d);
     return d;
 }
 static List<User> LoadFromModel(pmanAPI.App_Data.pmanDB.UserDataTable table)
 {
     List<User> list = new List<User>();
     foreach (pmanAPI.App_Data.pmanDB.UserRow row in table.Rows)
     {
         User d = User.LoadFromModel(row);
         list.Add(d);
     }
     return list;
 }
 static User LoadFromModel(pmanAPI.App_Data.pmanDB.UserRow row)
 {
     User d = new User();
     LoadUser(row, d);
     return d;
 }
 static Contact LoadFromModel(pmanAPI.App_Data.pmanDB.ContactRow row)
 {
     Contact d = new Contact();
     LoadContact(row, d);
     return d;
 }
 static List<Address> LoadFromModel(pmanAPI.App_Data.pmanDB.AddressDataTable table)
 {
     List<Address> list = new List<Address>();
     foreach (pmanAPI.App_Data.pmanDB.AddressRow row in table.Rows)
     {
         Address d = Address.LoadFromModel(row);
         list.Add(d);
     }
     return list;
 }
 static Project_Crew LoadFromModel(pmanAPI.App_Data.pmanDB.Project_CrewRow row)
 {
     Project_Crew d = new Project_Crew();
     LoadProject_Crew(row, d);
     return d;
 }
        public static void LoadContact(pmanAPI.App_Data.pmanDB.ContactRow row, Contact d)
        {
            try { d.id = row.id; }
            catch (Exception) { }

            try { d.firstname = row.firstname; }
            catch (Exception) { }

            try { d.lastname = row.lastname; }
            catch (Exception) { }

            try { d.address_id = row.address_id; }
            catch (Exception) { }

            try { d.phone = row.phone; }
            catch (Exception) { }

            try { d.email = row.email; }
            catch (Exception) { }

            try { d.notes = row.notes; }
            catch (Exception) { }

            try { d.createdate = row.createdate; }
            catch (Exception) { }

            try { d.modifydate = row.modifydate; }
            catch (Exception) { }
        }
        public static void LoadProject_Crew(pmanAPI.App_Data.pmanDB.Project_CrewRow row, Project_Crew d)
        {
            try { d.project_id = row.project_id; }
            catch (Exception) { }

            try { d.director = row.director; }
            catch (Exception) { }

            try { d.camera = row.camera; }
            catch (Exception) { }

            try { d.audio_tech = row.audio_tech; }
            catch (Exception) { }

            try { d.gaffer = row.gaffer; }
            catch (Exception) { }

            try { d.grip = row.grip; }
            catch (Exception) { }

            try { d.script = row.script; }
            catch (Exception) { }

            try { d.makeup = row.makeup; }
            catch (Exception) { }

            try { d.notes = row.notes; }
            catch (Exception) { }

            try { d.createdate = row.createdate; }
            catch (Exception) { }

            try { d.modifydate = row.modifydate; }
            catch (Exception) { }
        }
        public static void LoadProject_Cast(pmanAPI.App_Data.pmanDB.Project_CastRow row, Project_Cast d)
        {
            try { d.id = row.id; }
            catch (Exception) { }

            try { d.project_id = row.project_id; }
            catch (Exception) { }

            try { d.contact_id = row.contact_id; }
            catch (Exception) { }

            try { d.character_description = row.character_description; }
            catch (Exception) { }

            try { d.wardrobe_description = row.wardrobe_description; }
            catch (Exception) { }

            try { d.calltime_description = row.calltime_description; }
            catch (Exception) { }

            try { d.notes = row.notes; }
            catch (Exception) { }

            try { d.createdate = row.createdate; }
            catch (Exception) { }

            try { d.modifydate = row.modifydate; }
            catch (Exception) { }
        }
 static Address LoadFromModel(pmanAPI.App_Data.pmanDB.AddressRow row)
 {
     Address d = new Address();
     LoadAddress(row, d);
     return d;
 }
 static List<Project> LoadFromModel(pmanAPI.App_Data.pmanDB.ProjectDataTable table)
 {
     List<Project> list = new List<Project>();
     foreach (pmanAPI.App_Data.pmanDB.ProjectRow row in table.Rows)
     {
         Project d = Project.LoadFromModel(row);
         list.Add(d);
     }
     return list;
 }
Beispiel #15
0
        public static void LoadUser(pmanAPI.App_Data.pmanDB.UserRow row, User d)
        {
            try { d.contactid = row.ContactID; }
            catch (Exception) { }

            try { d.accesslevel = row.AccessLevel; }
            catch (Exception) { }

            try { d.userid = row.UserID; }
            catch (Exception) { }
        }
 static Project LoadFromModel(pmanAPI.App_Data.pmanDB.ProjectRow row)
 {
     Project d = new Project();
     LoadProject(row, d);
     return d;
 }
        public static void LoadAddress(pmanAPI.App_Data.pmanDB.AddressRow row, Address d)
        {
            try { d.id = row.id; }
            catch (Exception) { }

            try { d.name = row.name; }
            catch (Exception) { }

            try { d.address_1 = row.address_1; }
            catch (Exception) { }

            try { d.address_2 = row.address_2; }
            catch (Exception) { }

            try { d.city = row.city; }
            catch (Exception) { }

            try { d.state = row.state; }
            catch (Exception) { }

            try { d.zip = row.zip; }
            catch (Exception) { }

            try { d.contact_id = row.contact_id; }
            catch (Exception) { }

            try { d.createdate = row.createdate; }
            catch (Exception) { }

            try { d.modifydate = row.modifydate; }
            catch (Exception) { }
        }