示例#1
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";
        }
示例#2
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHidePostBackReference();

            GasHelper.DropDownListVehicleNumDataBind(tbxFVehicleNum);

            GasHelper.DropDownListLiquidDataBind(tbxFItemName);
        }
示例#3
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHidePostBackReference();

            GasHelper.DropDownListLiquidDataBind(tbxFItemName);

            GasHelper.DropDownListVehicleNumDataBind(tbxFVehicleNum);

            GasHelper.DropDownListDriverDataBind(tbxFDriver);

            GasHelper.DropDownListSupercargoDataBind(tbxFSupercargo);

            txtFDate.SelectedDate = DateTime.Now;
        }
示例#4
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            btnClose.OnClientClick = ActiveWindow.GetHidePostBackReference();

            GasHelper.DropDownListLiquidDataBind(tbxFItemName);

            GasHelper.DropDownListVehicleNumDataBind(tbxFVehicleNum);

            GasHelper.DropDownListDriverDataBind(tbxFDriver);

            GasHelper.DropDownListSupercargoDataBind(tbxFSupercargo);

            GasHelper.DropDownListSalesmanDataBind(ddlFSalesman);

            //GasHelper.DropDownListSupplierDataBind(tbxFSupplierName);

            //GasHelper.DropDownListCustomerDataBind(tbxFName1);

            //GasHelper.DropDownListCustomerDataBind(tbxFName2);

            //GasHelper.DropDownListCustomerDataBind(tbxFName3);

            tbxFSupplier.OnClientTriggerClick = Window1.GetSaveStateReference(txtFSupplierCode.ClientID, tbxFSupplier.ClientID)
                                                + Window1.GetShowReference("../../Common/WinSupplier.aspx");

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

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

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


            FDate1.SelectedDate = DateTime.Now;
            FDate2.SelectedDate = DateTime.Now;
            FDate3.SelectedDate = DateTime.Now;
        }
示例#5
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            GasHelper.DropDownListLiquidDataBind(tbxFItemName);

            GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

            GasHelper.DropDownListDriverDataBind(ddlFDriver);

            GasHelper.DropDownListSupercargoDataBind(ddlFSupercargo);

            GasHelper.DropDownListVehicleNumDataBind(tbxFVehicleNum);

            GasHelper.DropDownListSupercargoDataBind(tbxFSupercargo);

            GasHelper.DropDownListSupplierDataBind(ddlSuper);

            GasHelper.DropDownListSupplierDataBind(tbxFSupplierName);

            GasHelper.DropDownListCustomerDataBind(ddlCustomer);

            GasHelper.DropDownListLiquidDataBind(ddlFName);

            GasHelper.DropDownListCustomerDataBind(tbxFName1);

            GasHelper.DropDownListCustomerDataBind(tbxFName2);

            GasHelper.DropDownListCustomerDataBind(tbxFName3);


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

            //新增
            var defaultObj = new JObject
            {
                { "KeyId", "" },
                { "FDate", DateTime.Now.ToString("yyyy-MM-dd") },
                { "FItemName", "" },
                { "FBill", "进销" },
                { "FDriver", "" },
                { "FSupercargo", "" },
                { "FMargin", "0" },
                { "FPurchasedDate", "" },
                { "FSupplierName", "" },
                { "FPurchasedQty", "0" },
                { "FPurchasedPQty", "0" },
                { "FPurchasedPrice", "0" },

                { "FDate1", DateTime.Now.ToString("yyyy-MM-dd") },
                { "FName1", "" },
                { "FPQty1", "0" },
                { "FQty1", "0" },
                { "FPrice1", "0" },

                { "FDate2", DateTime.Now.ToString("yyyy-MM-dd") },
                { "FName2", "" },
                { "FPQty2", "0" },
                { "FQty2", "0" },
                { "FPrice2", "0" },

                { "FDate3", DateTime.Now.ToString("yyyy-MM-dd") },
                { "FName3", "" },
                { "FPQty3", "0" },
                { "FQty3", "0" },
                { "FPrice3", "0" },

                { "FMarginEnd", "0" },
                { "FMemo", "" },

                { "colDelete", String.Format("<a href=\"javascript:;\" onclick=\"{0}\"><img src=\"{1}\"/></a>",//
                                             deleteScript, IconHelper.GetResolvedIconUrl(Icon.Delete)) },
            };

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

            btnMerge.OnClientClick = Window1.GetShowReference(string.Format("./LiquidPlanMerge.aspx?action=1"), "进销合并操作");

            dateBegin.SelectedDate = DateTime.Now.AddDays(-3);
            dateEnd.SelectedDate   = DateTime.Now.AddDays(3);
        }