Exemplo n.º 1
0
        private void GetDetailsById(int rackId)
        {
            rack         = new Rack();
            purchaseData = new PurchaseData();
            DataSet DS = new DataSet();

            rack.RackId   = rackId;
            rack.Flag     = 2; //get by id
            rack.RackName = string.Empty;
            //rack.Description = string.Empty;
            DS = purchaseData.GetRackList(rack);
            if (!Comman.Comman.IsDataSetEmpty(DS))
            {
                txtRackName.Text = DS.Tables[0].Rows[0]["RackName"].ToString();
                dpIsActive.ClearSelection();
                if (DS.Tables[0].Rows[0]["IsActive"].ToString() == "True")
                {
                    dpIsActive.Items.FindByValue("1").Selected = true;
                }
                else
                {
                    dpIsActive.Items.FindByValue("2").Selected = true;
                }


                btnUpdate.Visible = true;
                btnSubmit.Visible = false;
                upModal.Update();
            }
        }
Exemplo n.º 2
0
        private void loadListBox(string rackid)
        {
            DS = new DataSet();

            DS = BindCommanData.BindCommanDropDwon("RackSectionId", "RackSectionName as Name", "Prchs_RackSections", "RackId =" + rackid);
            if (!Comman.Comman.IsDataSetEmpty(DS))
            {
                lbSection.DataSource = DS;

                lbSection.DataBind();
                //dpSection.Items.Insert(0, new ListItem("--Select Section--", "0"));
            }

            Rack rack = new Rack();

            purchaseData  = new PurchaseData();
            rack.RackId   = Convert.ToInt32(rackid);
            rack.RackName = string.Empty;
            rack.Flag     = 10; //Get assigned sections by rackid
            DS            = purchaseData.GetRackList(rack);
            if (!Comman.Comman.IsDataSetEmpty(DS))
            {
                lblAssignedSecs.Text = "Assigned Sections : " + DS.Tables[0].Rows[0]["SecNames"].ToString();
            }
        }
Exemplo n.º 3
0
        private void GetList()
        {
            rack         = new Rack();
            purchaseData = new PurchaseData();
            DataSet DS = new DataSet();

            rack.Flag     = 0; //Select *
            rack.RackName = string.Empty;
            //rack.Description = string.Empty;
            DS = purchaseData.GetRackList(rack);

            if (!Comman.Comman.IsDataSetEmpty(DS))
            {
                rpBrandInfo.DataSource = DS;
                rpBrandInfo.DataBind();
            }
        }