2023-09-04

This commit is contained in:
李鹏飞 2023-09-04 18:07:10 +08:00
parent e1e1d5394a
commit 595f6226f2
3 changed files with 28 additions and 27 deletions

Binary file not shown.

View File

@ -291,7 +291,7 @@ namespace BLL
BLL.Funs.DB.HJGL_Batch_PointBatchItem.InsertOnSubmit(batchDetail); BLL.Funs.DB.HJGL_Batch_PointBatchItem.InsertOnSubmit(batchDetail);
BLL.Funs.DB.SubmitChanges(); BLL.Funs.DB.SubmitChanges();
// 焊工首道口RT必点 /*// 焊工首道口RT必点
var joints = from x in Funs.DB.HJGL_Batch_PointBatchItem var joints = from x in Funs.DB.HJGL_Batch_PointBatchItem
join y in Funs.DB.HJGL_Batch_PointBatch on x.PointBatchId equals y.PointBatchId join y in Funs.DB.HJGL_Batch_PointBatch on x.PointBatchId equals y.PointBatchId
join z in Funs.DB.Base_DetectionType on y.DetectionTypeId equals z.DetectionTypeId join z in Funs.DB.Base_DetectionType on y.DetectionTypeId equals z.DetectionTypeId
@ -303,7 +303,7 @@ namespace BLL
{ {
BLL.PointBatchDetailService.UpdatePointBatchDetail(pointBatchItemId, "1", System.DateTime.Now); BLL.PointBatchDetailService.UpdatePointBatchDetail(pointBatchItemId, "1", System.DateTime.Now);
BLL.PointBatchDetailService.UpdateWelderFirst(pointBatchItemId, true); BLL.PointBatchDetailService.UpdateWelderFirst(pointBatchItemId, true);
} }*/
} }
catch catch
{ {

View File

@ -447,37 +447,38 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand
protected void btnPrint_Click(object sender, EventArgs e) protected void btnPrint_Click(object sender, EventArgs e)
{ {
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.HJGL_RepairTrustMenuId, Const.BtnPrint)) if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{ {
if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) string varValue = string.Empty;
string trustBatchId = this.tvControlItem.SelectedNodeID;
Model.View_Batch_BatchTrust trust = BLL.Batch_BatchTrustService.GetBatchTrustViewById(trustBatchId);
if (trust != null)
{ {
string varValue = string.Empty; varValue = trust.TrustBatchCode + "|" + trust.TrustDate.Value.Date + "|";
string trustBatchId = this.tvControlItem.SelectedNodeID; var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
if (project != null)
Model.View_Batch_BatchTrust trust = BLL.Batch_BatchTrustService.GetBatchTrustViewById(trustBatchId);
if (trust != null)
{ {
varValue = trust.TrustBatchCode + "|" + trust.TrustDate.Value.Date + "|"; varValue = varValue + project.ProjectName + "|" + project.ProjectCode + "|";
var project = BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
if (project != null)
{
varValue = varValue + project.ProjectName + "|" + project.ProjectCode + "|";
}
//varValue = varValue + trust.InstallationName + "|" + trust.InstallationCode;
if (!string.IsNullOrEmpty(varValue))
{
varValue = HttpUtility.UrlEncodeUnicode(varValue);
}
//PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.CheckTrustReport, trustBatchId, varValue)));
} }
//varValue = varValue + trust.InstallationName + "|" + trust.InstallationCode;
if (!string.IsNullOrEmpty(varValue))
{
varValue = HttpUtility.UrlEncodeUnicode(varValue);
}
//PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.CheckTrustReport, trustBatchId, varValue)));
} }
} }
else //if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, Const.HJGL_RepairTrustMenuId, Const.BtnPrint))
{ //{
ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
return; //}
} //else
//{
// ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
// return;
//}
} }
#region #region