protected void btnSave_Click(object sender, EventArgs e)
 {
     Page.Validate("AddEdit");
     if (Page.IsValid)
     {
         try
         {
             WarehouseService.AddOrUpdate(RowID,
                                          Convert.ToInt32(ddlBranch.SelectedValue),
                                          txtCode.Text,
                                          txtName.Text,
                                          chkIsActive.Checked);
             ReloadCurrentPage();
         }
         catch (Exception ex)
         {
             mvwForm.ActiveViewIndex = 0;
             WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage);
             LogService.ErrorException(GetType().FullName, ex);
         }
     }
 }