//Get invoice protected void ddlLocation_SelectedIndexChanged_Invoice(object sender, EventArgs e) { if (ddlLocation.SelectedIndex > 0) { Filler.FillData(ddlInvoice, CommonBLL.GetInvoiceByBLNo(ddlLocation.SelectedValue), "InvoiceNo", "InvoiceID", "Invoice"); } }
protected void ddlLine_SelectedIndexChanged(object sender, EventArgs e) { if (ddlLine.SelectedIndex > 0) { Filler.FillData(ddlLocation, CommonBLL.GetLine(ddlLine.SelectedValue), "ProspectName", "ProspectID", "Line"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Filler.FillData <ILocation>(ddlLine, new CommonBLL().GetActiveLocation(), "Name", "Id", "Location"); } }
protected void ddlVessle_SelectedIndexChanged(object sender, EventArgs e) { if (ddlVessel.SelectedIndex > 0) { Filler.FillData(ddlVoyage, BookingBLL.GetExportVoyages(Convert.ToInt32(ddlVessel.SelectedValue), ddlLine.SelectedValue.ToInt()).Tables[0], "VoyageNo", "VoyageID", "Voyage No"); } }
protected void ddlLine_SelectedIndexChanged(object sender, EventArgs e) { if (ddlLine.SelectedIndex > 0) { Filler.FillData(ddlVessel, CommonBLL.GetVessels(ddlLine.SelectedValue), "VesselName", "VesselID", "Vessel"); } }
protected void ddlVessel_SelectedIndexChanged(object sender, EventArgs e) { if (ddlVessel.SelectedIndex > 0) { Filler.FillData(ddlVoyage, CommonBLL.GetVoyages(ddlVessel.SelectedValue, ddlLine.SelectedValue), "VoyageNo", "VoyageID", "Voyage"); } }
protected void ddlVoyage_SelectedIndexChanged(object sender, EventArgs e) { if (ddlVoyage.SelectedIndex > 0) { Filler.FillData(ddlPOL, CommonBLL.GetExpPOL(ddlLoc.SelectedValue, ddlLine.SelectedValue, hdnVessel.Value, ddlVoyage.SelectedValue), "PortName", "PortID", "Port"); } }
protected void txtVessel_TextChanged(object sender, EventArgs e) { if (hdnVessel.Value.ToInt() > 0) { Filler.FillData(ddlVoyage, BookingBLL.GetExportVoyages(Convert.ToInt32(hdnVessel.Value), ddlLoc.SelectedValue.ToInt()).Tables[0], "VoyageNo", "VoyageID", "Voyage No"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Filler.FillData <ILocation>(ddlLine, new CommonBLL().GetActiveLocation(), "Name", "Id", "Location"); RequiredFieldValidator5.Enabled = false; } }
protected void txtVessel_TextChanged(object sender, EventArgs e) { ddlVoyage.Items.Clear(); if (txtVessel.Text == "") { hdnVessel.Value = "0"; } Filler.FillData(ddlVoyage, CommonBLL.GetExpVoyages(hdnVessel.Value.ToString(), ddlLoc.SelectedValue.ToString()), "VoyageNo", "VoyageID", "Voyage"); }
protected void ddlLocation_SelectedIndexChanged(object sender, EventArgs e) { var lng = ddlLine.SelectedValue.ToLong(); if (lng > 0) { Filler.FillData(ddlBlNo, CommonBLL.GetBLHeaderByBLNo(lng), "ImpLineBLNo", "ImpLineBLNo", "Bl. No."); } }
private void FillData() { Filler.FillData <ILocation>(ddlLine, new CommonBLL().GetActiveLocation(), "Name", "Id", "---Select---"); if (user.UserRole.Id != 2) { ddlLine.SelectedValue = user.UserLocation.Id.ToString(); } //Filler.FillData<IContainerType>(ddlEmptyYard, ); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Filler.FillData <ILocation>(ddlLine, new CommonBLL().GetActiveLocation(), "Name", "Id", "Location"); tr1.Visible = false; tr2.Visible = false; // GenerateReport(); } }
protected void ddlLocation_SelectedIndexChanged(object sender, EventArgs e) { var lng = ddlLine.SelectedValue.ToLong(); if (lng > 0) { // Filler.FillData(ddlBlNo, CommonBLL.GetBLHeaderByBLNo(lng), "ImpLineBLNo", "ImpLineBLNo", "Bl. No."); Filler.FillData(ddlVessel, new expVoyageBLL().GetVessels(), "VesselName", "pk_VesselID", "Vessel"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //btnReport_Click(sender, e); Filler.FillData <ILocation>(ddlLine, new CommonBLL().GetActiveLocation(), "Name", "Id", "Location"); Filler.FillData(ddlVessel, new expVoyageBLL().GetVessels(), "VesselName", "pk_VesselID", "Vessel"); } btnPrint.Visible = false; }
protected void ddlLine_SelectedIndexChanged(object sender, EventArgs e) { var lng = ddlLine.SelectedValue.ToLong(); if (ddlLine.SelectedIndex > 0) { Filler.FillData(ddlBlNo, CommonBLL.GetfwdBL(lng), "ExpBLNo", "ExpBLNo", "Bl. No."); //Filler.FillData(ddlLocation, CommonBLL.GetExpLine(ddlLine.SelectedValue), "ProspectName", "ProspectID", "Line"); } }
protected void ddlLocation_SelectedIndexChanged(object sender, EventArgs e) { var lng = ddlLine.SelectedValue.ToLong(); var lng1 = ddlLocation.SelectedValue.ToLong(); var lng2 = ddlVoyage.SelectedValue.ToLong(); if (lng > 0) { Filler.FillData(ddlBlNo, CommonBLL.GetExpBL(lng, lng1, lng2), "ExpBLNo", "ExpBLNo", "Bl. No."); } }
protected void ddlVoyage_SelectedIndexChanged(object sender, EventArgs e) { if (ddlVoyage.SelectedIndex > 0) { Filler.FillData(ddlBlNo, CommonBLL.GetBLNo(ddlLocation.SelectedValue, ddlVessel.SelectedValue, ddlVoyage.SelectedValue), "LineBLNo", "LineBLNo", "Bl. No."); if (ViewState["strReportName"].ToString().ToLower() == "cargoarrivalnotice") { ddlBlNo.Items.Insert(1, new ListItem("All", "All")); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //RetriveParameters(); //CheckUserAccess(); Filler.FillData(ddlLine, new DBInteraction().GetNVOCCLine(-1, "").Tables[0], "NVOCCName", "pk_NVOCCID", "--LINE--"); SetDeafaultSetting(); FillData(); } }
protected void ddlVessel_SelectedIndexChanged(object sender, EventArgs e) { if (ddlReportType.SelectedIndex == 1) { Filler.FillData(ddlVoyage, CommonBLL.GetVoyages(ddlVessel.SelectedValue, ddlLocation.SelectedValue), "VoyageNo", "VoyageID", "ALL"); RequiredFieldValidator5.Enabled = true; } else { RequiredFieldValidator5.Enabled = false; } }
private void SetDefault() { Filler.FillData <IContainerType>(ddlType, CommonBLL.GetContainerType(), "ContainerAbbr", "ContainerTypeID", "---Type---"); Filler.FillData <ILocation>(ddlLocation, new CommonBLL().GetActiveLocation(), "Name", "Id", "---Select---"); Filler.FillData(ddlLineCode, new DBInteraction().GetNVOCCLine(-1, "").Tables[0], "NVOCCName", "pk_NVOCCID", "---Select---"); Filler.GridDataBind(new List <IEqpOnHireContainer>(), gvwHire); rdTransactionType_SelectedIndexChanged(null, null); if (rdTransactionType.SelectedValue == "F") { txtContainerNo.TextChanged += txtContainerNo_TextChanged; ddlSize.Enabled = false; ddlType.Enabled = false; } }
protected void Page_Load(object sender, EventArgs e) { RetriveParameters(); //CheckUserAccess(); if (!IsPostBack) { PopulateControls(); } else { if (Convert.ToInt64(ddlVoyage.SelectedValue) == 0) { Int64 vesselId = GetSelectedVesselId(); Filler.FillData(ddlVoyage, CommonBLL.GetVoyages(vesselId.ToString(), ddlLine.SelectedValue.ToString()), "VoyageNo", "VoyageID", "Voyage"); } } }
private void SetDefault() { Filler.FillData <IContainerType>(ddlType, CommonBLL.GetContainerType(), "ContainerAbbr", "ContainerTypeID", "---Type---"); Filler.FillData(ddlTerm1, new DBInteraction().GetActiveOperator().Tables[0], "SlotOperatorName", "pk_SlotOperatorID", "---Select---"); Filler.FillData(ddlLineCode, new DBInteraction().GetNVOCCLine(-1, "").Tables[0], "NVOCCName", "pk_NVOCCID", "---Select---"); Filler.FillData(ddlTerm1, new DBInteraction().GetMovType().Tables[0], "MovTypeName", "pk_MovTypeID", "---Select---"); Filler.FillData(ddlTerm2, new DBInteraction().GetMovType().Tables[0], "MovTypeName", "pk_MovTypeID", "---Select---"); Filler.GridDataBind(new List <IEqpOnHireContainer>(), gvwSlot); //rdTransactionType_SelectedIndexChanged(null, null); //if (rdTransactionType.SelectedValue == "F") //{ // txtContainerNo.TextChanged += txtContainerNo_TextChanged; // ddlSize.Enabled = false; // ddlType.Enabled = false; //} }
protected void ddlLine_SelectedIndexChanged1(object sender, EventArgs e) { if (ddlLine.SelectedIndex > 0) { if (ViewState["strReportName"].ToString().ToLower() == "onoffhire") { Filler.FillData(ddlLocation, CommonBLL.GetLineForHire(ddlLine.SelectedValue), "ProspectName", "ProspectID", "Line"); } else { Filler.FillData(ddlLocation, CommonBLL.GetLine(ddlLine.SelectedValue), "ProspectName", "ProspectID", "Line"); if (ViewState["strReportName"].ToString().ToLower() == "collectionregister") { ddlLocation.Items.Insert(1, new ListItem("All", "All")); } } } }
private void SetDefault() { Filler.FillData <IContainerType>(ddlContainerType, CommonBLL.GetContainerType(), "ContainerAbbr", "ContainerTypeID", "--Container Type--"); Filler.FillData(ddlOperator, ExpSlotCostBLL.GetSlotOperatorList(new SearchCriteria() { StringParams = new List <string>() { "0", "", "", "" } }), "SlotOperatorName", "pk_SlotOperatorID", "--Operator--"); // Filler.FillData(ddlMovOrigin, ExpSlotCostBLL.GetMovementType(), "MovTypeName", "pk_MovTypeID", "--Movement Origin--"); //Filler.FillData(ddlMovDestination, ExpSlotCostBLL.GetMovementType(), "MovTypeName", "pk_MovTypeID", "--Movement Destination--"); Filler.FillData(ddlLineCode, new DBInteraction().GetNVOCCLine(-1, "").Tables[0], "NVOCCName", "pk_NVOCCID", "--Line--"); IList <SlotCost> lst = null; if (ViewState["SlotCostId"] != null) { var temp = ExpSlotCostBLL.GetSlotCost(Hid); if (temp != null) { txtLoadPort.Text = string.Empty; txtDestinationPort.Text = string.Empty; hdnLoadPort.Value = temp.Slot.PORTLOADING.ToString(); hdnDestinationPort.Value = temp.Slot.PORTDISCHARGE.ToString(); txtEffectiveDate.Text = temp.Slot.EFFECTIVEDATE.Value.ToShortDateString(); txtPodTerminal.Text = temp.Slot.PODTERMINAL; ddlOperator.SelectedValue = temp.Slot.OPERATOR.ToString(); ddlMovOrigin.SelectedValue = temp.Slot.MOVORIGIN.ToString(); //ddlMovDestination.SelectedValue = temp.Slot.MOVDESTINATION.ToString(); ddlLineCode.SelectedValue = temp.Slot.LINE.ToString(); txtLoadPort.Text = temp.Slot.PORTLOADINGNAME; txtDestinationPort.Text = temp.Slot.PORTDISCHARGENAME; GetSlotCost = temp.SlotCostList; lst = temp.SlotCostList; } } else { lst = new List <SlotCost>(); } Filler.GridDataBind(lst, gvwSlotCost); }
protected void ddlVessel_SelectedIndexChanged(object sender, EventArgs e) { if (ddlVessel.SelectedIndex > 0) { //if (1 == 1) //{ // tr1.Visible = true; // tr2.Visible = false; //} //else if (ddlVessel.SelectedIndex == 2) //{ // tr1.Visible = false; // tr2.Visible = true; //} Filler.FillData(ddlVoyage, BookingBLL.GetExportVoyages(Convert.ToInt32(ddlVessel.SelectedValue), ddlLine.SelectedValue.ToInt()).Tables[0], "VoyageNo", "VoyageID", "Voyage No"); } }
protected void ddlVoyBL_SelectedIndexChanged(object sender, EventArgs e) { var lng = ddlLine.SelectedValue.ToLong(); if (lng > 0) { if (ddlVoyBL.SelectedIndex == 1) { tr1.Visible = true; tr3.Visible = true; tr2.Visible = false; Filler.FillData(ddlVessel, new expVoyageBLL().GetVessels(), "VesselName", "pk_VesselID", "Vessel"); } else { tr1.Visible = false; tr3.Visible = false; tr2.Visible = true; Filler.FillData(ddlBLNo, CommonBLL.GetExpBLHeaderByBLNo(lng), "ExpBLNo", "ExpBLNo", "Bl. No."); } } }
protected void txtVessel_TextChanged(object sender, EventArgs e) { Filler.FillData(ddlVoyage, CommonBLL.GetExpVoyages(hdnVessel.Value.ToString(), ddlLoc.SelectedValue.ToString()), "VoyageNo", "VoyageID", "Voyage"); }
private void FillData() { Filler.FillData <ILocation>(ddlLine, new CommonBLL().GetActiveLocation(), "Name", "Id", "Location"); if (ViewState["strReportName"].ToString().ToLower() != "cargoarrivalnotice") { Filler.FillData <ILocation>(ddlLine, new CommonBLL().GetActiveLocation(), "Name", "Id", "Location"); } if (ViewState["strReportName"].ToString().ToLower() == "collectionregister") { ddlLine.Items.Insert(1, new ListItem("All", "All")); } switch (strReportName.ToLower()) { case "custom": litHeader.Text = "CUSTOM LETTER"; break; case "dropoff": litHeader.Text = " EMPTY DROP-OFF LETTER"; break; case "gang": litHeader.Text = "GANG LETTER"; break; case "surveyor": litHeader.Text = "SURVEYOR LETTER"; break; case "edeliveryorder": litHeader.Text = "EXAMINATION DELIVERY ORDER"; break; case "deliveryorder": litHeader.Text = "DELIVERY ORDER"; break; case "cargoarrivalnotice": litHeader.Text = "CARGO ARRIVAL NOTICE"; break; case "invoicedeveloper": litHeader.Text = "INVOICE"; break; case "creditnote": litHeader.Text = "CREDIT NOTE"; break; case "onoffhire": litHeader.Text = "ON/OFF REGISTER FROM"; break; case "pendingdelivaryorder": litHeader.Text = "PENDING DELIVERY ORDER"; break; case "collectionregister": litHeader.Text = "COLLECTION REGISTER"; break; case "crnregister": litHeader.Text = "CREDIT NOTE REGISTER"; break; //PendingDelivaryOrder default: strReportName = string.Empty; break; } if (user.UserRole.Id != 2) { ddlLine.SelectedValue = user.UserLocation.Id.ToString(); ddlLine.Enabled = false; strReportName = ViewState["strReportName"].ToString(); switch (strReportName.ToLower()) { case "cargoarrivalnotice": ddlLine_SelectedIndexChanged1(null, null); break; case "invoicedeveloper": ddlLocation_SelectedIndexChanged_Invoice(null, null); break; case "onoffhire": ddlLine_SelectedIndexChanged1(null, null); break; case "collectionregister": ddlLine_SelectedIndexChanged1(null, null); break; case "creditnote": ddlLocation_SelectedIndexChanged_Invoice(null, null); break; case "crnregister": ddlLine_SelectedIndexChanged1(null, null); break; default: ddlLine_SelectedIndexChanged(null, null); break; } } //Filler.FillData<IContainerType>(ddlEmptyYard, ); }