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;
 }
示例#2
0
 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;
 }
示例#3
0
        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;
 }
示例#9
0
 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)
 {
 }
示例#12
0
 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;
 }
示例#14
0
 protected void ctlAccountLookup_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e)
 {
     UserControls.LOV.SS.DB.ProgramSearch lookup = sender as UserControls.LOV.SS.DB.ProgramSearch;
 }
示例#15
0
 protected void ctlMileageRateRevisionLookUp_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e)
 {
     MileageRateRevisionLookUp.MRRevitionId = new Guid(MiRvsItemId.Value);
 }
示例#16
0
 protected void Vendor1_OnObjectLookUpCalling(object sender, ObjectLookUpCallingEventArgs e)
 {
     UserControls.LOV.SCG.DB.VendorLookUp vendorSearch = sender as UserControls.LOV.SCG.DB.VendorLookUp;
 }