protected void BtnUpdate_Click(object sender, EventArgs e)
        {
            A2ZWEEKHOLIDAYDTO UpDTO = new A2ZWEEKHOLIDAYDTO();

            UpDTO.HolWeekDay1     = Converter.GetSmallInteger(ddlHolWeekDay1.SelectedValue);
            UpDTO.HolWeekDay2     = Converter.GetSmallInteger(ddlHolWeekDay2.SelectedValue);
            UpDTO.HolWeekDayName1 = Converter.GetString(ddlHolWeekDay1.SelectedItem);
            UpDTO.HolWeekDayName2 = Converter.GetString(ddlHolWeekDay2.SelectedItem);

            int roweffect = A2ZWEEKHOLIDAYDTO.UpdateInformation(UpDTO);

            if (roweffect > 0)
            {
                Response.Redirect("A2ZERPModule.aspx");
            }
        }
        public void GetWeekHolidayInfo()
        {
            A2ZWEEKHOLIDAYDTO getDTO = (A2ZWEEKHOLIDAYDTO.GetInformation());

            if (getDTO.Record > 0)
            {
                ddlHolWeekDay1.SelectedValue = Converter.GetString(getDTO.HolWeekDay1);
                ddlHolWeekDay2.SelectedValue = Converter.GetString(getDTO.HolWeekDay2);
                BtnSubmit.Visible            = false;
                BtnUpdate.Visible            = true;
            }
            else
            {
                BtnSubmit.Visible = true;
                BtnUpdate.Visible = false;
            }
        }
        protected void BtnSubmit_Click(object sender, EventArgs e)
        {
            try
            {
                A2ZWEEKHOLIDAYDTO objDTO = new A2ZWEEKHOLIDAYDTO();

                objDTO.HolWeekDay1     = Converter.GetSmallInteger(ddlHolWeekDay1.SelectedValue);
                objDTO.HolWeekDay2     = Converter.GetSmallInteger(ddlHolWeekDay2.SelectedValue);
                objDTO.HolWeekDayName1 = Converter.GetString(ddlHolWeekDay1.SelectedItem);
                objDTO.HolWeekDayName2 = Converter.GetString(ddlHolWeekDay2.SelectedItem);

                int roweffect = A2ZWEEKHOLIDAYDTO.InsertInformation(objDTO);
                if (roweffect > 0)
                {
                    Response.Redirect("A2ZERPModule.aspx");
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }