Browse Source

出貨序號取貨規則 增加[DD]

首件檢查匯出PDF 相關修正
PTD
Yiru 1 year ago
parent
commit
4e867bed9e
  1. 2
      AMESCoreStudio.Web/Controllers/SPCController.cs
  2. 2
      AMESCoreStudio.Web/Views/BAS/BAS019C.cshtml
  3. 1
      AMESCoreStudio.Web/Views/BAS/BAS019U.cshtml
  4. 2
      AMESCoreStudio.Web/Views/SPC/SPC005.cshtml
  5. 2
      AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml
  6. 2
      AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml
  7. 2
      AMESCoreStudio.Web/Views/SPC/SPC005V.cshtml
  8. 8
      AMESCoreStudio.Web/wwwroot/Reports/SPC005ViewFAI.rdlc
  9. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/王智永.png
  10. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/王素華.png
  11. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/鄧鈞澤.png
  12. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/鍾美惠.png
  13. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳信志.png
  14. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳姿君.png
  15. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳昱中.png
  16. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳漢翔.png
  17. BIN
      AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/馮琪雅.png
  18. 2
      AMESCoreStudio.WebApi/Controllers/AMES/InspectionResultMastersController.cs
  19. 10
      AMESCoreStudio.WebApi/Controllers/AMES/SerialRulesController.cs
  20. 8
      AMESCoreStudio.WebApi/Models/AMES/SerialRule.cs
  21. 7
      AMESCoreStudio.WebApi/Models/AMES/SerialRuleDetail.cs

2
AMESCoreStudio.Web/Controllers/SPCController.cs

@ -1620,7 +1620,7 @@ namespace AMESCoreStudio.Web.Controllers
MedicalModel = IPQCQuery.CustomerMedical, MedicalModel = IPQCQuery.CustomerMedical,
VIP = IPQCQuery.CustomerVIP, VIP = IPQCQuery.CustomerVIP,
BIOSVer = IPQCQuery.BIOS, BIOSVer = IPQCQuery.BIOS,
Approved = "信志", Approved = "信志",
Inspector = IPQCQuery.UpdateUser_Name, Inspector = IPQCQuery.UpdateUser_Name,
ItemNoDesc = IPQCQuery.ItemNoDesc ItemNoDesc = IPQCQuery.ItemNoDesc

2
AMESCoreStudio.Web/Views/BAS/BAS019C.cshtml

@ -41,6 +41,8 @@
<label class="control-label col-sm-9">:生產月別</label> <label class="control-label col-sm-9">:生產月別</label>
<label class="control-label col-sm-3">[WW]</label> <label class="control-label col-sm-3">[WW]</label>
<label class="control-label col-sm-9">:生產週別</label> <label class="control-label col-sm-9">:生產週別</label>
<label class="control-label col-sm-3">[DD]</label>
<label class="control-label col-sm-9">:生產日期</label>
<label class="control-label col-sm-3">[SN3]</label> <label class="control-label col-sm-3">[SN3]</label>
<label class="control-label col-sm-9">:3碼流水號 </label> <label class="control-label col-sm-9">:3碼流水號 </label>
<label class="control-label col-sm-3">[SN4]</label> <label class="control-label col-sm-3">[SN4]</label>

1
AMESCoreStudio.Web/Views/BAS/BAS019U.cshtml

@ -47,6 +47,7 @@
<label class="control-label col-sm-9">[M]:生產月別A~L(代表1~12月)</label> <label class="control-label col-sm-9">[M]:生產月別A~L(代表1~12月)</label>
<label class="control-label col-sm-9">[MM]:生產月別</label> <label class="control-label col-sm-9">[MM]:生產月別</label>
<label class="control-label col-sm-9">[WW]:生產週別</label> <label class="control-label col-sm-9">[WW]:生產週別</label>
<label class="control-label col-sm-9">[DD]:生產日期</label>
<label class="control-label col-sm-9">[SN3]:3碼流水號 </label> <label class="control-label col-sm-9">[SN3]:3碼流水號 </label>
<label class="control-label col-sm-9">[SN4]:4碼流水號 </label> <label class="control-label col-sm-9">[SN4]:4碼流水號 </label>
<label class="control-label col-sm-9">[LOT3]:3碼生產批號 </label> <label class="control-label col-sm-9">[LOT3]:3碼生產批號 </label>

