Exemple #1
0
 protected void InitData()
 {
     tbxFCustomer.OnClientTriggerClick = Window2.GetSaveStateReference(txtFCode.ClientID, tbxFCustomer.ClientID)
                                         + Window2.GetShowReference("../../Common/WinCustomer.aspx");
     GasHelper.DropDownListDistributionPointDataBind(ddlFDistributionPoint); //作业区
     GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod);
 }
Exemple #2
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 #3
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            txtCreateBy.Text = CurrentUser.AccountName;

            tbxFCustomer.OnClientTriggerClick = Window2.GetSaveStateReference(txtFCode.ClientID, tbxFCustomer.ClientID)
                                                + Window2.GetShowReference("../../Common/WinSupplier.aspx");

            txtFAddress.OnClientTriggerClick = Window3.GetSaveStateReference(txtFAddress.ClientID)
                                               + Window3.GetShowReference(string.Format(@"../../Common/WinCustomerLink.aspx"));

            GasHelper.DropDownListDriverDataBind(ddlFDriver);

            GasHelper.DropDownListShipperDataBind(ddlFShipper);

            GasHelper.DropDownListSupercargoDataBind(ddlFSupercargo);

            GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

            GasHelper.DropDownListAreasDataBind(ddlFArea);

            GasHelper.DropDownListSalesmanDataBind(ddlFSalesman);

            GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod);

            GasHelper.DropDownListLiquidDataBind(tbxFItemName);

            txtFDate.SelectedDate = DateTime.Now;

            txtFFreight.Text = "0.00";
        }
Exemple #4
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            ViewState["_AppendToEnd"] = true;

            txtCreateBy.Text = CurrentUser.AccountName;

            tbxFItemCode.OnClientTriggerClick = Window1.GetSaveStateReference(tbxFItemCode.ClientID)
                                                + Window1.GetShowReference("../../Common/WinBottle.aspx");

            tbxFCustomer.OnClientTriggerClick = Window2.GetSaveStateReference(txtFCode.ClientID, tbxFCustomer.ClientID, hfdCate.ClientID)
                                                + Window2.GetShowReference("../../Common/WinUnit.aspx");

            txtFAddress.OnClientTriggerClick = Window3.GetSaveStateReference(txtFAddress.ClientID)
                                               + Window3.GetShowReference(string.Format(@"../../Common/WinCustomerLink.aspx"));

            GasHelper.DropDownListDriverDataBind(ddlFDriver);

            GasHelper.DropDownListShipperDataBind(ddlFShipper);

            GasHelper.DropDownListSupercargoDataBind(ddlFSupercargo);

            //GasHelper.DropDownListBottleDataBind(tbxFBottle);

            GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

            GasHelper.DropDownListAreasDataBind(ddlFArea);

            GasHelper.DropDownListSalesmanDataBind(ddlFSalesman);

            GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod);

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

            //删除选中单元格的客户端脚本
            string deleteScript = DeleteScript();

            //新增
            var defaultObj = new JObject
            {
                { "FItemCode", "" },
                { "FItemName", "" },
                { "FSpec", "" },
                { "FUnit", "" },
                { "FPrice", "" },
                { "FQty", "0" },
                { "FBottleQty", "0" },
                { "FBottleOweQty", "0" },
                { "FCateName", "" },
                { "colDelete", String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",//
                                             deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete)) },
            };

            // 在第一行新增一条数据
            btnAdd.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd);

            //btnClose.OnClientClick = ActiveWindow.GetHidePostBackReference();

            txtFDate.SelectedDate = DateTime.Now;
        }
Exemple #5
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"));
        }
