Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        objCommonMIS.BusinessLine_Sno = "2";
        objCommonMIS.EmpId            = Membership.GetUser().UserName.ToString();

        if (!Page.IsPostBack)
        {
            objCommonMIS.GetAllRegions(ddlRegion);
            objCommonMIS.RegionSno = "0";
            objCommonMIS.BranchSno = "0";

            objCommonMIS.GetUserProductDivisions(ddlProductDivision);
            for (int i = DateTime.Now.Year; i >= DateTime.Now.Year - 2; i--)
            {
                DDlYear.Items.Add(new ListItem(i.ToString(), i.ToString()));
            }


            for (int i = 1; i <= 12; i++)
            {
                DDLMonth.Items.Add(new ListItem(mfi.GetMonthName(i).ToString(), i.ToString()));
            }
            DDLMonth.Items.Insert(0, new ListItem("Select", "0"));
            ddlRegion.Items[0].Text          = "Select";
            ddlProductDivision.Items[0].Text = "Select";
        }
    }