protected void btnQuery_Click(object sender, EventArgs e)
 {
     IList<ETimingAlertSetting> list = new List<ETimingAlertSetting>();
     ERobAlertSetting entity = new ERobAlertSetting();
     TimingAlertSettingSearchService db = new TimingAlertSettingSearchService();
     list = db.Search<ETimingAlertSetting>("粤", startDate, endDate,EnumVehicleType.Taxi);
     if (list.Count > 0)
     {
         //list.Add(entity);
         dgv.DataSource = list;
         dgv.DataBind();
     }
 }
 protected void btnUpdate_Click(object sender, EventArgs e)
 {
     ERobAlertSetting entity = new ERobAlertSetting();
     entity.RecordID = Guid.NewGuid();
     entity.VehicleCode = new Guid(txtVehicleCode.Text);
     entity.UserCode = txtUserCode.Text;
     entity.TenantCode = txtTenantCode.Text;
     entity.CreateTime = DateTime.Parse(txtCreateDate.Text);
     entity.MobileReceiveBeginTime = DateTime.Parse(txtMobileReceiveBeginTime.Text).TimeOfDay;
     entity.MobileReceiveEndTime = DateTime.Parse(txtMobileReceiveEndTime.Text).TimeOfDay;
     entity.UserReceiveBeginTime = DateTime.Parse(txtUserReceiveBeginTime.Text).TimeOfDay;
     entity.UserReceiveEndTime = DateTime.Parse(txtUserReceiveEndTime.Text).TimeOfDay;
     entity.ReceiveMobileList = txtReceiveMobileList.Text;
     entity.ReceiveUserList = txtReceiveUserList.Text;
     entity.EnableSMS = Convert.ToBoolean(txtEableSMS.Text);
     entity.Enable = Convert.ToBoolean(txtEnable.Text);
     IAlertSettingService  db = new AlertSettingService();
     db.Update<ERobAlertSetting>(entity);
 }