Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DropDownListBulan.DataSource     = Akuntansi_Class.DropdownlistBulanLaporan();
            DropDownListBulan.DataValueField = "Value";
            DropDownListBulan.DataTextField  = "Text";
            DropDownListBulan.DataBind();
            DropDownListBulan.SelectedValue = (DateTime.Now.Month).ToString();

            LoadData();
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DropDownListBulan.Items.Clear();
            DropDownListBulan.Items.AddRange(Akuntansi_Class.DropdownlistBulanLaporan());
            DropDownListBulan.SelectedValue = DateTime.Now.Month.ToString();

            DropDownListTahun.Items.Clear();
            DropDownListTahun.Items.AddRange(Akuntansi_Class.DropdownlistTahunLaporan());
            DropDownListTahun.SelectedValue = DateTime.Now.Year.ToString();

            LoadData();
        }
    }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            using (DataClassesDatabaseDataContext db = new DataClassesDatabaseDataContext())
            {
                DropDownListBulan.Items.Clear();
                DropDownListBulan.Items.AddRange(Akuntansi_Class.DropdownlistBulanLaporan());
                DropDownListBulan.SelectedValue = DateTime.Now.Month.ToString();

                DropDownListTahun.Items.Clear();
                DropDownListTahun.Items.AddRange(Akuntansi_Class.DropdownlistTahunLaporan());
                DropDownListTahun.SelectedValue = DateTime.Now.Year.ToString();

                LoadNeraca(db);
            }
        }
    }