public bool Find(int FundMasterId)
        {
            d = toList.Where(x => x.FundMasterId == FundMasterId).FirstOrDefault();

            if (d != null)
            {
                d.toCopy <CustomFormat>(this);
                //IsReadOnly = !UserPermission.AllowUpdate;

                return(true);
            }

            return(false);
        }
Example #2
0
        public bool Find(int CompanyId)
        {
            int CId;

            if (BLL.UserAccount.User.UserType.Company.CompanyType == "Warehouse" || BLL.UserAccount.User.UserType.Company.CompanyType == "Dealer")
            {
                CId = (int)BLL.UserAccount.User.UserType.Company.UnderCompanyId;
                d   = toList.Where(x => x.CompanyId == CId).FirstOrDefault();
            }
            else
            {
                d = toList.Where(x => x.CompanyId == CompanyId).FirstOrDefault();
            }
            if (d != null)
            {
                d.toCopy <CustomFormat>(this);
                //IsReadOnly = !UserPermission.AllowUpdate;

                return(true);
            }

            return(false);
        }