public ActionResult UpdateState(string keyValue, int state) { ExcelExportEntity entity = new ExcelExportEntity() { F_EnabledMark = state }; excelExportIBLL.SaveEntity(keyValue, entity); return(Success("操作成功!")); }
/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <returns></returns> public void SaveForm(string keyValue, ExcelExportEntity entity) { try { service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
public ICellStyle GetStyles(bool parity, ExcelExportEntity entity) { if (parity && (entity == null || entity.IsWarp)) { return(StringNoneWrapStyle); } if (parity) { return(StringNoneStyle); } if (parity == false && (entity == null || entity.IsWarp)) { return(StringSeptailWrapStyle); } return(StringSeptailWrapStyle); }
public ActionResult SaveForm(string keyValue, ExcelExportEntity entity) { excelExportIBLL.SaveEntity(keyValue, entity); return(Success("保存成功!")); }
public ActionResult SaveForm(string keyValue, ExcelExportEntity entity) { excelexportbll.SaveForm(keyValue, entity); return(Success("操作成功。")); }
public ICellStyle GetStyles(ICell cell, int dataRow, ExcelExportEntity entity, object obj, object data) { return(GetStyles(dataRow % 2 == 1, entity)); }