Пример #1
0
        public BusinessModels.PurchaseRequest Insert(BusinessModels.PurchaseRequest PurchaseRequest)
        {
            BusinessModels.CompanyType mdcomp = _comptypedataLayer.GetCompanyType(PurchaseRequest.CompanyTypeID);
            string companyName = mdcomp.Company.CompanyName;

            PurchaseRequest.CaseNo = "Case#" + GetRandomAlphanumericString();
            PurchaseRequest.POCode = companyName + "#PO" + GetRandomAlphanumericString();
            return(_dataLayer.Insert(PurchaseRequest));
        }
Пример #2
0
 public BusinessModels.CompanyType GetCompanyType(Int32 identity)
 {
     return(_dataLayer.GetCompanyType(identity));
 }