Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, PvSassmBase entity)
 {
     row.SetField("functionName", entity.functionName);
     row.SetField("menuSet", entity.menuSet);
     row.SetField("trmgrlang", entity.trmgrlang);
     row.SetField("pv_sassmRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPvSassmBase(ref DataRow row, PvSassmBase entity)
 {
     row.SetField("FunctionName", entity.functionName);
     row.SetField("FolderLabels", entity.folderLabels);
     row.SetField("FolderFunctionNames", entity.folderFunctionNames);
     row.SetField("FolderViewerName", entity.folderViewerName);
     row.SetField("KeyViewer", entity.keyViewer);
     row.SetField("BrowseName", entity.browseName);
     row.SetField("WindowTitle", entity.windowTitle);
     row.SetField("FunctionProcedure", entity.functionProcedure);
     row.SetField("FolderDelimiter", entity.folderDelimiter);
     row.SetField("MenuSet", entity.menuSet);
     row.SetField("ParentMenu", entity.parentMenu);
     row.SetField("ParentPos", entity.parentPos);
     row.SetField("menutitle", entity.menutitle);
     row.SetField("buttontitle", entity.buttontitle);
     row.SetField("tiptext", entity.tiptext);
     row.SetField("recordtype", entity.recordtype);
     row.SetField("FunctionDirectory", entity.functionDirectory);
     row.SetField("FolderFunctionType", entity.folderFunctionType);
     row.SetField("OtherLinks", entity.otherLinks);
     row.SetField("CanExecute", entity.canExecute);
     row.SetField("FolderInstructions", entity.folderInstructions);
     row.SetField("Nxtrend_ourproc", entity.nxtrendOurproc);
     row.SetField("Min_Security_Level", entity.minSecurityLevel);
     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("CRMSubject", entity.cRMSubject);
     row.SetField("operinit", entity.operinit);
     row.SetField("transdt", entity.transdt);
     row.SetField("transtm", entity.transtm);
     row.SetField("transproc", entity.transproc);
     row.SetField("trmgrlang", entity.trmgrlang);
     row.SetField("standardty", entity.standardty);
     row.SetField("pv_sassmRowID", entity.rowID.ToByteArray());
 }