合并天辰 作业票
This commit is contained in:
@@ -294,8 +294,9 @@ namespace FineUIPro.Web.HSSE.License
|
||||
string filePath = string.Empty;
|
||||
initTemplatePath = "File\\Word\\HSSE\\吊装作业票.doc";
|
||||
uploadfilepath = rootPath + initTemplatePath;
|
||||
newUrl = uploadfilepath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".doc");
|
||||
filePath = initTemplatePath.Replace(".doc", string.Format("{0:yyyy-MM}", DateTime.Now) + ".pdf");
|
||||
string docfilename = Funs.GetNewFileName();
|
||||
newUrl = uploadfilepath.Replace(".doc", docfilename + ".doc");
|
||||
filePath = initTemplatePath.Replace(".doc", docfilename + ".pdf");
|
||||
File.Copy(uploadfilepath, newUrl);
|
||||
///更新书签
|
||||
var getLiftingWork = LicensePublicService.GetLiftingWorkById(Id);
|
||||
@@ -309,6 +310,8 @@ namespace FineUIPro.Web.HSSE.License
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkApplyManName = doc.Range.Bookmarks["ApplyManName"];//申请人
|
||||
Bookmark bookmarkApplyManName1 = doc.Range.Bookmarks["ApplyManName1"];//申请人
|
||||
Bookmark bookmarkApplyManPhone = doc.Range.Bookmarks["ApplyManPhone"];//申请人
|
||||
if (bookmarkApplyManName != null)
|
||||
{
|
||||
if (getLiftingWork != null)
|
||||
@@ -316,7 +319,15 @@ namespace FineUIPro.Web.HSSE.License
|
||||
var getUser = UserService.GetUserByUserId(getLiftingWork.ApplyManId);
|
||||
if (getUser != null)
|
||||
{
|
||||
bookmarkApplyManName.Text = getUser.UserName;
|
||||
bookmarkApplyManName.Text = getUser.UserName;
|
||||
if (bookmarkApplyManName1 != null)
|
||||
{
|
||||
bookmarkApplyManName1.Text = getUser.UserName;
|
||||
}
|
||||
if (bookmarkApplyManPhone != null)
|
||||
{
|
||||
bookmarkApplyManPhone.Text = getUser.Telephone;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -343,12 +354,57 @@ namespace FineUIPro.Web.HSSE.License
|
||||
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkWorkLevel = doc.Range.Bookmarks["WorkLevel"];//级别
|
||||
if (bookmarkWorkLevel != null)
|
||||
Bookmark bookmarkSafeMan = doc.Range.Bookmarks["SafeMan"];//
|
||||
if (bookmarkSafeMan != null)
|
||||
{
|
||||
if (getLiftingWork != null)
|
||||
if (getLiftingWork != null&&!string.IsNullOrEmpty(getLiftingWork.SafeMan))
|
||||
{
|
||||
bookmarkWorkLevel.Text = getLiftingWork.WorkLevel;
|
||||
bookmarkSafeMan.Text = getLiftingWork.SafeMan;
|
||||
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkControlMan = doc.Range.Bookmarks["ControlMan"];//
|
||||
if (bookmarkControlMan != null)
|
||||
{
|
||||
if (getLiftingWork != null && !string.IsNullOrEmpty(getLiftingWork.ControlMan))
|
||||
{
|
||||
bookmarkControlMan.Text = getLiftingWork.ControlMan;
|
||||
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkCarNum = doc.Range.Bookmarks["CarNum"];//
|
||||
if (bookmarkCarNum != null)
|
||||
{
|
||||
if (getLiftingWork != null && !string.IsNullOrEmpty(getLiftingWork.CarNum))
|
||||
{
|
||||
bookmarkCarNum.Text = getLiftingWork.CarNum;
|
||||
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkDriverMan = doc.Range.Bookmarks["DriverMan"];//
|
||||
if (bookmarkDriverMan != null)
|
||||
{
|
||||
if (getLiftingWork != null && !string.IsNullOrEmpty(getLiftingWork.DriverMan))
|
||||
{
|
||||
bookmarkDriverMan.Text = getLiftingWork.DriverMan;
|
||||
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkOtherMan = doc.Range.Bookmarks["OtherMan"];//
|
||||
if (bookmarkOtherMan != null)
|
||||
{
|
||||
if (getLiftingWork != null && !string.IsNullOrEmpty(getLiftingWork.OtherMan))
|
||||
{
|
||||
bookmarkOtherMan.Text = getLiftingWork.OtherMan;
|
||||
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkWatchMan = doc.Range.Bookmarks["WatchMan"];//
|
||||
if (bookmarkWatchMan != null)
|
||||
{
|
||||
if (getLiftingWork != null && !string.IsNullOrEmpty(getLiftingWork.WatchMan))
|
||||
{
|
||||
bookmarkWatchMan.Text = getLiftingWork.WatchMan;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -674,8 +730,75 @@ namespace FineUIPro.Web.HSSE.License
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var item13 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 13);
|
||||
if (item13 != null)
|
||||
{
|
||||
if (item13.IsUsed == true)
|
||||
{
|
||||
Bookmark bookmarkUser13 = doc.Range.Bookmarks["User13"];//确认执行
|
||||
if (bookmarkUser13 != null)
|
||||
{
|
||||
bookmarkUser13.Text = "√";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Bookmark bookmarkIsFit13 = doc.Range.Bookmarks["IsFit13"];
|
||||
if (bookmarkIsFit13 != null)
|
||||
{
|
||||
if (item13 != null)
|
||||
{
|
||||
bookmarkIsFit13.Text = "×";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var item14 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 14);
|
||||
if (item14 != null)
|
||||
{
|
||||
if (item14.IsUsed == true)
|
||||
{
|
||||
Bookmark bookmarkUser14 = doc.Range.Bookmarks["User14"];//确认执行
|
||||
if (bookmarkUser14 != null)
|
||||
{
|
||||
bookmarkUser14.Text = "√";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Bookmark bookmarkIsFit14 = doc.Range.Bookmarks["IsFit14"];
|
||||
if (bookmarkIsFit14 != null)
|
||||
{
|
||||
if (item14 != null)
|
||||
{
|
||||
bookmarkIsFit14.Text = "×";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
var item15 = GetLicenseItemList.FirstOrDefault(x => x.SortIndex == 15);
|
||||
if (item15 != null)
|
||||
{
|
||||
if (item15.IsUsed == true)
|
||||
{
|
||||
Bookmark bookmarkUser15 = doc.Range.Bookmarks["User15"];//确认执行
|
||||
if (bookmarkUser15 != null)
|
||||
{
|
||||
bookmarkUser15.Text = "√";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Bookmark bookmarkIsFit15 = doc.Range.Bookmarks["IsFit15"];
|
||||
if (bookmarkIsFit15 != null)
|
||||
{
|
||||
if (item15 != null)
|
||||
{
|
||||
bookmarkIsFit15.Text = "×";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//审核记录
|
||||
var getFlows = LicensePublicService.GetFlowOperateListByDataId(Id);
|
||||
@@ -684,321 +807,318 @@ namespace FineUIPro.Web.HSSE.License
|
||||
var getF1 = getFlows.FirstOrDefault(x => x.SortIndex == 1);
|
||||
if (getF1 != null)
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF1.OperaterId);
|
||||
Bookmark bookmarkOpinion1 = doc.Range.Bookmarks["Opinion1"];
|
||||
Bookmark bookmarkOpinion1 = doc.Range.Bookmarks["Opinion1"];
|
||||
if (bookmarkOpinion1 != null)
|
||||
{
|
||||
|
||||
|
||||
if (getUser != null)
|
||||
if (getF1.IsAgree == true)
|
||||
{
|
||||
if (getF1.IsAgree == true)
|
||||
if (string.IsNullOrEmpty(getF1.Opinion))
|
||||
{
|
||||
bookmarkOpinion1.Text = getF1.Opinion;
|
||||
bookmarkOpinion1.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOpinion1.Text = "不同意: " + getF1.Opinion;
|
||||
bookmarkOpinion1.Text = getF1.Opinion;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Bookmark bookmarkOperaterMan1 = doc.Range.Bookmarks["OperaterMan1"];
|
||||
if (bookmarkOperaterMan1 != null)
|
||||
{
|
||||
if (getF1.OperaterTime.HasValue)
|
||||
else
|
||||
{
|
||||
if (getUser != null)
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan1");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOperaterMan1.Text = getUser.UserName;
|
||||
}
|
||||
}
|
||||
bookmarkOpinion1.Text = "不同意: " + getF1.Opinion;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getF1.SignatureUrl) && File.Exists(rootPath + getF1.SignatureUrl))
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
var file = rootPath + getF1.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan1");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF1.OperaterId);
|
||||
if (getUser != null)
|
||||
{
|
||||
Bookmark bookmarkOperaterMan1 = doc.Range.Bookmarks["OperaterMan1"];
|
||||
if (bookmarkOperaterMan1 != null && getF1.OperaterTime.HasValue)
|
||||
{
|
||||
bookmarkOperaterMan1.Text = getUser.UserName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkOperaterTime1 = doc.Range.Bookmarks["OperaterTime1"];
|
||||
if (bookmarkOperaterTime1 != null)
|
||||
{
|
||||
if (getF1.OperaterTime.HasValue)
|
||||
{
|
||||
bookmarkOperaterTime1.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF1.OperaterTime);
|
||||
bookmarkOperaterTime1.Text = string.Format("{0:yyyy年MM月dd日 HH:mm}", getF1.OperaterTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
var getF2 = getFlows.FirstOrDefault(x => x.SortIndex == 2);
|
||||
if (getF2 != null)
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF2.OperaterId);
|
||||
Bookmark bookmarkOpinion2 = doc.Range.Bookmarks["Opinion2"];
|
||||
if (bookmarkOpinion2 != null)
|
||||
{
|
||||
|
||||
|
||||
if (getUser != null)
|
||||
if (getF2.IsAgree == true)
|
||||
{
|
||||
if (getF2.IsAgree == true)
|
||||
if (string.IsNullOrEmpty(getF2.Opinion))
|
||||
{
|
||||
bookmarkOpinion2.Text = getF2.Opinion;
|
||||
bookmarkOpinion2.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOpinion2.Text = "不同意: " + getF2.Opinion;
|
||||
bookmarkOpinion2.Text = getF2.Opinion;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Bookmark bookmarkOperaterMan2 = doc.Range.Bookmarks["OperaterMan2"];
|
||||
if (bookmarkOperaterMan2 != null)
|
||||
{
|
||||
if (getF2.OperaterTime.HasValue)
|
||||
else
|
||||
{
|
||||
if (getUser != null)
|
||||
bookmarkOpinion2.Text = "不同意: " + getF2.Opinion;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getF2.SignatureUrl) && File.Exists(rootPath + getF2.SignatureUrl))
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
var file = rootPath + getF2.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan2");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF2.OperaterId);
|
||||
if (getUser != null)
|
||||
{
|
||||
Bookmark bookmarkOperaterMan2 = doc.Range.Bookmarks["OperaterMan2"];
|
||||
if (bookmarkOperaterMan2 != null && getF2.OperaterTime.HasValue)
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan2");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOperaterMan2.Text = getUser.UserName;
|
||||
}
|
||||
bookmarkOperaterMan2.Text = getUser.UserName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Bookmark bookmarkOperaterTime2 = doc.Range.Bookmarks["OperaterTime2"];
|
||||
if (bookmarkOperaterTime2 != null)
|
||||
{
|
||||
if (getF2.OperaterTime.HasValue)
|
||||
{
|
||||
bookmarkOperaterTime2.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF2.OperaterTime);
|
||||
bookmarkOperaterTime2.Text = string.Format("{0:yyyy年MM月dd日 HH:mm}", getF2.OperaterTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
var getF3 = getFlows.FirstOrDefault(x => x.SortIndex == 3);
|
||||
if (getF3 != null)
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF3.OperaterId);
|
||||
Bookmark bookmarkOpinion3 = doc.Range.Bookmarks["Opinion3"];
|
||||
if (bookmarkOpinion3 != null)
|
||||
{
|
||||
{
|
||||
|
||||
|
||||
if (getUser != null)
|
||||
if (getF3.IsAgree == true)
|
||||
{
|
||||
if (getF3.IsAgree == true)
|
||||
if (string.IsNullOrEmpty(getF3.Opinion))
|
||||
{
|
||||
bookmarkOpinion3.Text = getF3.Opinion;
|
||||
bookmarkOpinion3.Text = "同意。";
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOpinion3.Text = "不同意: " + getF3.Opinion;
|
||||
bookmarkOpinion3.Text = getF3.Opinion;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Bookmark bookmarkOperaterMan3 = doc.Range.Bookmarks["OperaterMan3"];
|
||||
if (bookmarkOperaterMan3 != null)
|
||||
{
|
||||
if (getF3.OperaterTime.HasValue)
|
||||
else
|
||||
{
|
||||
if (getUser != null)
|
||||
bookmarkOpinion3.Text = "不同意: " + getF3.Opinion;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(getF3.SignatureUrl) && File.Exists(rootPath + getF3.SignatureUrl))
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
|
||||
var file = rootPath + getF3.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan3");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF3.OperaterId);
|
||||
if (getUser != null)
|
||||
{
|
||||
Bookmark bookmarkOperaterMan3 = doc.Range.Bookmarks["OperaterMan3"];
|
||||
if (bookmarkOperaterMan3 != null && getF3.OperaterTime.HasValue)
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan3");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOperaterMan3.Text = getUser.UserName;
|
||||
}
|
||||
bookmarkOperaterMan3.Text = getUser.UserName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Bookmark bookmarkOperaterTime3 = doc.Range.Bookmarks["OperaterTime3"];
|
||||
if (bookmarkOperaterTime3 != null)
|
||||
{
|
||||
if (getF3.OperaterTime.HasValue)
|
||||
{
|
||||
bookmarkOperaterTime3.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF3.OperaterTime);
|
||||
bookmarkOperaterTime3.Text = string.Format("{0:yyyy年MM月dd日 HH:mm}", getF3.OperaterTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
|
||||
if (getF4 != null)
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF4.OperaterId);
|
||||
Bookmark bookmarkOpinion4 = doc.Range.Bookmarks["Opinion4"];
|
||||
if (bookmarkOpinion4 != null)
|
||||
{
|
||||
//var getF4 = getFlows.FirstOrDefault(x => x.SortIndex == 4);
|
||||
//if (getF4 != null)
|
||||
//{
|
||||
// var getUser = UserService.GetUserByUserId(getF4.OperaterId);
|
||||
// Bookmark bookmarkOpinion4 = doc.Range.Bookmarks["Opinion4"];
|
||||
// if (bookmarkOpinion4 != null)
|
||||
// {
|
||||
|
||||
|
||||
if (getUser != null)
|
||||
{
|
||||
if (getF4.IsAgree == true)
|
||||
{
|
||||
bookmarkOpinion4.Text = getF4.Opinion;
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOpinion4.Text = "不同意: " + getF4.Opinion;
|
||||
}
|
||||
}
|
||||
// if (getUser != null)
|
||||
// {
|
||||
// if (getF4.IsAgree == true)
|
||||
// {
|
||||
// bookmarkOpinion4.Text = getF4.Opinion;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// bookmarkOpinion4.Text = "不同意: " + getF4.Opinion;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
Bookmark bookmarkOperaterMan4 = doc.Range.Bookmarks["OperaterMan4"];
|
||||
if (bookmarkOperaterMan4 != null)
|
||||
{
|
||||
if (getF4.OperaterTime.HasValue)
|
||||
{
|
||||
if (getUser != null)
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan4");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOperaterMan4.Text = getUser.UserName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkOperaterTime4 = doc.Range.Bookmarks["OperaterTime4"];
|
||||
if (bookmarkOperaterTime4 != null)
|
||||
{
|
||||
if (getF4.OperaterTime.HasValue)
|
||||
{
|
||||
bookmarkOperaterTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
|
||||
if (getF5 != null)
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF5.OperaterId);
|
||||
Bookmark bookmarkOpinion5 = doc.Range.Bookmarks["Opinion5"];
|
||||
if (bookmarkOpinion5 != null)
|
||||
{
|
||||
// }
|
||||
// Bookmark bookmarkOperaterMan4 = doc.Range.Bookmarks["OperaterMan4"];
|
||||
// if (bookmarkOperaterMan4 != null)
|
||||
// {
|
||||
// if (getF4.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getUser != null)
|
||||
// {
|
||||
// DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
// if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
// {
|
||||
// var file = rootPath + getUser.SignatureUrl;
|
||||
// builders.MoveToBookmark("OperaterMan4");
|
||||
// builders.InsertImage(file, 80, 20);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// bookmarkOperaterMan4.Text = getUser.UserName;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// Bookmark bookmarkOperaterTime4 = doc.Range.Bookmarks["OperaterTime4"];
|
||||
// if (bookmarkOperaterTime4 != null)
|
||||
// {
|
||||
// if (getF4.OperaterTime.HasValue)
|
||||
// {
|
||||
// bookmarkOperaterTime4.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF4.OperaterTime);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//var getF5 = getFlows.FirstOrDefault(x => x.SortIndex == 5);
|
||||
//if (getF5 != null)
|
||||
//{
|
||||
// var getUser = UserService.GetUserByUserId(getF5.OperaterId);
|
||||
// Bookmark bookmarkOpinion5 = doc.Range.Bookmarks["Opinion5"];
|
||||
// if (bookmarkOpinion5 != null)
|
||||
// {
|
||||
|
||||
|
||||
if (getUser != null)
|
||||
{
|
||||
if (getF5.IsAgree == true)
|
||||
{
|
||||
bookmarkOpinion5.Text = getF5.Opinion;
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOpinion5.Text = "不同意: " + getF5.Opinion;
|
||||
}
|
||||
}
|
||||
// if (getUser != null)
|
||||
// {
|
||||
// if (getF5.IsAgree == true)
|
||||
// {
|
||||
// bookmarkOpinion5.Text = getF5.Opinion;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// bookmarkOpinion5.Text = "不同意: " + getF5.Opinion;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
Bookmark bookmarkOperaterMan5 = doc.Range.Bookmarks["OperaterMan5"];
|
||||
if (bookmarkOperaterMan5 != null)
|
||||
{
|
||||
if (getF5.OperaterTime.HasValue)
|
||||
{
|
||||
if (getUser != null)
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan5");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOperaterMan5.Text = getUser.UserName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkOperaterTime5 = doc.Range.Bookmarks["OperaterTime5"];
|
||||
if (bookmarkOperaterTime5 != null)
|
||||
{
|
||||
if (getF5.OperaterTime.HasValue)
|
||||
{
|
||||
bookmarkOperaterTime5.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF5.OperaterTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
var getF6 = getFlows.FirstOrDefault(x => x.SortIndex == 6);
|
||||
if (getF6 != null)
|
||||
{
|
||||
var getUser = UserService.GetUserByUserId(getF6.OperaterId);
|
||||
Bookmark bookmarkOpinion6 = doc.Range.Bookmarks["Opinion6"];
|
||||
if (bookmarkOpinion6 != null)
|
||||
{
|
||||
// }
|
||||
// Bookmark bookmarkOperaterMan5 = doc.Range.Bookmarks["OperaterMan5"];
|
||||
// if (bookmarkOperaterMan5 != null)
|
||||
// {
|
||||
// if (getF5.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getUser != null)
|
||||
// {
|
||||
// DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
// if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
// {
|
||||
// var file = rootPath + getUser.SignatureUrl;
|
||||
// builders.MoveToBookmark("OperaterMan5");
|
||||
// builders.InsertImage(file, 80, 20);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// bookmarkOperaterMan5.Text = getUser.UserName;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// Bookmark bookmarkOperaterTime5 = doc.Range.Bookmarks["OperaterTime5"];
|
||||
// if (bookmarkOperaterTime5 != null)
|
||||
// {
|
||||
// if (getF5.OperaterTime.HasValue)
|
||||
// {
|
||||
// bookmarkOperaterTime5.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF5.OperaterTime);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//var getF6 = getFlows.FirstOrDefault(x => x.SortIndex == 6);
|
||||
//if (getF6 != null)
|
||||
//{
|
||||
// var getUser = UserService.GetUserByUserId(getF6.OperaterId);
|
||||
// Bookmark bookmarkOpinion6 = doc.Range.Bookmarks["Opinion6"];
|
||||
// if (bookmarkOpinion6 != null)
|
||||
// {
|
||||
|
||||
|
||||
if (getUser != null)
|
||||
{
|
||||
if (getF6.IsAgree == true)
|
||||
{
|
||||
bookmarkOpinion6.Text = getF6.Opinion;
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOpinion6.Text = "不同意: " + getF6.Opinion;
|
||||
}
|
||||
}
|
||||
// if (getUser != null)
|
||||
// {
|
||||
// if (getF6.IsAgree == true)
|
||||
// {
|
||||
// bookmarkOpinion6.Text = getF6.Opinion;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// bookmarkOpinion6.Text = "不同意: " + getF6.Opinion;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
Bookmark bookmarkOperaterMan6 = doc.Range.Bookmarks["OperaterMan6"];
|
||||
if (bookmarkOperaterMan6 != null)
|
||||
{
|
||||
if (getF6.OperaterTime.HasValue)
|
||||
{
|
||||
if (getUser != null)
|
||||
{
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
{
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
builders.MoveToBookmark("OperaterMan6");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
}
|
||||
else
|
||||
{
|
||||
bookmarkOperaterMan6.Text = getUser.UserName;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Bookmark bookmarkOperaterTime6 = doc.Range.Bookmarks["OperaterTime6"];
|
||||
if (bookmarkOperaterTime6 != null)
|
||||
{
|
||||
if (getF6.OperaterTime.HasValue)
|
||||
{
|
||||
bookmarkOperaterTime6.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF6.OperaterTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
// Bookmark bookmarkOperaterMan6 = doc.Range.Bookmarks["OperaterMan6"];
|
||||
// if (bookmarkOperaterMan6 != null)
|
||||
// {
|
||||
// if (getF6.OperaterTime.HasValue)
|
||||
// {
|
||||
// if (getUser != null)
|
||||
// {
|
||||
// DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
// if (!string.IsNullOrEmpty(getUser.SignatureUrl) && File.Exists(rootPath + getUser.SignatureUrl))
|
||||
// {
|
||||
// var file = rootPath + getUser.SignatureUrl;
|
||||
// builders.MoveToBookmark("OperaterMan6");
|
||||
// builders.InsertImage(file, 80, 20);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// bookmarkOperaterMan6.Text = getUser.UserName;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// Bookmark bookmarkOperaterTime6 = doc.Range.Bookmarks["OperaterTime6"];
|
||||
// if (bookmarkOperaterTime6 != null)
|
||||
// {
|
||||
// if (getF6.OperaterTime.HasValue)
|
||||
// {
|
||||
// bookmarkOperaterTime6.Text = string.Format("{0:yyyy-MM-dd HH:mm}", getF6.OperaterTime);
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
Bookmark bookmarkCance = doc.Range.Bookmarks["Cancel"];//取消
|
||||
@@ -1016,7 +1136,7 @@ namespace FineUIPro.Web.HSSE.License
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
builders.MoveToBookmark("Cancel");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
//builders.InsertImage(file, 80, 20);
|
||||
builders.Write("取消原因:" + getLiftingWork.CancelReasons + " 取消时间:" + string.Format("{0:yyyy-MM-dd HH:mm}", getLiftingWork.CancelTime));
|
||||
}
|
||||
else
|
||||
@@ -1048,7 +1168,7 @@ namespace FineUIPro.Web.HSSE.License
|
||||
var file = rootPath + getUser.SignatureUrl;
|
||||
DocumentBuilder builders = new DocumentBuilder(doc);
|
||||
builders.MoveToBookmark("Close");
|
||||
builders.InsertImage(file, 80, 20);
|
||||
// builders.InsertImage(file, 80, 20);
|
||||
builders.Write("关闭时间:" + string.Format("{0:yyyy-MM-dd HH:mm}", getLiftingWork.CloseTime));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user