private APDetailMasterModel GetAPDetailMasterModel() { string KeyFieldName = "Customer_Name"; APDetailMasterModel model = new APDetailMasterModel() { KeyFieldName = KeyFieldName }; var data = GetAPDetailTransactionalData(); model.CompanyName = Session["Accounting_sCompanName"] == null ? "" : Session["Accounting_sCompanName"] as string; model.PeriodBegin = Session["Accounting_sPeriodBegin"] as string; model.PeriodEnd = Session["Accounting_sPeriodEnd"] as string; model.Elements = data; return(model); }
public ActionResult APDetailMaster() { APDetailMasterModel model = GetAPDetailMasterModel(); return(PartialView("_APDetail/_APDetailMaster", model)); }