本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
}
示例6: OdsService_Selecting
protected void OdsService_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
业务实体 svrEntity = new 业务实体();
svrEntity.业务编码 = Guid.Empty;
e.InputParameters["服务提供者"] = svrEntity;
}
示例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;
}
示例8: odsStockTransfer_Selecting
protected void odsStockTransfer_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (Deposit != null)
{
e.InputParameters["companyId"] = Company.CompanyId;
e.InputParameters["DepositId"] = Deposit.DepositId;
}
}
示例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;
}
}
示例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"]);
}
}
示例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();
}
}
示例12: ODS_Selecting
protected void ODS_Selecting(object src, ObjectDataSourceSelectingEventArgs e)
{
if (!e.ExecutingSelectCount)
{
e.Arguments.StartRowIndex = AspNetPager1.StartRecordIndex;
e.Arguments.MaximumRows = AspNetPager1.PageSize;
}
}
示例13: odsUserInRoles_Selecting
protected void odsUserInRoles_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (userId != 0)
{
e.InputParameters["UserId"] = userId;
e.InputParameters["companyId"] = Company.CompanyId;
}
}
示例14: odsComments_Selecting
protected void odsComments_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (SubjectId != 0)
{
e.InputParameters["PageName"] = PageName;
e.InputParameters["SubjectId"] = SubjectId;
}
}
示例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;
}