当前位置: 首页>>代码示例>>C#>>正文


C# ObjectDataSourceSelectingEventArgs类代码示例

本文整理汇总了C#中ObjectDataSourceSelectingEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ObjectDataSourceSelectingEventArgs类的具体用法?C# ObjectDataSourceSelectingEventArgs怎么用?C# ObjectDataSourceSelectingEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ObjectDataSourceSelectingEventArgs类属于命名空间,在下文中一共展示了ObjectDataSourceSelectingEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OdsAuditBusiness_Selecting

    protected void OdsAuditBusiness_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        AuditBusinessSearchCondition condition = new AuditBusinessSearchCondition();

        condition.Status = (AuditBusinessStatus)Enum.Parse(typeof(AuditBusinessStatus), this.cbExceptionType.SelectedItem.Value.ToString());
        condition.DateScope = (DateScopeEnum)Enum.Parse(typeof(DateScopeEnum), this.cbSearchDate.SelectedItem.Value.ToString());
        
        if (cbProvider.Value == null)
        {
            condition.BusinessID = Guid.Empty;
        }
        else
        {
            condition.BusinessID = new Guid(this.cbProvider.Value.ToString());
        }

        if (cbService.SelectedItem == null)
        {
            condition.ServiceID = Guid.Empty;
        }
        else
        {
            condition.ServiceID = new Guid(this.cbService.Value.ToString());
        }

        e.InputParameters.Clear();
        e.InputParameters["condition"] = condition;
    }
开发者ID:BiYiTuan,项目名称:soa,代码行数:28,代码来源:ExceptionSearch.aspx.cs

示例2: OdsSchedulerHistory_Selecting

    protected void OdsSchedulerHistory_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        ScheduleHistoryCondition condition = new ScheduleHistoryCondition();
        condition.DateScopeBegin = DateTime.Parse(DateTime.Parse(dateScopeBegin.Value.ToString()).ToString("yyyy-MM-dd") + " 00:00:00");
        condition.DateScopeEnd = DateTime.Parse(DateTime.Parse(dateScopeEnd.Value.ToString()).ToString("yyyy-MM-dd") + " 23:59:59");
        condition.Status = int.Parse(cbExceptionType.SelectedItem.Value.ToString());

        if (cbProvider.Value == null)
        {
            condition.Host = Guid.Empty;
        }
        else
        {
            condition.Host = new Guid(this.cbProvider.Value.ToString());
        }

        if (cbSchedulerType.Value == null)
        {
            condition.Type = "";
        }
        else
        {
            condition.Type = this.cbSchedulerType.Value.ToString();
        }

        e.InputParameters.Clear();
        e.InputParameters["condition"] = condition;
    }
开发者ID:vebin,项目名称:soa,代码行数:28,代码来源:ScheduleHistory.aspx.cs

示例3: odsSelect_Department_Selecting

 protected void odsSelect_Department_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     //e.InputParameters["startDate"] = Convert.ToDateTime(txtPaymentStartDate.Text);
     //e.InputParameters["endDate"] = DateTime.Now;
     e.InputParameters["dateInterval"] = new DateTimeInterval(Convert.ToDateTime(txtPaymentStartDate.Text), DateTime.Now);
     e.InputParameters["companyId"] = Company.CompanyId;
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:7,代码来源:MapOfSales.aspx.cs

示例4: ObjectDataSource1_Selecting

 protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     // get the clientId to fill the grid w/ orders
     UsersComponent users = new UsersComponent();
     BLL.User u = users.GetUserByName(Request.Cookies["userName"].Value);
     e.InputParameters["id"] = u.ClientId;
 }
开发者ID:AnnieJ54,项目名称:wsc-website-team-b,代码行数:7,代码来源:account.aspx.cs

示例5: odsProspects_Selecting

    protected void odsProspects_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        e.InputParameters["companyId"] = Company.CompanyId;
        e.InputParameters["customerId"] = null;
        e.InputParameters["budgetStatus"] = null;
        e.InputParameters["beginDate"] = ucBeginDate.DateTime;
        e.InputParameters["endDate"] = ucEndDate.DateTime;

        if (!String.IsNullOrEmpty(selProduct.Name))
            e.InputParameters["productName"] = selProduct.Name.Split('|').GetValue(0).ToString().Trim();

        if (!txtPhone.Text.Equals("(__)____-____"))
            e.InputParameters["telephone"] = txtPhone.Text;

        if (!String.IsNullOrEmpty(cboVendor.SelectedValue))
            e.InputParameters["vendorId"] = Convert.ToInt32(cboVendor.SelectedValue);

        if (Page.ViewState["CustomerId"] != null)
            e.InputParameters["customerId"] = Convert.ToInt32(Page.ViewState["CustomerId"]);

        if (!String.IsNullOrEmpty(rbtstatus.SelectedValue))
        {
            e.InputParameters["budgetStatus"] = Convert.ToInt32(rbtstatus.SelectedValue);
        }
    }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:25,代码来源:Prospects.aspx.cs

