protected void Page_Load(object sender, EventArgs e) { Master.ChildPageTitle = "Tickets Managament"; if (!IsPostBack) { LoadDDl(); if (TicketID == 0) { Response.Redirect("~/capa/managetickets.aspx"); } else { Pricing.BLL.Tickets ticket = new Pricing.BLL.Tickets(); ticket.LoadByPrimaryKey(TicketID); if (ticket.RowCount == 0) Response.Redirect("~/capa/managetickets.aspx"); uiLabelRequestText.Text = ticket.TextRequest; if (!string.IsNullOrEmpty(ticket.TradeName)) uiLabelDrugName.Text = ticket.TradeName; else { Pricing.BLL.TradePricing drug = new Pricing.BLL.TradePricing(); drug.LoadByPrimaryKey(ticket.TradePricingID); uiLabelDrugName.Text = drug.TradeName; } if (!ticket.IsColumnNull("FileAttachement")) { if (!string.IsNullOrEmpty("FileAttachement")) { uiLiteralAttach.Text = "<a href='" + ticket.FileAttachement + "' class='btn btn-primary'>Check attachment</a>"; uiLiteralAttach.Visible = true; } else uiLiteralAttach.Visible = false; } else { uiLiteralAttach.Visible = false; } if (ticket.TicketStatusID == 4) { uiPanelResponse.Visible = false; } else { uiPanelResponse.Visible = true; } BindHistory(); } } lblCloseTicketValidation.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { LoadDDl(); if (TicketID == 0) { Response.Redirect("~/tickets.aspx"); } else { Pricing.BLL.Tickets ticket = new Pricing.BLL.Tickets(); ticket.LoadByPrimaryKey(TicketID); if(ticket.RowCount == 0) Response.Redirect("~/tickets.aspx"); uiLabelRequestText.Text = ticket.TextRequest; if (!string.IsNullOrEmpty(ticket.TradeName)) uiLabelDrugName.Text = ticket.TradeName; else { Pricing.BLL.TradePricing drug = new Pricing.BLL.TradePricing(); drug.LoadByPrimaryKey(ticket.TradePricingID); uiLabelDrugName.Text = drug.TradeName; } if (ticket.TicketStatusID == 4) { uiPanelResponse.Visible = true; } else { uiPanelResponse.Visible = false; } BindHistory(); } } }
protected void ui_LB_Assign_Click(object sender, EventArgs e) { LinkButton lnBtn = (LinkButton)sender; TradePricing objData = new TradePricing(); objData.LoadByPrimaryKey(Int32.Parse(lnBtn.CommandArgument)); foreach (GridViewRow row in ui_gvSearchResults.Rows) { if (row.RowType == DataControlRowType.DataRow) { LinkButton lnBtn2 = (LinkButton)row.FindControl("ui_LB_Assign"); if (lnBtn.CommandArgument == lnBtn2.CommandArgument) { objData.AssignedUserID = int.Parse(((DropDownList)row.FindControl("ui_ddlAssignedTo")).SelectedValue); objData.Save(); ui_lblDone.Text = "Assignation Done"; } } } SearchCases(); }
private void UpdatePricingStatus(int _PricingTradeID, int _currentStatus) { TradePricing obj = new TradePricing(); obj.LoadByPrimaryKey(_PricingTradeID); switch (_currentStatus) { case 1: // in case of we are in initial status obj.PricingStatusID = 2; obj.Save(); break; case 2: // in case of we are in Appointed Informed obj.PricingStatusID = 3; obj.Save(); break; case 3: // in case of we are in Price Informed obj.PricingStatusID = 4; obj.Save(); break; } }
private void ValidateAndBindStatus() { // Get Last status ID TradePricing obj = new TradePricing(); obj.LoadByPrimaryKey(TradePriceID); switch (obj.PricingStatusID) { case 3: //Reviw / Need More Info StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Need More Info / Complete", "4")); break; case 6: //Committee Price Informed StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Price Accepted ", "11")); ui_drpTradeStatus.Items.Add(new ListItem("Price Refused ", "12")); ui_drpTradeStatus.Items.Add(new ListItem("Need Discussion ", "13")); ui_drpTradeStatus.Items.Add(new ListItem("Price Review ", "14")); break; case 14: //Price Review StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Price Accepted ", "11")); ui_drpTradeStatus.Items.Add(new ListItem("Price Refused ", "12")); ui_drpTradeStatus.Items.Add(new ListItem("Need Discussion ", "13")); break; case 7: //Committee Postponded / Need More Info StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Committee Postponded / Need More Info / Complete", "10")); break; default: // In case of that the company couldn't change the status StatusHistoryEnable(false); break; } }
/// <summary> /// Update pricing request /// </summary> private void UpdatePricingRequest() { try { TradePricing objPricing = new TradePricing(); objPricing.LoadByPrimaryKey(TradePriceID); objPricing.CompanyID = Int32.Parse(ui_drpCompanies.SelectedValue); objPricing.ManufactureID = Int32.Parse(ui_drpManufactures.SelectedValue); objPricing.TradeName = ui_txtTradeName.Text; objPricing.SubmissionDate = ui_txtSubmissionDate.Text; objPricing.CompanyPrice = float.Parse(ui_txtPrice.Text); objPricing.DosageFormID = Int32.Parse(ui_drpDosageForm.SelectedValue); objPricing.RegistrationCommitteTypeID = Int32.Parse(ui_drpCommitteType.SelectedValue); objPricing.Pack = ui_txtPack.Text; objPricing.FileNo = ui_txtFileNo.Text; objPricing.FileTypeID = Int32.Parse(ui_drpFileType.SelectedValue); // objPricing.PricingStatusID = 1; objPricing.ImportedManufacture = ui_txtImportedManufacture.Text; //TODO: Save File to disk and save it's path. objPricing.Save(); // Save File. string savedFileName = SaveFile(objPricing.TradePricingID); objPricing.FilePath = savedFileName; objPricing.Save(); ShowUploadedFile(savedFileName, objPricing.TradePricingID); ui_lblResult.ForeColor = System.Drawing.Color.Green; ui_lblResult.Text = "The record updated successfully"; } catch { ui_lblResult.ForeColor = System.Drawing.Color.Red; ui_lblResult.Text = "Problem while saving the record"; } }
/// <summary> /// Saving new pricing request /// </summary> private void SavePricingRequest() { try { TradePricing objPricing = new TradePricing(); objPricing.AddNew(); objPricing.CompanyID = Int32.Parse(ui_drpCompanies.SelectedValue); objPricing.ManufactureID = Int32.Parse(ui_drpManufactures.SelectedValue); objPricing.TradeName = ui_txtTradeName.Text; objPricing.SubmissionDate = ui_txtSubmissionDate.Text; objPricing.CompanyPrice = float.Parse(ui_txtPrice.Text); objPricing.DosageFormID = Int32.Parse(ui_drpDosageForm.SelectedValue); objPricing.RegistrationCommitteTypeID = Int32.Parse(ui_drpCommitteType.SelectedValue); objPricing.Pack = ui_txtPack.Text; objPricing.FileNo = ui_txtFileNo.Text; objPricing.FileTypeID = Int32.Parse(ui_drpFileType.SelectedValue); objPricing.PricingStatusID = 1; objPricing.DiscussionDate = DateTime.Now.ToString(); // Update the status changes date . objPricing.ImportedManufacture = ui_txtImportedManufacture.Text; //TODO: Save File to disk and save it's path. objPricing.FilePath = ""; objPricing.Save(); // Save File. string savedFileName = SaveFile(objPricing.TradePricingID); objPricing.FilePath = savedFileName; objPricing.Save(); ShowUploadedFile(savedFileName, objPricing.TradePricingID); ui_lblResult.ForeColor = System.Drawing.Color.Green; ui_lblResult.Text = "The new record saved successfully"; // Insert Inistial Status record for the new rquest ( status = initiated ) //----------------------------------------------------------------------- StatusHistory objStatus = new StatusHistory(); objStatus.AddNew(); objStatus.PricingStatusID = 1; // Will be initiated by default. objStatus.StatusDate = DateTime.Now; objStatus.TradePricingID = objPricing.TradePricingID; objStatus.CurrentPrice = objPricing.CompanyPrice; objStatus.Save(); //-------------------------------------------------------------- //Response.Redirect("New_Request.aspx?ID=" + objPricing.TradePricingID + "&type=new#tab_1_2"); TradePriceID = objPricing.TradePricingID; InitializeUpdateMode(); } catch { ui_lblResult.ForeColor = System.Drawing.Color.Red; ui_lblResult.Text = "Problem while saving the new record"; } }
private void BindMainData() { TradePricing objPricing = new TradePricing(); objPricing.LoadByPrimaryKey(TradePriceID); ui_drpCompanies.SelectedValue = objPricing.s_CompanyID; ui_drpManufactures.SelectedValue = objPricing.s_ManufactureID; ui_txtTradeName.Text = objPricing.TradeName; ui_txtSubmissionDate.Text = objPricing.SubmissionDate; ui_txtPrice.Text = objPricing.s_CompanyPrice; ui_drpDosageForm.SelectedValue = objPricing.s_DosageFormID; ui_drpCommitteType.SelectedValue = objPricing.s_RegistrationCommitteTypeID; ui_txtPack.Text = objPricing.Pack; ui_txtFileNo.Text = objPricing.FileNo; ui_drpFileType.SelectedValue = objPricing.s_FileTypeID; ui_txtImportedManufacture.Text = objPricing.ImportedManufacture; }
private void AddNewStatusHistory() { StatusHistory objStatus = new StatusHistory(); objStatus.AddNew(); objStatus.PricingStatusID = int.Parse(ui_drpTradeStatus.SelectedValue); objStatus.StatusDate = DateTime.Now; objStatus.Comment = ui_txtStatusComment.Text; objStatus.TradePricingID = TradePriceID; objStatus.AttachementPath = ""; objStatus.Save(); // if file exist - save it with the current record if (ui_fileStatusUpload.HasFile) { objStatus.AttachementPath = SaveStatusFile(objStatus.StatusHistoryID); objStatus.Save(); } // Upate the Trade Pricing Record with the last status we have . TradePricing objTradePricing = new TradePricing(); objTradePricing.LoadByPrimaryKey(TradePriceID); objTradePricing.PricingStatusID = objStatus.PricingStatusID; objTradePricing.DiscussionDate = DateTime.Now.ToString(); // Record status change date. objTradePricing.Save(); }
private void ValidateAndBindStatus() { // Get Last status ID TradePricing obj = new TradePricing(); obj.LoadByPrimaryKey(TradePriceID); switch (obj.PricingStatusID) { case 1: //Initiated. case 4: // Need More Info / Complete StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Request Accepted", "2")); ui_drpTradeStatus.Items.Add(new ListItem("Reviw / Need More Info", "3")); tr_committee_1.Visible = false; tr_committee_2.Visible = false; break; case 2: //Request Accepted. case 10: // Committee Postponded / Need More Info / Complete case 13: // Need Discussion StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Committee Date Informed ", "5")); tr_committee_1.Visible = true; tr_committee_2.Visible = true; break; case 5: //Committee Date Informed StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Committee Price Informed ", "6")); ui_drpTradeStatus.Items.Add(new ListItem("Committee Postponded / Need More Info ", "7")); ui_drpTradeStatus.Items.Add(new ListItem("Committee Postponded / Studies ", "8")); ui_drpTradeStatus.Items.Add(new ListItem("Committee Product Transfered ", "9")); tr_committee_1.Visible = false; tr_committee_2.Visible = false; break; case 11: //Price Accepted StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Approved by the Minister", "15")); tr_committee_1.Visible = false; tr_committee_2.Visible = false; break; case 15: //Price Accepted StatusHistoryEnable(true); ui_drpTradeStatus.Items.Clear(); ui_drpTradeStatus.Items.Add(new ListItem("Choose Status", "-1")); ui_drpTradeStatus.Items.Add(new ListItem("Pricing Certificate Issued", "16")); tr_committee_1.Visible = false; tr_committee_2.Visible = false; break; default: // In case of that the company couldn't change the status StatusHistoryEnable(false); break; } }
/// <summary> /// Saving new pricing request /// </summary> private void SavePricingRequest() { try { TradePricing objPricing = new TradePricing(); objPricing.AddNew(); objPricing.CompanyID = Int32.Parse(ui_drpCompanies.SelectedValue); objPricing.ManufactureID = Int32.Parse(ui_drpManufactures.SelectedValue); objPricing.TradeName = ui_txtTradeName.Text; objPricing.SubmissionDate = ui_txtSubmissionDate.Text; objPricing.CompanyPrice = float.Parse(ui_txtPrice.Text); objPricing.DosageFormID = Int32.Parse(ui_drpDosageForm.SelectedValue); objPricing.RegistrationCommitteTypeID = Int32.Parse(ui_drpCommitteType.SelectedValue); objPricing.Pack = ui_txtPack.Text; objPricing.FileNo = ui_txtFileNo.Text; objPricing.FileTypeID = Int32.Parse(ui_drpFileType.SelectedValue); objPricing.PricingStatusID = 1; objPricing.DiscussionDate = DateTime.Now.ToString(); // Save the date of status changing. objPricing.ImportedManufacture = ui_txtImportedManufacture.Text; //TODO: Save File to disk and save it's path. objPricing.FilePath = ""; objPricing.Save(); // Save File. string savedFileName = SaveFile(objPricing.TradePricingID); objPricing.FilePath = savedFileName; objPricing.Save(); ShowUploadedFile(savedFileName, objPricing.TradePricingID); ui_lblResult.ForeColor = System.Drawing.Color.Green; ui_lblResult.Text = "The new record saved successfully"; Response.Redirect("TradeSearch.aspx?ID=" + objPricing.TradePricingID + "&type=new"); } catch { ui_lblResult.ForeColor = System.Drawing.Color.Red; ui_lblResult.Text = "Problem while saving the new record"; } }
private void SaveBeforeCommitte() { try { TradePricing objPricing = new TradePricing(); objPricing.LoadByPrimaryKey(TradePriceID); // before commitee if(uiDropDownListCommitterType_Before.SelectedValue != "-1") objPricing.RegistrationCommitteTypeID = Convert.ToInt32(uiDropDownListCommitterType_Before.SelectedValue); if (uiDropDownListStatusType.SelectedValue != "-1") objPricing.TradePricingStatusID = Convert.ToInt32(uiDropDownListStatusType.SelectedValue); if (uiDropDownListLicenseType.SelectedValue != "-1") objPricing.TradePricingLicenseTypeID = Convert.ToInt32(uiDropDownListLicenseType.SelectedValue); objPricing.RegNo = uiTextBoxBeforeRegNo.Text; objPricing.Reference = uiTextBoxReference.Text; objPricing.Indication = uiTextBoxIndication.Text; objPricing.Dose = uiTextBoxDose.Text; objPricing.SubmittedToSpecialized = uiCheckBoxSubmittedToSpecialized.Checked; objPricing.SalesTaxes = uiCheckBoxSalesTaxes.Checked; objPricing.EssentialDrugList = uiCheckBoxEssentialDrugList.Checked; objPricing.Save(); } catch { } }
private void SaveAfterCommitte() { try { TradePricing objPricing = new TradePricing(); objPricing.LoadByPrimaryKey(TradePriceID); // after commite if (uiDropDownListSectorType.SelectedValue != "-1") objPricing.SectorTypeID = Convert.ToInt32(uiDropDownListSectorType.SelectedValue); objPricing.RegNo = uiTextBoxRegNoAfter.Text; objPricing.CommitteePrice = uiTextBoxCommittePrice.Text; DateTime date; if (DateTime.TryParseExact(uiTextBoxCommitteDate.Text, "dd/MM/yyyy", null, System.Globalization.DateTimeStyles.None, out date)) objPricing.CommiteeDate = date; objPricing.CommitteePrice = uiTextBoxCommittePrice.Text; objPricing.RationalForPricing = uiTextBoxRationalForPricing.Text; if (!string.IsNullOrEmpty(uiTextBoxNoInBox.Text)) { int x = 0; int.TryParse(uiTextBoxNoInBox.Text, out x); objPricing.NoInBox = x; } objPricing.LowestIntPrice = uiTextBoxLowestIntPriceBrand.Text; objPricing.PriceInEgy = uiTextBoxBrandPriceInEgy.Text; objPricing.PriceAfter30 = uiTextBoxPriceAfter30.Text; objPricing.PriceAfter35HighTech = uiTextBoxPriceAfter35.Text; objPricing.PriceAfter35FirstGeneric = uiTextBoxPriceAfter35FirstGeneric.Text; objPricing.PriceAfter40SecondGeneric = uiTextBoxPriceAfter40ndGeneric.Text; objPricing.LowestPriceGeneric = uiTextBoxLowestPriceGeneric.Text; objPricing.FinalPrice = uiTextBoxFinalPrice.Text; objPricing.IsPricedTo499 = uiCheckBoxIsPricedTo499.Checked; objPricing.Notes = uiTextBoxNotes.Text; objPricing.MainGroup = uiTextBoxMainGroup.Text; objPricing.MonthYear = uiTextBoxMonth.Text; objPricing.Similar = uiCheckBoxSimilar.Checked; objPricing.PreviousPack = uiTextBoxPreviouspack.Text; objPricing.PreviousPrice = uiTextBoxPreviousPrice.Text; objPricing.Save(); } catch (Exception ex) { } }
private void BindMainData() { TradePricing objPricing = new TradePricing(); objPricing.LoadByPrimaryKey(TradePriceID); ui_drpCompanies.SelectedValue = objPricing.s_CompanyID; ui_drpManufactures.SelectedValue = objPricing.s_ManufactureID; ui_txtTradeName.Text = objPricing.TradeName; ui_txtSubmissionDate.Text = objPricing.SubmissionDate; ui_txtPrice.Text = objPricing.s_CompanyPrice; ui_drpDosageForm.SelectedValue = objPricing.s_DosageFormID; ui_drpCommitteType.SelectedValue = objPricing.s_RegistrationCommitteTypeID; ui_txtPack.Text = objPricing.Pack; ui_txtFileNo.Text = objPricing.FileNo; ui_drpFileType.SelectedValue = objPricing.s_FileTypeID; ui_txtImportedManufacture.Text = objPricing.ImportedManufacture; // before commitee if (!objPricing.IsColumnNull("RegistrationCommitteTypeID")) uiDropDownListCommitterType_Before.SelectedValue = objPricing.RegistrationCommitteTypeID.ToString(); if (!objPricing.IsColumnNull("TradePricingStatusID")) uiDropDownListStatusType.SelectedValue = objPricing.TradePricingStatusID.ToString(); if (!objPricing.IsColumnNull("TradePricingLicenseTypeID")) uiDropDownListLicenseType.SelectedValue = objPricing.TradePricingLicenseTypeID.ToString(); uiTextBoxBeforeRegNo.Text = objPricing.RegNo; uiTextBoxReference.Text = objPricing.Reference; uiTextBoxIndication.Text = objPricing.Indication; uiTextBoxDose.Text = objPricing.Dose; if(!objPricing.IsColumnNull("SubmittedToSpecialized")) uiCheckBoxSubmittedToSpecialized.Checked = objPricing.SubmittedToSpecialized; if (!objPricing.IsColumnNull("SalesTaxes")) uiCheckBoxSalesTaxes.Checked = objPricing.SalesTaxes; if (!objPricing.IsColumnNull("EssentialDrugList")) uiCheckBoxEssentialDrugList.Checked = objPricing.EssentialDrugList; // after commite if (!objPricing.IsColumnNull("SectorTypeID")) uiDropDownListSectorType.SelectedValue = objPricing.SectorTypeID.ToString(); uiTextBoxRegNoAfter.Text = objPricing.RegNo; uiTextBoxCommittePrice.Text = objPricing.CommitteePrice; if(!objPricing.IsColumnNull("CommiteeDate")) uiTextBoxCommitteDate.Text = objPricing.CommiteeDate.ToString("dd/MM/yyyy"); uiTextBoxCommittePrice.Text = objPricing.CommitteePrice ; uiTextBoxRationalForPricing.Text = objPricing.RationalForPricing ; if(!objPricing.IsColumnNull("NoInBox")) uiTextBoxNoInBox.Text = objPricing.NoInBox.ToString(); objPricing.LowestIntPrice = uiTextBoxLowestIntPriceBrand.Text; objPricing.PriceInEgy = uiTextBoxBrandPriceInEgy.Text; uiTextBoxPriceAfter30.Text = objPricing.PriceAfter30; uiTextBoxPriceAfter35.Text = objPricing.PriceAfter35HighTech; uiTextBoxPriceAfter35FirstGeneric.Text = objPricing.PriceAfter35FirstGeneric; uiTextBoxPriceAfter40ndGeneric.Text = objPricing.PriceAfter40SecondGeneric; uiTextBoxLowestPriceGeneric.Text = objPricing.LowestPriceGeneric; uiTextBoxFinalPrice.Text = objPricing.FinalPrice; if (!objPricing.IsColumnNull("IsPricedTo499")) uiCheckBoxIsPricedTo499.Checked = objPricing.IsPricedTo499; uiTextBoxNotes.Text = objPricing.Notes; uiTextBoxMainGroup.Text = objPricing.MainGroup; uiTextBoxMonth.Text = objPricing.MonthYear; if (!objPricing.IsColumnNull("Similar")) uiCheckBoxSimilar.Checked = objPricing.Similar; uiTextBoxPreviouspack.Text = objPricing.PreviousPack; uiTextBoxPreviousPrice.Text = objPricing.PreviousPrice; }
private void AddNewStatusHistory() { // condition added to solve refresh postback action if (Session["RefreshHit_Capa_ts"].ToString() == ViewState["RefreshHit_Capa_ts"].ToString()) { StatusHistory objStatus = new StatusHistory(); objStatus.AddNew(); objStatus.PricingStatusID = int.Parse(ui_drpTradeStatus.SelectedValue); objStatus.StatusDate = DateTime.Now; objStatus.Comment = ui_txtStatusComment.Text; objStatus.TradePricingID = TradePriceID; objStatus.AttachementPath = ""; if (ui_drpTradeStatus.SelectedValue == "5") { objStatus.CommitteeTypeID = int.Parse(ui_drpCommitteeTypes.SelectedValue); DateTime comDate = DateTime.Parse(ui_txtCommitteeDate.Text + " " + drpCommitteeHours.SelectedItem.Text + ":" + drpCommitteeMinutes.SelectedItem.Text + ":00"); objStatus.CommitteDate = comDate; } objStatus.Save(); // if file exist - save it with the current record if (ui_fileStatusUpload.HasFile) { objStatus.AttachementPath = SaveStatusFile(objStatus.StatusHistoryID); objStatus.Save(); } // Upate the Trade Pricing Record with the last status we have . TradePricing objTradePricing = new TradePricing(); objTradePricing.LoadByPrimaryKey(TradePriceID); objTradePricing.PricingStatusID = objStatus.PricingStatusID; objTradePricing.DiscussionDate = DateTime.Now.ToString(); objTradePricing.Save(); //solve refresh postback action Session["RefreshHit_Capa_ts"] = Server.UrlEncode(System.DateTime.Now.ToString()); } }
private void LoadDDls() { Pricing.BLL.TicketType types = new Pricing.BLL.TicketType(); types.LoadAll(); uiDropDownListType.DataSource = types.DefaultView; uiDropDownListType.DataTextField = Pricing.BLL.TicketType.ColumnNames.Name; uiDropDownListType.DataValueField = Pricing.BLL.TicketType.ColumnNames.TicketTypeID; uiDropDownListType.DataBind(); Pricing.BLL.TradePricing drugs = new Pricing.BLL.TradePricing(); drugs.LoadAll(); uiDropDownListDrugs.DataSource = drugs.DefaultView; uiDropDownListDrugs.DataTextField = Pricing.BLL.TradePricing.ColumnNames.TradeName; uiDropDownListDrugs.DataValueField = Pricing.BLL.TradePricing.ColumnNames.TradePricingID; uiDropDownListDrugs.DataBind(); uiDropDownListDrugs.Items.Insert(0, new ListItem("select drug...", "0")); }