protected void Page_Load(object sender, EventArgs e) { UserAccessValidation(); if (!IsPostBack) { // first check for supplier's log-in if (!string.IsNullOrWhiteSpace(Convert.ToString(Session["SUPPCODE"]))) { btnReworkToSupplier.Visible = false; btnRecallContract.Visible = false; } BLL_Infra_Currency objCurr = new BLL_Infra_Currency(); DDLCurrency.DataTextField = "Currency_Code"; DDLCurrency.DataValueField = "Currency_ID"; DDLCurrency.DataSource = objCurr.Get_CurrencyList(); DDLCurrency.DataBind(); ListItem lis = new ListItem("Select", "0"); DDLCurrency.Items.Insert(0, lis); DDLCurrency.SelectedIndex = 0; BindContractInfo(); BindDataItems(); BindFieldsAfterSave(); } }
protected void Page_Load(object sender, EventArgs e) { lblerrorMsg.Visible = false; try { lblSeamanStatus.Text = UDFLib.ConvertStringToNull(Request.QueryString["IsSeaman"]) != null ? "SEAMAN TICKET" : "NOT A SEAMAN TICKET"; lblSeamanStatus.ForeColor = UDFLib.ConvertStringToNull(Request.QueryString["IsSeaman"]) != null ? System.Drawing.Color.Blue : System.Drawing.Color.Red; if (Request.QueryString["RequestID"] != null) { RequestID = Convert.ToInt32(Request.QueryString["RequestID"].ToString()); } else { Response.Write("<center style='color:red;'>REQUEST_ID_ERROR<br />There is an error while displaying this page, Please contact XT for more information.</center>"); Response.End(); } AgentID = Convert.ToInt32(Request.QueryString["SUPPLIER_ID"]); if (!Page.IsPostBack) { for (int time = 0; time < 24; time++) { cmbHours.Items.Add(new ListItem((time < 10) ? "0" + time.ToString() : time.ToString(), time.ToString())); } for (int mins = 0; mins < 60; mins++) { cmbMins.Items.Add(new ListItem((mins < 10) ? "0" + mins.ToString() : mins.ToString(), mins.ToString())); } BLL_Infra_Currency objCurr = new BLL_Infra_Currency(); cmbCurrency.DataTextField = "Currency_Code"; cmbCurrency.DataValueField = "Currency_Code"; cmbCurrency.DataSource = objCurr.Get_CurrencyList(); cmbCurrency.DataBind(); ListItem lis = new ListItem("-Select Currency-", ""); cmbCurrency.Items.Insert(0, lis); if (!string.IsNullOrEmpty(Request.QueryString["QuoteID"])) { Bind_Quote_Details(); } else { cmbCurrency.SelectedValue = Request.QueryString["currency"]; MakeFlightList(); } } } catch { } }
protected void Page_Load(object sender, EventArgs e) { UserAccessValidation(); try { if (string.IsNullOrWhiteSpace(Request.QueryString["SUPPLIER_ID"])) { Response.Redirect("RequestListAgent.aspx"); } RequestID = Convert.ToInt32(Request.QueryString["RequestID"]); AgentID = Convert.ToInt32(Request.QueryString["SUPPLIER_ID"]); if (!IsPostBack) { ViewState["SUPPCURRENCY"] = null; GetTravelReqeustByID(); GetQuotations(); ltRequest.Text = "Requisition No. " + RequestID.ToString(); BLL_Infra_Currency objCurr = new BLL_Infra_Currency(); cmbCurrency.DataTextField = "Currency_Code"; cmbCurrency.DataValueField = "Currency_Code"; cmbCurrency.DataSource = objCurr.Get_CurrencyList(); cmbCurrency.DataBind(); ListItem lis = new ListItem("-Select Currency-", ""); cmbCurrency.Items.Insert(0, lis); //cmbCurrency.SelectedIndex = 0; if (ViewState["SUPPCURRENCY"].ToString() != "" || ViewState["SUPPCURRENCY"] != null) { cmbCurrency.SelectedValue = ViewState["SUPPCURRENCY"].ToString(); } for (int time = 0; time < 24; time++) { cmbArrHours.Items.Add(new ListItem((time < 10) ? "0" + time.ToString() : time.ToString(), time.ToString())); cmbDepHours.Items.Add(new ListItem((time < 10) ? "0" + time.ToString() : time.ToString(), time.ToString())); cmbHours.Items.Add(new ListItem((time < 10) ? "0" + time.ToString() : time.ToString(), time.ToString())); } for (int mins = 0; mins < 60; mins += 5) { cmbMins.Items.Add(new ListItem((mins < 10) ? "0" + mins.ToString() : mins.ToString(), mins.ToString())); cmbDepMins.Items.Add(new ListItem((mins < 10) ? "0" + mins.ToString() : mins.ToString(), mins.ToString())); cmbArrMins.Items.Add(new ListItem((mins < 10) ? "0" + mins.ToString() : mins.ToString(), mins.ToString())); } } CurrentStatus = Convert.ToString(ViewState["CurrentStatus"]); } catch { } }
protected void BindCurrencyDLL() { BLL_Infra_Currency objBLLCurrency = new BLL_Infra_Currency(); DataTable dt = objBLLCurrency.Get_CurrencyList(); ddlCurrency.DataSource = dt; ddlCurrency.DataTextField = "Currency_Code"; ddlCurrency.DataValueField = "Currency_Code"; ddlCurrency.DataBind(); ddlCurrency.Items.Insert(0, new ListItem("-SELECT-", "0")); }
protected void Load_Currency_List() { BLL_Infra_Currency objCurr = new BLL_Infra_Currency(); DataTable dtCurr = objCurr.Get_CurrencyList(); ddlLocalCurr.DataSource = dtCurr; ddlLocalCurr.DataTextField = "Currency_Code"; ddlLocalCurr.DataValueField = "Currency_ID"; ddlLocalCurr.DataBind(); ddlLocalCurr.Items.Insert(0, new ListItem("- SELECT -", "0")); }
protected void FillDDLs() { BLL_Infra_Currency objCurr = new BLL_Infra_Currency(); DDLCurrency.DataTextField = "Currency_Code"; DDLCurrency.DataValueField = "Currency_ID"; DDLCurrency.DataSource = objCurr.Get_CurrencyList(); DDLCurrency.DataBind(); ListItem lis = new ListItem("Select", "0"); DDLCurrency.Items.Insert(0, lis); DDLCurrency.SelectedIndex = 0; ddlHub.DataTextField = "Description"; ddlHub.DataValueField = "code"; ddlHub.DataSource = BLL_PURC_LOG.Get_Log_Hub_List(); ddlHub.DataBind(); ListItem lisHub = new ListItem("Select", "0"); ddlHub.Items.Insert(0, lisHub); ddlHub.SelectedIndex = 0; BLL_PURC_Purchase objport = new BLL_PURC_Purchase(); DataTable dt = objport.SelectSupplier(); dt.DefaultView.RowFilter = " SUPPLIER_CATEGORY in ('A','S') and ASL_Status in ('Approve','Conditional') "; ddlAgentFord.DataTextField = "SUPPLIER_NAME"; ddlAgentFord.DataValueField = "SUPPLIER"; ddlAgentFord.DataSource = dt.DefaultView.ToTable(); ddlAgentFord.DataBind(); ddlAgentFord.Items.Insert(0, new ListItem("SELECT", "0")); ddlAgentFord.SelectedIndex = 0; //BLL_Infra_Port objBLLPort = new BLL_Infra_Port(); //ctlPortList1.DataTextField = "Port_Name"; //ctlPortList1.DataValueField = "Port_ID"; //ctlPortList1.DataSource = objBLLPort.Get_PortList_Mini(); //ctlPortList1.DataBind(); //ctlPortList1.Items.Insert(0, new ListItem("SELECT", "0")); //ctlPortList1.SelectedIndex = 0; }
protected void Page_Load(object sender, EventArgs e) { try { ViewState["STATUS"] = ""; if (!IsPostBack) { GetInvoices(""); BLL_Infra_Currency objCurr = new BLL_Infra_Currency(); cmbCurrency.DataTextField = "Currency_Code"; cmbCurrency.DataValueField = "Currency_Code"; cmbCurrency.DataSource = objCurr.Get_CurrencyList(); cmbCurrency.DataBind(); ListItem lis = new ListItem("-Select Currency-", ""); cmbCurrency.Items.Insert(0, lis); } } catch { } }