// GET: Item public ActionResult Create() { FillItemCategory(); FillUnit(); FillItem(); FillJobCardTaskMaster(); InitDropdown(); Item oItem = new Item(); oItem.PartNo = null; oItem.ItemName = null; oItem.ItemPrintName = null; oItem.ItemShortName = null; oItem.CommodityId = null; oItem.ItemCategoryId = 0; oItem.ItemGroupId = 0; oItem.ItemSubGroupId = 0; oItem.ItemUnitId = null; oItem.ExpiryDate = DateTime.Now; oItem.MinLevel = null; oItem.ReorderLevel = null; oItem.MaxLevel = null; oItem.StockRequired = false; oItem.BatchRequired = false; oItem.EvaporatorUnit = false; oItem.CondenserUnit = false; oItem.Door = false; oItem.ItemRefNo = "ITM/" + DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(Item).Name); oItem.ItemVsBom.Add(new WorkVsItem()); oItem.ItemVsTasks.Add(new WorkVsTask()); return(View("Create", oItem)); }
public ActionResult Create() { string internalid = DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(Stockpoint).Name); return(View(new Stockpoint { StockPointRefNo = "SP/" + internalid })); }
public ActionResult Create() { ViewBag.Title = "Create"; Company Company = new Company(); Company.cmpUsercode = "C/" + DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(Company).Name); return(View(Company)); }
public ActionResult Create() { string internalid = DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(CommissionAgent).Name); return(View(new CommissionAgent { CommissionAgentRefNo = "CA/" + internalid })); }
public ActionResult Create() { string internalid = DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(VehicleModel).Name); return(View(new VehicleModel { VehicleModelRefNo = "VM/" + internalid })); }
public ActionResult Create() { string internalid = DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(EmployeeCategory).Name); return(View(new EmployeeCategory { EmpCategoryRefNo = "EMPC/" + internalid })); }
public ActionResult Create() { FillCurrencySymbols(); string internalid = DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(Currency).Name); return(View(new Currency { CurrencyRefNo = "CUR/" + internalid })); }
public ActionResult Create() { FillItemGroup(); string internalid = DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(ItemSubGroup).Name); return(View(new ItemSubGroup { ItemSubGroupRefNo = "ISG/" + internalid })); }
public ActionResult Create() { ViewBag.Title = "Create"; Organization Organization = new Organization(); Organization.OrganizationRefNo = "ORG/" + DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(Organization).Name); dropdown(); FillCountryDropdown(); FillCompanyDropdown(); return(View(Organization)); }
public ActionResult CreateProjectWorkDescription() { FillItem(); FillJobCardTaskMaster(); WorkDescription workdescription = new WorkDescription(); workdescription.WorkDescriptionRefNo = "WD/" + DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(WorkDescription).Name); workdescription.isNewInstallation = true; workdescription.isProjectBased = true; workdescription.WorkVsItems.Add(new WorkVsItem()); workdescription.WorkVsTasks.Add(new WorkVsTask()); return(View("CreateWorkDescription", workdescription)); }
public ActionResult Create() { FillDesignationDropdown(); FillCategoryDropdown(); FillLocationDropdown(); string internalid = DatabaseCommonRepository.GetNextRefNoWithNoUpdate(typeof(Employee).Name); //model.EmployeeRefNo = "EMP/" + internalid; return(View(new Employee { EmployeeRefNo = "EMP/" + internalid })); }