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


C# GridNeedDataSourceEventArgs类代码示例

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


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

示例1: radGridReview_OnNeedDataSource

        protected void radGridReview_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            if (TabId != 229)
            {
                radGridReview.DataSource = SQLData.B_BEXPORT_DOCUMETARYCOLLECTION_GetbyStatus(ScreenType.ToString("G"), UserId.ToString());
            }
            else
            {

                DataSet datasource = new DataSet();//Tab1
                DataTable tbl1 = new DataTable();
                tbl1.Columns.Add("DocCollectCode");
                tbl1.Columns.Add("CollectionType");
                tbl1.Columns.Add("Currency");
                tbl1.Columns.Add("Amount");
                tbl1.Columns.Add("Status");
                var lst = _entities.BEXPORT_DOCUMETARYCOLLECTION.Where(x => x.Amend_Status == "UNA" && (x.ActiveRecordFlag == null ||x.ActiveRecordFlag == YesNo.YES)).ToList();
                foreach (var item in lst)
                {
                    if (!String.IsNullOrEmpty(item.AmendNo))
                    {
                        tbl1.Rows.Add(item.AmendNo, item.CollectionType,item.Currency,item.Amount,item.Amend_Status);
                    }
                }
                datasource.Tables.Add(tbl1);
                radGridReview.DataSource = datasource;
            }
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:28,代码来源:ReviewExport_DocumentCollection.ascx.cs

示例2: grdRegisteredEvents_OnNeedDataSource

 protected void grdRegisteredEvents_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (!e.IsFromDetailTable)
     {
         grdRegisteredEvents.DataSource = ConferenceEventsViewManager.LoadByUserId(UserId).ToList();
     }
 }
开发者ID:TrifectaTech,项目名称:ConferencePlus,代码行数:7,代码来源:SearchRegisteredEvents.aspx.cs

示例3: radGridReview_OnNeedDataSource

        protected void radGridReview_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            DataTable dt = new DataTable();
            dt.Columns.Add("ReperenceNo");
            dt.Columns.Add("CustomerAccount");
            dt.Columns.Add("AmtLCY");
            dt.Columns.Add("AmtFCY");
            dt.Columns.Add("Status");
            dt.Columns.Add("LCCode");

            DataRow dr = dt.NewRow();
            dr["ReperenceNo"] = "TT/09161/078911";
            dr["CustomerAccount"] = "BANK OF SHANGHAI";
            dr["AmtLCY"] = "2,000,0000";
            dr["AmtFCY"] = "100.00";
            dr["Status"] = "UNA";
            dr["LCCode"] = "1";
            dt.Rows.Add(dr);

            DataRow dr1 = dt.NewRow();
            dr1["ReperenceNo"] = "TT/09161/078912";
            dr1["CustomerAccount"] = "CITI BANK NEWYORK";
            dr1["AmtLCY"] = "4,000,0000";
            dr1["AmtFCY"] = "200.00";
            dr1["Status"] = "UNA";
            dr1["LCCode"] = "2";
            dt.Rows.Add(dr1);

            radGridReview.DataSource = dt;
        }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:30,代码来源:CashWithdrawalsBuyingPreviewList.ascx.cs

示例4: grdLocation_NeedDataSource

 protected void grdLocation_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (!e.IsFromDetailTable)
     {
         grdLocation.DataSource = LocationManager.LoadAll().ToList();
     }
 }
开发者ID:TrifectaTech,项目名称:KarzPlus,代码行数:7,代码来源:ManageLocation.aspx.cs

示例5: radGridReview_OnNeedDataSource

 protected void radGridReview_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (String.IsNullOrEmpty(lstType))
         radGridReview.DataSource = bd.Teller.TellerForeignExchangeList(this.TabId, null);
     else
         radGridReview.DataSource = bd.Teller.TellerForeignExchangeList(this.TabId, bd.TransactionStatus.UNA);
 }
开发者ID:nguyenppt,项目名称:biscorebanksys,代码行数:7,代码来源:Enquiry.ascx.cs

