/// <summary> /// 修改 /// </summary> public override void EntityUpdate() { ReportManageRule rule = new ReportManageRule(); ReportManage entity = EntityGet(); ReportManageDts[] entitydts = EntityDtsGet(); ReportFile entityFile = new ReportFile(); ReportFileModel entityFileModel = new ReportFileModel(); if (drpReportModelType.EditValue.ToString() == "使用系统模板") { entityFile.FileID = HTDataID; entityFile.SelectByCode(); entityFileModel.ID = SysConvert.ToInt32(drpReportModel.EditValue); entityFileModel.SelectByID(); if (OLDModelType != drpReportModel.EditValue.ToString()) { entityFile.Context = entityFileModel.Context; } entityFile.FileName = txtFileName.Text.Trim(); } if (drpReportModelType.EditValue.ToString() == "使用本地文件") { entityFile.FileID = HTDataID; entityFile.SelectByCode(); if (HTFormStatus == FormStatus.新增) { entityFile.Context = HttSoft.WinUIBase.FastReport.ConvertToBinaryByPath(txtFilePath.Text.Trim()); } if (HTFormStatus == FormStatus.修改) { if (txtFilePath.Text.Trim() != "") { entityFile.Context = HttSoft.WinUIBase.FastReport.ConvertToBinaryByPath(txtFilePath.Text.Trim()); } } entityFile.FileName = txtFileName.Text.Trim(); } //entity.SubmitFlag = this.HTSubmitFlagUpdateGet(); rule.RUpdate(entity, entitydts, entityFile); }