Beispiel #1
0
        private void BindInbox()
        {
            Pricing.BLL.v_PriceSchedual inbox = new Pricing.BLL.v_PriceSchedual();
            inbox.GetAllPricingInboxForCompany(CodeGlobal.LogedInCompany.CompanyID, ui_txtDateFrom.Text, ui_txtDateTo.Text, int.Parse(ui_drpCommitteeType.SelectedValue), int.Parse(ui_drpStatus.SelectedValue), ui_txtTradeName.Text);

            uiGridViewInbox.DataSource = inbox.DefaultView;
            uiGridViewInbox.DataBind();
        }
        protected void ui_LB_Details_Click(object sender, EventArgs e)
        {
            uiPopupExtenderEdit1.Show();

            LinkButton lnBtn = (LinkButton)sender;
            v_PriceSchedual objData = new v_PriceSchedual();
            objData.SearchByTradeID(Int32.Parse(lnBtn.CommandArgument));

            ui_lb_TradeName.Text = objData.TradeName;
            ui_lb_CompPrice.Text = objData.CompanyPrice.ToString();
            ui_lb_SubmissionDate.Text = objData.SubmissionDate;
            ui_lb_Pack.Text = objData.Pack;
            ui_lb_FileNo.Text = objData.FileNo;
            ui_lb_GenericStr.Text = objData.GenericStrength;
            if (objData.FilePath != null)
            {
                ui_HL_File.Text = "  here";
                ui_HL_File.NavigateUrl = "~/Attachments/" + objData.TradePricingID.ToString() + "_" + objData.FilePath;
            }
            else
            {
                ui_HL_File.Text = "  No File Uploaded";
            }
            ui_lb_Generic.Text = objData.Generic;
            ui_lb_DosageForm.Text = objData.Dosage_form;
            ui_lb_CompName.Text = objData.CompNameEng;
            ui_lb_Status.Text = objData.Status;
            ui_lb_CommType.Text = objData.CommitteType;
            ui_lb_FileType.Text = objData.FileType;
            ui_lb_ManufactureName.Text = objData.ManufactureName;
        }