public void waybillbaseLoad(string waybillNumber, string pageIndexAndCount, string startTime, string endTime, int customerId)
 {
     try
     {
         if (startTime != null && endTime != null)
         {
             if (Convert.ToDateTime(startTime) > Convert.ToDateTime(endTime))
             {
                 MessageBox.Show("起始时间不能大于结束时间");
                 return;
             }
         }
         //ResultModelOfArrayOfModel_Waybill_Based4FqxSXX count = cs.GetWaybillList(waybillNumber, null, startTime, endTime, customerId, true, 3, true);
         //winFormPager1.DrawControl(count.Data.Count<Model_Waybill_Base>());
         ResultModelOfint result = cs.GetWaybillListCount(waybillNumber, startTime, endTime, customerId, true, 3, true);
         winFormPager1.DrawControl(result.Data);
         ResultModelOfArrayOfModel_Waybill_Based4FqxSXX waybill = cs.GetWaybillList(waybillNumber, pageIndexAndCount, startTime, endTime, customerId, true, 3, true);
         if (waybill.Code != 0)
         {
             MessageBox.Show(waybill.Message);
         }
         else
         {
             dataGridView1.AutoGenerateColumns = false;
             dataGridView1.Rows.Clear();
             foreach (Model_Waybill_Base item in waybill.Data)
             {
                 int rowIndex = dataGridView1.Rows.Add();
                 dataGridView1.Rows[rowIndex].Cells[0].Value = item.Numberk__BackingField;
                 dataGridView1.Rows[rowIndex].Cells[1].Value = item.ReceiverOrgk__BackingField;
                 dataGridView1.Rows[rowIndex].Cells[2].Value = item.ReceiverPersonk__BackingField;
                 dataGridView1.Rows[rowIndex].Cells[3].Value = item.ReceiverTelk__BackingField;
                 dataGridView1.Rows[rowIndex].Cells[4].Value = item.ReceiverAddressk__BackingField;
                 dataGridView1.Rows[rowIndex].Cells[5].Value = item.BeginAtk__BackingField.ToString("yyyy-MM-dd HH:mm:ss");
                 dataGridView1.Rows[rowIndex].Cells[6].Value = item.BillingCountk__BackingField;
                 dataGridView1.Rows[rowIndex].Tag            = item;
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }