protected void ctlConfirmPopup_OnNotifyPopup(object sender, PopUpReturnArgs args) { int intWorkFlowStateEventID = 0; try { if (args.Type == PopUpReturnType.OK) { WorkFlowStateEvent workFlowStateEvent = WorkFlowQueryProvider.WorkFlowStateEventQuery.GetSendDraftStateEvent(WorkFlowTypeID.FixedAdvanceWorkFlow); intWorkFlowStateEventID = workFlowStateEvent.WorkFlowStateEventID; object eventData = new SubmitResponse(intWorkFlowStateEventID); WorkFlowService.NotifyEvent(this.WorkflowID, workFlowStateEvent.Name, eventData); Response.Redirect("SubmitResult.aspx?wfid=" + this.WorkflowID); } } catch (ServiceValidationException ex) { this.ValidationErrors.MergeErrors(ex.ValidationErrors); ctlUpdatePanelValidation.Update(); } if (this.ValidationErrors.IsEmpty) { Response.Redirect("DocumentView.aspx?wfid=" + this.WorkflowID.ToString()); } }
protected void ctlConfirmPopup_OnNotifyPopup(object sender, PopUpReturnArgs args) { try { if (args.Type == PopUpReturnType.OK) { WorkFlowStateEvent workFlowStateEvent = WorkFlowQueryProvider.WorkFlowStateEventQuery.GetSendDraftStateEvent(WorkFlowTypeID.RemittanceWorkFlow); int intWorkFlowStateEventID = workFlowStateEvent.WorkFlowStateEventID; object eventData = new SubmitResponse(intWorkFlowStateEventID); WorkFlowService.NotifyEvent(this.WorkFlowID, workFlowStateEvent.Name, eventData); Response.Redirect("SubmitResult.aspx?wfid=" + this.WorkFlowID); } } catch (ServiceValidationException ex) { this.ValidationErrors.MergeErrors(ex.ValidationErrors); ctlUpdatePanelValidation.Update(); } // if No error then redirect to SubmitResult.aspx if (this.ValidationErrors.IsEmpty) { //Page.RegisterStartupScript("comfirm", "<script>return confirm('Do you want to send your document to WorkFlow')</script>"); Response.Redirect("DocumentView.aspx?wfid=" + this.WorkFlowID.ToString()); } }
protected void ctlTANoLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { TADocumentObj ta = (TADocumentObj)args.Data; ctlTANoDetail.Text = ta.DocumentNo; ctlTAID.Text = ta.DocumentID.ToString(); } ctlUpdatePanelTa.Update(); }
protected void ctlAccountLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { AccountLang accountInfo = (AccountLang)args.Data; AccountID = accountInfo.AccountID.ToString(); ctlAccountTextBoxAutoComplete.AccountCode = accountInfo.AccountCode; ctlAccountName.Text = accountInfo.AccountName; } ctlUpdatePanelAccount.Update(); }
protected void ctlUserFavoriteLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK) && !ctlUserFavoriteLookup.isMultiple) { SuUser userInfo = (SuUser)args.Data; if (userInfo != null) { this.SetControl(userInfo.Userid); } ctlUpdatePanelActorData.Update(); } }
protected void ctlLocationLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { DbLocation Location = (DbLocation)args.Data; ctlLocation.Text = Location.LocationCode; ctlLocationId.Value = Location.LocationID.ToString(); CallOnObjectLookUpReturn(Location); } UpdatePanelLocation.Update(); }
protected void ctlIOLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { DbInternalOrder ioInfo = (DbInternalOrder)args.Data; ctlIOTextBoxAutoComplete.InternalOrder = ioInfo.IONumber; ctlIODescription.Text = ioInfo.IOText; IOID = ioInfo.IOID.ToString(); CallOnObjectLookUpReturn(ioInfo); } ctlUpdatePanelIO.Update(); }
protected void ctlCostCenterLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { IList <DbCostCenter> CostCenter = (IList <DbCostCenter>)args.Data; DbCostCenter dbCostCenter = CostCenter.First <DbCostCenter>(); CostCenterId = dbCostCenter.CostCenterID.ToString(); ctlAutoCostCenter.CostCenterCode = dbCostCenter.CostCenterCode; ctlDescription.Text = dbCostCenter.Description; CallOnObjectLookUpReturn(dbCostCenter); } ctlUpdatePanelCostCenter.Update(); }
protected void ctlLlocationLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { DbLocation location = (DbLocation)args.Data; LocationID = location.LocationID; LocationName = location.LocationName; ctlLocationTextBoxAutoComplete.LocationID = location.LocationID; ctlLocationTextBoxAutoComplete.LocationCode = location.LocationCode.Trim(); ctlLocationTextBoxAutoComplete.LocationName = location.LocationName.Trim(); ctlDescription.Text = location.LocationName.Trim(); CallOnObjectLookUpReturn(location); } ctlUpdatePanelLocation.Update(); }
protected void ctlCompanyLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { DbCompany company = (DbCompany)args.Data; if (args.Type.Equals(PopUpReturnType.OK)) { ctlCompanyAutocomplete.CompanyID = company.CompanyID.ToString(); ctlCompanyAutocomplete.CompanyCode = company.CompanyCode.ToString(); ctlCompanyName.Text = company.CompanyName.ToString(); ctlCompanyID.Text = company.CompanyID.ToString(); CompanyID = CompanyID.ToString(); } ctlUpdatePanelCompany.Update(); CallOnObjectLookUpReturn(company); }
protected void ctlUserProfileLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { userInfo = (SuUser)args.Data; if (userInfo != null) { ctlUserTextBoxAutoComplete.UserID = userInfo.UserName; EmployeeID = userInfo.Userid.ToString(); ctlUserName.Text = userInfo.EmployeeName; CallOnObjectLookUpReturn(userInfo); } ctlUpdatePanelUser.Update(); } }
protected void ctlUserProfileLookup_OnNotifyPopup(object sender, PopUpReturnArgs args) { if (args.Type.Equals(PopUpReturnType.OK)) { SuUser user = (SuUser)args.Data; UserName = user.UserName.ToString(); ctlUserTextBoxAutoComplete.UserID = user.Userid; UserID = user.Userid; ctlUserTextBoxAutoComplete.UserName = user.UserName; ctlUserTextBoxAutoComplete.EmployeeName = user.EmployeeName; ctlDescription.Text = user.EmployeeName; CallOnObjectLookUpReturn(user); } ctlUpdatePanelUser.Update(); }