public static ContractDistributor NewEmpty() { return(new ContractDistributor() { Id = -1, IdB = string.Empty, ContractDate = DateTime.Now, Distributor = Distributor.NewEmpty(), GRVBayerEmployee = BayerEmployee.NewEmpty(), RTVBayerEmployee = BayerEmployee.NewEmpty(), Year = DateTime.Now.Year }); }
public ActionResult IndexBayerEmployee() { PSD.Model.BayerEmployee auxUser = controller.GetBayerEmployee(CurrentUser.Id); PSD.Controller.EmployeeController employeeController = new EmployeeController(Configurations); List <Cat_Zone> auxZones = (List <Cat_Zone>)employeeController.RetrieveEmployeeZones(auxUser.MunicipalitiesXEmployee); List <string> zoneNames = new List <string>(); foreach (Cat_Zone item in auxZones) { zoneNames.Add(item.Name); } ViewBag.EmployeeZoneNames = PSD.Common.Strings.ToString(zoneNames); return(View(auxUser)); }
public static ContractSubdistributor NewEmpty() { return(new ContractSubdistributor() { Id = -1, IdB = string.Empty, ContractDate = PSD.Common.Dates.Today, Subdistributor = Subdistributor.NewEmpty(), GRVBayerEmployee = BayerEmployee.NewEmpty(), RTVBayerEmployee = BayerEmployee.NewEmpty(), Year = PSD.Common.Dates.Today.Year, DistributorPurchases = new List <DistributorPurchasesXContractSubdistributor>(), RegisteredRegionName = string.Empty, RegisteredZoneName = string.Empty }); }