protected void ExpensesMPA_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SCG.eAccounting.MPALookup expensesMPALookUp = sender as UserControls.LOV.SCG.eAccounting.MPALookup; expensesMPALookUp.CompanyID = CompanyID; expensesMPALookUp.RequesterID = RequesterID; expensesMPALookUp.CurrentUserID = CurrentUserID; }
protected void ctlUserFavoriteLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SCG.DB.UserProfileLookup lookup = sender as UserControls.LOV.SCG.DB.UserProfileLookup; //lookup.UserId = ctlUserAutoCompleteLookup.UserID; lookup.SearchFavoriteApprover = IsApprover; lookup.RequesterID = RequesterID; }
void ProgramSearch1_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SS.DB.ProgramSearch programSearch = sender as UserControls.LOV.SS.DB.ProgramSearch; short roleId = UIHelper.ParseShort(ctlRoleGrid.SelectedValue.ToString()); short languageId; languageId = UserAccount.CurrentLanguageID; programSearch.RoleId = roleId.ToString(); programSearch.LanguageId = languageId.ToString(); }
protected void ctlLocationTextBox_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { // set companyid to autocompletetextbox to find costcenter by companyid //CallOnObjectLookUpCalling(); UserControls.LOV.SCG.DB.LocationTextBoxAutocomplete LocationSearch = sender as UserControls.LOV.SCG.DB.LocationTextBoxAutocomplete; if (CompanyId != null) { LocationSearch.CompanyId = CompanyId.Value; } }
protected void TA_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SCG.DB.TALookup taLookUp = sender as UserControls.LOV.SCG.DB.TALookup; string expenseType = FnExpenseDocumentService.GetExpenseType(this.ExpDocumentID, this.TransactionId); if (expenseType.Equals(ZoneType.Domestic)) { taLookUp.TravelBy = TravellBy.Domestic; } else { taLookUp.TravelBy = TravellBy.Foreign; } taLookUp.RequesterID = this.RequesterID.ToString(); taLookUp.CompanyID = this.CompanyID.ToString(); }
protected void CtlInitiatorLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { StringBuilder userFilter = new StringBuilder(); List <DocumentInitiatorLang> documentInitiatorList = GetInitiators(); //set filter userid UserControls.LOV.SCG.DB.UserProfileLookup lookup = sender as UserControls.LOV.SCG.DB.UserProfileLookup; //lookup.RequesterID = RequesterID; if (documentInitiatorList != null) { foreach (DocumentInitiatorLang item in documentInitiatorList) { userFilter.AppendFormat("{0},", item.UserID); } } lookup.UserIdNotIn = userFilter.ToString().TrimEnd(','); }
protected void Advance_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.AV.AdvanceLookup advanceLookUp = sender as UserControls.LOV.AV.AdvanceLookup; ExpenseDataSet expenseDS = (ExpenseDataSet)TransactionService.GetDS(this.TransactionId); ExpenseDataSet.FnExpenseDocumentRow row = expenseDS.FnExpenseDocument.FindByExpenseID(this.ExpDocumentID); if (!row.IsMainCurrencyIDNull()) { this.MainCurrencyID = row.MainCurrencyID; } if (!row.IsPBIDNull()) { this.PBID = row.PBID; } this.IsRepOffice = row.IsIsRepOfficeNull() ? false : row.IsRepOffice; advanceLookUp.CompanyID = CompanyID; // UIHelper.ParseLong(((LOV.SCG.DB.CompanyField)this.Parent.Parent.Parent.Parent.FindControl("ctlCompanyField")).CompanyID); advanceLookUp.RequesterID = RequesterID; // UIHelper.ParseLong(((ActorData)this.Parent.Parent.Parent.Parent.FindControl("ctlRequesterData")).UserID); advanceLookUp.AdvanceType = FnExpenseDocumentService.GetExpenseType(this.ExpDocumentID, this.TransactionId); advanceLookUp.IsRelateWithRemittanceButNotInExpense = true; advanceLookUp.PBID = this.PBID; advanceLookUp.MainCurrencyID = this.MainCurrencyID; advanceLookUp.IsRepOffice = this.IsRepOffice; if (!string.IsNullOrEmpty(Request.Params["wfid"]) && UIHelper.ParseInt(Request.Params["wfid"]) > 0) { long workFlowID = UIHelper.ParseLong(Request.Params["wfid"]); SS.Standard.WorkFlow.DTO.WorkFlow wf = WorkFlowQueryProvider.WorkFlowQuery.FindByIdentity(workFlowID); if (wf != null && wf.CurrentState != null && wf.CurrentState.Name != null && wf.CurrentState.Name.Equals(WorkFlowStateFlag.Draft)) { advanceLookUp.CurrentUserID = UserAccount.UserID; } } else { advanceLookUp.CurrentUserID = UserAccount.UserID; } }
protected void ctlCostCenterLookUp_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { //UserControls.LOV.SCG.DB.CostCenterLookUp CostCenterSearch = sender as UserControls.LOV.SCG.DB.CostCenterLookUp; }
protected void ctlUserAutoCompleteLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SCG.DB.UserAutoCompleteLookup control = sender as UserControls.LOV.SCG.DB.UserAutoCompleteLookup; if (IsApprover) { control.IsApprovalFlag = true; } control.IsActive = true; }
protected void ctlLocationField_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { }
protected void ctlCostCenterField_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { }
protected void ctlTANoLookup_ObjectLookupCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SCG.DB.TALookup lookup = sender as UserControls.LOV.SCG.DB.TALookup; //lookup.CompanyID = ; //lookup.RequesterID = ; }
protected void ctlLocationLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SCG.DB.LocationLookup LocationSearch = sender as UserControls.LOV.SCG.DB.LocationLookup; }
protected void ctlAccountLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SS.DB.ProgramSearch lookup = sender as UserControls.LOV.SS.DB.ProgramSearch; }
protected void ctlMileageRateRevisionLookUp_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { MileageRateRevisionLookUp.MRRevitionId = new Guid(MiRvsItemId.Value); }
protected void Vendor1_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e) { UserControls.LOV.SCG.DB.VendorLookUp vendorSearch = sender as UserControls.LOV.SCG.DB.VendorLookUp; }