/// <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"; }
/// <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.ID) + Window2.GetShowReference("../../Common/WinUnit.aspx"); txtFAddress.OnClientTriggerClick = Window3.GetSaveStateReference(txtFAddress.ClientID) + Window3.GetShowReference(string.Format(@"../../Common/WinCustomerLink.aspx")); GasHelper.DropDownListDriverDataBind(ddlFDriver); GasHelper.DropDownListGodownKeeperDataBind(ddlFShipper); GasHelper.DropDownListSupercargoDataBind(ddlFSupercargo); //GasHelper.DropDownListBottleDataBind(tbxFBottle); GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum); GasHelper.DropDownListAreasDataBind(ddlFArea); GasHelper.DropDownListSalesmanDataBind(ddlFSalesman); GasHelper.DropDownListDeliveryMethodDataBind(ddlDeliveryMethod); GasHelper.DropDownListReturnDataBind(ddlReturn); GasHelper.DropDownListDistributionPointDataBind(ddlFDistributionPoint); //作业区 //删除选中单元格的客户端脚本 string deleteScript = DeleteScript(); //选择产品填加 string searchScript = SearchScript(); //新增 //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); txtFDate.SelectedDate = DateTime.Now.AddDays(-1); }
/// <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.DropDownListGodownKeeperDataBind(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"; }