示例6: RadGridAllChanges_DetailTableDataBind

 protected void RadGridAllChanges_DetailTableDataBind(object source, GridNeedDataSourceEventArgs e)
 {
     DataClasses1DataContext dbContext = new DataClasses1DataContext();
     try
     {
         RadGrid sender = source as RadGrid;
         Panel item = sender.Parent as Panel;
         Label lblReferenceId = item.FindControl("lblReferenceId") as Label;
         Label lblTableName = item.FindControl("lblTableName") as Label;
         DataTable t = new DataTable();
         if (lblReferenceId.Text != string.Empty || lblTableName.Text != string.Empty)
         {
             var tableColumns = dbContext.ChangeLogColumNames.SingleOrDefault(q => q.TableName == lblTableName.Text);
             string thisSelect = "";
             if (tableColumns != null)
             {
                 string idName = tableColumns.IdColumnName;
                 foreach (var col in tableColumns.ColumnNames.Split(';'))
                 {
                     if (thisSelect == string.Empty)
                     {
                         thisSelect = "[" + col + "]";
                     }
                     else
                     {
                         thisSelect += ",[" + col + "]";
                     }
                 }
                 dbContext.Connection.Close();
                 string myQuery = "";
                 if (thisSelect != string.Empty && idName != string.Empty && lblTableName.Text != string.Empty)
                 {
                     myQuery = "select " + thisSelect + " from [" + lblTableName.Text + "] where " + idName + " ='" + lblReferenceId.Text + "'";
                     using (SqlConnection c = new SqlConnection(dbContext.Connection.ConnectionString))
                     {
                         c.Open();
                         using (SqlDataAdapter a = new SqlDataAdapter(myQuery, c))
                         {
                             a.Fill(t);
                         }
                     }
                     sender.DataSource = t;
                 }
             }
             else
             {
                 setEmptyDataSet(((RadGrid)sender));
             }
         }
         else
         {
             setEmptyDataSet(((RadGrid)sender));
         }
     }
     catch (Exception ex)
     {
         dbContext.WriteLogItem("Fehler beim generieren des ChangeLogs Details. " + ex.Message, LogTypes.ERROR);
         dbContext.SubmitChanges();
     }
 }
开发者ID:HedinRakot,项目名称:KVS,代码行数:60,代码来源:ChangeLog.aspx.cs

示例7: radGridReview_OnNeedDataSource

 protected void radGridReview_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (string.IsNullOrEmpty(lstType))
         radGridReview.DataSource = BankProject.DataProvider.Teller.CashWithrawalForBuyingTCList(null, txtCustomerId.Text, txtCustomerName.Text);
     else
         radGridReview.DataSource = BankProject.DataProvider.Teller.CashWithrawalForBuyingTCList(bd.TransactionStatus.UNA, txtCustomerId.Text, txtCustomerName.Text);
 }
开发者ID:nguyenppt,项目名称:biscorebanksys,代码行数:7,代码来源:CashWithdrawalsBuyingPreviewList.ascx.cs

示例8: radGridReview_OnNeedDataSource

 protected void radGridReview_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (!IsPostBack)
     {
         if (lstType != null && lstType.ToLower().Equals("4appr"))
         {
             var query = (from EX in entContext.B_ExportLCPayments
                          join BE in entContext.BEXPORT_DOCUMENTPROCESSINGs on EX.LCCode equals BE.PaymentId
                          join AD in entContext.BAdvisingAndNegotiationLCs on BE.LCCode equals AD.NormalLCCode
                          where EX.Status == "UNA"
                          select new { EX, AD });
             var lst = new List<BAdvisingAndNegotiationLC>();
             foreach (var item in query)
             {
                 lst.Add(new BAdvisingAndNegotiationLC
                 {
                     Id=item.EX.Id,
                     NormalLCCode=item.EX.LCCode,
                     Amount=item.AD.Amount,
                     ApplicantNo=item.AD.ApplicantNo,
                     Currency=item.AD.Currency,
                     ApplicantName=item.AD.ApplicantName,
                     Status=item.EX.Status
                 });
             }
             var source = CreateDataset(lst);
             radGridReview.DataSource = source;
         }
     }
 }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:30,代码来源:ListExportPayment.ascx.cs

示例9: rgIndustries_OnNeedDataSource

 protected void rgIndustries_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     using (var hrsgEntities = new HRSG_DatabaseEntities())
     {
         rgIndustries.DataSource = hrsgEntities.Industries.Where(a => a.Active).ToList();
     }
 }
开发者ID:shawn-freeman,项目名称:HRSG_Generator_Repo,代码行数:7,代码来源:Dashboard.aspx.cs

示例10: radGridReview_OnNeedDataSource

 protected void radGridReview_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (tbLCNo.Text != "" || rcbApplicantID.SelectedValue != "")
     {
         radGridReview.DataSource = DataProvider.KhanhND.B_BNORMAILLC_Search(tbLCNo.Text, rcbApplicantID.SelectedValue);
     }
 }
