protected void btn_Confirm_WWS_Click(object sender, EventArgs e)
        {
            //create a MWS
            //perform a check such that the MWS cannot be created if there is
            //an existing wws that is within the mws
            //create individual wws

            UserAccount user   = (UserAccount)Session["UserAccountObj"];
            MWSBLL      mwsbll = new MWSBLL();
            WWSBLL      wwsbll = new WWSBLL();

            MWS mws = mwsbll.DoRetrieveLatestMWSByRId(user.UserId);

            if (mws != null && ddlWorkDay.SelectedIndex != 0)
            {
                WWS wws = wwsbll.DoRetrieveLatestWWSByMwsId(mws.MwsId);
                if (DateTime.Parse(txtStartDate.Text) <= wws.WwsDate)
                {
                    lblNoSelection.Text = "You have a current Monthly work schedule in the system. Please retry once the monthly work schedule have been completed!";
                }
                else if (ddlShift.SelectedItem.Value == "Select" || ddlWorkDay.SelectedItem.Value == "Select")
                {
                    lblNoSelection.Text = "Please select a shift slot and work day!";
                }
                else
                {
                    createWWSBasedOnDateRange(DateTime.Parse(txtStartDate.Text), DateTime.Parse(txtEndDate.Text), Convert.ToInt32(ddlShift.SelectedValue), Convert.ToInt32(ddlWorkDay.SelectedValue));
                    lblSuccess.Text = "Successfully created a schedule.";
                }
            }
            else
            {
                if (ddlShift.SelectedItem.Value == "Select" || ddlWorkDay.SelectedItem.Value == "Select")
                {
                    lblNoSelection.Text = "Please select a shift slot and work day!";
                }
                else
                {
                    createWWSBasedOnDateRange(DateTime.Parse(txtStartDate.Text), DateTime.Parse(txtEndDate.Text), Convert.ToInt32(ddlShift.SelectedValue), Convert.ToInt32(ddlWorkDay.SelectedValue));
                    lblSuccess.Text = "Successfully created a schedule.";
                }
            }
        }