Exemplo n.º 1
0
 /// <summary>
 /// 设置单据清单内容指定行的数据到控件
 /// </summary>
 /// <param name="row">已入库结存数据当前数据行</param>
 /// <param name="iRow">当前行的索引号</param>
 private void SetBillContent(DataSetMantissaBalance.t_mantissa_lot_card_balanceRow row, int iRow)
 {
     //检测是否含有数据
     if (row == null)
     {
         //清空数据
         ClearBillContent(iRow);
     }
     else
     {
         //设置数据
         SetBillContent(
             iRow,
             row.prev_proc_name,
             row.lot_id,
             row.product_num,
             row.pnl_qty <= 0 ? string.Empty : row.pnl_qty.ToString(),
             row.pcs_qty <= 0 ? string.Empty : row.pcs_qty.ToString(),
             row.IsremarkNull() ? string.Empty : row.remark
         );
     }
 }