Ejemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromProdStgDtlBase(ref DataRow row, ProdStgDtlBase entity)
 {
     row.SetField("id", entity.id);
     row.SetField("line", entity.line);
     row.SetField("abs_num", entity.absNum);
     row.SetField("lot", entity.lot);
     row.SetField("from_bin", entity.fromBin);
     row.SetField("to_bin", entity.toBin);
     row.SetField("allocation_status", entity.allocationStatus);
     row.SetField("line_status", entity.lineStatus);
     row.SetField("item_qty", entity.itemQty);
     row.SetField("act_qty", entity.actQty);
     row.SetField("kit_qty", entity.kitQty);
     row.SetField("kit_num", entity.kitNum);
     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("prod_stg_dtlRowID", entity.rowID.ToByteArray());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, ProdStgDtlBase entity)
 {
     row.SetField("id", entity.id);
     row.SetField("line", entity.line);
     row.SetField("prod_stg_dtlRowID", entity.rowID.ToByteArray());
 }