protected void btnBookletSave_Click(object sender, EventArgs e)
        {
            string prefix    = tbPrefix.Text.ToUpper();
            string rangefrom = tbRangeFrom.Text.ToUpper();
            string rangeto   = tbRangeTo.Text.ToUpper();
            int    kioskid   = Convert.ToInt32(ddlKiosk.SelectedValue);
            int    hdnID     = Convert.ToInt32(hdnBookletID.Value);
            int    pages     = Convert.ToInt32(tbPages.Text);

            var instance = new Booklet();

            instance.Prefix    = prefix;
            instance.DigitFrom = rangefrom;
            instance.DigitTo   = rangeto;
            instance.KioskID   = kioskid;
            instance.CreatedBy = GlobalAccess.EmpID;
            instance.Pages     = pages;


            bool isInsert = true;

            try
            {
                if (hdnID == 0)
                {
                    Booklet.InsertNewSeries(instance);
                }
                else
                {
                    instance.BookletID = hdnID;
                    Booklet.UpdateSelectedSeries(instance);
                }
            }
            catch (Exception ee)
            {
                isInsert = false;
                (Master as Frame).PopUp(ee.Message);
            }

            if (isInsert)
            {
                (Master as Frame).PopUp("Apply Success!");

                mvMain.SetActiveView(vwMain);
                CallDataGrid();
            }
        }