public ActionResult ConstructorEdit(ConstructorParameter param) { if ((0L < param.Entity.Id)) { param.Entity = ConstructorProvider.GetRecordById(param); } //取承包商的承包工程類別清單 param.Entity.ConsDetailType = ConstructorProvider.GetConstructorConType(param.Entity.Id); return(View(new InternalDataTransferToView { List = ConstructorProvider.GetAllConType(), //取工程類別總清單 //ConstructorProvider.GetDetail(param), Data = param })); }
public ActionResult ContractEdit(ContractParameter param) { if ((0L < param.Entity.Id)) { param.Entity = ContractProvider.GetRecordById(param); param.Entity.ConsDetailType = ConstructorProvider.GetConstructorConType(param.Entity.ConstructorId); } else { param.Entity.ConsDetailType = ConstructorProvider.GetAllConType(); } param.Entity.ContractDetail = ContractProvider.GetContractDetail(param.Entity.Id); //取明細表 return(View(new InternalDataTransferToView { //List = ConstructorProvider.GetConstructionTypeList(), //取工程類別總清單 //ContractProvider.GetDetail(param), Data = param })); }