示例#1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PvUserBase entity)
 {
     row.SetField("cono", entity.cono);
     row.SetField("oper2", entity.oper2);
     row.SetField("pv_userRowID", entity.rowID.ToByteArray());
     row.SetField("rowpointer", entity.rowpointer);
 }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPvUserBase(ref DataRow row, PvUserBase entity)
 {
     row.SetField("_Userid", entity.userid);
     row.SetField("ProfileName", entity.profileName);
     row.SetField("ArrangeCols", entity.arrangeCols);
     row.SetField("AddFavorites", entity.addFavorites);
     row.SetField("EntryLayout", entity.entryLayout);
     row.SetField("NavLayout", entity.navLayout);
     row.SetField("ToolbarLayout", entity.toolbarLayout);
     row.SetField("ChangeProfiles", entity.changeProfiles);
     row.SetField("ChangeAppServer", entity.changeAppServer);
     row.SetField("AutoJournalClose", entity.autoJournalClose);
     row.SetField("addr1", entity.addr1);
     row.SetField("addr2", entity.addr2);
     row.SetField("UnlimitedWebAccess", entity.unlimitedWebAccess);
     row.SetField("LoginSource", entity.loginSource);
     row.SetField("city", entity.city);
     row.SetField("state", entity.state);
     row.SetField("_Password", entity.password);
     row.SetField("_User-Name", entity.userName);
     row.SetField("zipcd", entity.zipcd);
     row.SetField("cono", entity.cono);
     row.SetField("operinit", entity.operinit);
     row.SetField("Disabled", entity.disabled);
     row.SetField("MustChange", entity.mustChange);
     row.SetField("CannotChange", entity.cannotChange);
     row.SetField("oper2", entity.oper2);
     row.SetField("homeph", entity.homeph);
     row.SetField("workph", entity.workph);
     row.SetField("cellph", entity.cellph);
     row.SetField("faxph", entity.faxph);
     row.SetField("Dept", entity.dept);
     row.SetField("JobTitle", entity.jobTitle);
     row.SetField("transdt", entity.transdt);
     row.SetField("email", entity.email);
     row.SetField("pagerph", entity.pagerph);
     row.SetField("transtm", entity.transtm);
     row.SetField("maxwindows", entity.maxwindows);
     row.SetField("MaxUsers", entity.maxUsers);
     row.SetField("MenuSet", entity.menuSet);
     row.SetField("AOSecurity", entity.aOSecurity);
     row.SetField("seccredmgrfl", entity.seccredmgrfl);
     row.SetField("queue-s", entity.queueS);
     row.SetField("queue-d", entity.queueD);
     row.SetField("queuefl", entity.queuefl);
     row.SetField("user1", entity.user1);
     row.SetField("user2", entity.user2);
     row.SetField("user3", entity.user3);
     row.SetField("user4", entity.user4);
     row.SetField("user5", entity.user5);
     row.SetField("user6", entity.user6);
     row.SetField("user7", entity.user7);
     row.SetField("user8", entity.user8);
     row.SetField("user9", entity.user9);
     row.SetField("transproc", entity.transproc);
     row.SetField("updategltrans", entity.updategltrans);
     row.SetField("updateaptrans", entity.updateaptrans);
     row.SetField("updateartrans", entity.updateartrans);
     row.SetField("ActivityOtherOperFl", entity.activityOtherOperFl);
     row.SetField("CreditCardDisplayFl", entity.creditCardDisplayFl);
     row.SetField("ActivitySecrLev", entity.activitySecrLev);
     row.SetField("ContactMgmntSecrLev", entity.contactMgmntSecrLev);
     row.SetField("CRMUserType", entity.cRMUserType);
     row.SetField("apeitradefl", entity.apeitradefl);
     row.SetField("apeiexpensefl", entity.apeiexpensefl);
     row.SetField("apeiaddonfl", entity.apeiaddonfl);
     row.SetField("apeiusecostfl", entity.apeiusecostfl);
     row.SetField("apeiovertolfl", entity.apeiovertolfl);
     row.SetField("starttoolbar", entity.starttoolbar);
     row.SetField("addr3", entity.addr3);
     row.SetField("etsecurity", entity.etsecurity);
     row.SetField("profileuserset", entity.profileuserset);
     row.SetField("webprofilename", entity.webprofilename);
     row.SetField("websettingaccesslevel", entity.websettingaccesslevel);
     row.SetField("webmodificationaccesslevel", entity.webmodificationaccesslevel);
     row.SetField("twlwhse", entity.twlwhse);
     row.SetField("twlrestrictwhsefl", entity.twlrestrictwhsefl);
     row.SetField("twllastuseddt", entity.twllastuseddt);
     row.SetField("webextensiontype", entity.webextensiontype);
     row.SetField("rowpointer", entity.rowpointer);
     row.SetField("dropboxauthkey", entity.dropboxauthkey);
     row.SetField("transdttmz", entity.transdttmz);
     row.SetField("oereassignarfl", entity.oereassignarfl);
     row.SetField("pv_userRowID", entity.rowID.ToByteArray());
 }