Beispiel #1
0
    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        int    count = 0;
        string msg   = "";
        List <ATTFixedHoliday> LSTFix = new List <ATTFixedHoliday>();

        LSTFix = (List <ATTFixedHoliday>)Session["FixedHoliday"];
        try
        {
            if (LSTFix != null)
            {
                if (BLLFixedHoliday.SaveFixedHoliday(LSTFix))
                {
                    count++;
                    msg += "</br></br>**Fixed Holiday Saved Successfully.";
                    grdFixData.DataSource = Session["FixedHoliday"];
                    grdFixData.DataBind();
                    ClearControls("Submit");
                }
            }

            if (count > 0)
            {
                this.lblStatusMessage.Text = msg;
                this.programmaticModalPopup.Show();
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
    void LoadFixedHolidays()
    {
        List <ATTFixedHoliday> LSTFxHoliday = BLLFixedHoliday.GetFixedHolidays();

        this.grdFixData.DataSource = LSTFxHoliday;
        this.grdFixData.DataBind();
        this.grdFixData.SelectedIndex = -1;
        Session["FxHoliday"]          = LSTFxHoliday;
    }
    void GetYear()
    {
        List <ATTFixedHoliday> LSTYear = BLLFixedHoliday.GetYear();

        LSTYear.Insert(0, new ATTFixedHoliday("छान्नुहोस्", "", "", "", "", "", "", "", ""));
        this.ddlYear2.DataSource     = LSTYear;
        this.ddlYear2.DataTextField  = "Year";
        this.ddlYear2.DataValueField = "Year";
        this.ddlYear2.DataBind();
    }
Beispiel #4
0
 void LoadYear()
 {
     try
     {
         List <ATTFixedHoliday> LSTYear = BLLFixedHoliday.GetYear();
         LSTYear.Insert(0, new ATTFixedHoliday("--साल छान्नुस्--", "", "", "", "", "", "", "", ""));
         this.DDLYear.DataSource     = LSTYear;
         this.DDLYear.DataTextField  = "Year";
         this.DDLYear.DataValueField = "Year";
         this.DDLYear.DataBind();
     }
     catch (Exception ex)
     {
         lblStatusMessage.Text = ex.Message;
         programmaticModalPopup.Show();
     }
 }