/// <summary>
 /// @author : khoaht
 /// @createDate:28/04/2008
 /// @description : UpdateSchedule
 /// </summary>
 private void UpdateSchedule()
 {
     try
     {
         schedule.ClipId = this.clipId;
         //schedule.Price = Qtc.Libs.Util.ExFormatInfo.DeDecimalFormat("PRICE", txtPrice.Text, (IFormatProvider)this);
         schedule.Price = CONFIG.getDecimalValue(txtPrice.Text);
         schedule.Freq = byte.Parse(txtFreq.Text);
         schedule.Status = (byte)1;
         schedule.FromDate = GetDateTime(dteFromDate.Value);
         schedule.ToDate = GetDateTime(dteToDate.Value);
         BSchedule bschedule = new BSchedule();
         if (MsgBoxVN.ShowDlgMsg("Bạn chắc là sẽ cập nhật",IconStyle.Question,new string[]{"&Có","&Không"}, "Thông báo",1)==0)
         {
             if(bschedule.Update(schedule))
             {
                 frmSchedule.UpdateGrid(schedule);
                 SaveScheduleWorkstations(bschedule,schedule);
             }
             Close();
         }
     }
     catch (Exception exp)
     {
         MsgBoxVN.ShowError(exp.Message,Dic.STRING_WARNING);
     }
 }
 /// <summary>
 /// @author : khoaht
 /// @createDate:28/04/2008
 /// @description : UpdateSchedule
 /// </summary>
 private void UpdateSchedule()
 {
     try
     {
         schedule.ClipId = this.clipId;
         schedule.Price = CONFIG.getDecimalValue(txtPrice.Text);
         schedule.Freq = byte.Parse(txtFreq.Text);
         schedule.Status = (byte)1;
         schedule.FromDate = GetDateTime(dteFromDate.Value);
         schedule.ToDate = GetDateTime(dteToDate.Value);
         BSchedule bschedule = new BSchedule();
         if (MsgBoxVN.ShowDlgMsg(Dic.STRING_CONFIRM_UPDATE,IconStyle.Question,new string[]{"&Có","&Không"}, "Thông báo",1)==0)
         {
             if (bschedule.Update(schedule))
             {
                 SaveScheduleWorkstations();
                 frmSchedule.UpdateGrid(schedule);
             }
             Close();
         }
     }
     catch (Exception exp)
     {
         MsgBoxVN.ShowError(exp.Message,Dic.STRING_WARNING);
     }
 }