Esempio n. 1
0
        private void DeleteDeliveryOrder(Int64 doId)
        {
            string message = DOBLL.DeleteDeliveryOrder(doId);

            LoadDeliveryOrder();
            ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", "<script>javascript:void alert('" + message + "');</script>", false);
        }
Esempio n. 2
0
        private void LeaseYard()
        {
            int YardID = DOBLL.GetLeaseYard(ddlLease.SelectedValue.ToInt());

            ddlYard.SelectedValue = YardID.ToString();
            LoadContainerList();
        }
Esempio n. 3
0
        private void PopulateBookingNo(int Loc, int Line)
        {
            DataTable dt = DOBLL.GetBookingList(Loc, Line);

            if (!ReferenceEquals(dt, null))
            {
                ddlBooking.DataValueField = "BookingId";
                ddlBooking.DataTextField  = "BookingNo";
                ddlBooking.DataSource     = dt;
                ddlBooking.DataBind();
                ddlBooking.Items.Insert(0, new ListItem(Constants.DROPDOWNLIST_DEFAULT_TEXT, Constants.DROPDOWNLIST_DEFAULT_VALUE));
            }
        }
Esempio n. 4
0
        private void PopulateLease()
        {
            //DataTable dt = DOBLL.GetEmptyYard(_userId);
            DataTable dt = DOBLL.GetPendingLease(ddlLocation.SelectedValue.ToInt(), ddlNVOCC.SelectedValue.ToInt());

            if (!ReferenceEquals(dt, null))
            {
                ddlLease.DataValueField = "fk_LeaseId";
                ddlLease.DataTextField  = "LeaseNo";
                ddlLease.DataSource     = dt;
                ddlLease.DataBind();
                ddlLease.Items.Insert(0, new ListItem(Constants.DROPDOWNLIST_DEFAULT_TEXT, Constants.DROPDOWNLIST_DEFAULT_VALUE));
            }
        }
Esempio n. 5
0
        private void PopulateEmptyYard()
        {
            //DataTable dt = DOBLL.GetEmptyYard(_userId);
            DataTable dt = DOBLL.GetEmptyYard(ddlBooking.SelectedValue.ToInt());

            if (!ReferenceEquals(dt, null))
            {
                ddlYard.DataValueField = "AddrId";
                ddlYard.DataTextField  = "AddrName";
                ddlYard.DataSource     = dt;
                ddlYard.DataBind();
                ddlYard.Items.Insert(0, new ListItem(Constants.DROPDOWNLIST_DEFAULT_TEXT, Constants.DROPDOWNLIST_DEFAULT_VALUE));
            }
        }
Esempio n. 6
0
        private void DoSave(IDeliveryOrder deliveryOrder, List <DeliveryOrderContainerEntity> lstContainer)
        {
            string message = string.Empty;

            if (DOBLL.ValidateContainer(lstContainer, out message))
            {
                message           = DOBLL.SaveDeliveryOrder(deliveryOrder, lstContainer, _userId);
                ViewState["DOId"] = deliveryOrder.DeliveryOrderId;
                GeneralFunctions.RegisterAlertScript(this, message);
            }
            else
            {
                GeneralFunctions.RegisterAlertScript(this, message);
            }
        }
Esempio n. 7
0
        private void LoadContainerList()
        {
            Int64 bookingId   = Convert.ToInt64(ddlBooking.SelectedValue);
            Int32 emptyYardId = Convert.ToInt32(ddlYard.SelectedValue);
            Int32 LeaseNo     = (rdoStockLease.SelectedIndex == 0) ? 0 : ddlLease.SelectedValue.ToInt();

            if (bookingId > 0 && emptyYardId > 0)
            {
                List <IDeliveryOrderContainer> lstCntr = DOBLL.GetDeliveryOrderContriner(bookingId, emptyYardId, rdoStockLease.SelectedIndex, LeaseNo);

                gvwList.DataSource = lstCntr;
                gvwList.DataBind();
            }
            else
            {
                List <IDeliveryOrderContainer> lstCntr = new List <IDeliveryOrderContainer>();

                gvwList.DataSource = lstCntr;
                gvwList.DataBind();
            }
        }
Esempio n. 8
0
        private void LoadDeliveryOrder()
        {
            if (!ReferenceEquals(Session[Constants.SESSION_SEARCH_CRITERIA], null))
            {
                SearchCriteria searchCriteria = (SearchCriteria)Session[Constants.SESSION_SEARCH_CRITERIA];

                if (!ReferenceEquals(searchCriteria, null))
                {
                    BuildSearchCriteria(searchCriteria);
                    CommonBLL commonBll = new CommonBLL();

                    gvwList.PageIndex = searchCriteria.PageIndex;
                    if (searchCriteria.PageSize > 0)
                    {
                        gvwList.PageSize = searchCriteria.PageSize;
                    }

                    gvwList.DataSource = DOBLL.GetDeliveryOrder(searchCriteria, _userId);
                    gvwList.DataBind();
                }
            }
        }