protected void grdSupplierSchedule_RowCommand(object sender, GridViewCommandEventArgs e) { Guid myRow_Id = Guid.Parse(e.CommandArgument.ToString()); Session["SupplierScheduleId"] = myRow_Id; GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer); int index = row.RowIndex; if (e.CommandName == "Select") { msgAlert.Style.Add(HtmlTextWriterStyle.Display, "none"); LoadSupplierDatabyScheduleId(myRow_Id); } else if (e.CommandName.ToString() == "SoftDelete") { TLGX_Consumer.MDMSVC.DC_Supplier_Schedule_RQ newObj = new MDMSVC.DC_Supplier_Schedule_RQ { SupplierScheduleID = myRow_Id, Edit_Date = DateTime.Now, Edit_User = System.Web.HttpContext.Current.User.Identity.Name }; if (_objSchedularService.SoftDeleteDetails(newObj)) { BootstrapAlert.BootstrapAlertMessage(msgAlert, "Supplier Scheduler has been deleted successfully", BootstrapAlertType.Success); LoadSupplierScheduleData(); } ; } }
public bool CheckSupplierScheduleData(MDMSVC.DC_Supplier_Schedule_RQ RQParams) { object result = null; ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["Check_Supplier_Schedular_data"], RQParams, typeof(List <MDMSVC.DC_Supplier_Schedule_RQ>), typeof(bool), out result); return((bool)result); }
public bool SoftDeleteDetails(MDMSVC.DC_Supplier_Schedule_RQ RQParams) { object result = null; ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["Supplier_Schedular_SoftDelete"], RQParams, typeof(MDMSVC.DC_Supplier_Schedule_RQ), typeof(bool), out result); return((bool)result); }
public List <MDMSVC.DC_Supplier_Schedule> GetSupplierSchedule(MDMSVC.DC_Supplier_Schedule_RQ RQParams) { object result = null; ServiceConnection.MDMSvcProxy.PostData(ConfigurationManager.AppSettings["Supplier_GetSchedule"], RQParams, typeof(MDMSVC.DC_Supplier_Schedule_RQ), typeof(List <MDMSVC.DC_Supplier_Schedule>), out result); return(result as List <DC_Supplier_Schedule>); }
private List <DC_Supplier_Schedule> GetListOfSupplierbyScheduleId(Guid myRow_Id) { try { Guid mySupplier_Id = myRow_Id; MDMSVC.DC_Supplier_Schedule_RQ _objSearch = new MDMSVC.DC_Supplier_Schedule_RQ(); _objSearch.SupplierScheduleID = mySupplier_Id; var _objresult = _objSchedularService.GetSchedule(_objSearch); return(_objresult); } catch (Exception) { } return(null); }
private List <DC_Supplier_Schedule> GetListOfScheduleBySupplier() { try { Guid mySupplier_Id = Guid.Parse(Request.QueryString["Supplier_Id"]); MDMSVC.DC_Supplier_Schedule_RQ _objSearch = new MDMSVC.DC_Supplier_Schedule_RQ(); _objSearch.Suppllier_ID = mySupplier_Id; var _objresult = _objSchedularService.GetSchedule(_objSearch); return(_objresult); } catch (Exception) { } return(null); }
private void LoadSupplierScheduleData() { try { MDMSVC.DC_Supplier_Schedule_RQ _objSearch = new MDMSVC.DC_Supplier_Schedule_RQ(); Guid mySupplier_Id = Guid.Parse(Request.QueryString["Supplier_Id"]); _objSearch.Suppllier_ID = mySupplier_Id; _objSearch.PageSize = 10; _objSearch.PageNo = 0; var result = _objSchedularService.GetSupplierSchedule(_objSearch); grdSupplierSchedule.DataSource = result; //grdSupplierSchedule.PageIndex = intPageIndex; //grdSupplierSchedule.PageSize = intPageSize; grdSupplierSchedule.DataBind(); resetControls(); } catch (Exception) { throw; } }