protected override void OnInit(EventArgs e) { base.OnInit(e); errorDisplayer = new ErrorMessageDisplayer(lblMessage); errorDisplayer.ClearErrorMessage(); transferedData = new PageDataTransfer(Request.Path); TruckLoadEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("EditTruckLoading", "TruckLoad"); StackDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("EditTruckLoading", "Stack"); StackGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("EditTruckLoading", "StackGrid"); StackDataEditor.Ok += new EventHandler(StackDataEditor_Ok); StackDataEditor.Cancel += new EventHandler(StackDataEditor_Cancel); try { ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack); TruckLoadEditor.Lookup = ginProcess.LookupSource; StackDataEditor.Lookup = ginProcess.LookupSource; StackGridViewer.Lookup = ginProcess.LookupSource; TruckLoadEditor.Setup(); StackDataEditor.Setup(); } catch (Exception ex) { throw ex; } }
protected override void OnInit(EventArgs e) { base.OnInit(e); errorDisplayer = new ErrorMessageDisplayer(lblMessage); errorDisplayer.ClearErrorMessage(); transferedData = new PageDataTransfer(Request.Path); TruckDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "Truck"); TruckLoadEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckLoad"); StackGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "StackGrid"); TruckWeightEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckWeight"); ReturnedBagsGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "ReturnedBagsGrid"); ProposedTruckDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "Truck"); ProposedTruckLoadEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckLoad"); ProposedStackGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "StackGrid"); ProposedTruckWeightEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckWeight"); ProposedReturnedBagsGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "ReturnedBagsGrid"); TruckDataEditor.IsNew = false; TruckLoadEditor.IsNew = false; TruckWeightEditor.IsNew = false; ProposedTruckDataEditor.IsNew = false; ProposedTruckLoadEditor.IsNew = false; ProposedTruckWeightEditor.IsNew = false; try { ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack); TruckDataEditor.Lookup = ginProcess.LookupSource; TruckLoadEditor.Lookup = ginProcess.LookupSource; StackGridViewer.Lookup = ginProcess.LookupSource; TruckWeightEditor.Lookup = ginProcess.LookupSource; ReturnedBagsGridViewer.Lookup = ginProcess.LookupSource; ProposedTruckDataEditor.Lookup = ginProcess.LookupSource; ProposedTruckLoadEditor.Lookup = ginProcess.LookupSource; ProposedStackGridViewer.Lookup = ginProcess.LookupSource; ProposedTruckWeightEditor.Lookup = ginProcess.LookupSource; ProposedReturnedBagsGridViewer.Lookup = ginProcess.LookupSource; TruckDataEditor.Setup(); TruckLoadEditor.Setup(); TruckWeightEditor.Setup(); ProposedTruckDataEditor.Setup(); ProposedTruckLoadEditor.Setup(); ProposedTruckWeightEditor.Setup(); } catch (Exception ex) { throw ex; } }