Beispiel #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, BcswmstBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("sysName", entity.sysName);
     row.SetField("appId", entity.appId);
     row.SetField("bcswmstRowID", entity.rowID.ToByteArray());
 }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromBcswmstBase(ref DataRow row, BcswmstBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("dept_num", entity.deptNum);
     row.SetField("wh_zone", entity.whZone);
     row.SetField("sys_name", entity.sysName);
     row.SetField("app_id", entity.appId);
     row.SetField("app_name", entity.appName);
     row.SetField("app_descr", entity.appDescr);
     row.SetField("app_exe", entity.appExe);
     row.SetField("app_label_arg", entity.appLabelArg);
     row.SetField("app_prn_arg", entity.appPrnArg);
     row.SetField("app_data_arg", entity.appDataArg);
     row.SetField("app_fmt_arg", entity.appFmtArg);
     row.SetField("app_delim_arg", entity.appDelimArg);
     row.SetField("app_log_arg", entity.appLogArg);
     row.SetField("app_other_arg1", entity.appOtherArg1);
     row.SetField("app_other_arg2", entity.appOtherArg2);
     row.SetField("app_other_arg3", entity.appOtherArg3);
     row.SetField("app_other_arg4", entity.appOtherArg4);
     row.SetField("app_other_arg5", entity.appOtherArg5);
     row.SetField("app_other_arg6", entity.appOtherArg6);
     row.SetField("app_other_arg7", entity.appOtherArg7);
     row.SetField("app_other_arg8", entity.appOtherArg8);
     row.SetField("app_other_arg9", entity.appOtherArg9);
     row.SetField("app_other_arg10", entity.appOtherArg10);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("app_debugfl", entity.appDebugfl);
     row.SetField("app_directory_path", entity.appDirectoryPath);
     row.SetField("bcswmstRowID", entity.rowID.ToByteArray());
 }