/// <summary>
 /// 设置单据清单内容指定行的数据到控件
 /// </summary>
 /// <param name="row">送货单当前数据行</param>
 /// <param name="iRow">当前行的索引号</param>
 private void SetBillContent(DataSetSampleDeliveryBillMgr.t_delivery_bill_content_sampleRow row, int iRow)
 {
     //检测是否含有数据
     bool isEmpty = row == null;
     //当前数据所在的行和lot卡清单行
     var trContentRow = (TableRow)tabDataListSon.FindControl("trContentRow" + iRow);
     var trLotCardRow = (TableRow)tabDataListSon.FindControl("trLotCardRow" + iRow);
     //检测是否找到该行
     if (trContentRow == null || trLotCardRow == null)
     {
         return;
     }
     //各控件
     var txtOrderId = (TextBox)trContentRow.Cells[1].FindControl("txtOrderId" + iRow);
     var txtOrderNum = (TextBox)trContentRow.Cells[2].FindControl("txtOrderNum" + iRow);
     var txtProductNum = (TextBox)trContentRow.Cells[3].FindControl("txtProductNum" + iRow);
     var txtCustNum = (TextBox)trContentRow.Cells[4].FindControl("txtCustNum" + iRow);
     var txtPcsQty = (TextBox)trContentRow.Cells[5].FindControl("txtPcsQty" + iRow);
     var txtFocPcsQty = (TextBox)trContentRow.Cells[6].FindControl("txtFocPcsQty" + iRow);
     var txtRemark = (TextBox)trContentRow.Cells[7].FindControl("txtRemark" + iRow);
     var tcLotCardList = (TableCell)trLotCardRow.Cells[1].FindControl("tcLotCardList" + iRow);
     var hdLotCardList = (HtmlInputHidden)this.FindControl("hdLotCardList" + iRow);
     //写入数据
     txtOrderId.Text = isEmpty ? string.Empty : row.order_id;
     txtProductNum.Text = isEmpty ? string.Empty : row.product_num;
     txtCustNum.Text = isEmpty ? string.Empty : row.cust_num;
     txtPcsQty.Text = isEmpty ? string.Empty : row.pcs_qty.ToString();
     txtFocPcsQty.Text = isEmpty ? string.Empty : row.Isfoc_pcs_qtyNull() ? "" : row.foc_pcs_qty.ToString();
     txtRemark.Text = isEmpty ? string.Empty : row.IsremarkNull() ? "" : row.remark;
     tcLotCardList.Text = isEmpty ? string.Empty : row.lot_id_list;
     //将当前的值写入隐藏对象
     hdLotCardList.Value = isEmpty ? string.Empty : row.lot_id_list.Replace("<", "|l|").Replace(">", "|g|");
 }
 /// <summary>
 /// 设置单据清单内容指定行的数据到控件
 /// </summary>
 /// <param name="row">样板送货单当前数据行</param>
 /// <param name="iRow">当前行的索引号</param>
 private void SetBillContent(DataSetSampleDeliveryBillMgr.t_delivery_bill_content_sampleRow row, int iRow)
 {
     //检测是否含有数据
     bool isEmpty = row == null;
     //当前数据所在的行和批量卡清单行
     var trContentRow = (TableRow)tabDataListSon.FindControl("trContentRow" + iRow);
     var trLotCardRow = (TableRow)tabDataListSon.FindControl("trLotCardRow" + iRow);
     //检测是否找到该行
     if (trContentRow == null || trLotCardRow == null)
     {
         return;
     }
     //各控件
     var txtOrderId = (TextBox)trContentRow.FindControl("txtOrderId" + iRow);
     var txtMarketDept = (TextBox)trContentRow.FindControl("txtMarketDept" + iRow);
     var txtProductNum = (TextBox)trContentRow.FindControl("txtProductNum" + iRow);
     var txtOrderNum = (TextBox)trContentRow.FindControl("txtOrderNum" + iRow);
     var txtCustNum = (TextBox)trContentRow.FindControl("txtCustNum" + iRow);
     var txtSpecification = (TextBox)trContentRow.FindControl("txtSpecification" + iRow);
     var txtPcsQty = (TextBox)trContentRow.FindControl("txtPcsQty" + iRow);
     var txtFocPcsQty = (TextBox)trContentRow.FindControl("txtFocPcsQty" + iRow);
     var txtBatchNum = (TextBox)trContentRow.FindControl("txtBatchNum" + iRow);
     var txtProductDate = (TextBox)trContentRow.FindControl("txtProductDate" + iRow);
     var txtRemark = (TextBox)trContentRow.FindControl("txtRemark" + iRow);
     var tcLotCardList = (TableCell)trLotCardRow.FindControl("tcLotCardList" + iRow);
     var hdLotCardList = (HtmlInputHidden)this.FindControl("hdLotCardList" + iRow);
     //写入数据
     txtOrderId.Text = isEmpty ? string.Empty : row.order_id;
     txtMarketDept.Text = isEmpty ? string.Empty : row.market_dept;
     txtProductNum.Text = isEmpty ? string.Empty : row.product_num;
     txtOrderNum.Text = isEmpty ? string.Empty : row.order_num;
     txtCustNum.Text = isEmpty ? string.Empty : row.cust_num;
     txtSpecification.Text = isEmpty || row.IsspecificationNull() ? string.Empty : row.specification;
     txtPcsQty.Text = isEmpty ? string.Empty : row.pcs_qty.ToString();
     txtFocPcsQty.Text = isEmpty || row.Isfoc_pcs_qtyNull() ? string.Empty : row.foc_pcs_qty.ToString();
     txtBatchNum.Text = isEmpty || row.Isbatch_numNull() ? string.Empty : row.batch_num;
     txtProductDate.Text = isEmpty || row.Isproduct_dateNull() ? string.Empty : row.product_date.ToString("yyyy-MM-dd");
     txtRemark.Text = isEmpty || row.IsremarkNull() ? string.Empty : row.remark;
     tcLotCardList.Text = isEmpty ? string.Empty : row.lot_id_list;
     //将当前的值写入隐藏对象
     hdLotCardList.Value = isEmpty ? string.Empty : row.lot_id_list.Replace("<", "|l|").Replace(">", "|g|");
 }