Пример #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()
        {
            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;
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OperationResult objOperationResult = new OperationResult();
                dpFechaInicio.SelectedDate = DateTime.Now.AddDays(-1); //DateTime.Parse("25/07/2014");
                dpFechaFin.SelectedDate    = DateTime.Now;             // DateTime.Parse("25/07/2014");
                LoadComboBox();
                //btnNewFichaOcupacional.OnClientClick = winEdit2.GetSaveStateReference(hfRefresh.ClientID) + winEdit2.GetShowReference("../ExternalUser/FRM031C.aspx");
                btnNewExamenes.OnClientClick     = winEdit3.GetSaveStateReference(hfRefresh.ClientID) + winEdit3.GetShowReference("../ExternalUser/FRM031Z.aspx");
                btnNewCertificados.OnClientClick = Window2.GetSaveStateReference(hfRefresh.ClientID) + Window2.GetShowReference("../ExternalUser/FRM031X.aspx");
                btnOrdenReportes.OnClientClick   = Window3.GetSaveStateReference(hfRefresh.ClientID) + Window3.GetShowReference(managementReports);

                Session["Examenes"]     = false;
                Session["Certificados"] = false;
                //var ObtenerEmpresaCliente = new ProtocolBL().GetOrganizationCustumerByProtocolSystemUser(ref objOperationResult, ((ClientSession)Session["objClientSession"]).i_SystemUserId);
                //if (ObtenerEmpresaCliente != null )
                //{
                //    txtEmpresa.Text = ObtenerEmpresaCliente.CustomerOrganizationName;
                //    Session["EmpresaClienteId"] = ObtenerEmpresaCliente.IdEmpresaCliente;
                //}
            }
        }
Пример #4
0
        protected void grdData_RowClick(object sender, GridRowClickEventArgs e)
        {
            LlenarLista();
            int                index = grdData.SelectedRowIndex;
            string             strFilterExpression = Convert.ToString(Session["strFilterExpression"]);
            List <ServiceList> data = GetData(grdData.PageIndex, grdData.PageSize, "v_ServiceId", strFilterExpression);

            foreach (var row in grdData.Rows)
            {
                if (row.RowIndex == index)
                {
                    _serviceId = row.Values[0];
                    _pacientId = row.Values[5];
                    _customerOrganizationName = row.Values[6];
                    _personFullName           = row.Values[1];
                    _EmpresaClienteId         = row.Values[4];
                }
            }
            int eso          = 1;
            int flagPantalla = 2;

            managementReports = "../Auditar/FRMOrdenReportes.aspx?_serviceId=" + _serviceId + "&_pacientId=" + _pacientId + "&_customerOrganizationName=" + _customerOrganizationName + "&_personFullName=" + _personFullName + "&flagPantalla=" + flagPantalla + "&_EmpresaClienteId=" + _EmpresaClienteId + "&eso=" + eso + "";
            btnOrdenReportes.OnClientClick = Window3.GetSaveStateReference(hfRefresh.ClientID) + Window3.GetShowReference(managementReports);
        }
Пример #5
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            ViewState["_AppendToEnd"] = true;

            txtCreateBy.Text = CurrentUser.AccountName;

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

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

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

            //区域
            //GasHelper.DropDownListCustomerDataBind(ddlCustomer);

            GasHelper.DropDownListSalesmanDataBind(ddlFDriver);

            GasHelper.DropDownListSalesmanDataBind(ddlFShipper);

            GasHelper.DropDownListSalesmanDataBind(ddlFSupercargo);

            GasHelper.DropDownListVehicleNumDataBind(ddlFVehicleNum);

            GasHelper.DropDownListBankSubjectDataBind(ddlSubjectOut);

            GasHelper.DropDownListBankSubjectDataBind(ddlSubjectIn);

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

            //选择产品填加
            //string searchScript = SearchScript();

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

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

            //};

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

            txtFDate.SelectedDate = DateTime.Now;
        }
Пример #6
0
        /// <summary>
        ///     初始化页面数据
        /// </summary>
        private void InitData()
        {
            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/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);

            GasHelper.DropDownListDataBindSaleType(ddlFT6SaleType);

            GasHelper.DropDownListDataBindReceiveSendType(ddlT6ReceiveSendType);

            GasHelper.DropDownListWarehouseDataBind(tbxFWarehouse);

            GasHelper.DropDownListDataBindCurrencyType(ddlFT6Currency);

            txtFT6ExchangeRate.Text = "1";
            //删除选中单元格的客户端脚本
            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";
        }
Пример #7
0
        protected void trgSUPID1_TriggerClick(object sender, EventArgs e)
        {
            string url = "~/CertificateInput/SupplierList.aspx?bm=supplier";

            PageContext.RegisterStartupScript(Window3.GetSaveStateReference(hfdValue2.ClientID) + Window3.GetShowReference(url, "被授权机构"));
        }