本文整理汇总了C#中ASPxGridViewCustomCallbackEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ASPxGridViewCustomCallbackEventArgs类的具体用法?C# ASPxGridViewCustomCallbackEventArgs怎么用?C# ASPxGridViewCustomCallbackEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ASPxGridViewCustomCallbackEventArgs类属于命名空间,在下文中一共展示了ASPxGridViewCustomCallbackEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ASPxGridView1_CustomCallback
protected void ASPxGridView1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
int i = 0;
if (e.Parameters.IndexOf("stock") >= 0)
{
Session["ssFilterStock"] = e.Parameters.Replace("stock", "");
ASPxGridView1.DataBind();
}
if (e.Parameters.IndexOf("productcategory") >= 0)
{
Session["ssFilterProduceCatetory"] = " categoryid = " + e.Parameters.Replace("productcategory", "");
if (e.Parameters.Replace("productcategory", "") == "-1")
Session["ssFilterProduceCatetory"] = "";
i = 1;
}
if (i == 1)
{
SqlDataSource1.DataBind();
FilterExpression = Session["ssFilterProduceCatetory"].ToString();
if (FilterExpression.Length > 0)
SqlDataSource1.FilterExpression = FilterExpression;
ASPxGridView1.DataBind();
}
else
gridCallBackOption(ASPxGridView1, e.Parameters, KeyFieldName, SqlDataSource1);
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:27,代码来源:InStockProduceMax.aspx.cs
示例2: gridTlxTickets_CustomCallback
protected void gridTlxTickets_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
List<object> selectedIds = gridTlxTickets.GetSelectedFieldValues("TIMELINK_TASKID");
List<object> selectedIds1 = gridTlxTickets.GetSelectedFieldValues("TIMELINK_PROJECTSID");
switch (e.Parameters)
{
case "InsertNewTicket":
Session["CallFromTicket"] = "true";
if (selectedIds.Count > 0)
{
Session["TaskIdforTicket"] = Convert.ToString(selectedIds[0]);
}
else
{
Session["TaskIdforTicket"] = null;
}
if (selectedIds.Count > 0)
{
Session["ProjectIdforTicket"] = Convert.ToString(selectedIds1[0]);
}
else
{
Session["ProjectIdforTicket"] = null;
}
Response.Redirect("~/InsertTicket.aspx?modeid=Insert");
break;
}
}
开发者ID:ssommerfeldt,项目名称:TAC_TAC,代码行数:32,代码来源:TLXTickets.ascx.cs
示例3: grdDailyJobs_CustomCallback
protected void grdDailyJobs_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
var command = e.Parameters.Split('|')[0];
var selectedDate = calendar.SelectedDate;
switch (command)
{
case "SHOWALL":
grdDailyJobs.DataSource = jobSchedulerService.GetJobTriggersByExecutionDay(selectedDate);
break;
case "SHOWPENDING":
grdDailyJobs.DataSource = jobSchedulerService.GetJobTriggersByExecutionDay(selectedDate, JobTriggerStatus.Agendado);
break;
case "SHOWEXECUTED":
grdDailyJobs.DataSource = jobSchedulerService.GetJobTriggersByExecutionDay(selectedDate, JobTriggerStatus.Ejecutado);
break;
case "SHOWERROR":
grdDailyJobs.DataSource = jobSchedulerService.GetJobTriggersByExecutionDay(selectedDate, JobTriggerStatus.Error);
break;
case "SHOWAUTOMATIC":
grdDailyJobs.DataSource = jobSchedulerService.GetJobTriggersByExecutionDay(selectedDate, JobType.Automatico);
break;
case "SHOWMANUAL":
grdDailyJobs.DataSource = jobSchedulerService.GetJobTriggersByExecutionDay(selectedDate, JobType.Manual);
break;
}
grdDailyJobs.PageIndex = 0;
grdDailyJobs.DataBind();
}
开发者ID:pampero,项目名称:cgControlPanel,代码行数:30,代码来源:Home.aspx.cs
示例4: ASPxGridView1_CustomCallback
protected void ASPxGridView1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (ASPxComboBox1.SelectedItem != null)
{
if (e.Parameters.IndexOf("view") >= 0)
{
string Thamso = e.Parameters;
string[] TS = Thamso.Split(';');
Session["BankID"] = TS[1].ToString();
Session["StrDateTime"] = TS[2].ToString() + "#" + TS[3].ToString();
if (TS[1].ToString() == "-1")
{
ASPxGridView1.Columns["TenTK"].Visible = false;
}
else
{
ASPxGridView1.Columns["TenTK"].Visible = true;
}
}
if (e.Parameters != "")
gridCallBackOption(ASPxGridView1, e.Parameters, KeyFieldName, dsQuyNganHang);
ASPxGridView1.DataBind();
ASPxGridView1.ExpandAll();
}
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:25,代码来源:BaoCaoQuyNganHang.aspx.cs
示例5: ASPxGridView1_CustomCallback
protected void ASPxGridView1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters.IndexOf("groupid") >= 0)
{
Session["CustomerGroupId"] = e.Parameters.Replace("groupid", "");
ASPxGridView1.DataBind();
}
else if (e.Parameters.StartsWith("updatePrices"))
{
int caseF = 0, groupID = 0, quantity = 0, bonus = 0, r = 0;
float discount = 0;
Int32.TryParse(e.Parameters.Replace("updatePrices", ""), out caseF);
Int32.TryParse(cmbcustomergroup.Value.ToString(), out groupID);
Int32.TryParse(CU.GetSpinValue(txtQuantity), out quantity);
Int32.TryParse(CU.GetSpinValue(txtBonus), out bonus);
discount = float.Parse(txtDiscount.Value.ToString());
Int32.TryParse(updatePrices(groupID, caseF, quantity, bonus, discount).ToString(), out r);
if (r > 0)
{
ASPxGridView1.JSProperties["cpResult"] = "Thực hiện thành công";
ASPxGridView1.DataBind();
}
else
ASPxGridView1.JSProperties["cpResult"] = "Có lỗi, thử lại";
}
else
gridCallBackOption(ASPxGridView1, e.Parameters, KeyFieldName, dsProductPrices);
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:30,代码来源:SetPrices3LV.aspx.cs
示例6: gvArrivals_CustomCallback
protected void gvArrivals_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (Session[Constants.SESSION_ARRIVALS] != null)
{
gvArrivals.DataSource = (DataSet)Session[Constants.SESSION_ARRIVALS];
gvArrivals.DataBind();
}
}
开发者ID:nirshandileep,项目名称:HotelManagement,代码行数:8,代码来源:Dashboard.aspx.cs
示例7: MasterGrid_CustomCallback
protected void MasterGrid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
var splited = e.Parameters.Split(new[] { '_' }, StringSplitOptions.RemoveEmptyEntries);
if (splited.Length != 2) return;
Categories.UpdateCategory(Convert.ToInt32(splited[0]), Convert.ToInt32(splited[1]));
MasterGrid.DataBind();
}
开发者ID:rumbafum,项目名称:DraggableGridView,代码行数:8,代码来源:MasterDetail.aspx.cs
示例8: gvDiaDiemThi_CustomCallback
protected void gvDiaDiemThi_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters == "Update")
{
gvDiaDiemThi.DataSource = loadDataToUI();
gvDiaDiemThi.Selection.UnselectAll();
}
}
开发者ID:giangpc9x,项目名称:quanlygtproject,代码行数:8,代码来源:diemthi.aspx.cs
示例9: gvCauHoi_CustomCallback
protected void gvCauHoi_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
// ndungDTO = new clsNguoiDung_DTO();
if (e.Parameters == "Update")
{
gvCauHoi.DataSource = loadDataToUI();
gvCauHoi.Selection.UnselectAll();
}
}
开发者ID:giangpc9x,项目名称:quanlygtproject,代码行数:9,代码来源:qlcauhoi.aspx.cs
示例10: ASPxGridView1_CustomCallback
protected void ASPxGridView1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters.IndexOf("Date") >= 0)
{
Session["isSupplier"] = false;
Session["TuoiNoKHNgayBatDau"] = e.Parameters.Replace("Date", "");
}
ASPxGridView1.DataBind();
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:9,代码来源:BaoCaoTuoiNoKhachHang.aspx.cs
示例11: ASPxGridView1_CustomCallback
protected void ASPxGridView1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters.IndexOf("RoleID") >= 0)
{
}
else if (e.Parameters != "")
gridCallBackOption(ASPxGridView1, e.Parameters, KeyFieldName, SqlDataSource1);
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:9,代码来源:UserManager.aspx.cs
示例12: AspxGV1_CustomCallback
protected void AspxGV1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters.IndexOf("LoaiCot") >= 0)
{
int loai = Convert.ToInt32(cmbCot.Value);
decimal value = Convert.ToDecimal(txtCotValue.Value);
SqlHelper.ExecuteNonQuery(DataServices.ConnectString, "CRM_contactpercentlailo_InsertAll", loai, value);
AspxGV1.DataBind();
}
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:10,代码来源:Customer_LaiLo_XetPhanTram.aspx.cs
示例13: DetailGrid_CustomCallback
protected void DetailGrid_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
var detailGridView = (ASPxGridView)sender;
var templateContainer = (GridViewDetailRowTemplateContainer)detailGridView.NamingContainer;
var splited = e.Parameters.Split(new[] { '_' }, StringSplitOptions.RemoveEmptyEntries);
if (splited.Length != 3) return;
Products.UpdateProductCategory(Convert.ToInt32(splited[1]), Convert.ToInt32(splited[0]), Convert.ToInt32(splited[2]), Convert.ToInt32(templateContainer.KeyValue));
detailGridView.DataBind();
}
开发者ID:rumbafum,项目名称:DraggableGridView,代码行数:10,代码来源:MasterDetail.aspx.cs
示例14: ASPxGridView1_CustomCallback
protected void ASPxGridView1_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters.IndexOf("groupid") >= 0)
{
Session["CustomerGroupId"] = e.Parameters.Replace("groupid", "");
ASPxGridView1.DataBind();
}
else
gridCallBackOption(ASPxGridView1, e.Parameters, KeyFieldName, dsProductPrices);
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:10,代码来源:SetPricesNuhoangHCM2015.aspx.cs
示例15: DynamicGridControl1_gridCustomCallBack
void DynamicGridControl1_gridCustomCallBack(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters.StartsWith("filter"))
{
string values = e.Parameters.Replace("filter", "");
if (values == "-1")
{
DynamicGridControl1.gridControl.FilterExpression = string.Empty;
}
else
{
DynamicGridControl1.gridControl.FilterExpression = string.Format("{0}='{1}'", "supplierID", values);
}
}
else if (e.Parameters.StartsWith("add"))
{
int productCateId = 0;
int supplierId = 0;
int boId = 0, userId = 0;
string[] s = e.Parameters.Split(';');
Int32.TryParse(s[1].ToString(), out productCateId);
Int32.TryParse(s[2].ToString(), out supplierId);
Int32.TryParse(CU.getBOID().ToString(), out boId);
Int32.TryParse(CU.getuserid().ToString(), out userId);
if (userId > 0 && userId > 0)
{
if (productCateId > 0)
{
DataTable dtProduct = new DataTable();
dtProduct = GC_product_getFromCatelogy(productCateId);
if (dtProduct.Rows.Count > 0)
{
for (int i = 0; i < dtProduct.Rows.Count; i++)
{
int productID = int.Parse(dtProduct.Rows[i]["productid"].ToString());
GC_product_supllier_Add(supplierId, productID, boId, userId);
DynamicGridControl1.gridControl.FilterExpression = string.Format("{0}='{1}'", "supplierID", supplierId);
}
}
}
}
}
else if (e.Parameters.StartsWith("update"))
{
int supplierId = 0, productSPID = 0;
string[] param = e.Parameters.Split(';');
Int32.TryParse(param[1].ToString(), out supplierId);
Int32.TryParse(param[2].ToString(), out productSPID);
if (supplierId > 0 && productSPID > 0)
{
updateSupplierProduct(supplierId, productSPID);
DynamicGridControl1.gridControl.DataBind();
}
}
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:55,代码来源:ProductSupplier.aspx.cs
示例16: grdRelatedJobs_CustomCallback
protected void grdRelatedJobs_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
var masterJobId = Convert.ToInt32(e.Parameters);
if (masterJobId == 0) return;
grdFavorites.FocusedRowIndex = -1;
grdRelatedJobs.DataSource = jobSchedulerService.GetRelatedJobs(masterJobId);
grdRelatedJobs.PageIndex = 0;
grdRelatedJobs.DataBind();
}
开发者ID:pampero,项目名称:cgControlPanel,代码行数:11,代码来源:Home.aspx.cs
示例17: gview_CustomCallback
protected void gview_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
//Load lưới chỉ tiêu nhân viên theo tháng/năm
if (e.Parameters.StartsWith("filter"))
{
string[] strdate = e.Parameters.Split(';');
Session["targetMonth"] = strdate[1];
Session["targetYear"] = strdate[2];
gview.DataBind();
}
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:11,代码来源:Target.aspx.cs
示例18: gview_CustomCallback
protected void gview_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
//Load lưới chỉ tiêu nhân viên theo tháng/năm
if (e.Parameters.StartsWith("filter"))
{
string[] strdate = e.Parameters.Split(';');
Session["StaffPlanMonth"] = strdate[1];
Session["StaffPlanYear"] = strdate[2];
gview.DataBind();
gview.JSProperties["cpSales"] = gview.GetTotalSummaryValue(gview.TotalSummary["Sales"]);
}
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:12,代码来源:StaffpPlan.aspx.cs
示例19: DynamicGridControl_gridCustomCallBack
private void DynamicGridControl_gridCustomCallBack(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
LogCallMethod(true);
if (e.Parameters.IndexOf("Xem") >= 0)
{
Session["ssReportExForSell_FromDate"] = SearchForm.FromDate.ToString("MM/dd/yyyy");
Session["ssReportExForSell_ToDate"] = SearchForm.ToDate.ToString("MM/dd/yyyy");
DynamicGridControl.gridControl.ExpandAll();
DynamicGridControl.DataBind();
}
LogCallMethod(false);
}
开发者ID:trantrung2608,项目名称:ilinkbay,代码行数:12,代码来源:ReportSellingSummaryBaseExport.aspx.cs
示例20: gridDistributors_CustomCallback
protected void gridDistributors_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
{
if (e.Parameters != null && e.Parameters.StartsWith("RemoveDistributor"))
{
string value = e.Parameters.Replace("RemoveDistributor","");
int ID;
if (int.TryParse(value, out ID) == true)
{
CanonImportDistributor.RemoveImportDistributor(ID);
this.BindData();
}
}
}
开发者ID:ddksaku,项目名称:canon,代码行数:13,代码来源:AdminDistributorsImport.ascx.cs
注:本文中的ASPxGridViewCustomCallbackEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论