示例6: OdsService_Selecting

    protected void OdsService_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        业务实体 svrEntity = new 业务实体();
        svrEntity.业务编码 = Guid.Empty;

        e.InputParameters["服务提供者"] = svrEntity;
    }
开发者ID:BiYiTuan,项目名称:soa,代码行数:7,代码来源:ServiceSummary.aspx.cs

示例7: OdsAuditBusiness_Selecting

    protected void OdsAuditBusiness_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
    {
        AuditBusinessSearchCondition condition = new AuditBusinessSearchCondition();

        condition.Status = (AuditBusinessStatus)Enum.Parse(typeof(AuditBusinessStatus), this.cbExceptionType.SelectedItem.Value.ToString());
        condition.DateScopeBegin = DateTime.Parse(DateTime.Parse(dateScopeBegin.Value.ToString()).ToString("yyyy-MM-dd") + " 00:00:00.000");
        condition.DateScopeEnd = DateTime.Parse(DateTime.Parse(dateScopeEnd.Value.ToString()).ToString("yyyy-MM-dd") + " 23:59:59.999");
        condition.HostName = this.txtHostName.Text;

        if (cbProvider.Value == null)
        {
            condition.BusinessID = String.Empty;
        }
        else
        {
            condition.BusinessID = this.cbProvider.Value.ToString();
        }

        if (cbService.SelectedItem == null)
        {
            condition.ServiceID = String.Empty;
        }
        else
        {
            condition.ServiceID = this.cbService.Value.ToString();
        }

        condition.IfShowHeartBeat = chkShowHeartBeat.Checked;
        
        e.InputParameters.Clear();
        e.InputParameters["condition"] = condition;
    }
开发者ID:vebin,项目名称:soa,代码行数:32,代码来源:CommunicationAudit.aspx.cs

示例8: odsStockTransfer_Selecting

 protected void odsStockTransfer_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     if (Deposit != null)
     {
         e.InputParameters["companyId"] = Company.CompanyId;
         e.InputParameters["DepositId"] = Deposit.DepositId;
     }
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:8,代码来源:StockTransfer.aspx.cs

示例9: odsFunctions_Selecting

 protected void odsFunctions_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     if (Page.ViewState["RoleId"] != null)
     {
         e.InputParameters["RoleId"] = Page.ViewState["RoleId"];
         e.InputParameters["CompanyId"] = Page.Company.ReferenceCompanyId;
     }
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:8,代码来源:Role_Permissions.ascx.cs

示例10: odsFinancierCondition_Selecting

 protected void odsFinancierCondition_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     if (IsLoaded)
     {
         e.InputParameters["companyId"] = Company.CompanyId;
         e.InputParameters["financierOperationId"] = Convert.ToInt32(Page.ViewState["FinancierOperationId"]);
     }
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:8,代码来源:FinancierOperation.aspx.cs

示例11: odsRoles_Selecting

 protected void odsRoles_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     if (Context.Items["RoleId"] != null)
     {
         e.InputParameters["RoleId"] = Context.Items["RoleId"].ToString();
         e.InputParameters["CompanyId"] = (Page as Vivina.Erp.SystemFramework.PageBase).Company.CompanyId.ToString();
     }
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:8,代码来源:Role_General.ascx.cs

示例12: ODS_Selecting

 protected void ODS_Selecting(object src, ObjectDataSourceSelectingEventArgs e)
 {
     if (!e.ExecutingSelectCount)
     {
         e.Arguments.StartRowIndex = AspNetPager1.StartRecordIndex;
         e.Arguments.MaximumRows = AspNetPager1.PageSize;
     }
 }
开发者ID:mizanasp,项目名称:AspNetPager,代码行数:8,代码来源:ObjectDataSource.aspx.cs

示例13: odsUserInRoles_Selecting

 protected void odsUserInRoles_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     if (userId != 0)
     {
         e.InputParameters["UserId"] = userId;
         e.InputParameters["companyId"] = Company.CompanyId;
     }
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:8,代码来源:User_Roles.aspx.cs

示例14: odsComments_Selecting

 protected void odsComments_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     if (SubjectId != 0)
     {
         e.InputParameters["PageName"] = PageName;
         e.InputParameters["SubjectId"] = SubjectId;
     }
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:8,代码来源:Comments.ascx.cs

示例15: odsCustomerPayment_Selecting

 protected void odsCustomerPayment_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
 {
     e.InputParameters["CustomerId"] = Convert.ToInt16(Page.ViewState["CustomerId"]);
     e.InputParameters["CompanyId"] = Company.CompanyId;
     if (rbtClosed.Checked)
         e.InputParameters["Closed"] = true;
     else
         e.InputParameters["Closed"] = false;
 }
开发者ID:sidneylimafilho,项目名称:InfoControl,代码行数:9,代码来源:Customer_Payment.aspx.cs


注:本文中的ObjectDataSourceSelectingEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。