作业票
This commit is contained in:
@@ -61,7 +61,8 @@ namespace FineUIPro.Web.HSSE.License
|
||||
{
|
||||
this.InitDropDownList();
|
||||
}
|
||||
this.txtLicenseManagerCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.LicenseManagerId);
|
||||
this.txtLicenseManagerCode.Text = licenseManager.LicenseManagerCode;
|
||||
//this.txtLicenseManagerCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.LicenseManagerId);
|
||||
//this.txtLicenseManageName.Text = licenseManager.LicenseManageName;
|
||||
if (!string.IsNullOrEmpty(licenseManager.UnitId))
|
||||
{
|
||||
@@ -125,6 +126,11 @@ namespace FineUIPro.Web.HSSE.License
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.SaveData(BLL.Const.BtnSave);
|
||||
var porject = BLL.ProjectService.GetProjectByProjectId(this.ProjectId);
|
||||
if (!string.IsNullOrWhiteSpace(porject.SubjectUnit) && !string.IsNullOrWhiteSpace(porject.SubjectProject))
|
||||
{//项目关联了总包单位项目,保存成功后自动推送至总包单位
|
||||
BLL.APILicenseSyncService.PushLicenseManagerLists(this.ProjectId, this.LicenseManagerId);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
@@ -203,6 +209,7 @@ namespace FineUIPro.Web.HSSE.License
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// </summary>
|
||||
@@ -216,6 +223,21 @@ namespace FineUIPro.Web.HSSE.License
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/LicenseManagerAttachUrl&menuId={1}", LicenseManagerId, BLL.Const.ProjectLicenseManagerMenuId)));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上传附件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttachUrlGB_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.LicenseManagerId))
|
||||
{
|
||||
this.SaveData(BLL.Const.BtnSave);
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/LicenseManagerAttachUrl&menuId={1}", LicenseManagerId + "_GB", BLL.Const.ProjectLicenseManagerMenuId)));
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 单位选择事件
|
||||
|
||||
Reference in New Issue
Block a user