Пример #1
0
 protected void btnSearch_Click(object sender, EventArgs e)
 {
     try
     {
         if (tdmTransferDateEnd.DateValue.Year == 1 || tdmTransferDateStart.DateValue.Year == 1)
         {
             AppUtil.ClientAlert(Page, "กรุณาระบุ Transfer Date ให้ครบถ้วน");
             return;
         }
         if (tdmTransferDateEnd.DateValue < tdmTransferDateStart.DateValue)
         {
             AppUtil.ClientAlert(Page, "Transfer Date สิ้นสุด ต้องมากกว่าหรือเท่ากับ Transfer เริ่มต้น");
             return;
         }
         var result = SlmScr047Biz.GetTransferList(tdmTransferDateStart.DateValue, tdmTransferDateEnd.DateValue);
         BindGridview(pcTop, result.ToArray(), 0);
         upResult.Update();
     }
     catch (Exception ex)
     {
         string message = ex.InnerException != null ? ex.InnerException.Message : ex.Message;
         _log.Error(message);
         AppUtil.ClientAlert(Page, message);
     }
 }
Пример #2
0
 protected void PageSearchChange(object sender, EventArgs e)
 {
     try
     {
         var pageControl = (SLM.Application.Shared.GridviewPageController)sender;
         var result      = SlmScr047Biz.GetTransferList(tdmTransferDateStart.DateValue, tdmTransferDateEnd.DateValue);
         BindGridview(pageControl, result.ToArray(), pageControl.SelectedPageIndex);
         //DoSearchLeadData(pageControl.SelectedPageIndex, SortExpressionProperty, SortDirectionProperty);
     }
     catch (Exception ex)
     {
         string message = ex.InnerException != null ? ex.InnerException.Message : ex.Message;
         _log.Error(message);
         AppUtil.ClientAlert(Page, message);
     }
 }