SVN r1110
SVN-Revision: r1110
This commit is contained in:
@@ -1651,8 +1651,20 @@ namespace Lskj.PubAccraditation
|
||||
graphicsText.DrawString(this._waterMark.Text, new Font("宋体", 20, FontStyle.Bold), brush, new PointF(x, y), format, -20f);
|
||||
e.Graphics.TranslateTransform(x, y);
|
||||
e.Graphics.RotateTransform(-20f);
|
||||
if (Business.Impl.LanguageTranslation.Translatable)
|
||||
{
|
||||
// 1. 测量文本尺寸
|
||||
SizeF textSize = e.Graphics.MeasureString(this._waterMark.Text, new Font("宋体", 20, FontStyle.Bold), new SizeF(float.MaxValue, float.MaxValue), format);
|
||||
// 2. 计算边框矩形的尺寸和位置
|
||||
int rectWidth = (int)textSize.Width + 10;
|
||||
e.Graphics.DrawRectangle(pen, new Rectangle(-rectWidth / 2, -19, rectWidth, 32));
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Graphics.DrawRectangle(pen, new Rectangle(-45, -19, 90, 32));
|
||||
}
|
||||
|
||||
}
|
||||
e.Graphics.ResetTransform();
|
||||
if (!string.IsNullOrEmpty(this._waterMark.Print))
|
||||
{
|
||||
@@ -1661,8 +1673,21 @@ namespace Lskj.PubAccraditation
|
||||
graphicsText.DrawString(this._waterMark.Print, new Font("宋体", 18, FontStyle.Bold), brush, new PointF(x1, y1), format, -20f);
|
||||
e.Graphics.TranslateTransform(x1, y1);
|
||||
e.Graphics.RotateTransform(-20f);
|
||||
|
||||
if (Business.Impl.LanguageTranslation.Translatable)
|
||||
{
|
||||
// 1. 测量文本尺寸
|
||||
SizeF textSize = e.Graphics.MeasureString(this._waterMark.Print, new Font("宋体", 18, FontStyle.Bold), new SizeF(float.MaxValue, float.MaxValue), format);
|
||||
// 2. 计算边框矩形的尺寸和位置
|
||||
int rectWidth = (int)textSize.Width + 10;
|
||||
e.Graphics.DrawRectangle(pen, new Rectangle(-rectWidth / 2, -19, rectWidth, 32));
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Graphics.DrawRectangle(pen, new Rectangle(-60, -19, 120, 32));
|
||||
}
|
||||
|
||||
}
|
||||
e.Graphics.ResetTransform();
|
||||
if (!string.IsNullOrEmpty(this._waterMark.Collect))
|
||||
{
|
||||
@@ -1671,8 +1696,21 @@ namespace Lskj.PubAccraditation
|
||||
graphicsText.DrawString(this._waterMark.Collect, new Font("宋体", 20, FontStyle.Bold), brush, new PointF(x2, y2), format, -20f);
|
||||
e.Graphics.TranslateTransform(x2, y2);
|
||||
e.Graphics.RotateTransform(-20f);
|
||||
|
||||
if (Business.Impl.LanguageTranslation.Translatable)
|
||||
{
|
||||
// 1. 测量文本尺寸
|
||||
SizeF textSize = e.Graphics.MeasureString(this._waterMark.Collect, new Font("宋体", 20, FontStyle.Bold), new SizeF(float.MaxValue, float.MaxValue), format);
|
||||
// 2. 计算边框矩形的尺寸和位置
|
||||
int rectWidth = (int)textSize.Width + 10;
|
||||
e.Graphics.DrawRectangle(pen, new Rectangle(-rectWidth / 2, -19, rectWidth, 32));
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Graphics.DrawRectangle(pen, new Rectangle(-45, -19, 90, 32));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -2599,7 +2637,7 @@ namespace Lskj.PubAccraditation
|
||||
//this.SysModel, this.SysModel.StepCode, this.SysModel.BillDocumentId, "", this.BillAuditComObj.ProcedureName, "F", this._flowTypeStepModel.RemindSelect, opinion, remindOpers, confirmOpers);
|
||||
//string result = BaseAuditImpl.Audit(out nextSelectStepCode, out nextSelectStepOper, out string msgText, this.SysModel, this.SysModel.StepCode, this.SysModel.BillDocumentId, "", this.BillAuditComObj.ProcedureName, "F", this._flowTypeStepModel.RemindSelect, opinion, remindOpers, confirmOpers);
|
||||
string result = this.AuditMethod(out nextSelectStepCode, out nextSelectStepOper, out string msgText, this.SysModel, this.SysModel.StepCode, this.SysModel.BillDocumentId, "", this.BillAuditComObj.ProcedureName, "F", this._flowTypeStepModel.RemindSelect, opinion, remindOpers, confirmOpers);
|
||||
this.Info($"审核结果返回:{result}");
|
||||
this.Info($"审核单号:{this.SysModel.BillDocumentId},审核结果返回:{result}");
|
||||
WaitForm.HideForm();
|
||||
if ("1".Equals(result))
|
||||
{
|
||||
@@ -4304,29 +4342,3 @@ namespace Lskj.PubAccraditation
|
||||
/// <returns></returns>
|
||||
public void SaveAdditionalModules()
|
||||
{
|
||||
try
|
||||
{
|
||||
foreach (XtraTabPage tabPage in this.tab_basicInfo.TabControlObj.TabPages)
|
||||
{
|
||||
GridDetailModel model = this.tab_basicInfo.GetGridDetailModel(tabPage);
|
||||
|
||||
Object moduleObject = tabPage.Controls.Cast<Object>().FirstOrDefault();
|
||||
if (moduleObject is ModuleGridEx)
|
||||
{
|
||||
ModuleGridEx moduleGridEx = moduleObject as ModuleGridEx;
|
||||
if (moduleGridEx.GridControlObj.IsDataNotSaved() && moduleGridEx.BtnSave.Visible && moduleGridEx.BtnSave.Enabled)
|
||||
{
|
||||
moduleGridEx.BtnSave.PerformClick();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user