本文整理汇总了C#中System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ObjectDataSourceSelectingEventArgs类的具体用法?C# ObjectDataSourceSelectingEventArgs怎么用?C# ObjectDataSourceSelectingEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ObjectDataSourceSelectingEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了ObjectDataSourceSelectingEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: objectDataSource_Selecting
protected void objectDataSource_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
e.InputParameters["totalCount"] = LastQueryRowCount;
if (e.ExecutingSelectCount == false)
{
string where = e.InputParameters["where"] as string;
if (MostSupervisor == false || NormalSupervisior == false)
{
//检查是否具有分类授权
WfApplicationAuthCollection authInfo = WfApplicationAuthAdapter.Instance.GetUserApplicationAuthInfo(DeluxeIdentity.Current.User);
var builder = authInfo.GetApplicationAndProgramBuilder("APPLICATION_NAME", "PROGRAM_NAME");
if (builder.IsEmpty == false)
{
if (string.IsNullOrEmpty(where) == false)
where += " AND ";
where += "(" + builder.ToSqlString(TSqlBuilder.Instance) + ")";
e.InputParameters["where"] = where;
}
else
{
e.Cancel = true; //没有定义任何权限,不能查询
}
}
}
}
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:29,代码来源:ProcessAdjustment.aspx.cs
示例2: dsMain_Selecting
protected void dsMain_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (e.ExecutingSelectCount == false)
{
e.InputParameters["where"] = BuildWhereCondition();
}
}
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:7,代码来源:TraceLog.aspx.cs
示例3: ObjectDataSource1_Selecting
protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (!IsPostBack)
{
e.Cancel = true;
}
}
开发者ID:munawarkhan6656,项目名称:munawarWebappli,代码行数:7,代码来源:frmEditJvCbBb.aspx.cs
示例4: odsItems_Selecting
protected void odsItems_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
e.InputParameters["langCode"] = this.CurrentLanguage;
e.InputParameters["pageID"] = this.PageID;
e.InputParameters["count"] = this.NewsCount;
e.InputParameters["skipMain"] = this.SkipMain;
}
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:7,代码来源:TopNewsTitles.ascx.cs
示例5: dsDinamicaCriptografia_Selecting
protected void dsDinamicaCriptografia_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (drlMensaje.SelectedValue == "-1" || drlGrupoMensaje.SelectedValue == "-1")
{
e.Cancel = true;
}
}
开发者ID:jmptrader,项目名称:Switch-Transaccional,代码行数:7,代码来源:ConsultarDinamicaDeCriptografia.aspx.cs
示例6: dataSourceMain_Selecting
protected void dataSourceMain_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
WhereSqlClauseBuilder where = new WhereSqlClauseBuilder();
where.AppendItem("TASK_GUID", Request.QueryString["id"]);
dataSourceMain.Condition = where;
}
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:7,代码来源:TaskPendingDetail.aspx.cs
示例7: ObjectDataSourceUnreadComments_Selecting
protected void ObjectDataSourceUnreadComments_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (UserContext.Current != null)
{
e.InputParameters["DepartmentGuid"] = UserContext.Current.SelectedInstance.InstanceId;
}
}
开发者ID:bigWebApps,项目名称:KB-Old,代码行数:7,代码来源:Comments.aspx.cs
示例8: dsBooks_Selecting
protected void dsBooks_Selecting( object sender, ObjectDataSourceSelectingEventArgs e )
{
e.InputParameters[ "fromYear" ] = Convert.ToInt32( tbxFromPublishingYear.Text );
if( string.IsNullOrEmpty( tbxToPublishingYear.Text ) )
e.InputParameters[ "toYear" ] = DateTime.Now.Year;
else
e.InputParameters[ "toYear" ] = Convert.ToInt32( tbxToPublishingYear.Text );
List<int> selectedThemes = new List<int>();
foreach( ListItem item in cblThemes.Items )
{
if( item.Selected )
selectedThemes.Add( Convert.ToInt32( item.Value ) );
}
e.InputParameters[ "themes" ] = selectedThemes.ToArray();
if( rblLanguages.SelectedIndex == 0 )
e.InputParameters[ "language" ] = null;
else
e.InputParameters[ "language" ] = rblLanguages.SelectedValue;
if( ddlOffices.SelectedIndex == 0 )
e.InputParameters[ "officeID" ] = -1;
else
e.InputParameters[ "officeID" ] = Convert.ToInt32( ddlOffices.SelectedValue );
}
开发者ID:Confirmit,项目名称:Portal,代码行数:28,代码来源:Books.aspx.cs
示例9: ObjectDataSourceDoNotEmailList_Selecting
protected void ObjectDataSourceDoNotEmailList_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (UserContext.Current != null)
{
e.InputParameters["InstanceId"] = UserContext.Current.SelectedInstance.InstanceId;
}
}
开发者ID:bigWebApps,项目名称:KB-Old,代码行数:7,代码来源:DoNotEmailList.aspx.cs
示例10: ObjSolicitudesT_Selecting
protected void ObjSolicitudesT_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
classFiltro f = new classFiltro();
f.VIG_SOL = Convert.ToInt16(Request.Cookies["sircc_vig"].Value);
if (chkDepDel.Checked)
{
f.DEP_PSOL = CboDepDel.SelectedValue;
}
if (chkObj.Checked)
{
f.OBJ_SOL = txtObj.Text.ToUpper();
}
if (chkFecha.Checked) {
f.TIPO_FECHA =(classFiltro.TipoFecha)cboTipoFecha.SelectedIndex;
f.FECHA_I = Convert.ToDateTime(txtFechaIni.Text);
f.FECHA_F = Convert.ToDateTime(txtFechaFin.Text);
}
if (chkFuncionario.Checked) {
f.ID_ABOG_ENC = CboEncargados.SelectedValue;
}
if (chkCodSol.Checked) {
f.COD_SOL = TxtCodSol.Text;
}
e.InputParameters["Filtro"] = f;
}
开发者ID:borisgr04,项目名称:ByASircc4v2016,代码行数:29,代码来源:RptSolicitudesT.aspx.cs
示例11: ObjectDataSourceProduct_Selecting
protected void ObjectDataSourceProduct_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (!e.ExecutingSelectCount)
{
e.Arguments.StartRowIndex = this.AspNetPager1.StartRecordIndex;
e.Arguments.MaximumRows = this.AspNetPager1.PageSize;
}
}
开发者ID:ibollen,项目名称:website,代码行数:8,代码来源:ProductMgmt.aspx.cs
示例12: odsConsumation_Selecting
protected void odsConsumation_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (Request.QueryString["Id"] != null)
{
//Set the input parameter Id of the GetItemById method to the Id in the query string
e.InputParameters["Id"] = Request.QueryString["Id"];
}
}
开发者ID:blel,项目名称:ebalit,代码行数:8,代码来源:CreateConsumation.aspx.cs
示例13: ObjectDataSourceRequest_Selecting
protected void ObjectDataSourceRequest_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (UserContext.Current != null)
{
e.InputParameters["DepartmentGuid"] = UserContext.Current.SelectedInstance.InstanceId;
e.InputParameters["Type"] = ArticleType.Request.ToString();
}
}
开发者ID:bigWebApps,项目名称:KB-Old,代码行数:8,代码来源:RequestList.aspx.cs
示例14: MailLogDataSource_Selecting
protected void MailLogDataSource_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (!IsAdmin)
{
Miami.Substitute.Dal.User user = new Miami.Substitute.Dal.User();
DataView dv = user.LoadForMain(Micajah.Common.Security.UserContext.Current.UserId);
e.InputParameters["LocationId"] = dv[0]["LocationId"];
}
}
开发者ID:bigWebApps,项目名称:Substitute,代码行数:9,代码来源:MailLogsControl.ascx.cs
示例15: odsCities_Selecting
protected void odsCities_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
int region = (int)e.InputParameters["regionID"];
if (region == 0)
{
e.Cancel = true;
}
e.InputParameters["language"] = this.CurrentLanguage;
}
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:9,代码来源:ServiceCenters.ascx.cs
示例16: dataSourceMain_Selecting
protected void dataSourceMain_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (this.IsPostBack == false && this.Request["id"] != null)
{
WhereSqlClauseBuilder builder = new WhereSqlClauseBuilder();
builder.AppendItem("SynchronizeID", this.Request["id"]);
this.dataSourceMain.Condition = builder;
}
}
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:9,代码来源:ADLog.aspx.cs
示例17: ObjectDataSource1_Selecting
protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
e.InputParameters["userName"] = UserName_tbx.Text;
//var business = new Bussiness.PlayerBussiness();
//var player = business.GetUserSingleByNickName(UserName_tbx.Text);
//if (player == null)
//{
// error_lbl.Text="Username is not exits or not active ,Change to Acive it";
//}
}
开发者ID:geniushuai,项目名称:DDTank-3.0,代码行数:10,代码来源:UserEdit.aspx.cs
示例18: dsTransformacion_Selecting
protected void dsTransformacion_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (Page.IsPostBack)
{
if (refrescarGrilla == false)
{
e.Cancel = true;
}
}
}
开发者ID:jmptrader,项目名称:Switch-Transaccional,代码行数:10,代码来源:ConsultarTransformacionMensaje.aspx.cs
示例19: dataSourceMain_Selecting
protected void dataSourceMain_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
WhereSqlClauseBuilder builder = ConditionMapping.GetWhereSqlClauseBuilder(this.Condition);
string cate = Request.QueryString["category"];
if (string.IsNullOrEmpty(cate) == false)
builder.AppendItem("CATEGORY", cate);
this.dataSourceMain.Condition = builder;
}
开发者ID:jerryshi2007,项目名称:AK47Source,代码行数:10,代码来源:TaskMonitor.aspx.cs
示例20: odsCenters_Selecting
protected void odsCenters_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
{
if (regionID == -1)
{
e.Cancel = true;
}
e.InputParameters["specializationID"] = specializationID;
e.InputParameters["regionID"] = regionID;
e.InputParameters["cityID"] = cityID;
e.InputParameters["language"] = this.CurrentLanguage;
}
开发者ID:trifonov-mikhail,项目名称:Site1,代码行数:11,代码来源:ServiceCenters.ascx.cs
注:本文中的System.Web.UI.WebControls.ObjectDataSourceSelectingEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论