Exemple #6
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            ViewState["_AppendToEnd"] = true;

            txtCreateBy.Text = CurrentUser.AccountName;

            tbxFItemCode.OnClientTriggerClick = Window1.GetSaveStateReference(tbxFItemCode.ClientID)
                                                + Window1.GetShowReference("../../Common/WinProduct.aspx");

            tbxFCustomer.OnClientTriggerClick = Window2.GetSaveStateReference(txtFCode.ClientID, tbxFCustomer.ClientID)
                                                + Window2.GetShowReference("../../Common/WinSupplier.aspx");

            tbxFLogisticsNumber.OnClientTriggerClick = Window2.GetSaveStateReference(tbxFLogisticsNumber.ClientID)
                                                       + Window2.GetShowReference("../../Common/WinTask.aspx?FType=45");

            GasHelper.DropDownListDriverDataBind(ddlFDriver);

            GasHelper.DropDownListShipperDataBind(ddlFShipper);

            GasHelper.DropDownListSupercargoDataBind(ddlFSupercargo);

            GasHelper.DropDownListBottleDataBind(tbxFBottle);

            GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

            GasHelper.DropDownListAreasDataBind(ddlFArea);

            GasHelper.DropDownListSalesmanDataBind(ddlFSalesman);

            GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod);

            GasHelper.DropDownListBankSubjectDataBind(ddlSubject);

            GasHelper.DropDownListDataBindPurchaseType(ddlFT6PurchaseType);

            GasHelper.DropDownListDataBindReceiveSendType(ddlT6ReceiveSendType);

            GasHelper.DropDownListWarehouseDataBind(tbxFWarehouse);

            GasHelper.DropDownListDataBindCurrencyType(ddlFT6Currency);

            GasHelper.DropDownListWarehouseDataBind(ddlWarehouse);

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

            //删除选中单元格的客户端脚本
            string deleteScript = DeleteScript();

            //新增
            var defaultObj = new JObject
            {
                { "FItemCode", "" },
                { "FItemName", "" },
                { "FSpec", "" },
                { "FUnit", "" },
                { "FPrice", "" },
                { "FQty", "0" },
                { "FAmount", "0" },
                { "FBottleQty", "0" },
                { "FBottleOweQty", "0" },
                { "FCateName", "" },
                { "colDelete", String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",//
                                             deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete)) },
            };

            // 在第一行新增一条数据
            btnAdd.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd);

            txtFDate.SelectedDate = DateTime.Now;
            txtFFreight.Text      = "0.00";
        }
Exemple #7
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            txtCreateBy.Text = CurrentUser.AccountName;

            tbxFCustomer.OnClientTriggerClick = Window2.GetSaveStateReference(txtFCode.ClientID, tbxFCustomer.ClientID)
                                                + Window2.GetShowReference("../../Common/WinSupplier.aspx");

            //tbxFItemCode.OnClientTriggerClick = Window1.GetSaveStateReference(tbxFItemCode.ClientID)
            //        + Window1.GetShowReference("../../Common/WinProduct.aspx");

            //tbxFName.OnClientTriggerClick = Window2.GetSaveStateReference(hfdCode.ClientID, tbxFName.ClientID)
            //        + Window2.GetShowReference("../../Common/WinCustomer.aspx");

            //txtFAddress.OnClientTriggerClick = Window3.GetSaveStateReference(txtFAddress.ClientID)
            //        + Window3.GetShowReference(string.Format(@"../../Common/WinCustomerLink.aspx"));

            tbxFBottle.OnClientTriggerClick = Window1.GetSaveStateReference(tbxFBottle.ClientID, hfdSpec.ClientID)
                                              + Window1.GetShowReference("../../Common/WinBottleToGas.aspx");

            GasHelper.DropDownListDriverDataBind(ddlFDriver);

            GasHelper.DropDownListShipperDataBind(ddlFShipper);

            GasHelper.DropDownListSupercargoDataBind(ddlFSupercargo);

            //GasHelper.DropDownListBottleDataBind(tbxFBottle);

            GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

            GasHelper.DropDownListAreasDataBind(ddlFArea);

            GasHelper.DropDownListSalesmanDataBind(ddlFSalesman);

            GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod);

            GasHelper.DropDownListBankSubjectDataBind(ddlSubject);

            //删除选中单元格的客户端脚本
            string deleteScript = DeleteScript();

            ////新增
            //var defaultObj = new JObject
            //{
            //    {"FItemCode", ""},
            //    {"FItemName", ""},
            //    {"FSpec", ""},
            //    {"FUnit", ""},
            //    {"FPrice", ""},
            //    {"FQty", "0"},
            //    {"FAmount", "0"},
            //    {"FBottleQty", "0"},
            //    {"FBottleOweQty", "0"},
            //    {"FCateName", ""},
            //    {"colDelete", String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",//
            //        deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete))},
            //};

            //// 在第一行新增一条数据
            //btnAdd.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, AppendToEnd);

            txtFDate.SelectedDate = DateTime.Now.AddDays(1);

            txtFFreight.Text = "0.00";
        }