Exemplo n.º 1
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            ViewState["_AppendToEnd"] = true;

            txtCreateBy.Text = CurrentUser.AccountName;

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

            GasHelper.DropDownListBottleDataBind(tbxFBottle);

            GasHelper.DropDownListStockOutCateDataBind(ddlFCate);

            GasHelper.DropDownListDataBindOrgnization(ddlOrgnization);

            GasHelper.DropDownListDataBindReceiveSendType(ddlT6ReceiveSendType);

            GasHelper.DropDownListWarehouseDataBind(ddlFWarehouse);

            GasHelper.DropDownListGodownKeeperDataBind(ddlFReceiver);


            GasHelper.DropDownListGroupDataBind(ddlFGroup);                         //班组

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

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

            //新增
            var defaultObj = new JObject
            {
                { "FItemCode", "" },
                { "FItemName", "" },
                { "FSpec", "" },
                { "FUnit", "" },
                { "FPrice", "0" },
                { "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";
        }
Exemplo n.º 2
0
        /// <summary>
        ///     页面初始化
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPermissionButtons(Toolbar1);

                dpkFDateBegin.SelectedDate = DateTime.Now;

                dpkFDateEnd.SelectedDate = DateTime.Now;

                GasHelper.DropDownListCompanyDataBind(ddlCompany);

                GasHelper.DropDownListGroupDataBind(ddlFGroup);//班组

                //GasHelper.DropDownListProducerDataBind(ddlFProducer);

                //GasHelper.DropDownListWorkshopDataBind(ddlWorkShop);

                ////产品
                //tbxFName.OnClientTriggerClick = Window2.GetSaveStateReference(txtFCode.ClientID, tbxFName.ClientID)
                //        + Window2.GetShowReference("../../Common/WinProducReference.aspx");
            }
        }
Exemplo n.º 3
0
 protected void LoadData()
 {
     GasHelper.DropDownListDistributionPointDataBind(ddlFDistributionPoint);
     GasHelper.DropDownListGroupDataBind(ddlFGroup);//班组
 }