提交代码
This commit is contained in:
parent
5ec6046196
commit
c101f38d02
Binary file not shown.
|
@ -162,7 +162,7 @@
|
||||||
</site>
|
</site>
|
||||||
<site name="FineUIPro.Web" id="2">
|
<site name="FineUIPro.Web" id="2">
|
||||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||||
<virtualDirectory path="/" physicalPath="D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web" />
|
<virtualDirectory path="/" physicalPath="E:\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web" />
|
||||||
</application>
|
</application>
|
||||||
<bindings>
|
<bindings>
|
||||||
<binding protocol="http" bindingInformation="*:64304:localhost" />
|
<binding protocol="http" bindingInformation="*:64304:localhost" />
|
||||||
|
@ -170,7 +170,7 @@
|
||||||
</site>
|
</site>
|
||||||
<site name="WebAPI" id="3">
|
<site name="WebAPI" id="3">
|
||||||
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
<application path="/" applicationPool="Clr4IntegratedAppPool">
|
||||||
<virtualDirectory path="/" physicalPath="D:\工作\鼎盛\HJGL_DS\HJGL_DS\WebAPI" />
|
<virtualDirectory path="/" physicalPath="E:\鼎盛\HJGL_DS\HJGL_DS\WebAPI" />
|
||||||
</application>
|
</application>
|
||||||
<bindings>
|
<bindings>
|
||||||
<binding protocol="http" bindingInformation="*:32379:localhost" />
|
<binding protocol="http" bindingInformation="*:32379:localhost" />
|
||||||
|
|
|
@ -350,8 +350,9 @@ namespace BLL.API
|
||||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
var q = (from x in db.HJGL_BS_Welder
|
var q = (from x in db.HJGL_BS_Welder
|
||||||
join y in db.Project_Welder on x.WED_ID equals y.WED_ID
|
join
|
||||||
where y.ProjectId == projectId && x.WED_IfOnGuard == true
|
y in db.Project_Welder on x.WED_ID equals y.WED_ID
|
||||||
|
where y.ProjectId == projectId
|
||||||
orderby x.WED_Code
|
orderby x.WED_Code
|
||||||
select x).ToList();
|
select x).ToList();
|
||||||
|
|
||||||
|
|
|
@ -714,29 +714,26 @@ namespace BLL
|
||||||
{
|
{
|
||||||
newJointInfo.RT2_RepairFilmNum = newJointInfo.RT2_RepairFilmNum - 1;
|
newJointInfo.RT2_RepairFilmNum = newJointInfo.RT2_RepairFilmNum - 1;
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(newJointInfo.RT2_RepairFilm))
|
string[] strs = newJointInfo.RT2_RepairFilm.Split(',');
|
||||||
|
if (strs.Length == 1)
|
||||||
{
|
{
|
||||||
string[] strs = newJointInfo.RT2_RepairFilm.Split(',');
|
newJointInfo.RT2_RepairFilm = null;
|
||||||
if (strs.Length == 1)
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string str = string.Empty;
|
||||||
|
foreach (var item in strs)
|
||||||
{
|
{
|
||||||
newJointInfo.RT2_RepairFilm = null;
|
if (item != filmNum)
|
||||||
|
{
|
||||||
|
str += item + ",";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
if (!string.IsNullOrEmpty(str))
|
||||||
{
|
{
|
||||||
string str = string.Empty;
|
str = str.Substring(0, str.LastIndexOf(","));
|
||||||
foreach (var item in strs)
|
|
||||||
{
|
|
||||||
if (item != filmNum)
|
|
||||||
{
|
|
||||||
str += item + ",";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!string.IsNullOrEmpty(str))
|
|
||||||
{
|
|
||||||
str = str.Substring(0, str.LastIndexOf(","));
|
|
||||||
}
|
|
||||||
newJointInfo.RT2_RepairFilm = str;
|
|
||||||
}
|
}
|
||||||
|
newJointInfo.RT2_RepairFilm = str;
|
||||||
}
|
}
|
||||||
newJointInfo.HardResultDate = DateTime.Now;
|
newJointInfo.HardResultDate = DateTime.Now;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
@ -792,29 +789,26 @@ namespace BLL
|
||||||
{
|
{
|
||||||
newJointInfo.RT3_RepairFilmNum = newJointInfo.RT3_RepairFilmNum - 1;
|
newJointInfo.RT3_RepairFilmNum = newJointInfo.RT3_RepairFilmNum - 1;
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(newJointInfo.RT3_RepairFilm))
|
string[] strs = newJointInfo.RT3_RepairFilm.Split(',');
|
||||||
|
if (strs.Length == 1)
|
||||||
{
|
{
|
||||||
string[] strs = newJointInfo.RT3_RepairFilm.Split(',');
|
newJointInfo.RT3_RepairFilm = null;
|
||||||
if (strs.Length == 1)
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string str = string.Empty;
|
||||||
|
foreach (var item in strs)
|
||||||
{
|
{
|
||||||
newJointInfo.RT3_RepairFilm = null;
|
if (item != filmNum)
|
||||||
|
{
|
||||||
|
str += item + ",";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
if (!string.IsNullOrEmpty(str))
|
||||||
{
|
{
|
||||||
string str = string.Empty;
|
str = str.Substring(0, str.LastIndexOf(","));
|
||||||
foreach (var item in strs)
|
|
||||||
{
|
|
||||||
if (item != filmNum)
|
|
||||||
{
|
|
||||||
str += item + ",";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!string.IsNullOrEmpty(str))
|
|
||||||
{
|
|
||||||
str = str.Substring(0, str.LastIndexOf(","));
|
|
||||||
}
|
|
||||||
newJointInfo.RT3_RepairFilm = str;
|
|
||||||
}
|
}
|
||||||
|
newJointInfo.RT3_RepairFilm = str;
|
||||||
}
|
}
|
||||||
newJointInfo.HardResultDate = DateTime.Now;
|
newJointInfo.HardResultDate = DateTime.Now;
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -527,7 +527,7 @@ namespace FineUIPro.Web.HJGL.DataIn
|
||||||
decimal? sch = Funs.GetNewDecimal(joint.JOT_Sch);
|
decimal? sch = Funs.GetNewDecimal(joint.JOT_Sch);
|
||||||
string wmeCode = weldMethod.WME_Code;
|
string wmeCode = weldMethod.WME_Code;
|
||||||
|
|
||||||
string[] wmeCodes = wmeCode.Split('+');
|
string[] wmeCodes = wmeCode.Split('/');
|
||||||
string location = locationItem.Value;
|
string location = locationItem.Value;
|
||||||
string ste = joint.STE_ID;
|
string ste = joint.STE_ID;
|
||||||
|
|
||||||
|
|
|
@ -261,9 +261,6 @@
|
||||||
</f:DatePicker>
|
</f:DatePicker>
|
||||||
</Editor>
|
</Editor>
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:WindowField ColumnID="myUploadFile5" Width="160px" WindowID="Window6" HeaderText="预热照片" TextAlign="Center" HeaderTextAlign="Center"
|
|
||||||
Text="预热照片" ToolTip="预热照片" DataTextFormatString="{0}" DataIFrameUrlFields="JOT_ID5"
|
|
||||||
DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/HJGL/HotProessManage&menuId=90579BE7-E38C-4CD2-6666-755169FF3BB2&edit=1" DataWindowTitleFormatString="附件上传 - {0}" />
|
|
||||||
<f:WindowField ColumnID="myUploadFile1" Width="160px" WindowID="Window6" HeaderText="热电偶照片" TextAlign="Center" HeaderTextAlign="Center"
|
<f:WindowField ColumnID="myUploadFile1" Width="160px" WindowID="Window6" HeaderText="热电偶照片" TextAlign="Center" HeaderTextAlign="Center"
|
||||||
Text="热电偶照片" ToolTip="热电偶照片" DataTextFormatString="{0}" DataIFrameUrlFields="JOT_ID1"
|
Text="热电偶照片" ToolTip="热电偶照片" DataTextFormatString="{0}" DataIFrameUrlFields="JOT_ID1"
|
||||||
DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/HJGL/HotProessManage&menuId=90579BE7-E38C-4CD2-6666-755169FF3BB2&edit=1" DataWindowTitleFormatString="附件上传 - {0}" />
|
DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/HJGL/HotProessManage&menuId=90579BE7-E38C-4CD2-6666-755169FF3BB2&edit=1" DataWindowTitleFormatString="附件上传 - {0}" />
|
||||||
|
|
|
@ -121,7 +121,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
if (this.tvControlItem.SelectedNode.CommandName == "项目名称")
|
if (this.tvControlItem.SelectedNode.CommandName == "项目名称")
|
||||||
{
|
{
|
||||||
strSql = @"SELECT JointInfo.ProjectId,JointInfo.JOT_ID,Project.ProjectCode,HotProessItem.PrintDate,Sort1,Sort2,Sort3,Sort4,Sort5,
|
strSql = @"SELECT JointInfo.ProjectId,JointInfo.JOT_ID,Project.ProjectCode,HotProessItem.PrintDate,Sort1,Sort2,Sort3,Sort4,Sort5,
|
||||||
JointInfo.JOT_ID+'1' as JOT_ID1, JointInfo.JOT_ID+'2' as JOT_ID2,JointInfo.JOT_ID+'3' as JOT_ID3,JointInfo.JOT_ID+'4' as JOT_ID4,JointInfo.JOT_ID+'5' as JOT_ID5,
|
JointInfo.JOT_ID+'1' as JOT_ID1, JointInfo.JOT_ID+'2' as JOT_ID2,JointInfo.JOT_ID+'3' as JOT_ID3,JointInfo.JOT_ID+'4' as JOT_ID4,
|
||||||
(CASE WHEN v.RepairMark IS NOT NULL THEN (JointInfo.JOT_JointNo+v.RepairMark)
|
(CASE WHEN v.RepairMark IS NOT NULL THEN (JointInfo.JOT_JointNo+v.RepairMark)
|
||||||
ELSE JointInfo.JOT_JointNo END )+isnull((select Top 1 HardRepairMark from dbo.HJGL_CH_HotProessTrustItem a where a.JOT_ID=HotProessItem.JOT_ID and a.HotProessTrustId=HotProessItem.HotProessTrustId and a.ProessTypes=HotProessItem.ProessTypes),'') AS JOT_JointNo,IsoInfo.ISO_IsoNo,IsoInfo.ISO_ID,
|
ELSE JointInfo.JOT_JointNo END )+isnull((select Top 1 HardRepairMark from dbo.HJGL_CH_HotProessTrustItem a where a.JOT_ID=HotProessItem.JOT_ID and a.HotProessTrustId=HotProessItem.HotProessTrustId and a.ProessTypes=HotProessItem.ProessTypes),'') AS JOT_JointNo,IsoInfo.ISO_IsoNo,IsoInfo.ISO_ID,
|
||||||
(CASE WHEN Steel.STE_Code IS NOT NULL AND Steel2.STE_Code IS NOT NULL and Steel.STE_Code!=Steel2.STE_Code
|
(CASE WHEN Steel.STE_Code IS NOT NULL AND Steel2.STE_Code IS NOT NULL and Steel.STE_Code!=Steel2.STE_Code
|
||||||
|
@ -1366,7 +1366,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
NPOI.SS.UserModel.ISheet sheet = workbook.GetSheetAt(0);
|
NPOI.SS.UserModel.ISheet sheet = workbook.GetSheetAt(0);
|
||||||
int i = 2;
|
int i = 2;
|
||||||
strSql = @"SELECT JointInfo.ProjectId,JointInfo.JOT_ID,Project.ProjectCode,HotProessItem.PrintDate,HotProessTrust.HotProessTrustCode,(select Top 1 TrustDate from dbo.HJGL_CH_HotProessTrustItem a where a.JOT_ID=HotProessItem.JOT_ID and a.HotProessTrustId=HotProessItem.HotProessTrustId) as TrustDate,
|
strSql = @"SELECT JointInfo.ProjectId,JointInfo.JOT_ID,Project.ProjectCode,HotProessItem.PrintDate,HotProessTrust.HotProessTrustCode,(select Top 1 TrustDate from dbo.HJGL_CH_HotProessTrustItem a where a.JOT_ID=HotProessItem.JOT_ID and a.HotProessTrustId=HotProessItem.HotProessTrustId) as TrustDate,
|
||||||
JointInfo.JOT_ID+'1' as JOT_ID1, JointInfo.JOT_ID+'2' as JOT_ID2,JointInfo.JOT_ID+'3' as JOT_ID3,JointInfo.JOT_ID+'4' as JOT_ID4,JointInfo.JOT_ID+'5' as JOT_ID5,
|
JointInfo.JOT_ID+'1' as JOT_ID1, JointInfo.JOT_ID+'2' as JOT_ID2,JointInfo.JOT_ID+'3' as JOT_ID3,JointInfo.JOT_ID+'4' as JOT_ID4,
|
||||||
(CASE WHEN v.RepairMark IS NOT NULL THEN (JointInfo.JOT_JointNo+v.RepairMark)
|
(CASE WHEN v.RepairMark IS NOT NULL THEN (JointInfo.JOT_JointNo+v.RepairMark)
|
||||||
ELSE JointInfo.JOT_JointNo END )+isnull((select Top 1 HardRepairMark from dbo.HJGL_CH_HotProessTrustItem a where a.JOT_ID=HotProessItem.JOT_ID and a.HotProessTrustId=HotProessItem.HotProessTrustId and a.ProessTypes=HotProessItem.ProessTypes),'') AS JOT_JointNo,IsoInfo.ISO_IsoNo,IsoInfo.ISO_ID,
|
ELSE JointInfo.JOT_JointNo END )+isnull((select Top 1 HardRepairMark from dbo.HJGL_CH_HotProessTrustItem a where a.JOT_ID=HotProessItem.JOT_ID and a.HotProessTrustId=HotProessItem.HotProessTrustId and a.ProessTypes=HotProessItem.ProessTypes),'') AS JOT_JointNo,IsoInfo.ISO_IsoNo,IsoInfo.ISO_ID,
|
||||||
(CASE WHEN Steel.STE_Code IS NOT NULL AND Steel2.STE_Code IS NOT NULL and Steel.STE_Code!=Steel2.STE_Code
|
(CASE WHEN Steel.STE_Code IS NOT NULL AND Steel2.STE_Code IS NOT NULL and Steel.STE_Code!=Steel2.STE_Code
|
||||||
|
@ -1403,21 +1403,20 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
NPOI.SS.UserModel.IRow row;
|
NPOI.SS.UserModel.IRow row;
|
||||||
NPOI.SS.UserModel.ICell cell;
|
NPOI.SS.UserModel.ICell cell;
|
||||||
List<string> jotIds = new List<string>();
|
List<string> jotIds = new List<string>();
|
||||||
int col13 = 0, col14 = 0, col15 = 0, col16 = 0, col17 = 0;
|
int col13 = 0, col14 = 0, col15 = 0, col16 = 0;
|
||||||
for (int j = 0; j < tb.Rows.Count; j++)
|
for (int j = 0; j < tb.Rows.Count; j++)
|
||||||
{
|
{
|
||||||
if (!jotIds.Contains(tb.Rows[j]["JOT_ID"].ToString()))
|
if (!jotIds.Contains(tb.Rows[j]["JOT_ID"].ToString()))
|
||||||
{
|
{
|
||||||
string jotId = tb.Rows[j]["JOT_ID"].ToString();
|
string jotId = tb.Rows[j]["JOT_ID"].ToString();
|
||||||
jotIds.Add(jotId);
|
jotIds.Add(jotId);
|
||||||
var attachFile5 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "5"));
|
|
||||||
var attachFile1 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "1"));
|
var attachFile1 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "1"));
|
||||||
var attachFile2 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "2"));
|
var attachFile2 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "2"));
|
||||||
var attachFile3 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "3"));
|
var attachFile3 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "3"));
|
||||||
var attachFile4 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "4"));
|
var attachFile4 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "4"));
|
||||||
if (attachFile5 != null)
|
if (attachFile1 != null)
|
||||||
{
|
{
|
||||||
string url = BLL.Funs.RootPath + attachFile5.AttachUrl;
|
string url = BLL.Funs.RootPath + attachFile1.AttachUrl;
|
||||||
if (File.Exists(url))
|
if (File.Exists(url))
|
||||||
{
|
{
|
||||||
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
||||||
|
@ -1427,9 +1426,9 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (attachFile1 != null)
|
if (attachFile2 != null)
|
||||||
{
|
{
|
||||||
string url = BLL.Funs.RootPath + attachFile1.AttachUrl;
|
string url = BLL.Funs.RootPath + attachFile2.AttachUrl;
|
||||||
if (File.Exists(url))
|
if (File.Exists(url))
|
||||||
{
|
{
|
||||||
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
||||||
|
@ -1439,9 +1438,9 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (attachFile2 != null)
|
if (attachFile3 != null)
|
||||||
{
|
{
|
||||||
string url = BLL.Funs.RootPath + attachFile2.AttachUrl;
|
string url = BLL.Funs.RootPath + attachFile3.AttachUrl;
|
||||||
if (File.Exists(url))
|
if (File.Exists(url))
|
||||||
{
|
{
|
||||||
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
||||||
|
@ -1451,27 +1450,15 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (attachFile3 != null)
|
|
||||||
{
|
|
||||||
string url = BLL.Funs.RootPath + attachFile3.AttachUrl;
|
|
||||||
if (File.Exists(url))
|
|
||||||
{
|
|
||||||
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
|
||||||
if (image.Width > col16)
|
|
||||||
{
|
|
||||||
col16 = image.Width;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (attachFile4 != null)
|
if (attachFile4 != null)
|
||||||
{
|
{
|
||||||
string url = BLL.Funs.RootPath + attachFile4.AttachUrl;
|
string url = BLL.Funs.RootPath + attachFile4.AttachUrl;
|
||||||
if (File.Exists(url))
|
if (File.Exists(url))
|
||||||
{
|
{
|
||||||
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
||||||
if (image.Width > col17)
|
if (image.Width > col16)
|
||||||
{
|
{
|
||||||
col17 = image.Width;
|
col16 = image.Width;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1494,10 +1481,6 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
{
|
{
|
||||||
sheet.SetColumnWidth(16, col16 * 37);
|
sheet.SetColumnWidth(16, col16 * 37);
|
||||||
}
|
}
|
||||||
if (col17 > 0)
|
|
||||||
{
|
|
||||||
sheet.SetColumnWidth(17, col17 * 37);
|
|
||||||
}
|
|
||||||
i = 2;
|
i = 2;
|
||||||
jotIds.Clear();
|
jotIds.Clear();
|
||||||
for (int j = 0; j < tb.Rows.Count; j++)
|
for (int j = 0; j < tb.Rows.Count; j++)
|
||||||
|
@ -1507,24 +1490,11 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
string jotId = tb.Rows[j]["JOT_ID"].ToString();
|
string jotId = tb.Rows[j]["JOT_ID"].ToString();
|
||||||
jotIds.Add(jotId);
|
jotIds.Add(jotId);
|
||||||
row = sheet.CreateRow(i);
|
row = sheet.CreateRow(i);
|
||||||
var attachFile5 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "5"));
|
|
||||||
var attachFile1 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "1"));
|
var attachFile1 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "1"));
|
||||||
var attachFile2 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "2"));
|
var attachFile2 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "2"));
|
||||||
var attachFile3 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "3"));
|
var attachFile3 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "3"));
|
||||||
var attachFile4 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "4"));
|
var attachFile4 = attachFiles.FirstOrDefault(x => x.ToKeyId == (jotId + "4"));
|
||||||
int height = 0;
|
int height = 0;
|
||||||
if (attachFile5 != null)
|
|
||||||
{
|
|
||||||
string url = BLL.Funs.RootPath + attachFile5.AttachUrl;
|
|
||||||
if (File.Exists(url))
|
|
||||||
{
|
|
||||||
System.Drawing.Image image = System.Drawing.Image.FromFile(url);
|
|
||||||
if (image.Height > height)
|
|
||||||
{
|
|
||||||
height = image.Height;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (attachFile1 != null)
|
if (attachFile1 != null)
|
||||||
{
|
{
|
||||||
string url = BLL.Funs.RootPath + attachFile1.AttachUrl;
|
string url = BLL.Funs.RootPath + attachFile1.AttachUrl;
|
||||||
|
@ -1647,26 +1617,15 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
cell.SetCellValue(string.Empty);
|
cell.SetCellValue(string.Empty);
|
||||||
cell = row.CreateCell(17);
|
cell = row.CreateCell(17);
|
||||||
cell.CellStyle = cellStyle;
|
cell.CellStyle = cellStyle;
|
||||||
cell.SetCellValue(string.Empty);
|
|
||||||
cell = row.CreateCell(18);
|
|
||||||
cell.CellStyle = cellStyle;
|
|
||||||
cell.SetCellValue(tb.Rows[j]["Remark"].ToString());
|
cell.SetCellValue(tb.Rows[j]["Remark"].ToString());
|
||||||
if (attachFile5 != null)
|
|
||||||
{
|
|
||||||
string fp = BLL.Funs.RootPath + attachFile5.AttachUrl;
|
|
||||||
if (File.Exists(fp))
|
|
||||||
{
|
|
||||||
byte[] fileBytes = File.ReadAllBytes(fp);
|
|
||||||
TryAddPicture(sheet, i, 13, fileBytes, PictureType.PNG);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (attachFile1 != null)
|
if (attachFile1 != null)
|
||||||
{
|
{
|
||||||
string fp = BLL.Funs.RootPath + attachFile1.AttachUrl;
|
string fp = BLL.Funs.RootPath + attachFile1.AttachUrl;
|
||||||
if (File.Exists(fp))
|
if (File.Exists(fp))
|
||||||
{
|
{
|
||||||
byte[] fileBytes = File.ReadAllBytes(fp);
|
byte[] fileBytes = File.ReadAllBytes(fp);
|
||||||
TryAddPicture(sheet, i, 14, fileBytes, PictureType.PNG);
|
TryAddPicture(sheet, i, 13, fileBytes, PictureType.PNG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (attachFile2 != null)
|
if (attachFile2 != null)
|
||||||
|
@ -1675,7 +1634,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
if (File.Exists(fp))
|
if (File.Exists(fp))
|
||||||
{
|
{
|
||||||
byte[] fileBytes = File.ReadAllBytes(fp);
|
byte[] fileBytes = File.ReadAllBytes(fp);
|
||||||
TryAddPicture(sheet, i, 15, fileBytes, PictureType.PNG);
|
TryAddPicture(sheet, i, 14, fileBytes, PictureType.PNG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (attachFile3 != null)
|
if (attachFile3 != null)
|
||||||
|
@ -1684,7 +1643,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
if (File.Exists(fp))
|
if (File.Exists(fp))
|
||||||
{
|
{
|
||||||
byte[] fileBytes = File.ReadAllBytes(fp);
|
byte[] fileBytes = File.ReadAllBytes(fp);
|
||||||
TryAddPicture(sheet, i, 16, fileBytes, PictureType.PNG);
|
TryAddPicture(sheet, i, 15, fileBytes, PictureType.PNG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (attachFile4 != null)
|
if (attachFile4 != null)
|
||||||
|
@ -1693,7 +1652,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
if (File.Exists(fp))
|
if (File.Exists(fp))
|
||||||
{
|
{
|
||||||
byte[] fileBytes = File.ReadAllBytes(fp);
|
byte[] fileBytes = File.ReadAllBytes(fp);
|
||||||
TryAddPicture(sheet, i, 17, fileBytes, PictureType.PNG);
|
TryAddPicture(sheet, i, 16, fileBytes, PictureType.PNG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -547,21 +547,17 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
||||||
string jotId = dic[a];
|
string jotId = dic[a];
|
||||||
if (b == 16)
|
if (b == 16)
|
||||||
{
|
{
|
||||||
jotId += "5";
|
jotId += "1";
|
||||||
}
|
}
|
||||||
else if (b == 17)
|
else if (b == 17)
|
||||||
{
|
{
|
||||||
jotId += "1";
|
jotId += "2";
|
||||||
}
|
}
|
||||||
else if (b == 18)
|
else if (b == 18)
|
||||||
{
|
|
||||||
jotId += "2";
|
|
||||||
}
|
|
||||||
else if (b == 19)
|
|
||||||
{
|
{
|
||||||
jotId += "3";
|
jotId += "3";
|
||||||
}
|
}
|
||||||
else if (b == 20)
|
else if (b == 19)
|
||||||
{
|
{
|
||||||
jotId += "4";
|
jotId += "4";
|
||||||
}
|
}
|
||||||
|
|
|
@ -527,7 +527,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spRepairJointWorkRecord", parameter);
|
DataTable tb = BLL.SQLHelper.GetDataTableRunProc("HJGL_spRepairJointWorkRecord", parameter);
|
||||||
|
|
||||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||||
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectName(projectId));
|
keyValuePairs.Add("ProjectName", BLL.Base_ProjectService.GetProjectByProjectId(projectId).ProjectName);
|
||||||
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
BLL.Common.FastReportService.AddFastreportParameter(keyValuePairs);
|
||||||
|
|
||||||
DataTable dt = new DataTable();
|
DataTable dt = new DataTable();
|
||||||
|
|
|
@ -359,7 +359,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
||||||
wmeCode = wm.WME_Code;
|
wmeCode = wm.WME_Code;
|
||||||
}
|
}
|
||||||
|
|
||||||
string[] wmeCodes = wmeCode.Split('+');
|
string[] wmeCodes = wmeCode.Split('/');
|
||||||
string location = item.JOT_Location;
|
string location = item.JOT_Location;
|
||||||
string ste = jot.STE_ID;
|
string ste = jot.STE_ID;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!--连接字符串-->
|
<!--连接字符串-->
|
||||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
<add key="ConnectionString" value="Server=.\SQL2019;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||||
<!--系统名称-->
|
<!--系统名称-->
|
||||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||||
|
|
|
@ -188,16 +188,16 @@ namespace FineUIPro.Web.WeldMat.Stock
|
||||||
{
|
{
|
||||||
stockIn.AttachUrl = att.First().AttachUrl;
|
stockIn.AttachUrl = att.First().AttachUrl;
|
||||||
}
|
}
|
||||||
//var mat = from x in Funs.DB.Weld_UsingMat where x.StockInId == this.StockInId select x;
|
var mat = from x in Funs.DB.Weld_UsingMat where x.StockInId == this.StockInId select x;
|
||||||
//if (mat.Count() > 0)
|
if (mat.Count() > 0)
|
||||||
//{
|
{
|
||||||
// // 焊材已有领用,不更新数量
|
// 焊材已有领用,不更新数量
|
||||||
// BLL.StockInService.UpdateStockIn1(stockIn);
|
BLL.StockInService.UpdateStockIn1(stockIn);
|
||||||
//}
|
}
|
||||||
//else
|
else
|
||||||
//{
|
{
|
||||||
BLL.StockInService.UpdateStockIn(stockIn);
|
BLL.StockInService.UpdateStockIn(stockIn);
|
||||||
//}
|
}
|
||||||
BLL.Sys_LogService.AddLog(Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊材入库录入");
|
BLL.Sys_LogService.AddLog(Const.System_7, this.CurrUser.LoginProjectId, this.CurrUser.UserId, "修改焊材入库录入");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -99,7 +99,7 @@
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
||||||
<f:RenderField Width="120px" ColumnID="Warrantybook" DataField="Warrantybook" FieldType="String"
|
<f:RenderField Width="120px" ColumnID="Warrantybook" DataField="Warrantybook" FieldType="String"
|
||||||
HeaderText="入库自编号" HeaderTextAlign="Center" TextAlign="Center">
|
HeaderText="质保书号" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField Width="130px" ColumnID="Number" DataField="Number" FieldType="String"
|
<f:RenderField Width="130px" ColumnID="Number" DataField="Number" FieldType="String"
|
||||||
HeaderText="流水号" HeaderTextAlign="Center" TextAlign="Center">
|
HeaderText="流水号" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
|
|
@ -148,7 +148,7 @@ namespace WebAPI.Controllers
|
||||||
decimal? sch = Funs.GetNewDecimal(joint.JOT_Sch);
|
decimal? sch = Funs.GetNewDecimal(joint.JOT_Sch);
|
||||||
string wmeCode = weldMethod.WME_Code;
|
string wmeCode = weldMethod.WME_Code;
|
||||||
|
|
||||||
string[] wmeCodes = wmeCode.Split('+');
|
string[] wmeCodes = wmeCode.Split('/');
|
||||||
string location = locationItem.Value;
|
string location = locationItem.Value;
|
||||||
string ste = joint.STE_ID;
|
string ste = joint.STE_ID;
|
||||||
|
|
||||||
|
|
|
@ -79,13 +79,13 @@
|
||||||
<publishTime>09/10/2013 16:29:20</publishTime>
|
<publishTime>09/10/2013 16:29:20</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BLL.dll">
|
<File Include="bin/BLL.dll">
|
||||||
<publishTime>03/31/2025 16:00:54</publishTime>
|
<publishTime>03/12/2025 10:55:18</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BLL.dll.config">
|
<File Include="bin/BLL.dll.config">
|
||||||
<publishTime>07/03/2024 11:01:05</publishTime>
|
<publishTime>07/03/2024 11:01:05</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BLL.pdb">
|
<File Include="bin/BLL.pdb">
|
||||||
<publishTime>03/31/2025 16:00:54</publishTime>
|
<publishTime>03/12/2025 10:55:18</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/BouncyCastle.Crypto.dll">
|
<File Include="bin/BouncyCastle.Crypto.dll">
|
||||||
<publishTime>12/17/2020 21:32:28</publishTime>
|
<publishTime>12/17/2020 21:32:28</publishTime>
|
||||||
|
@ -115,10 +115,10 @@
|
||||||
<publishTime>07/25/2012 11:48:56</publishTime>
|
<publishTime>07/25/2012 11:48:56</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/Model.dll">
|
<File Include="bin/Model.dll">
|
||||||
<publishTime>03/31/2025 16:00:53</publishTime>
|
<publishTime>03/12/2025 10:55:15</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/Model.pdb">
|
<File Include="bin/Model.pdb">
|
||||||
<publishTime>03/31/2025 16:00:53</publishTime>
|
<publishTime>03/12/2025 10:55:15</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/Newtonsoft.Json.dll">
|
<File Include="bin/Newtonsoft.Json.dll">
|
||||||
<publishTime>02/18/2018 09:44:54</publishTime>
|
<publishTime>02/18/2018 09:44:54</publishTime>
|
||||||
|
@ -316,10 +316,10 @@
|
||||||
<publishTime>02/01/2018 12:20:56</publishTime>
|
<publishTime>02/01/2018 12:20:56</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/WebAPI.dll">
|
<File Include="bin/WebAPI.dll">
|
||||||
<publishTime>03/31/2025 16:00:58</publishTime>
|
<publishTime>03/12/2025 10:55:21</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/WebAPI.pdb">
|
<File Include="bin/WebAPI.pdb">
|
||||||
<publishTime>03/31/2025 16:00:58</publishTime>
|
<publishTime>03/12/2025 10:55:21</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="bin/WebGrease.dll">
|
<File Include="bin/WebGrease.dll">
|
||||||
<publishTime>01/23/2014 13:57:34</publishTime>
|
<publishTime>01/23/2014 13:57:34</publishTime>
|
||||||
|
@ -445,7 +445,7 @@
|
||||||
<publishTime>07/03/2024 11:01:07</publishTime>
|
<publishTime>07/03/2024 11:01:07</publishTime>
|
||||||
</File>
|
</File>
|
||||||
<File Include="Web.config">
|
<File Include="Web.config">
|
||||||
<publishTime>03/31/2025 16:01:11</publishTime>
|
<publishTime>03/12/2025 10:55:47</publishTime>
|
||||||
</File>
|
</File>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue