修改施工日志
This commit is contained in:
@@ -1235,6 +1235,30 @@ namespace FineUIPro.Web.PZHGL.InformationProject
|
||||
TextNew();
|
||||
}
|
||||
|
||||
protected void imgBtnFile_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.txtCompileDate.Text.Trim()))
|
||||
{
|
||||
Alert.ShowInTop("请选择日期!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
DateTime today = DateTime.Now.Date;
|
||||
if (!string.IsNullOrEmpty(this.txtCompileDate.Text.Trim()))
|
||||
{
|
||||
today = Convert.ToDateTime(this.txtCompileDate.Text.Trim()).Date;
|
||||
}
|
||||
var personLogs = from x in Funs.DB.ZHGL_ConstructionLog
|
||||
where x.ProjectId == this.CurrUser.LoginProjectId && x.CompileDate == today
|
||||
orderby x.CompileDate descending
|
||||
select x;
|
||||
string logIds = string.Empty;
|
||||
foreach (var personLog in personLogs)
|
||||
{
|
||||
logIds += personLog.ConstructionLogId + ",";
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type={0}&toKeyId={1}&ConstructionLog=ConstructionLog&path=FileUpload/ConstructionLog&menuId={2}", -1, logIds, BLL.Const.ConstructionLogMenuId)));
|
||||
}
|
||||
|
||||
protected void btnWorkEfficiency_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.txtCompileDate.Text.Trim()))
|
||||
|
||||
Reference in New Issue
Block a user