Compare commits
No commits in common. "18673d96542ec1cc75e3f73def3a0775c85e3e86" and "236df8a38c94501676470bb3a38fe835350cb1c2" have entirely different histories.
18673d9654
...
236df8a38c
|
@ -219,64 +219,27 @@ namespace FineUIPro.Web.CQMS.ManageReportNew
|
||||||
|
|
||||||
#region 加载文本框内容
|
#region 加载文本框内容
|
||||||
var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList();
|
var txtReportList = db.Report_TextBoxContent.Where(x => x.ReportId == ReportId).ToList();
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "0") != null)
|
txtAre0.Text = txtReportList.FirstOrDefault(x => x.ContentType == "0").ContentText;
|
||||||
{
|
txtAre1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "1").ContentText;
|
||||||
txtAre0.Text = txtReportList.FirstOrDefault(x => x.ContentType == "0").ContentText;
|
txtAre2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText;
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "1") != null)
|
txtAre20.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText;
|
||||||
{
|
txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText;
|
||||||
txtAre1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "1").ContentText;
|
txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
|
||||||
}
|
txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText;
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "2") != null)
|
|
||||||
{
|
imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl;
|
||||||
txtAre2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "2").ContentText;
|
txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText;
|
||||||
}
|
imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl;
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "20") != null)
|
txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText;
|
||||||
{
|
imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl;
|
||||||
txtAre20.Text = txtReportList.FirstOrDefault(x => x.ContentType == "20").ContentText;
|
txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText;
|
||||||
}
|
imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl;
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "21") != null)
|
txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText;
|
||||||
{
|
imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl;
|
||||||
txtAre21.Text = txtReportList.FirstOrDefault(x => x.ContentType == "21").ContentText;
|
txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText;
|
||||||
}
|
imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl;
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "22") != null)
|
txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText;
|
||||||
{
|
|
||||||
txtAre22.Text = txtReportList.FirstOrDefault(x => x.ContentType == "22").ContentText;
|
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "8") != null)
|
|
||||||
{
|
|
||||||
txtAre8.Text = txtReportList.FirstOrDefault(x => x.ContentType == "8").ContentText;
|
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-1") != null)
|
|
||||||
{
|
|
||||||
imgPhoto.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ImageUrl;
|
|
||||||
txtPhotoContent1.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-1").ContentText;
|
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-2") != null)
|
|
||||||
{
|
|
||||||
imgPhoto2.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ImageUrl;
|
|
||||||
txtPhotoContent2.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-2").ContentText;
|
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-3") != null)
|
|
||||||
{
|
|
||||||
imgPhoto3.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ImageUrl;
|
|
||||||
txtPhotoContent3.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-3").ContentText;
|
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-4") != null)
|
|
||||||
{
|
|
||||||
imgPhoto4.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ImageUrl;
|
|
||||||
txtPhotoContent4.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-4").ContentText;
|
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-5") != null)
|
|
||||||
{
|
|
||||||
imgPhoto5.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ImageUrl;
|
|
||||||
txtPhotoContent5.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-5").ContentText;
|
|
||||||
}
|
|
||||||
if (txtReportList.FirstOrDefault(x => x.ContentType == "23-6") != null)
|
|
||||||
{
|
|
||||||
imgPhoto6.ImageUrl = "~/" + txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ImageUrl;
|
|
||||||
txtPhotoContent6.Text = txtReportList.FirstOrDefault(x => x.ContentType == "23-6").ContentText;
|
|
||||||
}
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
//加载所有grid
|
//加载所有grid
|
||||||
|
|
Loading…
Reference in New Issue