Exemple #1
0
        /// <summary>
        ///     页面初始化
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //SetPermissionButtons(Toolbar1);

                Timer1.Enabled = true;

                dateBegin.SelectedDate = DateTime.Now;

                dateEnd.SelectedDate = DateTime.Now;

                //单据状态
                //GasHelper.DropDownListBillStatusDataBind(ddlFBill);

                //GasHelper.DropDownListDistributionPointDataBind(ddlFDistributionPoint); //作业区

                //物流公司
                GasHelper.DropDownListLogisticsDataBind(ddlLogistics);

                GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod);

                GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

                //btnResase.ConfirmText = "确认要重新配车吗?";

                BindDataGrid();

                BindDataDispatchCenterGrid();//调度作业
            }
        }
Exemple #2
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            ViewState["_AppendToEnd"] = true;

            txtFDate.SelectedDate = DateTime.Now;

            //调度员
            GasHelper.DropDownListDispatcherDataBind(ddlDispatcher);

            //物流公司
            GasHelper.DropDownListLogisticsDataBind(ddlLogistics);
        }
Exemple #3
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHidePostBackReference();

            //GasHelper.DropDownListDriverDataBind(ddlFDriver);
            //GasHelper.DropDownListSupercargoDataBind(ddlFSupercargo);
            //GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

            GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod);

            //物流公司
            GasHelper.DropDownListLogisticsDataBind(ddlLogistics);

            GasHelper.DropDownListDistributionPointDataBind(ddlFrom);

            GasHelper.DropDownListDistributionPointDataBind(ddlTo);

            dptBeginDate.SelectedDate = DateTime.Now;

            dptEnd.SelectedDate = DateTime.Now;

            dpBeginTime.SelectedDate = DateTime.Now;

            string logistic = ddlLogistics.SelectedValue;

            //车
            ddlFVehicleNum.DataSource =
                VehicleService.Where(p => p.FLogistics == logistic && p.FCompanyId == CurrentUser.AccountComId && p.FISMain == "是");
            ddlFVehicleNum.DataBind();
            ddlFVehicleNum.Items.Insert(0, new ListItem(@"", "-1"));

            //挂车
            ddlFTrailerPlate.DataSource =
                VehicleService.Where(p => p.FLogistics == logistic && p.FCompanyId == CurrentUser.AccountComId && p.FISMain == "否");
            ddlFTrailerPlate.DataBind();
            ddlFTrailerPlate.Items.Insert(0, new ListItem(@"", "-1"));

            //司机
            ddlFDriver.DataSource =//p.FLogistics == logistic &&
                                    EmployeeService.Where(p => p.deleteflag == 0 && p.FCompanyId == CurrentUser.AccountComId &&//
                                                          p.professional.Contains("司机"));
            ddlFDriver.DataBind();
            ddlFDriver.Items.Insert(0, new ListItem(@"", "-1"));

            //押运员
            ddlFSupercargo.DataSource =//p.FLogistics == logistic &&
                                        EmployeeService.Where(p => p.deleteflag == 0 && p.FCompanyId == CurrentUser.AccountComId && //
                                                              p.professional.Contains("押运员"));
            ddlFSupercargo.DataBind();
            ddlFSupercargo.Items.Insert(0, new ListItem(@"", "-1"));
        }