protected void lbtUpdateT_Click(object sender, EventArgs e)
 {
     #region [TestInput]
     if (txtShowTime.Text.Trim().Equals(""))
     {
         WebMsgBox.Show("ShowTime not null !");
         txtShowTime.Focus();
         return;
     }
     if (txtPrice.Text.Trim().Equals(""))
     {
         WebMsgBox.Show("Price not null !");
         txtPrice.Focus();
         return;
     }
     if (txtTime.Text.Trim().Equals(""))
     {
         WebMsgBox.Show("Time not null !");
         txtPrice.Focus();
         return;
     }
     #endregion
     ShowTimesInfo obj = new ShowTimesInfo();
     obj.ShoId    = txtId.Value;
     obj.FilId    = ddlFilId_Update.SelectedValue;
     obj.CinId    = ddlCinId_Update.SelectedValue;
     obj.ShowTime = txtShowTime.Text;
     obj.Time     = txtTime.Text;
     obj.Price    = txtPrice.Text;
     obj.Status   = chkActive.Checked ? "1" : "0";
     try
     {
         if (_insert == true)
         {
             ShowTimesService.ShowTimes_Insert(obj);
         }
         else
         {
             ShowTimesService.ShowTimes_Update(obj);
         }
         BindGrid();
         pnView.Visible   = true;
         pnUpdate.Visible = false;
         _insert          = false;
     }
     catch (Exception ex)
     {
         WebMsgBox.Show(ex.Message);
     }
 }
示例#2
0
 public static void ShowTimes_Update(ShowTimesInfo Data)
 {
     db.ShowTimes_Update(Data);
 }
示例#3
0
 public static void ShowTimes_Insert(ShowTimesInfo Data)
 {
     db.ShowTimes_Insert(Data);
 }