示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromRtdetBase(ref DataRow row, RtdetBase entity)
 {
     row.SetField("rt_id", entity.rtId);
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("line_num", entity.lineNum);
     row.SetField("vendor_id", entity.vendorId);
     row.SetField("abs_num", entity.absNum);
     row.SetField("item_num", entity.itemNum);
     row.SetField("vend_item", entity.vendItem);
     row.SetField("quantity", entity.quantity);
     row.SetField("act_quantity", entity.actQuantity);
     row.SetField("exp_quantity", entity.expQuantity);
     row.SetField("ordered_qty", entity.orderedQty);
     row.SetField("bo_count", entity.boCount);
     row.SetField("bo_quantity", entity.boQuantity);
     row.SetField("special_handling", entity.specialHandling);
     row.SetField("item_cost", entity.itemCost);
     row.SetField("uom", entity.uom);
     row.SetField("lot", entity.lot);
     row.SetField("comments", entity.comments);
     row.SetField("item_desc", entity.itemDesc);
     row.SetField("po_number", entity.poNumber);
     row.SetField("po_suffix", entity.poSuffix);
     row.SetField("po_type", entity.poType);
     row.SetField("po_line", entity.poLine);
     row.SetField("line_sequence", entity.lineSequence);
     row.SetField("asn_flag", entity.asnFlag);
     row.SetField("packer", entity.packer);
     row.SetField("delivery", entity.delivery);
     row.SetField("rtn_order", entity.rtnOrder);
     row.SetField("rtn_order_suffix", entity.rtnOrderSuffix);
     row.SetField("ret_line", entity.retLine);
     row.SetField("ret_line_sequence", entity.retLineSequence);
     row.SetField("return_fl", entity.returnFl);
     row.SetField("qty_unavail", entity.qtyUnavail);
     row.SetField("rd_po_type", entity.rdPoType);
     row.SetField("line_indicator", entity.lineIndicator);
     row.SetField("receiver_num", entity.receiverNum);
     row.SetField("prod_desc", entity.prodDesc);
     row.SetField("packing_list", entity.packingList);
     row.SetField("percent_fill", entity.percentFill);
     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("stock_stat", entity.stockStat);
     row.SetField("case_quantity", entity.caseQuantity);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("rtdetRowID", entity.rowID.ToByteArray());
 }
示例#2
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, RtdetBase entity)
 {
     row.SetField("rtId", entity.rtId);
     row.SetField("lineNum", entity.lineNum);
     row.SetField("rtdetRowID", entity.rowID.ToByteArray());
 }