2
AMESCoreStudio.Web/Views/SPC/SPC005.cshtml

@ -259,7 +259,7 @@
if ($("#Type").val() == 1001) { if ($("#Type").val() == 1001) {
btns = btns + '<a class="layui-btn layui-btn-xs" lay-event="PDF">PDF</a> '; btns = btns + '<a class="layui-btn layui-btn-xs" lay-event="PDF">PDF</a> ';
} }
if ($("#Type").val() == 1002) { if ($("#Type").val() == 1000 || $("#Type").val() == 1002) {
btns = btns + '<a class="layui-btn layui-btn-xs" lay-event="PDF_FAI">PDF</a> '; btns = btns + '<a class="layui-btn layui-btn-xs" lay-event="PDF_FAI">PDF</a> ';
} }

2
AMESCoreStudio.Web/Views/SPC/SPC005C.cshtml

@ -121,7 +121,7 @@
</div>*@ </div>*@
</form> </form>
<form id="modeltable" method="post"> <form id="modeltable" method="post">
@if (ViewBag.InspectionTypeID == 1002) @if (ViewBag.InspectionTypeID == 1000)
{ {
<i>QO4-067</i> <i>QO4-067</i>
} }

2
AMESCoreStudio.Web/Views/SPC/SPC005U.cshtml

@ -126,7 +126,7 @@
</div>*@ </div>*@
</form> </form>
<form id="modeltable"> <form id="modeltable">
@if (ViewBag.InspectionTypeID == 1002) @if (ViewBag.InspectionTypeID == 1000)
{ {
<i>QO4-067</i> <i>QO4-067</i>
} }

2
AMESCoreStudio.Web/Views/SPC/SPC005V.cshtml

@ -57,7 +57,7 @@
<span style="color: firebrick;word-break: break-all;" class="text-danger offset-sm-3">@Html.ValidationMessage("error")</span> <span style="color: firebrick;word-break: break-all;" class="text-danger offset-sm-3">@Html.ValidationMessage("error")</span>
</form> </form>
<form id="modeltable" method="post"> <form id="modeltable" method="post">
@if (ViewBag.InspectionTypeID == 1002) @if (ViewBag.InspectionTypeID == 1000)
{ {
<i>QO4-067</i> <i>QO4-067</i>
} }

8
AMESCoreStudio.Web/wwwroot/Reports/SPC005ViewFAI.rdlc

@ -1220,7 +1220,7 @@
</Paragraphs> </Paragraphs>
<rd:DefaultName>Textbox76</rd:DefaultName> <rd:DefaultName>Textbox76</rd:DefaultName>
<Top>8.57413cm</Top> <Top>8.57413cm</Top>
<Left>14.96744cm</Left> <Left>17.11939cm</Left>
<Height>1.00557cm</Height> <Height>1.00557cm</Height>
<Width>3.14055cm</Width> <Width>3.14055cm</Width>
<ZIndex>15</ZIndex> <ZIndex>15</ZIndex>
@ -1241,9 +1241,9 @@
<MIMEType>image/png</MIMEType> <MIMEType>image/png</MIMEType>
<Sizing>FitProportional</Sizing> <Sizing>FitProportional</Sizing>
<Top>8.57413cm</Top> <Top>8.57413cm</Top>
<Left>20.21795cm</Left> <Left>22.75795cm</Left>
<Height>1.00557cm</Height> <Height>1.00557cm</Height>
<Width>8.45626cm</Width> <Width>5.06959cm</Width>
<ZIndex>16</ZIndex> <ZIndex>16</ZIndex>
<Style> <Style>
<Border> <Border>
@ -1360,7 +1360,7 @@
</Paragraph> </Paragraph>
</Paragraphs> </Paragraphs>
<Top>8.57413cm</Top> <Top>8.57413cm</Top>
<Left>18.21382cm</Left> <Left>20.40104cm</Left>
<Height>1.00557cm</Height> <Height>1.00557cm</Height>
<Width>4.594cm</Width> <Width>4.594cm</Width>
<ZIndex>20</ZIndex> <ZIndex>20</ZIndex>

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/王智永.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/王素華.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/鄧鈞澤.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/鍾美惠.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳信志.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳姿君.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳昱中.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/陳漢翔.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
AMESCoreStudio.Web/wwwroot/images/ElectronicSignature/馮琪雅.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

