void EOCb_Selection_Execute(object sender, EO.Web.CallbackEventArgs e) { if (e.Parameter == this.Btn_Employee.ID) { this.UcSelection.Show("Select_Employee", "", false, this.Btn_Employee.ID); } }
void EOCb_Accept_Execute(object sender, EO.Web.CallbackEventArgs e) { if (this.mIsMultipleSelect) { this.PostGrid_Selected(); } else { Int64 ID = 0; try { ID = Convert.ToInt64(e.Parameter); } catch { } DataTable Inner_Dt = new DataTable(); Inner_Dt.Columns.Add("ID", typeof(Int64)); List <QueryParameter> Sp = new List <QueryParameter>(); Sp.Add(new QueryParameter("ID", ID)); Do_Methods.AddDataRow(ref Inner_Dt, Sp); this.mDt_Selected = Inner_Dt; } DataTable Dt = this.Selected(); string Data = (string)this.ViewState[CnsData]; if (EvAccept != null) { EvAccept(Dt, e, Data); } }
//[-] void Handle_Selection(DataTable Dt, EO.Web.CallbackEventArgs e, string Data) { if (Dt.Rows.Count > 0) { Int64 ID = Convert.ToInt64(Do_Methods.IsNull(Dt.Rows[0]["ID"], 0)); e.Data = this.Details_SelectEmployee(ID); } }
void EOCb_Accept_Execute(object sender, EO.Web.CallbackEventArgs e) { try { this.Update(); } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
void EOCb_Accept_Execute(object sender, EO.Web.CallbackEventArgs e) { string SelectedFile = e.Parameter; string Data = (string)this.ViewState[CnsData]; if (EvAccept != null) { EvAccept(SelectedFile, e, Data); } }
void EOCb_TaxCode_Execute(object sender, EO.Web.CallbackEventArgs e) { try { e.Data = this.Details_TaxCode(); } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
protected void EOCb_Search_Execute(object sender, EO.Web.CallbackEventArgs e) { if (e.Parameter == this.Btn_NewSearch.ID) { this.Selection_ClearFilters(); this.Selection_AddFilter(); } else if (e.Parameter == this.Btn_AddSearch.ID) { this.Selection_AddFilter(); } else if (e.Parameter == this.Btn_SortAsc.ID) { this.Selection_AddSort(true); } else if (e.Parameter == this.Btn_SortDesc.ID) { this.Selection_AddSort(false); } else if (e.Parameter == this.Btn_Clear.ID) { this.Selection_ClearFilters(); } this.RebindGrid(); string ViewState_DisplayFilterString = (string)this.ViewState[CnsDisplayFilterString]; string ViewState_DisplayOrderString = (string)this.ViewState[CnsDisplayOrderString]; string Desc_Count = ""; string Desc_Filter = ""; string Desc_Sort = ""; Desc_Count = this.Details_ItemsCount() + @"<br /><br />"; if (ViewState_DisplayFilterString != "") { Desc_Filter = "Filtered By: " + ViewState_DisplayFilterString + @"<br /><br />"; } if (ViewState_DisplayOrderString != "") { Desc_Sort = "Sorted By: " + ViewState_DisplayOrderString + @"<br /><br />"; } this.Lbl_AppliedFilters.Text = Desc_Count + Desc_Filter + Desc_Sort; try { this.EOCbp_Grid.Update(); this.EOCbp_Applied.Update(); this.EOCb_Page.Update(); } catch { } }
void EOCb_Cancel_Execute(object sender, EO.Web.CallbackEventArgs e) { try { this.mObj_Customer.pObj_ShippingAddress.Delete_Item(this.mTmpKey); this.mTmpKey = 0; this.ViewState[CnsTmpKey] = this.mTmpKey; } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
void EOCb_ShippingAddress_Update_Execute(object sender, EO.Web.CallbackEventArgs e) { try { this.UcAddress.Update(); this.UcGrid_ShippingAddress.Post(); this.UcCdsa.AddNew(this.mObj); } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
void EOCb_Browse_Execute(object sender, EO.Web.CallbackEventArgs e) { if (e.Parameter == this.Btn_Img.ID) { this.UcFileBrowser.Show(_System.FileExplorer.eExplorerType.Images, e.Parameter); } else if ( e.Parameter == this.Btn_PdfDesc_Upload.ID || e.Parameter == this.Btn_PdfFaq_Upload.ID || e.Parameter == this.Btn_PdfOther_Upload.ID) { this.UcFileBrowser.Show(_System.FileExplorer.eExplorerType.Pdf, e.Parameter); } }
void EOCb_Selection_Execute(object sender, EO.Web.CallbackEventArgs e) { try { if (e.Parameter == this.Btn_SalesPerson.ID) { this.UcSelection.Show("Select_Employee"); } } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
protected void EOCb_Print_Execute(object sender, EO.Web.CallbackEventArgs e) { string Data = e.Data; this.RaisePrint(ref Data); Collection Obj_Collection = new Collection(); Obj_Collection.Add(true, "IsDownloadFile"); Obj_Collection.Add(this.ResolveUrl(e.Data), "DownloadFle"); this.Session[Layer01_Common_Web.Common.Layer01_Constants_Web.CnsSession_TmpObj] = Obj_Collection; string Url = this.ResolveUrl("~/System/Download.aspx"); e.Data = Url; }
void EOCb_ShippingAddress_Add_Execute(object sender, EO.Web.CallbackEventArgs e) { try { if (e.Parameter == this.Btn_AddShippingAddress.ID) { this.UcGrid_ShippingAddress.Post(); e.Data = this.UcCdsa.Show(this.mObj); } } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
void EOCb_ShippingAddress_Edit_Execute(object sender, EO.Web.CallbackEventArgs e) { try { Int64 Key = 0; try { Key = Convert.ToInt64(e.Parameter); } catch { } e.Data = this.UcCdsa.Show(this.mObj, Key); } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
protected void CallbackPanel1_Execute(object sender, EO.Web.CallbackEventArgs e) { if (e.Parameter == "start") { e.Data = "start"; ProgressBar1.Visible = true; //Perform additional action before RunTask e.g., Label1.Text = //"Performed additional action before RunTask starts!"; } else if (e.Parameter == "done") { e.Data = "done"; //Perform additional action after RunTask panelProgressBar.Visible = false; } }
//[-] void Handle_FileBrowser( string SelectedFile , EO.Web.CallbackEventArgs e , string Data) { if (Data == this.Btn_Img.ID) { this.Details_SelectImage(SelectedFile); } else if (Data == this.Btn_PdfDesc_Upload.ID) { this.Details_SelectPdfDesc(SelectedFile); } else if (Data == this.Btn_PdfFaq_Upload.ID) { this.Details_SelectPdfFaq(SelectedFile); } else if (Data == this.Btn_PdfOther_Upload.ID) { this.Details_SelectPdfOthers(SelectedFile); } }
void EOCb_Txt_Changed_Execute(object sender, EO.Web.CallbackEventArgs e) { System.Text.StringBuilder Sb_Js = new System.Text.StringBuilder(); if (e.Parameter == this.Txt_Phone.ID) { this.Details_FormatPhoneNo(ref this.Txt_Phone); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Txt_Phone.ClientID, "value", this.Txt_Phone.Text); } else if (e.Parameter == this.Txt_Mobile.ID) { this.Details_FormatPhoneNo(ref this.Txt_Mobile); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Txt_Mobile.ClientID, "value", this.Txt_Mobile.Text); } else if (e.Parameter == this.Txt_Fax.ID) { this.Details_FormatPhoneNo(ref this.Txt_Fax); Layer01_Methods_Web.Eval_AppendJs(this.Server, ref Sb_Js, this.Txt_Fax.ClientID, "value", this.Txt_Fax.Text); } e.Data = Sb_Js.ToString(); }
void EOCb_ShippingAddress_IsActive_Execute(object sender, EO.Web.CallbackEventArgs e) { try { Int64 Key = 0; try { Key = Convert.ToInt64(e.Parameter); } catch { } if (Key == 0) { return; } this.Details_ShippingAddress_IsActive(Key); } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
void EOCb_Filter_Execute(object sender, EO.Web.CallbackEventArgs e) { this.UcGrid_Details.Post(); if (e.Parameter == this.Btn_Search.ID) { this.BindGrid_Details_Filter(); } else if (e.Parameter == this.Btn_ClearSearch.ID) { this.BindGrid_Details_ClearFilter(); } else if (e.Parameter == this.Btn_CheckAll.ID) { this.BindGrid_Details_Check(true); } else if (e.Parameter == this.Btn_UncheckAll.ID) { this.BindGrid_Details_Check(false); } this.UcGrid_Details.Rebind(); }
void EOCb_Selection_Execute(object sender, EO.Web.CallbackEventArgs e) { try { if (e.Parameter == this.Btn_AddItemPart.ID) { this.UcSelection.Show("Select_Item", "", true, e.Parameter); } else if (e.Parameter == this.Btn_AddItemSupplier.ID) { this.UcSelection.Show("Select_Supplier", "", true, e.Parameter); } else if (e.Parameter == this.Btn_AddItemLocation.ID) { this.UcSelection.Show("Select_Warehouse", "", true, e.Parameter); } } catch (Exception Ex) { Layer01_Methods_Web.ErrorHandler(Ex, this.Server); throw Ex; } }
void EOCb_View_Execute(object sender, EO.Web.CallbackEventArgs e) { string Url = ""; if (e.Parameter == this.Btn_PdfDesc.ID) { Url = Layer01_Constants_Web.CnsPdfPath + HttpUtility.UrlPathEncode((string)Do_Methods.IsNull(this.mObj.pDr["PdfDesc_Path"], "")); } else if (e.Parameter == this.Btn_PdfFaq.ID) { Url = Layer01_Constants_Web.CnsPdfPath + HttpUtility.UrlPathEncode((string)Do_Methods.IsNull(this.mObj.pDr["PdfFaq_Path"], "")); } else if (e.Parameter == this.Btn_PdfFaq.ID) { Url = Layer01_Constants_Web.CnsPdfPath + HttpUtility.UrlPathEncode((string)Do_Methods.IsNull(this.mObj.pDr["PdfOthers_Path"], "")); } else if (e.Parameter == this.Btn_ViewImage.ID) { Url = Layer01_Constants_Web.CnsImagePath + HttpUtility.UrlPathEncode((string)Do_Methods.IsNull(this.mObj.pDr["Image_Path"], "")); } e.Data = this.Page.ResolveUrl(Url); }
//[-] void Handle_Selection(DataTable Dt, EO.Web.CallbackEventArgs e, string Data) { Int64 ID = 0; if (Dt.Rows.Count > 0) { ID = (Int64)Do_Methods.IsNull(Dt.Rows[0]["ID"], 0); } System.Text.StringBuilder Sb_Js = new System.Text.StringBuilder(); if (Data == this.Btn_AddItemPart.ID) { this.Details_AddItemPart(Dt); } else if (Data == this.Btn_AddItemLocation.ID) { this.Details_AddItemLocation(Dt); } if (Data == this.Btn_AddItemSupplier.ID) { this.Details_AddItemSupplier(Dt); } }
protected void CallbackPanel_Execute(object sender, EO.Web.CallbackEventArgs e) { //Encontrar el nodo que ha hecho click EO.Web.TreeNode node = (EO.Web.TreeNode)Arbol.FindItem(e.Parameter); }