示例#1
0
 private void GetIssueHeadsandItemsForDropDowns()
 {
     dst = ReceiveItemsNewLogic.RetrieveAllItems();
     //second table contains the items names
     dtItems = dst.Tables["Items"];
     // dtIssueHead = dst.Tables["itemRatesSecondery"];
     // dtRate = dst.Tables["IT2"];
 }
示例#2
0
        protected void ddlIssueHead_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (ddlIssueHead.SelectedValue != "")
            {
                ddlChargeableHead.Enabled = true;
                gvItems.Enabled           = true;


                ddlChargeableHead.DataSource     = ReceiveItemsNewLogic.RetrieveCorrespondingActiveChargeableHeads(Convert.ToInt32(ddlIssueHead.SelectedValue));
                ddlChargeableHead.DataValueField = "CHARGEABLEHEADID";
                ddlChargeableHead.DataTextField  = "CHARGEABLEHEADNAME";
                ddlChargeableHead.DataBind();
                ddlChargeableHead.Items.Insert(0, new ListItem("--Select Chargeable Head--", ""));

                ReceivedItemsLogic.RetrieveActiveIssueHeadsAndActiveItemsSeperatelyOnIssueItemChanged(ddlIssueHead.SelectedValue);
            }
            else
            {
                ddlChargeableHead.Enabled = false;
                gvItems.Enabled           = false;
            }
        }