2
AMESCoreStudio.WebApi/Controllers/AMES/InspectionResultMastersController.cs

@ -616,7 +616,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
from q8 in cp8.DefaultIfEmpty() from q8 in cp8.DefaultIfEmpty()
select new IpqcDto select new IpqcDto
{ {
InspectionNo = "IPQC-" + q1.InspectionID.ToString(), InspectionNo = q1.InspectionID.ToString(),
WipNo = q1.WipNo, WipNo = q1.WipNo,
ItemNo = q1.ItemNo, ItemNo = q1.ItemNo,
PlanQTY = q4.PlanQTY, PlanQTY = q4.PlanQTY,

10
AMESCoreStudio.WebApi/Controllers/AMES/SerialRulesController.cs

@ -687,7 +687,12 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
serialRuleDetail_NEW.WNum = week; serialRuleDetail_NEW.WNum = week;
} }
if (strRule.Contains("[DD]"))//日期
{
serialRuleDetail_NEW.DNum = wipShcDate.Day;
serialRuleDetail_NEW.SnNum = 0;
}
if (strRule.Contains("[LOT3]") || strRule.Contains("[LOT4]")) if (strRule.Contains("[LOT3]") || strRule.Contains("[LOT4]"))
{ {
serialRuleDetail_NEW.LotNum = int.Parse(lotNo); serialRuleDetail_NEW.LotNum = int.Parse(lotNo);
@ -801,6 +806,11 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
// serial = serial.Replace("[WW]", SerialRuleDetail.WNum.ToString().Length == 1 ? SerialRuleDetail.WNum.ToString().PadLeft(2, '0') : SerialRuleDetail.WNum.ToString()); // serial = serial.Replace("[WW]", SerialRuleDetail.WNum.ToString().Length == 1 ? SerialRuleDetail.WNum.ToString().PadLeft(2, '0') : SerialRuleDetail.WNum.ToString());
serial = serial.Replace("[WW]", SerialRuleDetail.WNum.ToString("00")); serial = serial.Replace("[WW]", SerialRuleDetail.WNum.ToString("00"));
} }
if (strRule.Contains("[DD]"))//日期
{
serial = serial.Replace("[DD]", SerialRuleDetail.DNum.ToString("00"));
}
if (strRule.Contains("[LOT3]")) if (strRule.Contains("[LOT3]"))
{ {
serial = serial.Replace("[LOT3]", lotNo); serial = serial.Replace("[LOT3]", lotNo);

8
AMESCoreStudio.WebApi/Models/AMES/SerialRule.cs

@ -150,5 +150,13 @@ namespace AMESCoreStudio.WebApi.Models.AMES
[Column("M_CODE")] [Column("M_CODE")]
[DataMember] [DataMember]
public string MCode { get; set; } public string MCode { get; set; }
/// <summary>
/// 日期
/// </summary>
[Column("D_NUM")]
[DataMember]
public int DNum { get; set; }
} }
} }

7
AMESCoreStudio.WebApi/Models/AMES/SerialRuleDetail.cs

@ -120,5 +120,12 @@ namespace AMESCoreStudio.WebApi.Models.AMES
[Column("M_CODE")] [Column("M_CODE")]
[DataMember] [DataMember]
public string MCode { get; set; } public string MCode { get; set; }
/// <summary>
/// 日期
/// </summary>
[Column("D_NUM")]
[DataMember]
public int DNum { get; set; }
} }
} }

Loading…
Cancel
Save