开发者ID:nguyenppt,项目名称:1pubcreditnew,代码行数:7,代码来源:ProvisionTransfer.ascx.cs

示例11: radGridReview_OnNeedDataSource

 protected void radGridReview_OnNeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     radGridReview.DataSource = SQLData.B_BDOCUMETARYCOLLECTION_GetByAmendment(txtCode.Text.Trim(),
             comboDraweeCusNo.SelectedValue, txtDraweeAddr.Text.Trim(),
             comboDrawerCusNo.Text, txtDrawerAddr.Text.Trim(),
             "UNA", UserId.ToString());
 }
开发者ID:nguyenppt,项目名称:tfinance0115,代码行数:7,代码来源:EnquiryDocumentaryCollection.ascx.cs

示例12: grdStatistics_NeedDataSource

 protected void grdStatistics_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (!e.IsFromDetailTable)
     {
         grdStatistics.DataSource = PaperStatisticsViewManager.LoadAll();
     }
 }
开发者ID:TrifectaTech,项目名称:ConferencePlus,代码行数:7,代码来源:PaperStatistics.aspx.cs

示例13: grid_NeedDataSource

 protected void grid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     var value = "ObjectId".Query();
     if (value.None())
     {
         Response.Redirect("~/Depot/Home");
         return;
     }
     var objId = value.GlobalId();
     var obj = DataContext.DepotObject.Single(o => o.Id == objId);
     if (obj.Fixed)
     {
         var source = DataContext.DepotInX.Where(o => (o.AvailableAmount > 0) && o.ObjectId == obj.Id).ToList().Select(o => new Placed { Id = o.Id, Ordinal = o.Ordinal, Fixed = true, Place = o.Place, Code = o.Code }).OrderBy(o => o.Ordinal).ToList();
         grid.DataSource = source;
     }
     else
     {
         var source = DataContext.DepotInX.Where(o => (o.AvailableAmount > 0) && o.ObjectId == obj.Id).OrderByDescending(o => o.AvailableAmount).ToList().Select(o => new Placed { Id = o.Id, Ordinal = 0, Fixed = false, Place = o.Place, Code = o.Code }).ToList();
         for (var i = 0; i < source.Count; i++)
         {
             source[i].Ordinal = i + 1;
         }
         grid.DataSource = source;
     }
 }
开发者ID:Homory-Temp,项目名称:LeYi,代码行数:25,代码来源:ObjectX.aspx.cs

示例14: CouponTitle_NeedDataSource

        //CouponTitle_NeedDataSource where we can bind the based ont he values of today fromdate and member name
        protected void CouponTitle_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            if (FromDateTimePicker.SelectedDate == null && ToDateTimePicker.SelectedDate == null && FirstnameIDtxtbox.Text != string.Empty)
            {
                DataTable dt = new DataTable();
                objr.Membername = FirstnameIDtxtbox.Text.ToString();
                dt = objr.GetreportDetailsusingmembername();
                gvmember.DataSource = dt; ;
            }
            else if (FromDateTimePicker.SelectedDate != null && ToDateTimePicker.SelectedDate != null && FirstnameIDtxtbox.Text == string.Empty)
            {
                DataTable dt = new DataTable();

                objr.FDate = FromDateTimePicker.SelectedDate.Value;
                objr.Todate = ToDateTimePicker.SelectedDate.Value;
                objr.Membername = FirstnameIDtxtbox.Text.ToString();
                dt = objr.GetDonationDetailsusingDate();
                gvmember.DataSource = dt;
            }
            else
            {
                DataTable dt = new DataTable();

                objr.FDate = FromDateTimePicker.SelectedDate.Value;
                objr.Todate = ToDateTimePicker.SelectedDate.Value;
                objr.Membername = FirstnameIDtxtbox.Text.ToString();
                objr.Membername = FirstnameIDtxtbox.Text.ToString();
                dt = objr.GetreportDetailsusingmembernamewithdate();
                gvmember.DataSource = dt;

            }
        }
开发者ID:saboor989,项目名称:Advance-Software-Engineering-Project,代码行数:33,代码来源:report.aspx.cs

示例15: grdInventory_NeedDataSource

 protected void grdInventory_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
 {
     if (!e.IsFromDetailTable)
     {
         grdInventory.DataSource = CarInventoryViewManager.LoadAllActive().ToList();
     }
 }
开发者ID:TrifectaTech,项目名称:KarzPlus,代码行数:7,代码来源:ManageInventory.aspx.cs


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