示例#1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, DrpRulesBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("ruleCode", entity.ruleCode);
     row.SetField("drp_rulesRowID", entity.rowID.ToByteArray());
 }
示例#2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromDrpRulesBase(ref DataRow row, DrpRulesBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("rule_code", entity.ruleCode);
     row.SetField("active", entity.active);
     row.SetField("priority", entity.priority);
     row.SetField("criteria", entity.criteria);
     row.SetField("date_time", entity.dateTime);
     row.SetField("drop_sec_time", entity.dropSecTime);
     row.SetField("proc_created", entity.procCreated);
     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("row_status", entity.rowStatus);
     row.SetField("drp_days1", entity.drpDays1);
     row.SetField("drp_days2", entity.drpDays2);
     row.SetField("drp_days3", entity.drpDays3);
     row.SetField("drp_days4", entity.drpDays4);
     row.SetField("drp_days5", entity.drpDays5);
     row.SetField("drp_days6", entity.drpDays6);
     row.SetField("drp_days7", entity.drpDays7);
     row.SetField("drp_days8", entity.drpDays8);
     row.SetField("drp_now", entity.drpNow);
     row.SetField("spec_tm1", entity.specTm1);
     row.SetField("spec_tm2", entity.specTm2);
     row.SetField("spec_tm3", entity.specTm3);
     row.SetField("spec_tm4", entity.specTm4);
     row.SetField("spec_tm5", entity.specTm5);
     row.SetField("spec_tm6", entity.specTm6);
     row.SetField("every_num", entity.everyNum);
     row.SetField("every_what", entity.everyWhat);
     row.SetField("starttm", entity.starttm);
     row.SetField("stoptm", entity.stoptm);
     row.SetField("criteria_list", entity.criteriaList);
     row.SetField("undo_list", entity.undoList);
     row.SetField("redo_list", entity.redoList);
     row.SetField("redo_criteria", entity.redoCriteria);
     row.SetField("lastrundt", entity.lastrundt);
     row.SetField("lastruntm", entity.lastruntm);
     row.SetField("nextrundt", entity.nextrundt);
     row.SetField("nextruntm", entity.nextruntm);
     row.SetField("employee", entity.employee);
     row.SetField("createby", entity.createby);
     row.SetField("modifydt", entity.modifydt);
     row.SetField("modifytm", entity.modifytm);
     row.SetField("modifyby", entity.modifyby);
     row.SetField("processing", entity.processing);
     row.SetField("drp_query", entity.drpQuery);
     row.SetField("printer_id", entity.printerId);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("drp_rulesRowID", entity.rowID.ToByteArray());
 }