diff --git a/AMESCoreStudio.Web/Controllers/FQCController.cs b/AMESCoreStudio.Web/Controllers/FQCController.cs index 553f4cd8..ee76d2de 100644 --- a/AMESCoreStudio.Web/Controllers/FQCController.cs +++ b/AMESCoreStudio.Web/Controllers/FQCController.cs @@ -3,6 +3,7 @@ using System.Threading.Tasks; using Microsoft.Extensions.Logging; using AMESCoreStudio.Web.Models; using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using AMESCoreStudio.WebApi; using System.Collections.Generic; using Microsoft.AspNetCore.Mvc.Rendering; @@ -502,6 +503,9 @@ namespace AMESCoreStudio.Web.Controllers { #region 判斷設定起訖數量區間是否有重疊 var query = await _fqcApi.GetQcCriterionByQuotID(model.QuotID); + // 排除自己 + query = query.Where(w => w.CritID != model.CritID).ToList(); + if (query.Where(w => w.QcStart <= model.QcStart && model.QcStart <= w.QcEnd).Any() || query.Where(w => w.QcStart <= model.QcEnd && model.QcEnd <= w.QcEnd).Any()) { @@ -812,7 +816,13 @@ namespace AMESCoreStudio.Web.Controllers FqcResultMaster.PassQty += 1; #endregion - + dynamic[] dy = JsonConvert.DeserializeObject("API回傳值"); + string aa = string.Empty; + // 取個別單一 + if (dy.Count() != 0) + { + aa = dy.FirstOrDefault().MSG; + } IResultModel result; if (result_FqcResultMaster.Count == 0) { @@ -824,6 +834,10 @@ namespace AMESCoreStudio.Web.Controllers result = await _fqcApi.PutFqcResultMaster(JsonConvert.SerializeObject(FqcResultMaster)); FqcResultDetail.FqcID = result_FqcResultMaster.FirstOrDefault().FqcID; } + + IResultModel result_QnfInfo; + + IResultModel result_detail; result_detail = await _fqcApi.PostFqcResultDetail(JsonConvert.SerializeObject(FqcResultDetail)); diff --git a/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml b/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml index 28a22242..20ff146b 100644 --- a/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml +++ b/AMESCoreStudio.Web/Views/FQC/FQC007.cshtml @@ -306,7 +306,7 @@ layui.use('layer', function () { var layer = layui.layer; layer.open({ - title: '抽判定結果', + title: '結果判定', type: 2, area: ['600px', '400px'], fixed: false, //不固定 diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs index a7526fe4..8208dc67 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/BarcodeInfoesController.cs @@ -95,26 +95,22 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES /// 工單號碼 /// // GET: api/BarcodeInfoes/5 - [HttpGet("ByWipNo/{id}")] + [HttpGet("ByWipNo/{WipNo}")] public async Task>> GetBarcodeInfoesByWipNo(string WipNo) { + var barcodeInfo = new List(); + WipInfosController wipInfosController = new WipInfosController(_context); var q1 = await wipInfosController.GetWipInfoByWipNo(WipNo); + if (q1.Value.Count() != 0) { IQueryable q = _context.BarcodeInfoes; - q = q.Where(p => q1.Value.Select(s =>s.WipID).Contains(p.WipID)); - var barcodeInfo = await q.ToListAsync(); - - if (barcodeInfo == null) - { - return NotFound(); - } - - return barcodeInfo; + q = q.Where(p => q1.Value.Select(s => s.WipID).Contains(p.WipID)); + barcodeInfo = await q.ToListAsync(); } - return NotFound(); + return barcodeInfo; } /// @@ -170,6 +166,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES public async Task> PutBarcodeInfoes([FromBody] BarcodeInfo barcodeInfo) { ResultModel result = new ResultModel(); + _context.Entry(barcodeInfo).State = EntityState.Modified; // Detached 來分離已附加 barcodeInfo.UpdateDate = DateTime.Now; @@ -196,6 +193,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES return result; } + /// /// 新增條碼资料 /// diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs index 5c3621b7..159fa4e4 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs @@ -33,6 +33,16 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES return await _context.FqcInhouseMasters.ToListAsync(); } + // GET: api/FqcInhouseMaster/5 + [HttpGet("ByWipNo/{wipNo}")] + public async Task>> GetFqcInhouseMasterByWipNo(string wipNo) + { + var fqcInhouseMaster = await _context.FqcInhouseMasters.Where(w => w.WipNo == wipNo.ToUpper()) + .ToListAsync(); + + return fqcInhouseMaster; + } + // GET: api/FqcInhouseMaster/5 [HttpGet("{inhouseNo}/{seqID}")] public async Task> GetFqcInhouseMaster(string inhouseNo,int seqID) diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipBoxController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipBoxController.cs new file mode 100644 index 00000000..9d387602 --- /dev/null +++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipBoxController.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.EntityFrameworkCore; +using AMESCoreStudio.WebApi; +using AMESCoreStudio.WebApi.Models.AMES; +using AMESCoreStudio.CommonTools.Result; + +namespace AMESCoreStudio.WebApi.Controllers.AMES +{ + /// + /// 檢驗结果維護資料檔 + /// + [Route("api/[controller]")] + [ApiController] + public class WipBoxController : ControllerBase + { + private readonly AMESContext _context; + + public WipBoxController(AMESContext context) + { + _context = context; + } + + // GET: api/WipBox + [HttpGet] + public async Task>> GetWipBoxes() + { + return await _context.WipBoxs.ToListAsync(); + } + + // GET: api/WipBox/5 + [HttpGet("{id}")] + public async Task> GetWipBox(string id) + { + var wipBox = await _context.WipBoxs.FindAsync(id); + + //if (wipBox == null) + //{ + // return NotFound(); + //} + + return wipBox; + } + + /// + /// ByWipID + /// + /// WipID + /// + [HttpGet("ByWipID/{id}")] + public async Task>> GetWipBoxByWipID(int id) + { + return await _context.WipBoxs.Where(w => w.WipID == id).ToListAsync(); + } + + /// + /// 更新工單箱號資料檔 + /// + /// + /// + [HttpPut] + public async Task> PutWipBox(WipBox wipBox) + { + ResultModel result = new ResultModel(); + _context.WipBoxs.Attach(wipBox); + wipBox.UpdateDate = DateTime.Now; + wipBox.UpdateUserID = 0; + // 指定更新某個欄位 + _context.Entry(wipBox).Property(p => p.BoxCnt).IsModified = true; + _context.Entry(wipBox).Property(p => p.BoxStatus).IsModified = true; + _context.Entry(wipBox).Property(p => p.WeightG).IsModified = true; + _context.Entry(wipBox).Property(p => p.UpdateDate).IsModified = true; + _context.Entry(wipBox).Property(p => p.UpdateUserID).IsModified = true; + try + { + //_context.WipBoxs.Update(wipBox); + await _context.SaveChangesAsync(); + result.Success = true; + result.Msg = "OK"; + } + catch (Exception ex) + { + result.Success = false; + result.Msg = ex.Message; + } + return result; + } + + // POST: api/WipBox + // To protect from overposting attacks, enable the specific properties you want to bind to, for + // more details, see https://go.microsoft.com/fwlink/?linkid=2123754. + [HttpPost] + public async Task> PostWipBox(WipBox wipBox) + { + ResultModel result = new ResultModel(); + Helper helper = new Helper(_context); + wipBox.BoxID = helper.GetIDKey("BOX_ID").Result; + _context.WipBoxs.Add(wipBox); + try + { + await _context.SaveChangesAsync(); + result.Success = true; + result.Msg = "OK"; + } + catch (Exception ex) + { + result.Success = false; + result.Msg = ex.InnerException.Message; + } + return result; + } + + + [HttpDelete("{id}")] + public async Task> DeleteWipBox(string id) + { + var wipBox = await _context.WipBoxs.FindAsync(id); + if (wipBox == null) + { + return NotFound(); + } + + _context.WipBoxs.Remove(wipBox); + await _context.SaveChangesAsync(); + + return wipBox; + } + + private bool WipBoxExists(string id) + { + return _context.WipBoxs.Any(e => e.BoxNo == id); + } + } +} diff --git a/AMESCoreStudio.WebApi/Models/AMES/QngInfo.cs b/AMESCoreStudio.WebApi/Models/AMES/QngInfo.cs index a88dd6c8..634a08cc 100644 --- a/AMESCoreStudio.WebApi/Models/AMES/QngInfo.cs +++ b/AMESCoreStudio.WebApi/Models/AMES/QngInfo.cs @@ -48,8 +48,8 @@ namespace AMESCoreStudio.WebApi.Models.AMES [DataMember] [Display(Name = "條碼序號")] [Required(ErrorMessage = "{0},不能空白")] - [Column("BARCODE_ID")] - public int BarcodeID { get; set; } + [Column("BARCODE_NO")] + public string BarcodeNo { get; set; } /// /// 工單ID @@ -60,6 +60,15 @@ namespace AMESCoreStudio.WebApi.Models.AMES [Column("WIP_ID")] public int WipID { get; set; } + /// + /// 箱號 + /// + [DataMember] + [Display(Name = "箱號")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("BOX_NO")] + public string BoxNo { get; set; } + /// /// 流程站別ID /// @@ -87,14 +96,6 @@ namespace AMESCoreStudio.WebApi.Models.AMES [StringLength(20)] public string AcceptReason { get; set; } - /// - /// 特採單號 - /// - [DataMember] - [Display(Name = "特採單號")] - [Column("SPECIAL_PO")] - [StringLength(20)] - public string SpecialPo { get; set; } /// /// 批退典型 diff --git a/AMESCoreStudio.WebApi/Models/AMES/WipBox.cs b/AMESCoreStudio.WebApi/Models/AMES/WipBox.cs new file mode 100644 index 00000000..1322daba --- /dev/null +++ b/AMESCoreStudio.WebApi/Models/AMES/WipBox.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Microsoft.EntityFrameworkCore; +using System.Runtime.Serialization; + + +#nullable disable + + +namespace AMESCoreStudio.WebApi.Models.AMES +{ + /// + /// 工單箱號資料檔 + /// + [Table("WIP_BOX")] + [Index(nameof(WipID), Name = "WIP_BOX_F1")] + public partial class WipBox + { + /// + /// 箱號ID + /// + [DataMember] + [Display(Name = "箱號ID")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("BOX_ID")] + public int BoxID { get; set; } + + /// + /// 箱號 + /// + [Key] + [DataMember] + [Display(Name = "箱號")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("BOX_NO")] + [StringLength(30)] + public string BoxNo { get; set; } + + /// + /// 工單ID + /// + [DataMember] + [Display(Name = "工單ID")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("WIP_ID")] + public int WipID { get; set; } + + /// + /// 單箱數量 + /// + [DataMember] + [Display(Name = "單箱數量")] + [Required(ErrorMessage = "{0},不能空白")] + [Column("BOX_CNT")] + public int BoxCnt { get; set; } = 0; + + /// + /// 箱號狀態(0 = 停用 ; 1= 使用中) + /// + [DataMember] + [Display(Name = "箱號狀態")] + [Column("BOX_STATUS")] + public int? BoxStatus { get; set; } = 1; + + /// + /// 重量 + /// + [DataMember] + [Display(Name = "重量")] + [Column("WEIGHT_G")] + public decimal WeightG { get; set; } = 0.0M; + + /// + /// 建立UserID + /// + [Column("CREATE_USERID")] + [Required] + [DataMember] + public int CreateUserID { get; set; } = 0; + + /// + /// 建立日期 + /// + [Required] + [Column("CREATE_DATE")] + [DataMember] + public DateTime CreateDate { get; set; } = DateTime.Now; + + /// + /// 更新UserID + /// + [Column("UPDATE_USERID")] + [DataMember] + public int UpdateUserID { get; set; } = 0; + + /// + /// 更新日期 + /// + [Column("UPDATE_DATE")] + [DataMember] + public DateTime? UpdateDate { get; set; } = DateTime.Now; + + } +} diff --git a/AMESCoreStudio.WebApi/Models/AMESContext.cs b/AMESCoreStudio.WebApi/Models/AMESContext.cs index 7c84d2ab..434e2447 100644 --- a/AMESCoreStudio.WebApi/Models/AMESContext.cs +++ b/AMESCoreStudio.WebApi/Models/AMESContext.cs @@ -630,8 +630,10 @@ namespace AMESCoreStudio.WebApi /// public virtual DbSet ExceptionReasons { get; set; } - - + /// + /// 工單箱號資料檔 + /// + public virtual DbSet WipBoxs { get; set; } } } diff --git a/其他專案資料/AMES_AP/.vs/AMES_AP/v16/.suo b/其他專案資料/AMES_AP/.vs/AMES_AP/v16/.suo index 0213610b..ffbeebab 100644 Binary files a/其他專案資料/AMES_AP/.vs/AMES_AP/v16/.suo and b/其他專案資料/AMES_AP/.vs/AMES_AP/v16/.suo differ diff --git a/其他專案資料/AMES_AP/AMES_AP/AMES_AP.csproj b/其他專案資料/AMES_AP/AMES_AP/AMES_AP.csproj index 510a9a3f..52e3523f 100644 --- a/其他專案資料/AMES_AP/AMES_AP/AMES_AP.csproj +++ b/其他專案資料/AMES_AP/AMES_AP/AMES_AP.csproj @@ -34,8 +34,8 @@ 4 - - ..\packages\MaterialSkin.Updated.0.2.2\lib\MaterialSkin.dll + + ..\packages\MaterialSkin.2.2.3.1\lib\net461\MaterialSkin.dll ..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll @@ -43,6 +43,7 @@ + ..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll @@ -58,16 +59,32 @@ + + Form + + + Form1.cs + + + Form + + + InHouse.cs + Form Login.cs + + + + @@ -78,6 +95,12 @@ StockControlForm.cs + + Form1.cs + + + InHouse.cs + Login.cs diff --git a/其他專案資料/AMES_AP/AMES_AP/Form1.Designer.cs b/其他專案資料/AMES_AP/AMES_AP/Form1.Designer.cs new file mode 100644 index 00000000..6d52e889 --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/Form1.Designer.cs @@ -0,0 +1,106 @@ + +namespace AMES_AP +{ + partial class Form1 + { + /// + /// 設計工具所需的變數。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清除任何使用中的資源。 + /// + /// 如果應該處置受控資源則為 true,否則為 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form 設計工具產生的程式碼 + + /// + /// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器修改 + /// 這個方法的內容。 + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); + this.materialTabControl1 = new MaterialSkin.Controls.MaterialTabControl(); + this.tabPage1 = new System.Windows.Forms.TabPage(); + this.tabPage2 = new System.Windows.Forms.TabPage(); + this.imageList1 = new System.Windows.Forms.ImageList(this.components); + this.materialTabControl1.SuspendLayout(); + this.SuspendLayout(); + // + // materialTabControl1 + // + this.materialTabControl1.Controls.Add(this.tabPage1); + this.materialTabControl1.Controls.Add(this.tabPage2); + this.materialTabControl1.Depth = 0; + this.materialTabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + this.materialTabControl1.ImageList = this.imageList1; + this.materialTabControl1.Location = new System.Drawing.Point(3, 64); + this.materialTabControl1.MouseState = MaterialSkin.MouseState.HOVER; + this.materialTabControl1.Multiline = true; + this.materialTabControl1.Name = "materialTabControl1"; + this.materialTabControl1.SelectedIndex = 0; + this.materialTabControl1.Size = new System.Drawing.Size(746, 513); + this.materialTabControl1.TabIndex = 0; + this.materialTabControl1.SelectedIndexChanged += new System.EventHandler(this.materialTabControl1_SelectedIndexChanged); + // + // tabPage1 + // + this.tabPage1.BackColor = System.Drawing.Color.White; + this.tabPage1.ImageKey = "packaging.png"; + this.tabPage1.Location = new System.Drawing.Point(4, 39); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(738, 470); + this.tabPage1.TabIndex = 0; + this.tabPage1.Text = "包裝"; + // + // tabPage2 + // + this.tabPage2.BackColor = System.Drawing.Color.White; + this.tabPage2.ImageKey = "packages.png"; + this.tabPage2.Location = new System.Drawing.Point(4, 39); + this.tabPage2.Name = "tabPage2"; + this.tabPage2.Padding = new System.Windows.Forms.Padding(3); + this.tabPage2.Size = new System.Drawing.Size(738, 470); + this.tabPage2.TabIndex = 1; + this.tabPage2.Text = "入庫"; + // + // imageList1 + // + this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); + this.imageList1.TransparentColor = System.Drawing.Color.Transparent; + this.imageList1.Images.SetKeyName(0, "packages.png"); + this.imageList1.Images.SetKeyName(1, "packaging.png"); + // + // Form1 + // + this.ClientSize = new System.Drawing.Size(752, 580); + this.Controls.Add(this.materialTabControl1); + this.DrawerShowIconsWhenHidden = true; + this.DrawerTabControl = this.materialTabControl1; + this.Name = "Form1"; + this.Text = "AMES AP系統"; + this.materialTabControl1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private MaterialSkin.Controls.MaterialTabControl materialTabControl1; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.TabPage tabPage2; + private System.Windows.Forms.ImageList imageList1; + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/Form1.cs b/其他專案資料/AMES_AP/AMES_AP/Form1.cs new file mode 100644 index 00000000..184da868 --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/Form1.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; +using MaterialSkin.Controls; + +namespace AMES_AP +{ + public partial class Form1 : MaterialForm + { + public Form1() + { + InitializeComponent(); + } + + private void materialTabControl1_SelectedIndexChanged(object sender, EventArgs e) + { + switch ((sender as TabControl).SelectedIndex) + { + case 0: + var formBig = new StockControlForm(); + //不要顯示Title + formBig.FormBorderStyle = FormBorderStyle.None; + + //非最上層 + formBig.TopLevel = false; + + //顯示From,要加上去才會顯示Form + formBig.Visible = true; + + //設定From位置 + formBig.Top = 0; + formBig.Left = 0; + + //將Form加入tabPage中 + tabPage1.Controls.Clear(); + tabPage1.Controls.Add(formBig); + + //顯示tabPage + tabPage1.Show(); + break; + case 1: + var formBig1 = new InHouse(); + //不要顯示Title + formBig1.FormBorderStyle = FormBorderStyle.None; + + //非最上層 + formBig1.TopLevel = false; + + //顯示From,要加上去才會顯示Form + formBig1.Visible = true; + + //設定From位置 + formBig1.Top = 0; + formBig1.Left = 0; + + //將Form加入tabPage中 + tabPage2.Controls.Clear(); + tabPage2.Controls.Add(formBig1); + + //顯示tabPage + tabPage2.Show(); + break; + case 2: + //顯示歷史對帳單form + break; + } + } + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/Form1.resx b/其他專案資料/AMES_AP/AMES_AP/Form1.resx new file mode 100644 index 00000000..4d9c39ea --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/Form1.resx @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + + AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w + LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 + ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+ + EAAAAk1TRnQBSQFMAgEBAgEAAQgBAAEIAQABIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA + AwABIAMAAQEBAAEgBgABQMoAAyUBOwMiAcsDIgHLAyUBO/8A6QADFAEcAy8BpgMLAfADHwHQAx8B0AML + AfADLwGmAxQBHP8A2QADBgEIAzQBfQMJAfMDMgGbAxABFgM0AYgDNAGIAxABFgMyAZsDCQHzAzQBfQMG + AQj/AC0AAwcBCQMhATMDIQEzAyEBMwMdASocAAMBAQIDIAExAyEBMwMhATMDIAExAwEBAhwAAx0BKgMh + ATMDIQEzAyEBMwMGAQgoAAMuAVQDFgHgAyYBwwMhATIIAAM0AYgDNAGICAADIQEyAyYBwwMWAeADLgFU + /wApAAMzAZQDIQHMAygBuwMoAbsDFAHjAykBQxgAAzIBaAMbAdcDKAG7AygBuwMbAdcDMwFuGAADJgE9 + AxQB4wMoAbsDKAG7AyEBzAMyAZogAAMfAS4DJwG/AxUB4gMvAVgQAAM0AYgDNAGIEAADLwFYAxUB4gMn + Ab8DHwEu/wAdAAMjATcDJAHFAzQBcgMpAUQDKQFEAywBsgM0AYYDKQFEAykBRAMpAUQDKQFEAykBRAMp + AUQDLwGlAzMBkgMpAUQDKQFEAzMBkgMvAaUDKQFEAykBRAMLAQ8DFwEgAykBRAMpAUQDNAGGAywBsgMp + AUQDKQFEAzQBcgMkAcUDIwE3FAADDgETAzIBlgMJAfMDNAGBAwcBChQAAzQBiAM0AYgQAAMDAQQDBwEK + AzQBgQMJAfMDMgGWAw4BE/8AFQADBQH4Ay4BqgMuAaoDLgGqAy4BqgMuAaoDLgGqAy4BqgMuAaoDLgGq + Ay4BqgMuAaoDLgGqAy4BqgMuAaoDLgGqAy4BqgMuAaoDLgGqAy4BqgMuAaoDIAQxAV0DLgGqAy4BqgMu + AaoDLgGqAy4BqgMuAaoDLgGqAy4BqgMFAfgUAAMxAZwDKAG7AxYBHxwAAzQBiAM0AYgQAAMzAZIDLgFS + BAADFgEfAygBuwMxAZz/ABUAAwoB8gMhATMDIQEzAyEBMwMhATMDIQEzAyEBMwMhATMDIQEzAyEBMwMh + ATMDIQEzAyEBMwMhATMDIQEzAyEBMwMhATMDIQEzAyEBMwMhATMDIQEzAyEBMwMhATMDIQEzAyEBMwMh + ATMDIQEzAyEBMwMhATMDIQEzAyEBMwMKAfIUAAMvAagDMgFoIAADNAGIAzQBiBAAAzQBgQMpAUUDMgFr + AzIBawMyAWgDLwGo/wAVAAMtAa0DDwHqAyEBzAMoAbsDKAG7AygBuwMoAbsDKAG7AygBuwMoAbsDKAG7 + AygBuwMoAbsDKAG7AygBuwMZAdsDGQHbAygBuwMoAbsDKAG7AygBuwMoAbsDKAG7AygBuwMoAbsDKAG7 + AygBuwMoAbsDKAG7AyABzQMQAekDLQGtFAADLwGoAzIBaAwAAyUBOwMKAQ0MAAM0AYgDNAGIDAADCgEN + AyUBOwQAAzIBawMyAWsDMgFoAy8BqP8AGQADLAGwAycBPzAAAzQBeAM0AXgwAAMpAUQDLgGrGAADLwGo + AzIBaAQAAyABMAMmAcEDDwHrAxIB5wMxAWADAAEBBAADNAGIAzQBiAcAAQEDMQFgAxIB5wMPAesDJgHB + AyABMAQAAzIBaAMvAaj/ABkAAywBsAMnAT8wAAM0AXgDNAF4MAADKQFEAy4BqxgAAy8BqAM0AX0DMgGZ + Aw0B7gM0AXMDBAEFAyoBRgMcAdYDIgHKAyQBOAM0AYgDNAGIAyQBOAMiAcoDHAHWAyoBRgMEAQUDNAFz + Aw0B7gMyAZkDNAF9Ay8BqP8AGQADLgGpAyQBODAAAzQBeAM0AXgwAAMpAUQDLgGrFAADAwEEAygBvQMB + Af0DMQGcAxABFgwAAwMBBAMzAXEDDAHvAxIB5wMSAecDDAHvAzMBcQMDAQQMAAMQARYDMQGcAwEB/QMo + Ab0DAwEE/wAVAAMEAQY0AAM0AXgDNAF4MAADKQFEAy4BqxAAAyoBRgMcAdYDJgHDAyEBMhgAAwQBBgMz + AYwDAQH8AwEB/AMzAYwDBAEGGAADIQEyAyYBwwMcAdYDKgFG/wARAAMyAZYDHwEuEAADGgElAykBRAMp + AUQDEAEWEAADNAF4AzQBeBAAAxIBGAMpAUQDKQFEAxkBJBAAAykBRAMuAasIAAMZASMDLAGxAxUB4gMv + AVgcAAMsAU4DGQHbAygBvgMeAS0DHgEtAygBvgMZAdsDLAFOHAADLwFYAxUB4gMsAbEDGQEj/wAJAAMs + AbADJwE/EAADIwHJAyoBtgMjAckDMwGREAADNAF4AzQBeBAAAzIBlgMjAccDKgG3AyUBxBAAAykBRAMu + AasEAAM0AYADDAHvAzQBgQMHAQoYAAMdASoDKQG6AxcB3gMuAVIQAAMuAVIDFwHeAykBugMdASoYAAMH + AQoDNAGBAwwB7wM0AXf/AAUAAywBsAMnAT8QAAMhAcwDGQEjAzABXAMzAZMQAAM0AXgDNAF4EAADMgGY + Ay8BVwMbASgDIwHHEAADKQFEAy4BqwQAAzMBjAMMAe8DMwFwAwMBBBAAAw0BEQMzAZEDCwHwAzQBewMG + AQgYAAMGAQgDNAF7AwsB8AMzAZEDDQEREAADAwEEAzMBcAMMAe8DMwGV/wAFAAMsAbADJwE/EAADIQHM + AxkBIwMwAVwDMwGTEAADNAF4AzQBeBAAAzIBmAMvAVcDGwEoAyMBxxAAAykBRAMuAasIAAMjATYDIwHH + AxwB1gMpAUUEAAMCAQMDMgFoAw8B6wMwAaMDFAEbKAADFAEbAzABowMPAesDMgFoAwIBAwQAAykBRQMc + AdYDIwHHAyMBNv8ACQADLAGwAzIBmAM0AXcDNAF3AzQBdwM0AXcDEwHkAzQBigMvAagDJAHGAzQBdwM0 + AXcDNAF3AzQBdwMqAbcDKgG3AzQBdwM0AXcDNAF3AzQBdwMjAcgDLwGlAzMBjAMVAeEDNAF3AzQBdwM0 + AXcDNAF3AzIBmwMuAasPAAEBAzEBXQMTAeUDLAGyAx8B0QMiAcoDJAE5GAADFAEcAxgBIhgAAyQBOQMi + AcoDHwHRAywBsgMTAeUDMQFdAwABAf8ADQADKQFFAzQBdwM0AXcDNAF3AzQBdwM0AXcDNAF3AyMByAMv + AaUDNAF3AzQBdwM0AXcDNAF3AzQBdwM0AXcDNAF3AzQBdwM0AXcDNAF3AzQBdwM0AXcDLgGqAyUBxAM0 + AXcDNAF3AzQBdwM0AXcDNAF3AzQBdwMoAUIQAAMZASQDKgG4Aw8B6wMFAfgDNAGOAwsBDxQAAwkBDAMY + Ad0DFwHeAwoBDRQAAwoBDgM0AY4DBQH4Aw8B6wMqAbgDGQEk/wAtAAMyAZgDLwFXMAADMQFgAzMBjyQA + AwoBDQM0AYkDCgHyAzQBigMKAQ4DGQEjAywBsAMQAekDMgFkAwEBAgwAAzIBmwMsAbEDLAGxAzEBnw8A + AQEDMgFiAxEB6AMsAbADGQEjAwoBDgM0AYoDCgHyAzQBiQMKAQ3/ACUAAzIBmAMvAVcwAAMxAWADMwGP + IAADMAFcAxIB5wMsAbIDGQEkEAADKQFEAx0B1AMgAc4DJgE9BAADLAFNAxEB6AMPARUDDwEVAxEB6AMu + AVMEAAMlAToDIgHLAx0B1AMpAUQQAAMZASQDLAGyAxIB5wMvAVn/ACEAAzIBmAMvAVcwAAMxAWADMwGP + IAADKwG0AxIB5wMoAUIYAAMCAQMDMgFrAw4B7AMuAakDEQHoAysBSggAAysBSgMOAewDLwGmAw4B7AMy + AWsDAgEDGAADKAFBAxIB5wMnAb//ACEAAzIBmAMvAVcwAAMxAWADMwGPIAADAQECAzIBZAMQAekDLQGu + AxgBIhgAAw0EEgHmAzABogMFAQcIAAMFAQcDMAGiAxIB5wMOARMYAAMXASEDLQGtAxAB6QMyAWUDAQEC + /wAhAAMyAZgDLwFXEAADLAFMAzQBiAM0AYgDKgFHEAADMQFgAzMBjygAAwoBDgMzAYwDCgHyAzQBhwMK + AQ0QAAMWAR8DBgH2AwAB/wMdAdMIAAMdAdMDAAH/AwEB/AMTARoQAAMIAQsDNAGEAwoB8gM0AY4DCwEP + /wApAAMyAZgDLwFXEAADKwG0AzIBlgMyAZsDLgGrEAADMQFgAzMBjzAAAxoBJgMrAbQDEgHnAzIBYQMA + AQEQAAMdASsDDwHqBAADCAELAwQB+QMHAQkTAAEBAzABXAMTAeQDKgG3AxsBJ/8AMQADMgGYAy8BVxAA + AysBtAMlATsDKQFEAy4BqxAAAzEBYAMzAY84AAMqAUgDGwHXAzMBcBAAAzQBhwMoAbsEAAMlATsDHQHT + EAADIgE1AyQBxgMaAdoDKwFL/wA5AAMyAZgDLwFXEAADKwG0AyUBOwMpAUQDLgGrEAADMQFgAzMBjzQA + AxMBGgMvAVcDCgENAwgBCwMvAVcDLwFYAzABXAMuAakDCwHxAyIBNQQAAzQBdAMxAZ8EAAMPARUDEwHl + AywBsAMLAfADNAF0AwQBBv8APQADMwGVAx4B0gMqAbYDEgEZAzQBhgMoAbsDDwHrAyIBywMgAc0DEAHp + AygBuwMoAbsDKAG7AygBuwMdAdUDMwGMNAADLQFQAyoBtwMfAS4DHwEuAyoBtwMqAbgDKwG1AzMBjwMa + ASYEAAMSARgDDwHqAycBPwgAAyUBPAM0AYMDEQEX/wBFAAMPARUDIQEzAyABMQMCAQMDFwQhATMDIQEz + AyEBMwMhATMDIQEzAyEBMwMhATMDIQEzAyEBMwMhATMDDgETLAADDQESAyABMAMgATADIAEwAyABMAMD + AQQXAAEBAywBsQMzAZD/AMkAAzQBggMWAeADFgHgAxYB4AMWAeADKQFDEAADFQEeAygBuwMgAc0DBwEJ + /wDBAAMFAQcDCAELBAADAgEDAwwBEAMMARADDAEQAwwBEAMMARADGQEkAy8BWAMzAY8DDQHuAzQBhgME + AQb/AMUAAy0BrwMSAeYDBwEJAzQBdwMAAf8DAAH/AwAB/wMAAf8DAAH/Aw4B7AMpAbkDNAGGAyIBNP8A + SQABQgFNAT4HAAE+AwABKAMAAYADAAEgAwABAQEAAQEGAAECFgAD/wEABf8B/AE/Af8IAAX/AfABDwH/ + CAAF/wHAAQMB/wgAAYMB+AEfAcEB/wGGAWEB/wgAAYEB+AEfAYEB/gEeAXgBfwwAAfgBPgF4AR8MAAH4 + Af4BeQEfDAAB+QH+AXgBHwwAAfkBzgFyAR8IAAGfAf4BfwL5AQIBQAGfCAABnwH+AX8B+QH4AgABHwgA + AZ8B/gF/AfkB8AFwAQ4BDwgAAb8B/gF/AfkB4QH4AR8BhwgAAZ4BHgF4AXkBhwHwAQ8B4QgAAZ4BHgF4 + AXkBDwLDAfAIAAGeAR4BeAF5AQ8BBwHgAfAIAAGeAR4BeAF5AYQBHwH4ASEIAAGAAgABAQHAAn4BAwgA + AYACAAEBAeABfAE+AQcIAAH/AT8B/AH/AYABHAE4AQEIAAH/AT8B/AH/AQ8BCAEQAfAIAAH/AT8B/AH/ + AR8CgQH4CAAB/wE/AfwB/wEHAeEBhwHgCAAB/wI8Af8BwQHhAYcBgwgAAf8CPAH/AfABeQEeAQ8IAAH/ + AjwB/wH8AXkBPAE/CAAB/wI8Af8B+AEBASABfwgAAf8CAAH/AfgBAgExAf8IAAH/AgAB/wHgAXwBfwH/ + CAAE/wHgAXgBfwH/CAAE/wGQAQAC/wgABP8BgAEDAv8IAAs= + + + \ No newline at end of file diff --git a/其他專案資料/AMES_AP/AMES_AP/InHouse.Designer.cs b/其他專案資料/AMES_AP/AMES_AP/InHouse.Designer.cs new file mode 100644 index 00000000..6c44b885 --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/InHouse.Designer.cs @@ -0,0 +1,614 @@ + +namespace AMES_AP +{ + partial class InHouse + { + /// + /// 設計工具所需的變數。 + /// + private System.ComponentModel.IContainer components = null; + + /// + /// 清除任何使用中的資源。 + /// + /// 如果應該處置受控資源則為 true,否則為 false。 + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form 設計工具產生的程式碼 + + /// + /// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器修改 + /// 這個方法的內容。 + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.materialButton5 = new MaterialSkin.Controls.MaterialButton(); + this.materialButton4 = new MaterialSkin.Controls.MaterialButton(); + this.btnAddInHouse = new MaterialSkin.Controls.MaterialButton(); + this.DataToLeft = new MaterialSkin.Controls.MaterialButton(); + this.DataToRight = new MaterialSkin.Controls.MaterialButton(); + this.materialLabel3 = new MaterialSkin.Controls.MaterialLabel(); + this.materialComboBox2 = new MaterialSkin.Controls.MaterialComboBox(); + this.materialLabel4 = new MaterialSkin.Controls.MaterialLabel(); + this.materialComboBox1 = new MaterialSkin.Controls.MaterialComboBox(); + this.dataGridView2 = new System.Windows.Forms.DataGridView(); + this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.Column4 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Column2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Column3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.materialButton1 = new MaterialSkin.Controls.MaterialButton(); + this.QueryWipNo = new MaterialSkin.Controls.MaterialButton(); + this.InHouseNo = new MaterialSkin.Controls.MaterialMaskedTextBox(); + this.materialLabel2 = new MaterialSkin.Controls.MaterialLabel(); + this.WipNo = new MaterialSkin.Controls.MaterialMaskedTextBox(); + this.materialLabel1 = new MaterialSkin.Controls.MaterialLabel(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.materialButton5); + this.groupBox1.Controls.Add(this.materialButton4); + this.groupBox1.Controls.Add(this.btnAddInHouse); + this.groupBox1.Controls.Add(this.DataToLeft); + this.groupBox1.Controls.Add(this.DataToRight); + this.groupBox1.Controls.Add(this.materialLabel3); + this.groupBox1.Controls.Add(this.materialComboBox2); + this.groupBox1.Controls.Add(this.materialLabel4); + this.groupBox1.Controls.Add(this.materialComboBox1); + this.groupBox1.Controls.Add(this.dataGridView2); + this.groupBox1.Controls.Add(this.dataGridView1); + this.groupBox1.Controls.Add(this.materialButton1); + this.groupBox1.Controls.Add(this.QueryWipNo); + this.groupBox1.Controls.Add(this.InHouseNo); + this.groupBox1.Controls.Add(this.materialLabel2); + this.groupBox1.Controls.Add(this.WipNo); + this.groupBox1.Controls.Add(this.materialLabel1); + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox1.Location = new System.Drawing.Point(3, 64); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(1173, 563); + this.groupBox1.TabIndex = 0; + this.groupBox1.TabStop = false; + // + // materialButton5 + // + this.materialButton5.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.materialButton5.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.materialButton5.Depth = 0; + this.materialButton5.HighEmphasis = true; + this.materialButton5.Icon = null; + this.materialButton5.Location = new System.Drawing.Point(802, 448); + this.materialButton5.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.materialButton5.MouseState = MaterialSkin.MouseState.HOVER; + this.materialButton5.Name = "materialButton5"; + this.materialButton5.NoAccentTextColor = System.Drawing.Color.Empty; + this.materialButton5.Size = new System.Drawing.Size(117, 36); + this.materialButton5.TabIndex = 21; + this.materialButton5.Text = "產生新入庫單"; + this.materialButton5.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.materialButton5.UseAccentColor = false; + this.materialButton5.UseVisualStyleBackColor = true; + // + // materialButton4 + // + this.materialButton4.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.materialButton4.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.materialButton4.Depth = 0; + this.materialButton4.HighEmphasis = true; + this.materialButton4.Icon = null; + this.materialButton4.Location = new System.Drawing.Point(983, 447); + this.materialButton4.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.materialButton4.MouseState = MaterialSkin.MouseState.HOVER; + this.materialButton4.Name = "materialButton4"; + this.materialButton4.NoAccentTextColor = System.Drawing.Color.Empty; + this.materialButton4.Size = new System.Drawing.Size(64, 36); + this.materialButton4.TabIndex = 20; + this.materialButton4.Text = "預覽"; + this.materialButton4.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.materialButton4.UseAccentColor = false; + this.materialButton4.UseVisualStyleBackColor = true; + // + // btnAddInHouse + // + this.btnAddInHouse.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.btnAddInHouse.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.btnAddInHouse.Depth = 0; + this.btnAddInHouse.HighEmphasis = true; + this.btnAddInHouse.Icon = null; + this.btnAddInHouse.Location = new System.Drawing.Point(639, 448); + this.btnAddInHouse.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.btnAddInHouse.MouseState = MaterialSkin.MouseState.HOVER; + this.btnAddInHouse.Name = "btnAddInHouse"; + this.btnAddInHouse.NoAccentTextColor = System.Drawing.Color.Empty; + this.btnAddInHouse.Size = new System.Drawing.Size(101, 36); + this.btnAddInHouse.TabIndex = 19; + this.btnAddInHouse.Text = "生成入庫單"; + this.btnAddInHouse.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.btnAddInHouse.UseAccentColor = false; + this.btnAddInHouse.UseVisualStyleBackColor = true; + this.btnAddInHouse.Click += new System.EventHandler(this.btnAddInHouse_Click); + // + // DataToLeft + // + this.DataToLeft.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.DataToLeft.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.DataToLeft.Depth = 0; + this.DataToLeft.HighEmphasis = true; + this.DataToLeft.Icon = null; + this.DataToLeft.Location = new System.Drawing.Point(514, 310); + this.DataToLeft.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.DataToLeft.MouseState = MaterialSkin.MouseState.HOVER; + this.DataToLeft.Name = "DataToLeft"; + this.DataToLeft.NoAccentTextColor = System.Drawing.Color.Empty; + this.DataToLeft.Size = new System.Drawing.Size(64, 36); + this.DataToLeft.TabIndex = 18; + this.DataToLeft.Text = "< <"; + this.DataToLeft.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.DataToLeft.UseAccentColor = false; + this.DataToLeft.UseVisualStyleBackColor = true; + this.DataToLeft.Click += new System.EventHandler(this.DataToLeft_Click); + // + // DataToRight + // + this.DataToRight.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.DataToRight.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.DataToRight.Depth = 0; + this.DataToRight.HighEmphasis = true; + this.DataToRight.Icon = null; + this.DataToRight.Location = new System.Drawing.Point(514, 218); + this.DataToRight.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.DataToRight.MouseState = MaterialSkin.MouseState.HOVER; + this.DataToRight.Name = "DataToRight"; + this.DataToRight.NoAccentTextColor = System.Drawing.Color.Empty; + this.DataToRight.Size = new System.Drawing.Size(64, 36); + this.DataToRight.TabIndex = 17; + this.DataToRight.Text = "> >"; + this.DataToRight.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.DataToRight.UseAccentColor = false; + this.DataToRight.UseVisualStyleBackColor = true; + this.DataToRight.Click += new System.EventHandler(this.DataToRight_Click); + // + // materialLabel3 + // + this.materialLabel3.AutoSize = true; + this.materialLabel3.Depth = 0; + this.materialLabel3.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.materialLabel3.Location = new System.Drawing.Point(51, 515); + this.materialLabel3.MouseState = MaterialSkin.MouseState.HOVER; + this.materialLabel3.Name = "materialLabel3"; + this.materialLabel3.Size = new System.Drawing.Size(44, 19); + this.materialLabel3.TabIndex = 16; + this.materialLabel3.Text = "Site:"; + // + // materialComboBox2 + // + this.materialComboBox2.AutoResize = false; + this.materialComboBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.materialComboBox2.Depth = 0; + this.materialComboBox2.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; + this.materialComboBox2.DropDownHeight = 174; + this.materialComboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.materialComboBox2.DropDownWidth = 121; + this.materialComboBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Pixel); + this.materialComboBox2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.materialComboBox2.FormattingEnabled = true; + this.materialComboBox2.IntegralHeight = false; + this.materialComboBox2.ItemHeight = 43; + this.materialComboBox2.Items.AddRange(new object[] { + "A", + "B"}); + this.materialComboBox2.Location = new System.Drawing.Point(101, 497); + this.materialComboBox2.MaxDropDownItems = 4; + this.materialComboBox2.MouseState = MaterialSkin.MouseState.OUT; + this.materialComboBox2.Name = "materialComboBox2"; + this.materialComboBox2.Size = new System.Drawing.Size(207, 49); + this.materialComboBox2.StartIndex = 0; + this.materialComboBox2.TabIndex = 15; + // + // materialLabel4 + // + this.materialLabel4.AutoSize = true; + this.materialLabel4.Depth = 0; + this.materialLabel4.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.materialLabel4.Location = new System.Drawing.Point(14, 457); + this.materialLabel4.MouseState = MaterialSkin.MouseState.HOVER; + this.materialLabel4.Name = "materialLabel4"; + this.materialLabel4.Size = new System.Drawing.Size(81, 19); + this.materialLabel4.TabIndex = 14; + this.materialLabel4.Text = "抽驗標準:"; + // + // materialComboBox1 + // + this.materialComboBox1.AutoResize = false; + this.materialComboBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.materialComboBox1.Depth = 0; + this.materialComboBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; + this.materialComboBox1.DropDownHeight = 174; + this.materialComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.materialComboBox1.DropDownWidth = 121; + this.materialComboBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Pixel); + this.materialComboBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.materialComboBox1.FormattingEnabled = true; + this.materialComboBox1.IntegralHeight = false; + this.materialComboBox1.ItemHeight = 43; + this.materialComboBox1.Items.AddRange(new object[] { + "A", + "B"}); + this.materialComboBox1.Location = new System.Drawing.Point(101, 442); + this.materialComboBox1.MaxDropDownItems = 4; + this.materialComboBox1.MouseState = MaterialSkin.MouseState.OUT; + this.materialComboBox1.Name = "materialComboBox1"; + this.materialComboBox1.Size = new System.Drawing.Size(207, 49); + this.materialComboBox1.StartIndex = 0; + this.materialComboBox1.TabIndex = 12; + // + // dataGridView2 + // + this.dataGridView2.AllowUserToAddRows = false; + this.dataGridView2.AllowUserToDeleteRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.dataGridView2.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView2.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle2.Font = new System.Drawing.Font("新細明體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView2.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewCheckBoxColumn1, + this.dataGridViewTextBoxColumn1, + this.dataGridViewTextBoxColumn2, + this.dataGridViewTextBoxColumn3}); + this.dataGridView2.Location = new System.Drawing.Point(629, 145); + this.dataGridView2.Name = "dataGridView2"; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle3.Font = new System.Drawing.Font("新細明體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView2.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; + this.dataGridView2.RowHeadersVisible = false; + this.dataGridView2.RowHeadersWidth = 51; + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridView2.RowsDefaultCellStyle = dataGridViewCellStyle4; + this.dataGridView2.RowTemplate.Height = 27; + this.dataGridView2.Size = new System.Drawing.Size(457, 274); + this.dataGridView2.TabIndex = 11; + this.dataGridView2.TabStop = false; + // + // dataGridViewCheckBoxColumn1 + // + this.dataGridViewCheckBoxColumn1.HeaderText = "全選"; + this.dataGridViewCheckBoxColumn1.MinimumWidth = 6; + this.dataGridViewCheckBoxColumn1.Name = "dataGridViewCheckBoxColumn1"; + this.dataGridViewCheckBoxColumn1.Width = 80; + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.DataPropertyName = "BoxNo"; + this.dataGridViewTextBoxColumn1.HeaderText = "包裝號碼"; + this.dataGridViewTextBoxColumn1.MinimumWidth = 6; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.Width = 125; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.DataPropertyName = "BarcodeNo"; + this.dataGridViewTextBoxColumn2.HeaderText = "內部序號"; + this.dataGridViewTextBoxColumn2.MinimumWidth = 6; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.Width = 125; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.DataPropertyName = "ExtraBarcodeNo"; + this.dataGridViewTextBoxColumn3.HeaderText = "客戶序號"; + this.dataGridViewTextBoxColumn3.MinimumWidth = 6; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.Width = 125; + // + // dataGridView1 + // + this.dataGridView1.AllowUserToAddRows = false; + this.dataGridView1.AllowUserToDeleteRows = false; + dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); + this.dataGridView1.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; + this.dataGridView1.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle6.Font = new System.Drawing.Font("新細明體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Column4, + this.Column1, + this.Column2, + this.Column3}); + this.dataGridView1.Location = new System.Drawing.Point(17, 145); + this.dataGridView1.Name = "dataGridView1"; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle7.Font = new System.Drawing.Font("新細明體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle7; + this.dataGridView1.RowHeadersVisible = false; + this.dataGridView1.RowHeadersWidth = 51; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle8; + this.dataGridView1.RowTemplate.Height = 27; + this.dataGridView1.Size = new System.Drawing.Size(457, 274); + this.dataGridView1.TabIndex = 10; + this.dataGridView1.TabStop = false; + // + // Column4 + // + this.Column4.HeaderText = "全選"; + this.Column4.MinimumWidth = 6; + this.Column4.Name = "Column4"; + this.Column4.Width = 80; + // + // Column1 + // + this.Column1.DataPropertyName = "BoxNo"; + this.Column1.HeaderText = "包裝號碼"; + this.Column1.MinimumWidth = 6; + this.Column1.Name = "Column1"; + this.Column1.Width = 125; + // + // Column2 + // + this.Column2.DataPropertyName = "BarcodeNo"; + this.Column2.HeaderText = "內部序號"; + this.Column2.MinimumWidth = 6; + this.Column2.Name = "Column2"; + this.Column2.Width = 125; + // + // Column3 + // + this.Column3.DataPropertyName = "ExtraBarcodeNo"; + this.Column3.HeaderText = "客戶序號"; + this.Column3.MinimumWidth = 6; + this.Column3.Name = "Column3"; + this.Column3.Width = 125; + // + // materialButton1 + // + this.materialButton1.AutoSize = false; + this.materialButton1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.materialButton1.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.materialButton1.Depth = 0; + this.materialButton1.HighEmphasis = true; + this.materialButton1.Icon = null; + this.materialButton1.Location = new System.Drawing.Point(906, 37); + this.materialButton1.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.materialButton1.MouseState = MaterialSkin.MouseState.HOVER; + this.materialButton1.Name = "materialButton1"; + this.materialButton1.NoAccentTextColor = System.Drawing.Color.Empty; + this.materialButton1.Size = new System.Drawing.Size(64, 48); + this.materialButton1.TabIndex = 8; + this.materialButton1.Text = "查詢"; + this.materialButton1.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.materialButton1.UseAccentColor = false; + this.materialButton1.UseVisualStyleBackColor = true; + // + // QueryWipNo + // + this.QueryWipNo.AutoSize = false; + this.QueryWipNo.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.QueryWipNo.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.QueryWipNo.Depth = 0; + this.QueryWipNo.Font = new System.Drawing.Font("新細明體", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.QueryWipNo.ForeColor = System.Drawing.SystemColors.ActiveCaption; + this.QueryWipNo.HighEmphasis = true; + this.QueryWipNo.Icon = null; + this.QueryWipNo.Location = new System.Drawing.Point(278, 37); + this.QueryWipNo.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.QueryWipNo.MouseState = MaterialSkin.MouseState.HOVER; + this.QueryWipNo.Name = "QueryWipNo"; + this.QueryWipNo.NoAccentTextColor = System.Drawing.Color.Empty; + this.QueryWipNo.Size = new System.Drawing.Size(64, 48); + this.QueryWipNo.TabIndex = 7; + this.QueryWipNo.Text = "查詢"; + this.QueryWipNo.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.QueryWipNo.UseAccentColor = false; + this.QueryWipNo.UseVisualStyleBackColor = true; + this.QueryWipNo.Click += new System.EventHandler(this.QueryWipNo_Click); + // + // InHouseNo + // + this.InHouseNo.AllowPromptAsInput = true; + this.InHouseNo.AnimateReadOnly = false; + this.InHouseNo.AsciiOnly = false; + this.InHouseNo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.InHouseNo.BeepOnError = false; + this.InHouseNo.CutCopyMaskFormat = System.Windows.Forms.MaskFormat.IncludeLiterals; + this.InHouseNo.Depth = 0; + this.InHouseNo.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.InHouseNo.HidePromptOnLeave = false; + this.InHouseNo.HideSelection = true; + this.InHouseNo.Hint = "入庫單號碼"; + this.InHouseNo.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Default; + this.InHouseNo.LeadingIcon = null; + this.InHouseNo.Location = new System.Drawing.Point(729, 37); + this.InHouseNo.Mask = ""; + this.InHouseNo.MaxLength = 32767; + this.InHouseNo.MouseState = MaterialSkin.MouseState.OUT; + this.InHouseNo.Name = "InHouseNo"; + this.InHouseNo.PasswordChar = '\0'; + this.InHouseNo.PrefixSuffixText = null; + this.InHouseNo.PromptChar = '_'; + this.InHouseNo.ReadOnly = false; + this.InHouseNo.RejectInputOnFirstFailure = false; + this.InHouseNo.ResetOnPrompt = true; + this.InHouseNo.ResetOnSpace = true; + this.InHouseNo.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.InHouseNo.SelectedText = ""; + this.InHouseNo.SelectionLength = 0; + this.InHouseNo.SelectionStart = 0; + this.InHouseNo.ShortcutsEnabled = true; + this.InHouseNo.Size = new System.Drawing.Size(170, 48); + this.InHouseNo.SkipLiterals = true; + this.InHouseNo.TabIndex = 6; + this.InHouseNo.TabStop = false; + this.InHouseNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + this.InHouseNo.TextMaskFormat = System.Windows.Forms.MaskFormat.IncludeLiterals; + this.InHouseNo.TrailingIcon = null; + this.InHouseNo.UseSystemPasswordChar = false; + this.InHouseNo.ValidatingType = null; + // + // materialLabel2 + // + this.materialLabel2.AutoSize = true; + this.materialLabel2.Depth = 0; + this.materialLabel2.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.materialLabel2.Location = new System.Drawing.Point(626, 52); + this.materialLabel2.MouseState = MaterialSkin.MouseState.HOVER; + this.materialLabel2.Name = "materialLabel2"; + this.materialLabel2.Size = new System.Drawing.Size(97, 19); + this.materialLabel2.TabIndex = 5; + this.materialLabel2.Text = "入庫單號碼:"; + // + // WipNo + // + this.WipNo.AllowPromptAsInput = true; + this.WipNo.AnimateReadOnly = false; + this.WipNo.AsciiOnly = false; + this.WipNo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.WipNo.BeepOnError = false; + this.WipNo.CutCopyMaskFormat = System.Windows.Forms.MaskFormat.IncludeLiterals; + this.WipNo.Depth = 0; + this.WipNo.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.WipNo.HidePromptOnLeave = false; + this.WipNo.HideSelection = true; + this.WipNo.Hint = "輸入工單號碼"; + this.WipNo.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Default; + this.WipNo.LeadingIcon = null; + this.WipNo.Location = new System.Drawing.Point(101, 37); + this.WipNo.Mask = ""; + this.WipNo.MaxLength = 32767; + this.WipNo.MouseState = MaterialSkin.MouseState.OUT; + this.WipNo.Name = "WipNo"; + this.WipNo.PasswordChar = '\0'; + this.WipNo.PrefixSuffixText = null; + this.WipNo.PromptChar = '_'; + this.WipNo.ReadOnly = false; + this.WipNo.RejectInputOnFirstFailure = false; + this.WipNo.ResetOnPrompt = true; + this.WipNo.ResetOnSpace = true; + this.WipNo.RightToLeft = System.Windows.Forms.RightToLeft.No; + this.WipNo.SelectedText = ""; + this.WipNo.SelectionLength = 0; + this.WipNo.SelectionStart = 0; + this.WipNo.ShortcutsEnabled = true; + this.WipNo.Size = new System.Drawing.Size(170, 48); + this.WipNo.SkipLiterals = true; + this.WipNo.TabIndex = 4; + this.WipNo.TabStop = false; + this.WipNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + this.WipNo.TextMaskFormat = System.Windows.Forms.MaskFormat.IncludeLiterals; + this.WipNo.TrailingIcon = null; + this.WipNo.UseSystemPasswordChar = false; + this.WipNo.ValidatingType = null; + // + // materialLabel1 + // + this.materialLabel1.AutoSize = true; + this.materialLabel1.Depth = 0; + this.materialLabel1.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.materialLabel1.Location = new System.Drawing.Point(14, 52); + this.materialLabel1.MouseState = MaterialSkin.MouseState.HOVER; + this.materialLabel1.Name = "materialLabel1"; + this.materialLabel1.Size = new System.Drawing.Size(81, 19); + this.materialLabel1.TabIndex = 3; + this.materialLabel1.Text = "工單號碼:"; + // + // InHouse + // + this.AutoSize = true; + this.BackColor = System.Drawing.Color.White; + this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.ClientSize = new System.Drawing.Size(1179, 630); + this.Controls.Add(this.groupBox1); + this.DrawerHighlightWithAccent = false; + this.ForeColor = System.Drawing.SystemColors.ControlText; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "InHouse"; + this.ShowInTaskbar = false; + this.Text = "入庫"; + this.Load += new System.EventHandler(this.InHouse_Load); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.GroupBox groupBox1; + private MaterialSkin.Controls.MaterialButton materialButton1; + private MaterialSkin.Controls.MaterialButton QueryWipNo; + private MaterialSkin.Controls.MaterialMaskedTextBox InHouseNo; + private MaterialSkin.Controls.MaterialLabel materialLabel2; + private MaterialSkin.Controls.MaterialMaskedTextBox WipNo; + private MaterialSkin.Controls.MaterialLabel materialLabel1; + private System.Windows.Forms.DataGridView dataGridView1; + private MaterialSkin.Controls.MaterialComboBox materialComboBox1; + private System.Windows.Forms.DataGridView dataGridView2; + private MaterialSkin.Controls.MaterialButton DataToLeft; + private MaterialSkin.Controls.MaterialButton DataToRight; + private MaterialSkin.Controls.MaterialLabel materialLabel3; + private MaterialSkin.Controls.MaterialComboBox materialComboBox2; + private MaterialSkin.Controls.MaterialLabel materialLabel4; + private MaterialSkin.Controls.MaterialButton btnAddInHouse; + private MaterialSkin.Controls.MaterialButton materialButton5; + private MaterialSkin.Controls.MaterialButton materialButton4; + private System.Windows.Forms.DataGridViewCheckBoxColumn Column4; + private System.Windows.Forms.DataGridViewTextBoxColumn Column1; + private System.Windows.Forms.DataGridViewTextBoxColumn Column2; + private System.Windows.Forms.DataGridViewTextBoxColumn Column3; + private System.Windows.Forms.DataGridViewCheckBoxColumn dataGridViewCheckBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/InHouse.cs b/其他專案資料/AMES_AP/AMES_AP/InHouse.cs new file mode 100644 index 00000000..de9f20ee --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/InHouse.cs @@ -0,0 +1,256 @@ +using MaterialSkin.Controls; +using System; +using System.Collections.Generic; +using System.Collections; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using Newtonsoft.Json; +using AMES_AP.Models; + +namespace AMES_AP +{ + public partial class InHouse : MaterialForm + { + + private List DataLeft = new List(); + private List DataRight = new List(); + + public InHouse() + { + InitializeComponent(); + } + + private void InHouse_Load(object sender, EventArgs e) + { + this.dataGridView1.AutoGenerateColumns = false; + this.dataGridView2.AutoGenerateColumns = false; + } + + private void cbHeader_CheckedChanged(object sender, EventArgs e) + { + + foreach (DataGridViewRow dr in dataGridView1.Rows) + dr.Cells[0].Value = ((CheckBox)dataGridView1.Controls.Find("checkboxHeader", true)[0]).Checked; + + } + + private void cbHeader1_CheckedChanged(object sender, EventArgs e) + { + + foreach (DataGridViewRow dr in dataGridView2.Rows) + dr.Cells[0].Value = ((CheckBox)dataGridView2.Controls.Find("checkboxHeader1", true)[0]).Checked; + + } + + private void QueryWipNo_Click(object sender, EventArgs e) + { + var query_extraNo = ApiHelper.GetMethod($"api/BarcodeInfoes/ByWipNo/{WipNo.Text.ToUpper()}"); + if (query_extraNo == "error" || query_extraNo == "無法連線WebAPI") + { + MessageBox.Show(query_extraNo); + return; + } + var barcodeInfos = JsonConvert.DeserializeObject>(query_extraNo); + + //建立個矩形,等下計算 CheckBox 嵌入 GridView 的位置 + Rectangle rect = dataGridView1.GetCellDisplayRectangle(0, -1, true); + rect.X = rect.Location.X + rect.Width / 4 - 9; + rect.Y = rect.Location.Y + (rect.Height / 2 - 9); + + CheckBox cbHeader = new CheckBox(); + cbHeader.Name = "checkboxHeader"; + cbHeader.Size = new Size(18, 18); + cbHeader.Location = rect.Location; + //全選要設定的事件 + cbHeader.CheckedChanged += new EventHandler(cbHeader_CheckedChanged); + + //將 CheckBox 加入到 dataGridView + dataGridView1.Controls.Add(cbHeader); + + DataLeft = barcodeInfos.Select(s => new DataBarcodeInfo + { + BarcodeNo = s.BarcodeNo, + BoxNo = s.BoxNo, + ExtraBarcodeNo = s.ExtraBarcodeNo + }).ToList(); + + dataGridView1.DataSource = DataLeft; + } + + private void DataToRight_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow dr in dataGridView1.Rows) + { + DataGridViewCheckBoxCell chkchecking = dr.Cells[0] as DataGridViewCheckBoxCell; + if (dr.Cells[0].Value != null) + { + string BoxNo = dr.Cells[1].Value == null ? "" : dr.Cells[1].Value.ToString(); + string BarcodeNo = dr.Cells[2].Value == null ? "" : dr.Cells[2].Value.ToString(); + string ExtraBarcodeNo = dr.Cells[3].Value == null ? "" : dr.Cells[3].Value.ToString(); + + DataRight.Add(new DataBarcodeInfo + { + BoxNo = BoxNo, + BarcodeNo = BarcodeNo, + ExtraBarcodeNo = ExtraBarcodeNo + }); + + DataLeft.RemoveAll(w => w.BarcodeNo == BarcodeNo); + } + } + + GetDataGridView(); + } + + private void DataToLeft_Click(object sender, EventArgs e) + { + foreach (DataGridViewRow dr in dataGridView2.Rows) + { + DataGridViewCheckBoxCell chkchecking = dr.Cells[0] as DataGridViewCheckBoxCell; + if (dr.Cells[0].Value != null) + { + string BoxNo = dr.Cells[1].Value == null ? "" : dr.Cells[1].Value.ToString(); + string BarcodeNo = dr.Cells[2].Value == null ? "" : dr.Cells[2].Value.ToString(); + string ExtraBarcodeNo = dr.Cells[3].Value == null ? "" : dr.Cells[3].Value.ToString(); + + DataLeft.Add(new DataBarcodeInfo + { + BoxNo = BoxNo, + BarcodeNo = BarcodeNo, + ExtraBarcodeNo = ExtraBarcodeNo + }); + + DataRight.RemoveAll(w => w.BarcodeNo == BarcodeNo); + } + } + + GetDataGridView(); + } + + private void GetDataGridView() + { + dataGridView1.DataSource = null; + dataGridView2.DataSource = null; + + //建立個矩形,等下計算 CheckBox 嵌入 GridView 的位置 + Rectangle rect = dataGridView1.GetCellDisplayRectangle(0, -1, true); + rect.X = rect.Location.X + rect.Width / 4 - 9; + rect.Y = rect.Location.Y + (rect.Height / 2 - 9); + + CheckBox cbHeader = new CheckBox(); + cbHeader.Name = "checkboxHeader"; + cbHeader.Size = new Size(18, 18); + cbHeader.Location = rect.Location; + //全選要設定的事件 + cbHeader.CheckedChanged += new EventHandler(cbHeader_CheckedChanged); + + //將 CheckBox 加入到 dataGridView + dataGridView1.Controls.Add(cbHeader); + + + //建立個矩形,等下計算 CheckBox 嵌入 GridView 的位置 + Rectangle rect1 = dataGridView2.GetCellDisplayRectangle(0, -1, true); + rect1.X = rect1.Location.X + rect1.Width / 4 - 9; + rect1.Y = rect1.Location.Y + (rect1.Height / 2 - 9); + + CheckBox cbHeader1 = new CheckBox(); + cbHeader1.Name = "checkboxHeader1"; + cbHeader1.Size = new Size(18, 18); + cbHeader1.Location = rect1.Location; + //全選要設定的事件 + cbHeader1.CheckedChanged += new EventHandler(cbHeader1_CheckedChanged); + //將 CheckBox 加入到 dataGridView + dataGridView2.Controls.Add(cbHeader1); + + dataGridView1.DataSource = DataLeft; + dataGridView2.DataSource = DataRight; + } + + private void btnAddInHouse_Click(object sender, EventArgs e) + { + if (DataRight.Count == 0) + { + { + MessageBox.Show("請確認是否有勾選包裝箱號入庫"); + return; + } + } + + var query = ApiHelper.GetMethod($"api/WipInfos/WipInfoByWipNo/{WipNo.Text.ToUpper()}"); + if (query == "error" || query == "無法連線WebAPI") + { + MessageBox.Show(query); + return; + } + + var wipInfos = JsonConvert.DeserializeObject>(query); + + var InhouseM = new FqcInhouseMaster + { + InhouseNo = "Q" + WipNo.Text.ToUpper() + "001", + SeqID = 1, + ItemNo = wipInfos.FirstOrDefault().GetWipAtt.ItemNO, + Plant = materialComboBox2.SelectedItem.ToString(), + CritID = 1000, + ModelNo = wipInfos.FirstOrDefault().GetWipAtt.ModelNO, + WipNo = WipNo.Text.ToUpper(), + WipQty = wipInfos.FirstOrDefault().PlanQTY, + InhouseQty = 0, + }; + + var InhouseD = new List(); + foreach (var item in DataRight.Select(s => s.BoxNo).Distinct()) + { + InhouseD.Add(new FqcInhouseDetail + { + InhouseNo = "Q" + WipNo.Text.ToUpper() + "001", + SeqID = 1, + SerialNo = item, + SerialType = "B" + }); + } + + var result = ApiHelper.PostInsertMethod("api/FqcInhouseMaster", JsonConvert.SerializeObject(InhouseM)); + if (result) + { + foreach (var item in InhouseD) + { + ApiHelper.PostInsertMethod("api/FqcInhouseDetail", JsonConvert.SerializeObject(item)); + } + + InHouseNo.Text = "Q" + WipNo.Text.ToUpper() + "001"; + MessageBox.Show("入庫單號:" + InHouseNo.Text); + } + DataRight.Clear(); + GetDataGridView(); + } + } + + public class DataBarcodeInfo + { + + /// + /// 條碼序號 + /// + + public string BarcodeNo { get; set; } + + + /// + /// 客戶條碼 + /// + + public string ExtraBarcodeNo { get; set; } + + /// + /// 包装箱號 + /// + + public string BoxNo { get; set; } + + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/InHouse.resx b/其他專案資料/AMES_AP/AMES_AP/InHouse.resx new file mode 100644 index 00000000..3c92531b --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/InHouse.resx @@ -0,0 +1,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + \ No newline at end of file diff --git a/其他專案資料/AMES_AP/AMES_AP/Login.Designer.cs b/其他專案資料/AMES_AP/AMES_AP/Login.Designer.cs index 4128bf92..0aa0bd00 100644 --- a/其他專案資料/AMES_AP/AMES_AP/Login.Designer.cs +++ b/其他專案資料/AMES_AP/AMES_AP/Login.Designer.cs @@ -29,29 +29,42 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Login)); - this.txtUserName = new MaterialSkin.Controls.MaterialSingleLineTextField(); + this.txtUserName = new MaterialSkin.Controls.MaterialTextBox2(); this.materialLabel1 = new MaterialSkin.Controls.MaterialLabel(); - this.txtPassword = new MaterialSkin.Controls.MaterialSingleLineTextField(); - this.cbxRemember = new MaterialSkin.Controls.MaterialCheckBox(); - this.btnLogin = new MaterialSkin.Controls.MaterialRaisedButton(); + this.txtPassword = new MaterialSkin.Controls.MaterialTextBox2(); + this.cbxRemember = new MaterialSkin.Controls.MaterialCheckbox(); + this.btnLogin = new MaterialSkin.Controls.MaterialButton(); this.lblErrorMessage = new MaterialSkin.Controls.MaterialLabel(); - this.materialLabel2 = new MaterialSkin.Controls.MaterialLabel(); - this.materialLabel3 = new MaterialSkin.Controls.MaterialLabel(); this.SuspendLayout(); // // txtUserName // + this.txtUserName.AnimateReadOnly = false; + this.txtUserName.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.txtUserName.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.txtUserName.Depth = 0; - this.txtUserName.Hint = ""; - this.txtUserName.Location = new System.Drawing.Point(180, 158); - this.txtUserName.MouseState = MaterialSkin.MouseState.HOVER; + this.txtUserName.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.txtUserName.HideSelection = true; + this.txtUserName.Hint = "帳號"; + this.txtUserName.LeadingIcon = null; + this.txtUserName.Location = new System.Drawing.Point(21, 177); + this.txtUserName.Margin = new System.Windows.Forms.Padding(4); + this.txtUserName.MaxLength = 32767; + this.txtUserName.MouseState = MaterialSkin.MouseState.OUT; this.txtUserName.Name = "txtUserName"; this.txtUserName.PasswordChar = '\0'; + this.txtUserName.PrefixSuffixText = null; + this.txtUserName.ReadOnly = false; + this.txtUserName.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtUserName.SelectedText = ""; this.txtUserName.SelectionLength = 0; this.txtUserName.SelectionStart = 0; - this.txtUserName.Size = new System.Drawing.Size(160, 23); + this.txtUserName.ShortcutsEnabled = true; + this.txtUserName.Size = new System.Drawing.Size(523, 48); this.txtUserName.TabIndex = 0; + this.txtUserName.TabStop = false; + this.txtUserName.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + this.txtUserName.TrailingIcon = null; this.txtUserName.UseSystemPasswordChar = false; // // materialLabel1 @@ -59,28 +72,44 @@ this.materialLabel1.AutoSize = true; this.materialLabel1.BackColor = System.Drawing.Color.Transparent; this.materialLabel1.Depth = 0; - this.materialLabel1.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel1.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel1.Location = new System.Drawing.Point(176, 101); + this.materialLabel1.Location = new System.Drawing.Point(260, 129); + this.materialLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel1.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel1.Name = "materialLabel1"; - this.materialLabel1.Size = new System.Drawing.Size(72, 19); + this.materialLabel1.Size = new System.Drawing.Size(66, 19); this.materialLabel1.TabIndex = 1; this.materialLabel1.Text = "Welcome"; // // txtPassword // + this.txtPassword.AnimateReadOnly = false; + this.txtPassword.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.txtPassword.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal; this.txtPassword.Depth = 0; - this.txtPassword.Hint = ""; - this.txtPassword.Location = new System.Drawing.Point(180, 199); - this.txtPassword.MouseState = MaterialSkin.MouseState.HOVER; + this.txtPassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); + this.txtPassword.HideSelection = true; + this.txtPassword.Hint = "密碼"; + this.txtPassword.LeadingIcon = null; + this.txtPassword.Location = new System.Drawing.Point(21, 252); + this.txtPassword.Margin = new System.Windows.Forms.Padding(4); + this.txtPassword.MaxLength = 32767; + this.txtPassword.MouseState = MaterialSkin.MouseState.OUT; this.txtPassword.Name = "txtPassword"; - this.txtPassword.PasswordChar = '\0'; + this.txtPassword.PasswordChar = '●'; + this.txtPassword.PrefixSuffixText = null; + this.txtPassword.ReadOnly = false; + this.txtPassword.RightToLeft = System.Windows.Forms.RightToLeft.No; this.txtPassword.SelectedText = ""; this.txtPassword.SelectionLength = 0; this.txtPassword.SelectionStart = 0; - this.txtPassword.Size = new System.Drawing.Size(160, 23); + this.txtPassword.ShortcutsEnabled = true; + this.txtPassword.Size = new System.Drawing.Size(523, 48); this.txtPassword.TabIndex = 2; + this.txtPassword.TabStop = false; + this.txtPassword.TextAlign = System.Windows.Forms.HorizontalAlignment.Left; + this.txtPassword.TrailingIcon = null; this.txtPassword.UseSystemPasswordChar = true; // // cbxRemember @@ -88,28 +117,36 @@ this.cbxRemember.AutoSize = true; this.cbxRemember.BackColor = System.Drawing.Color.Transparent; this.cbxRemember.Depth = 0; - this.cbxRemember.Font = new System.Drawing.Font("Roboto", 10F); - this.cbxRemember.Location = new System.Drawing.Point(164, 241); + this.cbxRemember.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); + this.cbxRemember.Location = new System.Drawing.Point(21, 318); this.cbxRemember.Margin = new System.Windows.Forms.Padding(0); this.cbxRemember.MouseLocation = new System.Drawing.Point(-1, -1); this.cbxRemember.MouseState = MaterialSkin.MouseState.HOVER; this.cbxRemember.Name = "cbxRemember"; + this.cbxRemember.ReadOnly = false; this.cbxRemember.Ripple = true; - this.cbxRemember.Size = new System.Drawing.Size(120, 30); + this.cbxRemember.Size = new System.Drawing.Size(137, 37); this.cbxRemember.TabIndex = 4; this.cbxRemember.Text = "Remember Me"; this.cbxRemember.UseVisualStyleBackColor = false; // // btnLogin // + this.btnLogin.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.btnLogin.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; this.btnLogin.Depth = 0; - this.btnLogin.Location = new System.Drawing.Point(104, 291); + this.btnLogin.HighEmphasis = true; + this.btnLogin.Icon = null; + this.btnLogin.Location = new System.Drawing.Point(262, 392); + this.btnLogin.Margin = new System.Windows.Forms.Padding(4); this.btnLogin.MouseState = MaterialSkin.MouseState.HOVER; this.btnLogin.Name = "btnLogin"; - this.btnLogin.Primary = true; - this.btnLogin.Size = new System.Drawing.Size(247, 32); + this.btnLogin.NoAccentTextColor = System.Drawing.Color.Empty; + this.btnLogin.Size = new System.Drawing.Size(64, 36); this.btnLogin.TabIndex = 5; this.btnLogin.Text = "Login"; + this.btnLogin.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.btnLogin.UseAccentColor = false; this.btnLogin.UseVisualStyleBackColor = true; this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click); // @@ -118,50 +155,20 @@ this.lblErrorMessage.AutoSize = true; this.lblErrorMessage.BackColor = System.Drawing.Color.Transparent; this.lblErrorMessage.Depth = 0; - this.lblErrorMessage.Font = new System.Drawing.Font("Roboto", 11F); + this.lblErrorMessage.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.lblErrorMessage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.lblErrorMessage.Location = new System.Drawing.Point(100, 342); + this.lblErrorMessage.Location = new System.Drawing.Point(133, 428); + this.lblErrorMessage.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lblErrorMessage.MouseState = MaterialSkin.MouseState.HOVER; this.lblErrorMessage.Name = "lblErrorMessage"; - this.lblErrorMessage.Size = new System.Drawing.Size(0, 19); + this.lblErrorMessage.Size = new System.Drawing.Size(1, 0); this.lblErrorMessage.TabIndex = 6; // - // materialLabel2 - // - this.materialLabel2.BackColor = System.Drawing.Color.White; - this.materialLabel2.Depth = 0; - this.materialLabel2.Font = new System.Drawing.Font("Roboto", 11F); - this.materialLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel2.Location = new System.Drawing.Point(100, 199); - this.materialLabel2.MouseState = MaterialSkin.MouseState.HOVER; - this.materialLabel2.Name = "materialLabel2"; - this.materialLabel2.Size = new System.Drawing.Size(68, 23); - this.materialLabel2.TabIndex = 7; - this.materialLabel2.Text = "密碼:"; - this.materialLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // materialLabel3 - // - this.materialLabel3.BackColor = System.Drawing.Color.White; - this.materialLabel3.CausesValidation = false; - this.materialLabel3.Depth = 0; - this.materialLabel3.Font = new System.Drawing.Font("Roboto", 11F); - this.materialLabel3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel3.Location = new System.Drawing.Point(100, 158); - this.materialLabel3.MouseState = MaterialSkin.MouseState.HOVER; - this.materialLabel3.Name = "materialLabel3"; - this.materialLabel3.Size = new System.Drawing.Size(68, 23); - this.materialLabel3.TabIndex = 8; - this.materialLabel3.Text = "帳號:"; - this.materialLabel3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // // Login // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(450, 415); - this.Controls.Add(this.materialLabel3); - this.Controls.Add(this.materialLabel2); + this.ClientSize = new System.Drawing.Size(565, 519); this.Controls.Add(this.lblErrorMessage); this.Controls.Add(this.btnLogin); this.Controls.Add(this.cbxRemember); @@ -169,6 +176,7 @@ this.Controls.Add(this.materialLabel1); this.Controls.Add(this.txtUserName); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(4); this.MaximizeBox = false; this.Name = "Login"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; @@ -181,14 +189,13 @@ #endregion - private MaterialSkin.Controls.MaterialSingleLineTextField txtUserName; + private MaterialSkin.Controls.MaterialTextBox2 txtUserName; private MaterialSkin.Controls.MaterialLabel materialLabel1; - private MaterialSkin.Controls.MaterialSingleLineTextField txtPassword; - private MaterialSkin.Controls.MaterialCheckBox cbxRemember; - private MaterialSkin.Controls.MaterialRaisedButton btnLogin; + private MaterialSkin.Controls.MaterialTextBox2 txtPassword; + private MaterialSkin.Controls.MaterialCheckbox cbxRemember; + private MaterialSkin.Controls.MaterialButton btnLogin; private MaterialSkin.Controls.MaterialLabel lblErrorMessage; - private MaterialSkin.Controls.MaterialLabel materialLabel2; - private MaterialSkin.Controls.MaterialLabel materialLabel3; + } } diff --git a/其他專案資料/AMES_AP/AMES_AP/Login.cs b/其他專案資料/AMES_AP/AMES_AP/Login.cs index 1cce914c..e61c0426 100644 --- a/其他專案資料/AMES_AP/AMES_AP/Login.cs +++ b/其他專案資料/AMES_AP/AMES_AP/Login.cs @@ -35,8 +35,10 @@ namespace AMES_AP Properties.Settings.Default.CheckBox = cbxRemember.Checked; Properties.Settings.Default.Save(); } - StockControlForm stfrm = new StockControlForm(); - stfrm.Show(); + //StockControlForm stfrm = new StockControlForm(); + //stfrm.Show(); + Form1 form1 = new Form1(); + form1.Show(); this.Hide(); } else diff --git a/其他專案資料/AMES_AP/AMES_AP/Models/BarcodeInfo.cs b/其他專案資料/AMES_AP/AMES_AP/Models/BarcodeInfo.cs new file mode 100644 index 00000000..b1b6a376 --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/Models/BarcodeInfo.cs @@ -0,0 +1,80 @@ +using System; + + +namespace AMES_AP.Models +{ + /// + /// 條碼變更資料表 + /// + + public class BarcodeInfo + { + /// + /// 條碼ID + /// + + public int BarcodeID { get; set; } + + /// + /// 條碼序號 + /// + + public string BarcodeNo { get; set; } + + /// + /// 條碼狀態代碼 + /// + + public string StatusNo { get; set; } + + /// + /// 客戶條碼 + /// + + public string ExtraBarcodeNo { get; set; } + + /// + /// 存放位置ID + /// + + public int LocationID { get; set; } + + /// + /// 條碼過站位置 + /// + + public int RuleStationID { get; set; } + + /// + /// 條碼過站狀態 P:PASS F:不良 + /// + + public string RuleStatus { get; set; } + + /// + /// 工單ID + /// + + public int WipID { get; set; } + + /// + /// 包装箱號 + /// + + public string BoxNo { get; set; } + + + /// + /// 系统狀態 + /// + + public string SysType { get; set; } = "S"; + + /// + /// 條碼流程狀態 + /// + + public int StatusID { get; set; } = 1; + + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/Models/FqcInhouseDetail.cs b/其他專案資料/AMES_AP/AMES_AP/Models/FqcInhouseDetail.cs new file mode 100644 index 00000000..d79aaf92 --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/Models/FqcInhouseDetail.cs @@ -0,0 +1,61 @@ +using System; + + + +namespace AMES_AP.Models +{ + /// + /// 檢驗單明細資料檔 + /// + + public partial class FqcInhouseDetail + { + /// + /// 入庫單號碼 + /// + + public string InhouseNo { get; set; } + + /// + /// 順序ID + /// + + public int SeqID { get; set; } + + /// + /// 箱號/條碼 + /// + + public string SerialNo { get; set; } + + /// + /// 單號產生類型 B-按箱號產生;A-按條碼產生 + /// + + public string SerialType { get; set; } = "B"; + + /// + /// 建立UserID + /// + + public int CreateUserID { get; set; } = 0; + + /// + /// 建立日期 + /// + + public DateTime CreateDate { get; set; } = DateTime.Now; + + /// + /// 更新UserID + /// + + public int UpdateUserID { get; set; } = 0; + + /// + /// 更新日期 + /// + + public DateTime? UpdateDate { get; set; } = DateTime.Now; + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/Models/FqcInhouseMaster.cs b/其他專案資料/AMES_AP/AMES_AP/Models/FqcInhouseMaster.cs new file mode 100644 index 00000000..6ed76697 --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/Models/FqcInhouseMaster.cs @@ -0,0 +1,134 @@ +using System; + + +namespace AMES_AP.Models +{ + /// + /// 入庫單資料檔 + /// + + public partial class FqcInhouseMaster + { + /// + /// 入庫單號碼 + /// + + public string InhouseNo { get; set; } + + /// + /// 順序ID + /// + + public int SeqID { get; set; } = 1; + + /// + /// 工單號碼 + /// + + public string WipNo { get; set; } + + /// + /// 料號 + /// + + public string ItemNo { get; set; } + + /// + /// 品名/機種 + /// + + public string ModelNo { get; set; } + + /// + /// PCB版本 + /// + + public string PcbVer { get; set; } + + /// + /// 本批完成量 + /// + + public int InhouseQty { get; set; } + + /// + /// 工單總數量 + /// + + public int WipQty { get; set; } + + /// + /// 累計完成量 + /// + + public int FqcCompleteQty { get; set; } = 0; + + /// + /// 入庫廠别 + /// + + public string Plant { get; set; } + + /// + /// 庫位 + /// + + public string Location { get; set; } + + + /// + /// 抽驗標準ID + /// + + public int CritID { get; set; } + + /// + /// 抽驗狀態 P-PASS(允收);R-REJECT(批退); A-初始狀態 + /// + + public string Status { get; set; } = "A"; + + /// + /// 產品類別 STANDARD(標準品),Order(訂單) + /// + + public string ProType { get; set; } + + /// + /// 原批退入庫單 + /// + + public string RInhouseNo { get; set; } + + /// + /// 原批退入庫單備註 + /// + + public string RMemo { get; set; } + + /// + /// 建立UserID + /// + + public int CreateUserID { get; set; } = 0; + + /// + /// 建立日期 + /// + + public DateTime CreateDate { get; set; } = DateTime.Now; + + /// + /// 更新UserID + /// + + public int UpdateUserID { get; set; } = 0; + + /// + /// 更新日期 + /// + + public DateTime? UpdateDate { get; set; } = DateTime.Now; + + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/Models/WipBox.cs b/其他專案資料/AMES_AP/AMES_AP/Models/WipBox.cs new file mode 100644 index 00000000..f0290e01 --- /dev/null +++ b/其他專案資料/AMES_AP/AMES_AP/Models/WipBox.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using System.Runtime.Serialization; + + +namespace AMES_AP.Models +{ + /// + /// 工單箱號資料檔 + /// + + public partial class WipBox + { + /// + /// 箱號ID + /// + + public int BoxID { get; set; } + + /// + /// 箱號 + /// + + public string BoxNo { get; set; } + + /// + /// 工單ID + /// + + public int WipID { get; set; } + + /// + /// 單箱數量 + /// + + public int BoxCnt { get; set; } = 0; + + /// + /// 箱號狀態(0 = 停用 ; 1= 使用中) + /// + + public int? BoxStatus { get; set; } = 1; + + /// + /// 重量 + /// + + public decimal WeightG { get; set; } = 0.0M; + + /// + /// 建立UserID + /// + public int CreateUserID { get; set; } = 0; + + /// + /// 建立日期 + /// + public DateTime CreateDate { get; set; } = DateTime.Now; + + /// + /// 更新UserID + /// + public int UpdateUserID { get; set; } = 0; + + /// + /// 更新日期 + /// + public DateTime? UpdateDate { get; set; } = DateTime.Now; + + } +} diff --git a/其他專案資料/AMES_AP/AMES_AP/StockControlForm.Designer.cs b/其他專案資料/AMES_AP/AMES_AP/StockControlForm.Designer.cs index 5250b9ab..9f11c54e 100644 --- a/其他專案資料/AMES_AP/AMES_AP/StockControlForm.Designer.cs +++ b/其他專案資料/AMES_AP/AMES_AP/StockControlForm.Designer.cs @@ -28,22 +28,22 @@ /// private void InitializeComponent() { - System.Windows.Forms.ListViewGroup listViewGroup4 = new System.Windows.Forms.ListViewGroup("ListViewGroup", System.Windows.Forms.HorizontalAlignment.Left); - System.Windows.Forms.ListViewGroup listViewGroup5 = new System.Windows.Forms.ListViewGroup("ListViewGroup", System.Windows.Forms.HorizontalAlignment.Left); - System.Windows.Forms.ListViewGroup listViewGroup6 = new System.Windows.Forms.ListViewGroup("ListViewGroup", System.Windows.Forms.HorizontalAlignment.Left); - System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem(""); - System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem(""); - System.Windows.Forms.ListViewItem listViewItem6 = new System.Windows.Forms.ListViewItem(""); - this.materialTabSelector1 = new MaterialSkin.Controls.MaterialTabSelector(); - this.materialTabControl1 = new MaterialSkin.Controls.MaterialTabControl(); - this.tabPage1 = new System.Windows.Forms.TabPage(); this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.BoxS = new System.Windows.Forms.Label(); + this.ByBox = new System.Windows.Forms.Label(); + this.NowBoxNo = new System.Windows.Forms.Label(); + this.BoxCnt = new System.Windows.Forms.Label(); this.materialLabel15 = new MaterialSkin.Controls.MaterialLabel(); this.materialLabel14 = new MaterialSkin.Controls.MaterialLabel(); this.materialLabel13 = new MaterialSkin.Controls.MaterialLabel(); this.materialLabel12 = new MaterialSkin.Controls.MaterialLabel(); this.groupBox4 = new System.Windows.Forms.GroupBox(); - this.WipNo = new MaterialSkin.Controls.MaterialLabel(); + this.CustomerItemNo = new System.Windows.Forms.Label(); + this.ModelNo = new System.Windows.Forms.Label(); + this.PlanQty = new System.Windows.Forms.Label(); + this.CustomerNo = new System.Windows.Forms.Label(); + this.ItemNo = new System.Windows.Forms.Label(); + this.WipNo = new System.Windows.Forms.Label(); this.materialLabel9 = new MaterialSkin.Controls.MaterialLabel(); this.materialLabel10 = new MaterialSkin.Controls.MaterialLabel(); this.materialLabel11 = new MaterialSkin.Controls.MaterialLabel(); @@ -53,10 +53,10 @@ this.groupBox3 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.comboBox1 = new System.Windows.Forms.ComboBox(); - this.materialCheckBox4 = new MaterialSkin.Controls.MaterialCheckBox(); - this.materialCheckBox3 = new MaterialSkin.Controls.MaterialCheckBox(); - this.materialCheckBox2 = new MaterialSkin.Controls.MaterialCheckBox(); - this.materialCheckBox1 = new MaterialSkin.Controls.MaterialCheckBox(); + this.materialCheckBox4 = new MaterialSkin.Controls.MaterialCheckbox(); + this.materialCheckBox3 = new MaterialSkin.Controls.MaterialCheckbox(); + this.materialCheckBox2 = new MaterialSkin.Controls.MaterialCheckbox(); + this.materialCheckBox1 = new MaterialSkin.Controls.MaterialCheckbox(); this.comboBox3 = new System.Windows.Forms.ComboBox(); this.comboBox2 = new System.Windows.Forms.ComboBox(); this.groupBox6 = new System.Windows.Forms.GroupBox(); @@ -64,103 +64,92 @@ this.materialLabel22 = new MaterialSkin.Controls.MaterialLabel(); this.LineSelect = new System.Windows.Forms.ComboBox(); this.materialLabel21 = new MaterialSkin.Controls.MaterialLabel(); - this.textBox3 = new System.Windows.Forms.TextBox(); - this.textBox2 = new System.Windows.Forms.TextBox(); + this.BarCodeNo = new System.Windows.Forms.TextBox(); + this.ExtraNo = new System.Windows.Forms.TextBox(); this.materialLabel18 = new MaterialSkin.Controls.MaterialLabel(); this.materialLabel19 = new MaterialSkin.Controls.MaterialLabel(); this.UnitSelect = new System.Windows.Forms.ComboBox(); this.txtWipNo = new System.Windows.Forms.TextBox(); this.materialLabel17 = new MaterialSkin.Controls.MaterialLabel(); this.materialLabel16 = new MaterialSkin.Controls.MaterialLabel(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.materialListView1 = new MaterialSkin.Controls.MaterialListView(); - this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.materialRaisedButton2 = new MaterialSkin.Controls.MaterialRaisedButton(); - this.materialRaisedButton1 = new MaterialSkin.Controls.MaterialRaisedButton(); - this.textBox5 = new System.Windows.Forms.TextBox(); - this.materialLabel20 = new MaterialSkin.Controls.MaterialLabel(); - this.btnLogin = new MaterialSkin.Controls.MaterialRaisedButton(); - this.textBox4 = new System.Windows.Forms.TextBox(); - this.materialLabel1 = new MaterialSkin.Controls.MaterialLabel(); - this.ItemNo = new MaterialSkin.Controls.MaterialLabel(); - this.CustomerNo = new MaterialSkin.Controls.MaterialLabel(); - this.PlanQty = new MaterialSkin.Controls.MaterialLabel(); - this.ModelNo = new MaterialSkin.Controls.MaterialLabel(); - this.CustomerItemNo = new MaterialSkin.Controls.MaterialLabel(); - this.materialTabControl1.SuspendLayout(); - this.tabPage1.SuspendLayout(); + this.ManualCloseBox = new MaterialSkin.Controls.MaterialButton(); this.groupBox5.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox1.SuspendLayout(); this.groupBox6.SuspendLayout(); - this.tabPage2.SuspendLayout(); this.SuspendLayout(); // - // materialTabSelector1 - // - this.materialTabSelector1.BackColor = System.Drawing.Color.DarkBlue; - this.materialTabSelector1.BaseTabControl = this.materialTabControl1; - this.materialTabSelector1.Depth = 0; - this.materialTabSelector1.Font = new System.Drawing.Font("新細明體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); - this.materialTabSelector1.Location = new System.Drawing.Point(0, 23); - this.materialTabSelector1.MouseState = MaterialSkin.MouseState.HOVER; - this.materialTabSelector1.Name = "materialTabSelector1"; - this.materialTabSelector1.Size = new System.Drawing.Size(1000, 42); - this.materialTabSelector1.TabIndex = 1; - this.materialTabSelector1.Text = "materialTabSelector1"; - // - // materialTabControl1 - // - this.materialTabControl1.Controls.Add(this.tabPage1); - this.materialTabControl1.Controls.Add(this.tabPage2); - this.materialTabControl1.Depth = 0; - this.materialTabControl1.Font = new System.Drawing.Font("新細明體", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); - this.materialTabControl1.Location = new System.Drawing.Point(0, 64); - this.materialTabControl1.MouseState = MaterialSkin.MouseState.HOVER; - this.materialTabControl1.Name = "materialTabControl1"; - this.materialTabControl1.SelectedIndex = 0; - this.materialTabControl1.Size = new System.Drawing.Size(1246, 708); - this.materialTabControl1.TabIndex = 0; - // - // tabPage1 - // - this.tabPage1.Controls.Add(this.groupBox5); - this.tabPage1.Controls.Add(this.groupBox4); - this.tabPage1.Controls.Add(this.groupBox3); - this.tabPage1.Controls.Add(this.groupBox1); - this.tabPage1.Controls.Add(this.groupBox6); - this.tabPage1.Location = new System.Drawing.Point(4, 22); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(1238, 682); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "包 裝"; - // // groupBox5 // + this.groupBox5.Controls.Add(this.ManualCloseBox); + this.groupBox5.Controls.Add(this.BoxS); + this.groupBox5.Controls.Add(this.ByBox); + this.groupBox5.Controls.Add(this.NowBoxNo); + this.groupBox5.Controls.Add(this.BoxCnt); this.groupBox5.Controls.Add(this.materialLabel15); this.groupBox5.Controls.Add(this.materialLabel14); this.groupBox5.Controls.Add(this.materialLabel13); this.groupBox5.Controls.Add(this.materialLabel12); - this.groupBox5.Location = new System.Drawing.Point(8, 388); + this.groupBox5.Location = new System.Drawing.Point(30, 563); + this.groupBox5.Margin = new System.Windows.Forms.Padding(4); this.groupBox5.Name = "groupBox5"; - this.groupBox5.Size = new System.Drawing.Size(667, 91); - this.groupBox5.TabIndex = 4; + this.groupBox5.Padding = new System.Windows.Forms.Padding(4); + this.groupBox5.Size = new System.Drawing.Size(959, 94); + this.groupBox5.TabIndex = 9; this.groupBox5.TabStop = false; this.groupBox5.Text = "箱號資訊"; // + // BoxS + // + this.BoxS.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.BoxS.ForeColor = System.Drawing.Color.Red; + this.BoxS.Location = new System.Drawing.Point(117, 50); + this.BoxS.Name = "BoxS"; + this.BoxS.Size = new System.Drawing.Size(186, 24); + this.BoxS.TabIndex = 25; + this.BoxS.Text = "本箱數量"; + // + // ByBox + // + this.ByBox.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.ByBox.ForeColor = System.Drawing.Color.Red; + this.ByBox.Location = new System.Drawing.Point(117, 20); + this.ByBox.Name = "ByBox"; + this.ByBox.Size = new System.Drawing.Size(186, 24); + this.ByBox.TabIndex = 24; + this.ByBox.Text = "單箱數量"; + // + // NowBoxNo + // + this.NowBoxNo.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.NowBoxNo.ForeColor = System.Drawing.Color.Red; + this.NowBoxNo.Location = new System.Drawing.Point(519, 57); + this.NowBoxNo.Name = "NowBoxNo"; + this.NowBoxNo.Size = new System.Drawing.Size(275, 24); + this.NowBoxNo.TabIndex = 23; + this.NowBoxNo.Text = "當前箱號"; + // + // BoxCnt + // + this.BoxCnt.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.BoxCnt.ForeColor = System.Drawing.Color.Red; + this.BoxCnt.Location = new System.Drawing.Point(519, 26); + this.BoxCnt.Name = "BoxCnt"; + this.BoxCnt.Size = new System.Drawing.Size(186, 24); + this.BoxCnt.TabIndex = 22; + this.BoxCnt.Text = "包裝數量"; + // // materialLabel15 // this.materialLabel15.AutoSize = true; this.materialLabel15.Depth = 0; - this.materialLabel15.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel15.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel15.Location = new System.Drawing.Point(160, 18); + this.materialLabel15.Location = new System.Drawing.Point(407, 26); + this.materialLabel15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel15.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel15.Name = "materialLabel15"; - this.materialLabel15.Size = new System.Drawing.Size(77, 19); + this.materialLabel15.Size = new System.Drawing.Size(69, 19); this.materialLabel15.TabIndex = 4; this.materialLabel15.Text = "包裝數量:"; // @@ -168,12 +157,13 @@ // this.materialLabel14.AutoSize = true; this.materialLabel14.Depth = 0; - this.materialLabel14.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel14.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel14.Location = new System.Drawing.Point(6, 64); + this.materialLabel14.Location = new System.Drawing.Point(407, 58); + this.materialLabel14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel14.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel14.Name = "materialLabel14"; - this.materialLabel14.Size = new System.Drawing.Size(77, 19); + this.materialLabel14.Size = new System.Drawing.Size(69, 19); this.materialLabel14.TabIndex = 3; this.materialLabel14.Text = "當前箱號:"; // @@ -181,12 +171,13 @@ // this.materialLabel13.AutoSize = true; this.materialLabel13.Depth = 0; - this.materialLabel13.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel13.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel13.Location = new System.Drawing.Point(6, 41); + this.materialLabel13.Location = new System.Drawing.Point(8, 53); + this.materialLabel13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel13.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel13.Name = "materialLabel13"; - this.materialLabel13.Size = new System.Drawing.Size(77, 19); + this.materialLabel13.Size = new System.Drawing.Size(69, 19); this.materialLabel13.TabIndex = 2; this.materialLabel13.Text = "本箱數量:"; // @@ -194,12 +185,13 @@ // this.materialLabel12.AutoSize = true; this.materialLabel12.Depth = 0; - this.materialLabel12.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel12.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel12.Location = new System.Drawing.Point(6, 18); + this.materialLabel12.Location = new System.Drawing.Point(8, 22); + this.materialLabel12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel12.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel12.Name = "materialLabel12"; - this.materialLabel12.Size = new System.Drawing.Size(77, 19); + this.materialLabel12.Size = new System.Drawing.Size(69, 19); this.materialLabel12.TabIndex = 1; this.materialLabel12.Text = "單箱數量:"; // @@ -217,35 +209,86 @@ this.groupBox4.Controls.Add(this.materialLabel5); this.groupBox4.Controls.Add(this.materialLabel3); this.groupBox4.Controls.Add(this.materialLabel2); - this.groupBox4.Location = new System.Drawing.Point(8, 273); + this.groupBox4.Location = new System.Drawing.Point(30, 419); + this.groupBox4.Margin = new System.Windows.Forms.Padding(4); this.groupBox4.Name = "groupBox4"; - this.groupBox4.Size = new System.Drawing.Size(667, 109); - this.groupBox4.TabIndex = 3; + this.groupBox4.Padding = new System.Windows.Forms.Padding(4); + this.groupBox4.Size = new System.Drawing.Size(959, 136); + this.groupBox4.TabIndex = 8; this.groupBox4.TabStop = false; this.groupBox4.Text = "工單資訊"; // + // CustomerItemNo + // + this.CustomerItemNo.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.CustomerItemNo.ForeColor = System.Drawing.Color.Red; + this.CustomerItemNo.Location = new System.Drawing.Point(518, 102); + this.CustomerItemNo.Name = "CustomerItemNo"; + this.CustomerItemNo.Size = new System.Drawing.Size(345, 24); + this.CustomerItemNo.TabIndex = 30; + this.CustomerItemNo.Text = "客戶料號"; + // + // ModelNo + // + this.ModelNo.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.ModelNo.ForeColor = System.Drawing.Color.Red; + this.ModelNo.Location = new System.Drawing.Point(519, 61); + this.ModelNo.Name = "ModelNo"; + this.ModelNo.Size = new System.Drawing.Size(344, 24); + this.ModelNo.TabIndex = 29; + this.ModelNo.Text = "機種名稱"; + // + // PlanQty + // + this.PlanQty.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.PlanQty.ForeColor = System.Drawing.Color.Red; + this.PlanQty.Location = new System.Drawing.Point(518, 22); + this.PlanQty.Name = "PlanQty"; + this.PlanQty.Size = new System.Drawing.Size(186, 24); + this.PlanQty.TabIndex = 28; + this.PlanQty.Text = "預計數量"; + // + // CustomerNo + // + this.CustomerNo.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.CustomerNo.ForeColor = System.Drawing.Color.Red; + this.CustomerNo.Location = new System.Drawing.Point(117, 99); + this.CustomerNo.Name = "CustomerNo"; + this.CustomerNo.Size = new System.Drawing.Size(284, 24); + this.CustomerNo.TabIndex = 27; + this.CustomerNo.Text = "客戶名稱"; + // + // ItemNo + // + this.ItemNo.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.ItemNo.ForeColor = System.Drawing.Color.Red; + this.ItemNo.Location = new System.Drawing.Point(117, 60); + this.ItemNo.Name = "ItemNo"; + this.ItemNo.Size = new System.Drawing.Size(186, 24); + this.ItemNo.TabIndex = 26; + this.ItemNo.Text = "料號"; + // // WipNo // - this.WipNo.Depth = 0; - this.WipNo.Font = new System.Drawing.Font("Roboto", 11F); + this.WipNo.Font = new System.Drawing.Font("微軟正黑體", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(136))); this.WipNo.ForeColor = System.Drawing.Color.Red; - this.WipNo.Location = new System.Drawing.Point(89, 18); - this.WipNo.MouseState = MaterialSkin.MouseState.HOVER; + this.WipNo.Location = new System.Drawing.Point(117, 19); this.WipNo.Name = "WipNo"; - this.WipNo.Size = new System.Drawing.Size(211, 19); - this.WipNo.TabIndex = 10; + this.WipNo.Size = new System.Drawing.Size(186, 24); + this.WipNo.TabIndex = 25; this.WipNo.Text = "工單號碼"; // // materialLabel9 // this.materialLabel9.AutoSize = true; this.materialLabel9.Depth = 0; - this.materialLabel9.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel9.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel9.Location = new System.Drawing.Point(305, 76); + this.materialLabel9.Location = new System.Drawing.Point(408, 102); + this.materialLabel9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel9.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel9.Name = "materialLabel9"; - this.materialLabel9.Size = new System.Drawing.Size(77, 19); + this.materialLabel9.Size = new System.Drawing.Size(69, 19); this.materialLabel9.TabIndex = 7; this.materialLabel9.Text = "客戶料號:"; // @@ -253,12 +296,13 @@ // this.materialLabel10.AutoSize = true; this.materialLabel10.Depth = 0; - this.materialLabel10.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel10.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel10.Location = new System.Drawing.Point(305, 48); + this.materialLabel10.Location = new System.Drawing.Point(407, 60); + this.materialLabel10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel10.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel10.Name = "materialLabel10"; - this.materialLabel10.Size = new System.Drawing.Size(77, 19); + this.materialLabel10.Size = new System.Drawing.Size(69, 19); this.materialLabel10.TabIndex = 6; this.materialLabel10.Text = "機  種:"; // @@ -266,12 +310,13 @@ // this.materialLabel11.AutoSize = true; this.materialLabel11.Depth = 0; - this.materialLabel11.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel11.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel11.Location = new System.Drawing.Point(306, 18); + this.materialLabel11.Location = new System.Drawing.Point(408, 22); + this.materialLabel11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel11.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel11.Name = "materialLabel11"; - this.materialLabel11.Size = new System.Drawing.Size(77, 19); + this.materialLabel11.Size = new System.Drawing.Size(69, 19); this.materialLabel11.TabIndex = 5; this.materialLabel11.Text = "預計數量:"; // @@ -279,12 +324,13 @@ // this.materialLabel5.AutoSize = true; this.materialLabel5.Depth = 0; - this.materialLabel5.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel5.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel5.Location = new System.Drawing.Point(6, 76); + this.materialLabel5.Location = new System.Drawing.Point(10, 100); + this.materialLabel5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel5.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel5.Name = "materialLabel5"; - this.materialLabel5.Size = new System.Drawing.Size(77, 19); + this.materialLabel5.Size = new System.Drawing.Size(69, 19); this.materialLabel5.TabIndex = 3; this.materialLabel5.Text = "客戶名稱:"; // @@ -292,12 +338,13 @@ // this.materialLabel3.AutoSize = true; this.materialLabel3.Depth = 0; - this.materialLabel3.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel3.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel3.Location = new System.Drawing.Point(6, 48); + this.materialLabel3.Location = new System.Drawing.Point(8, 60); + this.materialLabel3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel3.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel3.Name = "materialLabel3"; - this.materialLabel3.Size = new System.Drawing.Size(77, 19); + this.materialLabel3.Size = new System.Drawing.Size(69, 19); this.materialLabel3.TabIndex = 1; this.materialLabel3.Text = "料  號:"; // @@ -305,21 +352,24 @@ // this.materialLabel2.AutoSize = true; this.materialLabel2.Depth = 0; - this.materialLabel2.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel2.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel2.Location = new System.Drawing.Point(6, 18); + this.materialLabel2.Location = new System.Drawing.Point(8, 22); + this.materialLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel2.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel2.Name = "materialLabel2"; - this.materialLabel2.Size = new System.Drawing.Size(77, 19); + this.materialLabel2.Size = new System.Drawing.Size(69, 19); this.materialLabel2.TabIndex = 0; this.materialLabel2.Text = "工  單:"; // // groupBox3 // - this.groupBox3.Location = new System.Drawing.Point(233, 156); + this.groupBox3.Location = new System.Drawing.Point(400, 273); + this.groupBox3.Margin = new System.Windows.Forms.Padding(4); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(442, 111); - this.groupBox3.TabIndex = 2; + this.groupBox3.Padding = new System.Windows.Forms.Padding(4); + this.groupBox3.Size = new System.Drawing.Size(589, 139); + this.groupBox3.TabIndex = 7; this.groupBox3.TabStop = false; this.groupBox3.Text = "可選項"; // @@ -332,10 +382,12 @@ this.groupBox1.Controls.Add(this.materialCheckBox1); this.groupBox1.Controls.Add(this.comboBox3); this.groupBox1.Controls.Add(this.comboBox2); - this.groupBox1.Location = new System.Drawing.Point(233, 6); + this.groupBox1.Location = new System.Drawing.Point(400, 86); + this.groupBox1.Margin = new System.Windows.Forms.Padding(4); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(442, 144); - this.groupBox1.TabIndex = 0; + this.groupBox1.Padding = new System.Windows.Forms.Padding(4); + this.groupBox1.Size = new System.Drawing.Size(589, 180); + this.groupBox1.TabIndex = 6; this.groupBox1.TabStop = false; this.groupBox1.Text = "基本設定"; // @@ -344,23 +396,25 @@ this.comboBox1.DropDownHeight = 300; this.comboBox1.FormattingEnabled = true; this.comboBox1.IntegralHeight = false; - this.comboBox1.Location = new System.Drawing.Point(20, 22); + this.comboBox1.Location = new System.Drawing.Point(27, 28); + this.comboBox1.Margin = new System.Windows.Forms.Padding(4); this.comboBox1.Name = "comboBox1"; - this.comboBox1.Size = new System.Drawing.Size(174, 20); + this.comboBox1.Size = new System.Drawing.Size(231, 23); this.comboBox1.TabIndex = 7; // // materialCheckBox4 // this.materialCheckBox4.AutoSize = true; this.materialCheckBox4.Depth = 0; - this.materialCheckBox4.Font = new System.Drawing.Font("Roboto", 10F); - this.materialCheckBox4.Location = new System.Drawing.Point(115, 109); + this.materialCheckBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); + this.materialCheckBox4.Location = new System.Drawing.Point(153, 136); this.materialCheckBox4.Margin = new System.Windows.Forms.Padding(0); this.materialCheckBox4.MouseLocation = new System.Drawing.Point(-1, -1); this.materialCheckBox4.MouseState = MaterialSkin.MouseState.HOVER; this.materialCheckBox4.Name = "materialCheckBox4"; + this.materialCheckBox4.ReadOnly = false; this.materialCheckBox4.Ripple = true; - this.materialCheckBox4.Size = new System.Drawing.Size(182, 30); + this.materialCheckBox4.Size = new System.Drawing.Size(200, 37); this.materialCheckBox4.TabIndex = 6; this.materialCheckBox4.Text = "比對SN與SNN指定長度"; // @@ -368,14 +422,15 @@ // this.materialCheckBox3.AutoSize = true; this.materialCheckBox3.Depth = 0; - this.materialCheckBox3.Font = new System.Drawing.Font("Roboto", 10F); - this.materialCheckBox3.Location = new System.Drawing.Point(115, 66); + this.materialCheckBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); + this.materialCheckBox3.Location = new System.Drawing.Point(153, 82); this.materialCheckBox3.Margin = new System.Windows.Forms.Padding(0); this.materialCheckBox3.MouseLocation = new System.Drawing.Point(-1, -1); this.materialCheckBox3.MouseState = MaterialSkin.MouseState.HOVER; this.materialCheckBox3.Name = "materialCheckBox3"; + this.materialCheckBox3.ReadOnly = false; this.materialCheckBox3.Ripple = true; - this.materialCheckBox3.Size = new System.Drawing.Size(151, 30); + this.materialCheckBox3.Size = new System.Drawing.Size(163, 37); this.materialCheckBox3.TabIndex = 5; this.materialCheckBox3.Text = "控制客戶條碼長度"; // @@ -383,14 +438,15 @@ // this.materialCheckBox2.AutoSize = true; this.materialCheckBox2.Depth = 0; - this.materialCheckBox2.Font = new System.Drawing.Font("Roboto", 10F); - this.materialCheckBox2.Location = new System.Drawing.Point(6, 109); + this.materialCheckBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); + this.materialCheckBox2.Location = new System.Drawing.Point(8, 136); this.materialCheckBox2.Margin = new System.Windows.Forms.Padding(0); this.materialCheckBox2.MouseLocation = new System.Drawing.Point(-1, -1); this.materialCheckBox2.MouseState = MaterialSkin.MouseState.HOVER; this.materialCheckBox2.Name = "materialCheckBox2"; + this.materialCheckBox2.ReadOnly = false; this.materialCheckBox2.Ripple = true; - this.materialCheckBox2.Size = new System.Drawing.Size(75, 30); + this.materialCheckBox2.Size = new System.Drawing.Size(83, 37); this.materialCheckBox2.TabIndex = 4; this.materialCheckBox2.Text = "跨製程"; this.materialCheckBox2.UseVisualStyleBackColor = false; @@ -399,14 +455,15 @@ // this.materialCheckBox1.AutoSize = true; this.materialCheckBox1.Depth = 0; - this.materialCheckBox1.Font = new System.Drawing.Font("Roboto", 10F); - this.materialCheckBox1.Location = new System.Drawing.Point(6, 66); + this.materialCheckBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); + this.materialCheckBox1.Location = new System.Drawing.Point(8, 82); this.materialCheckBox1.Margin = new System.Windows.Forms.Padding(0); this.materialCheckBox1.MouseLocation = new System.Drawing.Point(-1, -1); this.materialCheckBox1.MouseState = MaterialSkin.MouseState.HOVER; this.materialCheckBox1.Name = "materialCheckBox1"; + this.materialCheckBox1.ReadOnly = false; this.materialCheckBox1.Ripple = true; - this.materialCheckBox1.Size = new System.Drawing.Size(105, 30); + this.materialCheckBox1.Size = new System.Drawing.Size(115, 37); this.materialCheckBox1.TabIndex = 3; this.materialCheckBox1.Text = "產生新箱號"; this.materialCheckBox1.UseVisualStyleBackColor = false; @@ -414,17 +471,19 @@ // comboBox3 // this.comboBox3.FormattingEnabled = true; - this.comboBox3.Location = new System.Drawing.Point(303, 45); + this.comboBox3.Location = new System.Drawing.Point(404, 56); + this.comboBox3.Margin = new System.Windows.Forms.Padding(4); this.comboBox3.Name = "comboBox3"; - this.comboBox3.Size = new System.Drawing.Size(59, 20); + this.comboBox3.Size = new System.Drawing.Size(77, 23); this.comboBox3.TabIndex = 2; // // comboBox2 // this.comboBox2.FormattingEnabled = true; - this.comboBox2.Location = new System.Drawing.Point(303, 17); + this.comboBox2.Location = new System.Drawing.Point(404, 21); + this.comboBox2.Margin = new System.Windows.Forms.Padding(4); this.comboBox2.Name = "comboBox2"; - this.comboBox2.Size = new System.Drawing.Size(59, 20); + this.comboBox2.Size = new System.Drawing.Size(77, 23); this.comboBox2.TabIndex = 1; // // groupBox6 @@ -433,117 +492,130 @@ this.groupBox6.Controls.Add(this.materialLabel22); this.groupBox6.Controls.Add(this.LineSelect); this.groupBox6.Controls.Add(this.materialLabel21); - this.groupBox6.Controls.Add(this.textBox3); - this.groupBox6.Controls.Add(this.textBox2); + this.groupBox6.Controls.Add(this.BarCodeNo); + this.groupBox6.Controls.Add(this.ExtraNo); this.groupBox6.Controls.Add(this.materialLabel18); this.groupBox6.Controls.Add(this.materialLabel19); this.groupBox6.Controls.Add(this.UnitSelect); this.groupBox6.Controls.Add(this.txtWipNo); this.groupBox6.Controls.Add(this.materialLabel17); this.groupBox6.Controls.Add(this.materialLabel16); - this.groupBox6.Location = new System.Drawing.Point(8, 6); + this.groupBox6.Location = new System.Drawing.Point(30, 86); + this.groupBox6.Margin = new System.Windows.Forms.Padding(4); this.groupBox6.Name = "groupBox6"; - this.groupBox6.Size = new System.Drawing.Size(219, 261); - this.groupBox6.TabIndex = 5; + this.groupBox6.Padding = new System.Windows.Forms.Padding(4); + this.groupBox6.Size = new System.Drawing.Size(362, 326); + this.groupBox6.TabIndex = 10; this.groupBox6.TabStop = false; this.groupBox6.Text = "條碼輸入"; // // StationSelect // this.StationSelect.FormattingEnabled = true; - this.StationSelect.Location = new System.Drawing.Point(81, 111); + this.StationSelect.Location = new System.Drawing.Point(122, 138); + this.StationSelect.Margin = new System.Windows.Forms.Padding(4); this.StationSelect.Name = "StationSelect"; - this.StationSelect.Size = new System.Drawing.Size(124, 20); + this.StationSelect.Size = new System.Drawing.Size(164, 23); this.StationSelect.TabIndex = 17; // // materialLabel22 // this.materialLabel22.AutoSize = true; this.materialLabel22.Depth = 0; - this.materialLabel22.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel22.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel22.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel22.Location = new System.Drawing.Point(0, 109); + this.materialLabel22.Location = new System.Drawing.Point(9, 141); + this.materialLabel22.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel22.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel22.Name = "materialLabel22"; - this.materialLabel22.Size = new System.Drawing.Size(77, 19); + this.materialLabel22.Size = new System.Drawing.Size(69, 19); this.materialLabel22.TabIndex = 16; this.materialLabel22.Text = "作 業 站:"; // // LineSelect // this.LineSelect.FormattingEnabled = true; - this.LineSelect.Location = new System.Drawing.Point(81, 48); + this.LineSelect.Location = new System.Drawing.Point(122, 59); + this.LineSelect.Margin = new System.Windows.Forms.Padding(4); this.LineSelect.Name = "LineSelect"; - this.LineSelect.Size = new System.Drawing.Size(124, 20); + this.LineSelect.Size = new System.Drawing.Size(164, 23); this.LineSelect.TabIndex = 15; // // materialLabel21 // this.materialLabel21.AutoSize = true; this.materialLabel21.Depth = 0; - this.materialLabel21.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel21.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel21.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel21.Location = new System.Drawing.Point(0, 48); + this.materialLabel21.Location = new System.Drawing.Point(8, 62); + this.materialLabel21.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel21.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel21.Name = "materialLabel21"; - this.materialLabel21.Size = new System.Drawing.Size(77, 19); + this.materialLabel21.Size = new System.Drawing.Size(69, 19); this.materialLabel21.TabIndex = 14; this.materialLabel21.Text = "線 別:"; // - // textBox3 + // BarCodeNo // - this.textBox3.Location = new System.Drawing.Point(81, 152); - this.textBox3.Name = "textBox3"; - this.textBox3.Size = new System.Drawing.Size(124, 22); - this.textBox3.TabIndex = 13; + this.BarCodeNo.Location = new System.Drawing.Point(122, 204); + this.BarCodeNo.Margin = new System.Windows.Forms.Padding(4); + this.BarCodeNo.Name = "BarCodeNo"; + this.BarCodeNo.Size = new System.Drawing.Size(164, 25); + this.BarCodeNo.TabIndex = 13; + this.BarCodeNo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.BarCodeNo_KeyDown); // - // textBox2 + // ExtraNo // - this.textBox2.Location = new System.Drawing.Point(81, 189); - this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(124, 22); - this.textBox2.TabIndex = 12; + this.ExtraNo.Location = new System.Drawing.Point(122, 257); + this.ExtraNo.Margin = new System.Windows.Forms.Padding(4); + this.ExtraNo.Name = "ExtraNo"; + this.ExtraNo.Size = new System.Drawing.Size(164, 25); + this.ExtraNo.TabIndex = 12; + this.ExtraNo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ExtraNo_KeyDown); // // materialLabel18 // this.materialLabel18.AutoSize = true; this.materialLabel18.Depth = 0; - this.materialLabel18.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel18.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel18.Location = new System.Drawing.Point(-2, 192); + this.materialLabel18.Location = new System.Drawing.Point(9, 260); + this.materialLabel18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel18.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel18.Name = "materialLabel18"; - this.materialLabel18.Size = new System.Drawing.Size(77, 19); + this.materialLabel18.Size = new System.Drawing.Size(69, 19); this.materialLabel18.TabIndex = 11; this.materialLabel18.Text = "客戶序號:"; // // materialLabel19 // this.materialLabel19.Depth = 0; - this.materialLabel19.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel19.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel19.Location = new System.Drawing.Point(-2, 152); + this.materialLabel19.Location = new System.Drawing.Point(9, 207); + this.materialLabel19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel19.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel19.Name = "materialLabel19"; - this.materialLabel19.Size = new System.Drawing.Size(77, 22); + this.materialLabel19.Size = new System.Drawing.Size(103, 28); this.materialLabel19.TabIndex = 10; this.materialLabel19.Text = "內部序號:"; // // UnitSelect // this.UnitSelect.FormattingEnabled = true; - this.UnitSelect.Location = new System.Drawing.Point(81, 20); + this.UnitSelect.Location = new System.Drawing.Point(122, 24); + this.UnitSelect.Margin = new System.Windows.Forms.Padding(4); this.UnitSelect.Name = "UnitSelect"; - this.UnitSelect.Size = new System.Drawing.Size(124, 20); + this.UnitSelect.Size = new System.Drawing.Size(164, 23); this.UnitSelect.TabIndex = 9; - this.UnitSelect.SelectionChangeCommitted += new System.EventHandler(this.UnitSelect_SelectionChangeCommitted); // // txtWipNo // this.txtWipNo.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper; - this.txtWipNo.Location = new System.Drawing.Point(81, 79); + this.txtWipNo.Location = new System.Drawing.Point(122, 98); + this.txtWipNo.Margin = new System.Windows.Forms.Padding(4); this.txtWipNo.Name = "txtWipNo"; - this.txtWipNo.Size = new System.Drawing.Size(124, 22); + this.txtWipNo.Size = new System.Drawing.Size(164, 25); this.txtWipNo.TabIndex = 8; this.txtWipNo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtWipNo_KeyDown); // @@ -551,12 +623,13 @@ // this.materialLabel17.AutoSize = true; this.materialLabel17.Depth = 0; - this.materialLabel17.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel17.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel17.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel17.Location = new System.Drawing.Point(0, 80); + this.materialLabel17.Location = new System.Drawing.Point(8, 101); + this.materialLabel17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel17.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel17.Name = "materialLabel17"; - this.materialLabel17.Size = new System.Drawing.Size(77, 19); + this.materialLabel17.Size = new System.Drawing.Size(69, 19); this.materialLabel17.TabIndex = 7; this.materialLabel17.Text = "工 單:"; // @@ -564,228 +637,58 @@ // this.materialLabel16.AutoSize = true; this.materialLabel16.Depth = 0; - this.materialLabel16.Font = new System.Drawing.Font("Roboto", 11F); + this.materialLabel16.Font = new System.Drawing.Font("Roboto", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel); this.materialLabel16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel16.Location = new System.Drawing.Point(0, 22); + this.materialLabel16.Location = new System.Drawing.Point(9, 28); + this.materialLabel16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.materialLabel16.MouseState = MaterialSkin.MouseState.HOVER; this.materialLabel16.Name = "materialLabel16"; - this.materialLabel16.Size = new System.Drawing.Size(77, 19); + this.materialLabel16.Size = new System.Drawing.Size(69, 19); this.materialLabel16.TabIndex = 6; this.materialLabel16.Text = "製 程:"; // - // tabPage2 - // - this.tabPage2.BackColor = System.Drawing.Color.White; - this.tabPage2.Controls.Add(this.materialListView1); - this.tabPage2.Controls.Add(this.materialRaisedButton2); - this.tabPage2.Controls.Add(this.materialRaisedButton1); - this.tabPage2.Controls.Add(this.textBox5); - this.tabPage2.Controls.Add(this.materialLabel20); - this.tabPage2.Controls.Add(this.btnLogin); - this.tabPage2.Controls.Add(this.textBox4); - this.tabPage2.Controls.Add(this.materialLabel1); - this.tabPage2.Location = new System.Drawing.Point(4, 22); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(1238, 682); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "入庫單"; - // - // materialListView1 - // - this.materialListView1.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.materialListView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader1, - this.columnHeader2, - this.columnHeader3}); - this.materialListView1.Depth = 0; - this.materialListView1.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F); - this.materialListView1.FullRowSelect = true; - listViewGroup4.Header = "ListViewGroup"; - listViewGroup4.Name = "listViewGroup1"; - listViewGroup5.Header = "ListViewGroup"; - listViewGroup5.Name = "listViewGroup2"; - listViewGroup6.Header = "ListViewGroup"; - listViewGroup6.Name = "listViewGroup3"; - this.materialListView1.Groups.AddRange(new System.Windows.Forms.ListViewGroup[] { - listViewGroup4, - listViewGroup5, - listViewGroup6}); - this.materialListView1.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; - this.materialListView1.HideSelection = false; - this.materialListView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] { - listViewItem4, - listViewItem5, - listViewItem6}); - this.materialListView1.Location = new System.Drawing.Point(41, 106); - this.materialListView1.MouseLocation = new System.Drawing.Point(-1, -1); - this.materialListView1.MouseState = MaterialSkin.MouseState.OUT; - this.materialListView1.Name = "materialListView1"; - this.materialListView1.OwnerDraw = true; - this.materialListView1.Size = new System.Drawing.Size(305, 215); - this.materialListView1.TabIndex = 16; - this.materialListView1.UseCompatibleStateImageBehavior = false; - this.materialListView1.View = System.Windows.Forms.View.Details; - // - // materialRaisedButton2 - // - this.materialRaisedButton2.AutoSize = true; - this.materialRaisedButton2.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.materialRaisedButton2.Depth = 0; - this.materialRaisedButton2.Icon = null; - this.materialRaisedButton2.Location = new System.Drawing.Point(526, 19); - this.materialRaisedButton2.MouseState = MaterialSkin.MouseState.HOVER; - this.materialRaisedButton2.Name = "materialRaisedButton2"; - this.materialRaisedButton2.Primary = true; - this.materialRaisedButton2.Size = new System.Drawing.Size(51, 36); - this.materialRaisedButton2.TabIndex = 15; - this.materialRaisedButton2.Text = "查詢"; - this.materialRaisedButton2.UseVisualStyleBackColor = true; - // - // materialRaisedButton1 - // - this.materialRaisedButton1.AutoSize = true; - this.materialRaisedButton1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.materialRaisedButton1.Depth = 0; - this.materialRaisedButton1.Icon = null; - this.materialRaisedButton1.Location = new System.Drawing.Point(597, 19); - this.materialRaisedButton1.MouseState = MaterialSkin.MouseState.HOVER; - this.materialRaisedButton1.Name = "materialRaisedButton1"; - this.materialRaisedButton1.Primary = true; - this.materialRaisedButton1.Size = new System.Drawing.Size(127, 36); - this.materialRaisedButton1.TabIndex = 14; - this.materialRaisedButton1.Text = "入庫單重新計算"; - this.materialRaisedButton1.UseVisualStyleBackColor = true; - // - // textBox5 - // - this.textBox5.Location = new System.Drawing.Point(418, 20); - this.textBox5.Name = "textBox5"; - this.textBox5.Size = new System.Drawing.Size(82, 22); - this.textBox5.TabIndex = 13; - // - // materialLabel20 - // - this.materialLabel20.AutoSize = true; - this.materialLabel20.Depth = 0; - this.materialLabel20.Font = new System.Drawing.Font("Roboto", 11F); - this.materialLabel20.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel20.Location = new System.Drawing.Point(342, 21); - this.materialLabel20.MouseState = MaterialSkin.MouseState.HOVER; - this.materialLabel20.Name = "materialLabel20"; - this.materialLabel20.Size = new System.Drawing.Size(77, 19); - this.materialLabel20.TabIndex = 12; - this.materialLabel20.Text = "入庫單號:"; - // - // btnLogin - // - this.btnLogin.AutoSize = true; - this.btnLogin.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.btnLogin.Depth = 0; - this.btnLogin.Icon = null; - this.btnLogin.Location = new System.Drawing.Point(168, 19); - this.btnLogin.MouseState = MaterialSkin.MouseState.HOVER; - this.btnLogin.Name = "btnLogin"; - this.btnLogin.Primary = true; - this.btnLogin.Size = new System.Drawing.Size(51, 36); - this.btnLogin.TabIndex = 11; - this.btnLogin.Text = "查詢"; - this.btnLogin.UseVisualStyleBackColor = true; - // - // textBox4 - // - this.textBox4.Location = new System.Drawing.Point(60, 19); - this.textBox4.Name = "textBox4"; - this.textBox4.Size = new System.Drawing.Size(82, 22); - this.textBox4.TabIndex = 10; - // - // materialLabel1 - // - this.materialLabel1.AutoSize = true; - this.materialLabel1.Depth = 0; - this.materialLabel1.Font = new System.Drawing.Font("Roboto", 11F); - this.materialLabel1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); - this.materialLabel1.Location = new System.Drawing.Point(13, 20); - this.materialLabel1.MouseState = MaterialSkin.MouseState.HOVER; - this.materialLabel1.Name = "materialLabel1"; - this.materialLabel1.Size = new System.Drawing.Size(45, 19); - this.materialLabel1.TabIndex = 9; - this.materialLabel1.Text = "工單:"; - // - // ItemNo - // - this.ItemNo.Depth = 0; - this.ItemNo.Font = new System.Drawing.Font("Roboto", 11F); - this.ItemNo.ForeColor = System.Drawing.Color.Red; - this.ItemNo.Location = new System.Drawing.Point(89, 48); - this.ItemNo.MouseState = MaterialSkin.MouseState.HOVER; - this.ItemNo.Name = "ItemNo"; - this.ItemNo.Size = new System.Drawing.Size(211, 19); - this.ItemNo.TabIndex = 11; - this.ItemNo.Text = "料號"; - // - // CustomerNo - // - this.CustomerNo.Depth = 0; - this.CustomerNo.Font = new System.Drawing.Font("Roboto", 11F); - this.CustomerNo.ForeColor = System.Drawing.Color.Red; - this.CustomerNo.Location = new System.Drawing.Point(88, 76); - this.CustomerNo.MouseState = MaterialSkin.MouseState.HOVER; - this.CustomerNo.Name = "CustomerNo"; - this.CustomerNo.Size = new System.Drawing.Size(211, 19); - this.CustomerNo.TabIndex = 13; - this.CustomerNo.Text = "客戶名稱"; - // - // PlanQty - // - this.PlanQty.Depth = 0; - this.PlanQty.Font = new System.Drawing.Font("Roboto", 11F); - this.PlanQty.ForeColor = System.Drawing.Color.Red; - this.PlanQty.Location = new System.Drawing.Point(389, 18); - this.PlanQty.MouseState = MaterialSkin.MouseState.HOVER; - this.PlanQty.Name = "PlanQty"; - this.PlanQty.Size = new System.Drawing.Size(211, 19); - this.PlanQty.TabIndex = 15; - this.PlanQty.Text = "預計數量"; - // - // ModelNo - // - this.ModelNo.Depth = 0; - this.ModelNo.Font = new System.Drawing.Font("Roboto", 11F); - this.ModelNo.ForeColor = System.Drawing.Color.Red; - this.ModelNo.Location = new System.Drawing.Point(389, 48); - this.ModelNo.MouseState = MaterialSkin.MouseState.HOVER; - this.ModelNo.Name = "ModelNo"; - this.ModelNo.Size = new System.Drawing.Size(211, 19); - this.ModelNo.TabIndex = 16; - this.ModelNo.Text = "機種"; - // - // CustomerItemNo - // - this.CustomerItemNo.Depth = 0; - this.CustomerItemNo.Font = new System.Drawing.Font("Roboto", 11F); - this.CustomerItemNo.ForeColor = System.Drawing.Color.Red; - this.CustomerItemNo.Location = new System.Drawing.Point(389, 76); - this.CustomerItemNo.MouseState = MaterialSkin.MouseState.HOVER; - this.CustomerItemNo.Name = "CustomerItemNo"; - this.CustomerItemNo.Size = new System.Drawing.Size(211, 19); - this.CustomerItemNo.TabIndex = 17; - this.CustomerItemNo.Text = "客戶料號"; + // ManualCloseBox + // + this.ManualCloseBox.AutoSize = false; + this.ManualCloseBox.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.ManualCloseBox.Density = MaterialSkin.Controls.MaterialButton.MaterialButtonDensity.Default; + this.ManualCloseBox.Depth = 0; + this.ManualCloseBox.Font = new System.Drawing.Font("新細明體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(136))); + this.ManualCloseBox.ForeColor = System.Drawing.SystemColors.ActiveCaption; + this.ManualCloseBox.HighEmphasis = true; + this.ManualCloseBox.Icon = null; + this.ManualCloseBox.Location = new System.Drawing.Point(872, 29); + this.ManualCloseBox.Margin = new System.Windows.Forms.Padding(4, 6, 4, 6); + this.ManualCloseBox.MouseState = MaterialSkin.MouseState.HOVER; + this.ManualCloseBox.Name = "ManualCloseBox"; + this.ManualCloseBox.NoAccentTextColor = System.Drawing.Color.Empty; + this.ManualCloseBox.Size = new System.Drawing.Size(79, 48); + this.ManualCloseBox.TabIndex = 26; + this.ManualCloseBox.Text = "手動關箱"; + this.ManualCloseBox.Type = MaterialSkin.Controls.MaterialButton.MaterialButtonType.Contained; + this.ManualCloseBox.UseAccentColor = false; + this.ManualCloseBox.UseVisualStyleBackColor = true; + this.ManualCloseBox.Click += new System.EventHandler(this.ManualCloseBox_Click); // // StockControlForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1250, 750); - this.Controls.Add(this.materialTabSelector1); - this.Controls.Add(this.materialTabControl1); + this.ClientSize = new System.Drawing.Size(1667, 938); + this.Controls.Add(this.groupBox5); + this.Controls.Add(this.groupBox4); + this.Controls.Add(this.groupBox3); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.groupBox6); + this.Margin = new System.Windows.Forms.Padding(4); this.MaximizeBox = false; + this.MinimizeBox = false; this.Name = "StockControlForm"; + this.Padding = new System.Windows.Forms.Padding(4, 80, 4, 4); + this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.TopMost = true; this.Load += new System.EventHandler(this.Form1_Load); - this.materialTabControl1.ResumeLayout(false); - this.tabPage1.ResumeLayout(false); this.groupBox5.ResumeLayout(false); this.groupBox5.PerformLayout(); this.groupBox4.ResumeLayout(false); @@ -794,67 +697,56 @@ this.groupBox1.PerformLayout(); this.groupBox6.ResumeLayout(false); this.groupBox6.PerformLayout(); - this.tabPage2.ResumeLayout(false); - this.tabPage2.PerformLayout(); this.ResumeLayout(false); } #endregion - private MaterialSkin.Controls.MaterialTabSelector materialTabSelector1; - private MaterialSkin.Controls.MaterialTabControl materialTabControl1; - private System.Windows.Forms.TabPage tabPage1; - private System.Windows.Forms.GroupBox groupBox6; + private System.Windows.Forms.GroupBox groupBox5; - private System.Windows.Forms.GroupBox groupBox4; - private System.Windows.Forms.GroupBox groupBox3; - private System.Windows.Forms.GroupBox groupBox1; - private MaterialSkin.Controls.MaterialCheckBox materialCheckBox2; - private MaterialSkin.Controls.MaterialCheckBox materialCheckBox1; - private System.Windows.Forms.ComboBox comboBox3; - private System.Windows.Forms.ComboBox comboBox2; - private System.Windows.Forms.TabPage tabPage2; - private MaterialSkin.Controls.MaterialLabel materialLabel2; private MaterialSkin.Controls.MaterialLabel materialLabel15; private MaterialSkin.Controls.MaterialLabel materialLabel14; private MaterialSkin.Controls.MaterialLabel materialLabel13; private MaterialSkin.Controls.MaterialLabel materialLabel12; + private System.Windows.Forms.GroupBox groupBox4; private MaterialSkin.Controls.MaterialLabel materialLabel9; private MaterialSkin.Controls.MaterialLabel materialLabel10; private MaterialSkin.Controls.MaterialLabel materialLabel11; private MaterialSkin.Controls.MaterialLabel materialLabel5; private MaterialSkin.Controls.MaterialLabel materialLabel3; - private MaterialSkin.Controls.MaterialCheckBox materialCheckBox4; - private MaterialSkin.Controls.MaterialCheckBox materialCheckBox3; - private System.Windows.Forms.TextBox textBox3; - private System.Windows.Forms.TextBox textBox2; + private MaterialSkin.Controls.MaterialLabel materialLabel2; + private System.Windows.Forms.GroupBox groupBox3; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.ComboBox comboBox1; + private MaterialSkin.Controls.MaterialCheckbox materialCheckBox4; + private MaterialSkin.Controls.MaterialCheckbox materialCheckBox3; + private MaterialSkin.Controls.MaterialCheckbox materialCheckBox2; + private MaterialSkin.Controls.MaterialCheckbox materialCheckBox1; + private System.Windows.Forms.ComboBox comboBox3; + private System.Windows.Forms.ComboBox comboBox2; + private System.Windows.Forms.GroupBox groupBox6; + private System.Windows.Forms.ComboBox StationSelect; + private MaterialSkin.Controls.MaterialLabel materialLabel22; + private System.Windows.Forms.ComboBox LineSelect; + private MaterialSkin.Controls.MaterialLabel materialLabel21; + private System.Windows.Forms.TextBox BarCodeNo; + private System.Windows.Forms.TextBox ExtraNo; private MaterialSkin.Controls.MaterialLabel materialLabel18; private MaterialSkin.Controls.MaterialLabel materialLabel19; private System.Windows.Forms.ComboBox UnitSelect; private System.Windows.Forms.TextBox txtWipNo; private MaterialSkin.Controls.MaterialLabel materialLabel17; private MaterialSkin.Controls.MaterialLabel materialLabel16; - private System.Windows.Forms.ComboBox comboBox1; - private System.Windows.Forms.TextBox textBox4; - private MaterialSkin.Controls.MaterialLabel materialLabel1; - private MaterialSkin.Controls.MaterialRaisedButton materialRaisedButton2; - private MaterialSkin.Controls.MaterialRaisedButton materialRaisedButton1; - private System.Windows.Forms.TextBox textBox5; - private MaterialSkin.Controls.MaterialLabel materialLabel20; - private MaterialSkin.Controls.MaterialRaisedButton btnLogin; - private MaterialSkin.Controls.MaterialListView materialListView1; - private System.Windows.Forms.ColumnHeader columnHeader1; - private System.Windows.Forms.ColumnHeader columnHeader2; - private System.Windows.Forms.ColumnHeader columnHeader3; - private MaterialSkin.Controls.MaterialLabel materialLabel21; - private System.Windows.Forms.ComboBox StationSelect; - private MaterialSkin.Controls.MaterialLabel materialLabel22; - private System.Windows.Forms.ComboBox LineSelect; - private MaterialSkin.Controls.MaterialLabel WipNo; - private MaterialSkin.Controls.MaterialLabel CustomerItemNo; - private MaterialSkin.Controls.MaterialLabel ModelNo; - private MaterialSkin.Controls.MaterialLabel PlanQty; - private MaterialSkin.Controls.MaterialLabel CustomerNo; - private MaterialSkin.Controls.MaterialLabel ItemNo; + private System.Windows.Forms.Label BoxS; + private System.Windows.Forms.Label ByBox; + private System.Windows.Forms.Label NowBoxNo; + private System.Windows.Forms.Label BoxCnt; + private System.Windows.Forms.Label ItemNo; + private System.Windows.Forms.Label WipNo; + private System.Windows.Forms.Label CustomerItemNo; + private System.Windows.Forms.Label ModelNo; + private System.Windows.Forms.Label PlanQty; + private System.Windows.Forms.Label CustomerNo; + private MaterialSkin.Controls.MaterialButton ManualCloseBox; } } \ No newline at end of file diff --git a/其他專案資料/AMES_AP/AMES_AP/StockControlForm.cs b/其他專案資料/AMES_AP/AMES_AP/StockControlForm.cs index 322beded..c73cc236 100644 --- a/其他專案資料/AMES_AP/AMES_AP/StockControlForm.cs +++ b/其他專案資料/AMES_AP/AMES_AP/StockControlForm.cs @@ -15,10 +15,13 @@ namespace AMES_AP { public partial class StockControlForm : MaterialForm { + private WipInfo wipInfo = new WipInfo(); + public StockControlForm() { InitializeComponent(); } + private void Form1_Load(object sender, EventArgs e) { GetUnitSelect(); @@ -145,15 +148,118 @@ namespace AMES_AP } var wipInfos = JsonConvert.DeserializeObject>(query); - if (wipInfos.Count == 0) + wipInfo = wipInfos.FirstOrDefault(w => w.UnitNO == UnitSelect.SelectedValue.ToString()); + if (wipInfo == null) { MessageBox.Show("找不到工單相關資訊", "錯誤訊息", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } + GetStationSelect(wipInfos.FirstOrDefault().FlowRuleID); GetWipInfoData(wipInfos.FirstOrDefault()); + + GetBoxData(); + } + } + + private void BarCodeNo_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + var query_barCode = ApiHelper.GetMethod($"api/BarcodeInfoes/No/{BarCodeNo.Text}"); + if (query_barCode == "error" || query_barCode == "無法連線WebAPI") + { + MessageBox.Show(query_barCode); + return; + } + + var barcodeInfos = JsonConvert.DeserializeObject>(query_barCode).FirstOrDefault(); + + if(barcodeInfos == null) + { + MessageBox.Show($"找不到內部序號【{BarCodeNo.Text}】"); + return; + } + + if (barcodeInfos.WipID != wipInfo.WipID) + { + MessageBox.Show($"內部序號【{BarCodeNo.Text}】,不再這張【{txtWipNo.Text}】工單內"); + return; + } + + if (!string.IsNullOrWhiteSpace(barcodeInfos.BarcodeNo)) + { + MessageBox.Show($"內部序號【{BarCodeNo.Text}】已裝箱過"); + return; + } + + barcodeInfos.BoxNo = NowBoxNo.Text; + + var result = ApiHelper.PutMethod("api/BarcodeInfoes", JsonConvert.SerializeObject(barcodeInfos)); + + if (result) + { + SetWipBox(); + //MessageBox.Show("裝箱完成"); + BarCodeNo.Text = ""; + GetBoxData(); + } + else + { + MessageBox.Show("裝箱失敗"); + + } + } + } + + private void ExtraNo_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + var query_extraNo = ApiHelper.GetMethod($"api/BarcodeInfoes/ByExtraNo/{ExtraNo.Text}"); + if (query_extraNo == "error" || query_extraNo == "無法連線WebAPI") + { + MessageBox.Show(query_extraNo); + return; + } + + var barcodeInfos = JsonConvert.DeserializeObject>(query_extraNo).FirstOrDefault(); + + if (barcodeInfos == null) + { + MessageBox.Show($"找不到客戶序號【{ExtraNo.Text}】"); + return; + } + + if (barcodeInfos.WipID != wipInfo.WipID) + { + MessageBox.Show($"客戶序號【{ExtraNo.Text}】,不再這張【{txtWipNo.Text}】工單內"); + return; + } + + if (!string.IsNullOrWhiteSpace(barcodeInfos.ExtraBarcodeNo)) + { + MessageBox.Show($"客戶序號【{ExtraNo.Text}】已裝箱過"); + return; + } + + barcodeInfos.BoxNo = NowBoxNo.Text; + + var result = ApiHelper.PutMethod("api/BarcodeInfoes", JsonConvert.SerializeObject(barcodeInfos)); + + if (result) + { + MessageBox.Show("裝箱完成"); + ExtraNo.Text = ""; + SetWipBox(); + GetBoxData(); + } + else + { + MessageBox.Show("裝箱失敗"); + } } } @@ -166,6 +272,118 @@ namespace AMES_AP PlanQty.Text = wipInfo.PlanQTY.ToString(); ModelNo.Text = wipInfo.GetWipAtt.ModelNO; CustomerItemNo.Text = wipInfo.CustomerItemNO; + + BoxCnt.Text = wipInfo.BoxCNT.ToString(); + } + + private void GetBoxData() + { + int wipID = wipInfo.WipID; + var query_wipBox = ApiHelper.GetMethod($"api/WipBox/ByWipID/{wipID}"); + if (query_wipBox == "error" || query_wipBox == "無法連線WebAPI") + { + MessageBox.Show(query_wipBox); + return; + } + var wipBoxs = JsonConvert.DeserializeObject>(query_wipBox); + // 本箱數量 + BoxS.Text = wipBoxs.Count().ToString(); + // 當前箱號 + if (wipBoxs.Where(w => w.BoxStatus != 0).Count() == 0) + NowBoxNo.Text = "BOX" + WipNo.Text + "001"; + else + NowBoxNo.Text = wipBoxs.Where(w => w.BoxStatus != 0).FirstOrDefault().BoxNo; + + // 單箱數量 + var query_barCode = ApiHelper.GetMethod($"api/BarcodeInfoes/ByBoxNo/{NowBoxNo.Text}"); + if (query_barCode == "error" || query_barCode == "無法連線WebAPI") + { + MessageBox.Show(query_barCode); + return; + } + var barcodeInfos = JsonConvert.DeserializeObject>(query_barCode); + ByBox.Text = barcodeInfos.Count().ToString(); + } + + private void SetWipBox() + { + int wipID = wipInfo.WipID; + bool checkbox = false; + int boxQty = int.Parse(ByBox.Text) + 1; + + if (boxQty == int.Parse(BoxCnt.Text)) + checkbox = true; + + var wipBox = new WipBox + { + WipID = wipID, + BoxNo = NowBoxNo.Text, + BoxCnt = int.Parse(ByBox.Text) + 1, + BoxStatus = checkbox ? 0 : 1 + }; + + var query_wipBox = ApiHelper.GetMethod($"api/WipBox/{NowBoxNo.Text}"); + if (query_wipBox == "error" || query_wipBox == "無法連線WebAPI") + { + MessageBox.Show(query_wipBox); + return; + } + + var result_wipBox = JsonConvert.DeserializeObject(query_wipBox); + var result = true; + if (result_wipBox == null) + result = ApiHelper.PostInsertMethod("api/WipBox", JsonConvert.SerializeObject(wipBox)); + else + result = ApiHelper.PutMethod("api/WipBox", JsonConvert.SerializeObject(wipBox)); + + // 自動裝箱 + if (checkbox) + { + string BoxNoOrder = NowBoxNo.Text.Substring(NowBoxNo.Text.Length - 3, 3); + BoxNoOrder = (int.Parse(BoxNoOrder) + 1).ToString().PadLeft(3, '0'); + + NowBoxNo.Text = NowBoxNo.Text.Substring(0, NowBoxNo.Text.Length - 3) + BoxNoOrder; + wipBox.BoxNo = NowBoxNo.Text; + wipBox.BoxStatus = 1; + wipBox.BoxCnt = 0; + ApiHelper.PostInsertMethod("api/WipBox", JsonConvert.SerializeObject(wipBox)); + } + } + + private void ManualCloseBox_Click(object sender, EventArgs e) + { + if (ByBox.Text == "0") + { + MessageBox.Show("目前當前箱號裝箱數為0,無法關箱"); + return; + } + + var wipBox = new WipBox + { + WipID = wipInfo.WipID, + BoxNo = NowBoxNo.Text, + BoxCnt = int.Parse(ByBox.Text), + BoxStatus = 0 + }; + + var query_wipBox = ApiHelper.GetMethod($"api/WipBox/{NowBoxNo.Text}"); + if (query_wipBox == "error" || query_wipBox == "無法連線WebAPI") + { + MessageBox.Show(query_wipBox); + return; + } + + var result = ApiHelper.PutMethod("api/WipBox", JsonConvert.SerializeObject(wipBox)); + + string BoxNoOrder = NowBoxNo.Text.Substring(NowBoxNo.Text.Length - 3, 3); + BoxNoOrder = (int.Parse(BoxNoOrder) + 1).ToString().PadLeft(3, '0'); + + NowBoxNo.Text = NowBoxNo.Text.Substring(0, NowBoxNo.Text.Length - 3) + BoxNoOrder; + wipBox.BoxNo = NowBoxNo.Text; + wipBox.BoxStatus = 1; + wipBox.BoxCnt = 0; + ApiHelper.PostInsertMethod("api/WipBox", JsonConvert.SerializeObject(wipBox)); + GetBoxData(); } } } diff --git a/其他專案資料/AMES_AP/AMES_AP/StockControlForm.resx b/其他專案資料/AMES_AP/AMES_AP/StockControlForm.resx index 61bc649b..1af7de15 100644 --- a/其他專案資料/AMES_AP/AMES_AP/StockControlForm.resx +++ b/其他專案資料/AMES_AP/AMES_AP/StockControlForm.resx @@ -117,7 +117,4 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - True - \ No newline at end of file diff --git a/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.exe b/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.exe index f7883a68..3e39cbb3 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.exe and b/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.exe differ diff --git a/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.pdb b/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.pdb index 27212827..523ecccd 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.pdb and b/其他專案資料/AMES_AP/AMES_AP/bin/Debug/AMES_AP.pdb differ diff --git a/其他專案資料/AMES_AP/AMES_AP/bin/Debug/MaterialSkin.dll b/其他專案資料/AMES_AP/AMES_AP/bin/Debug/MaterialSkin.dll index cccaffef..135aa359 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/bin/Debug/MaterialSkin.dll and b/其他專案資料/AMES_AP/AMES_AP/bin/Debug/MaterialSkin.dll differ diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.Form1.resources b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.Form1.resources new file mode 100644 index 00000000..da78a7f4 Binary files /dev/null and b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.Form1.resources differ diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.InHouse.resources b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.InHouse.resources new file mode 100644 index 00000000..6c05a977 Binary files /dev/null and b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.InHouse.resources differ diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.CopyComplete b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.CopyComplete new file mode 100644 index 00000000..e69de29b diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.CoreCompileInputs.cache b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.CoreCompileInputs.cache index 0f4458be..8fb3990a 100644 --- a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.CoreCompileInputs.cache +++ b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -1e87860084d0641357b7848724f2c8aae6f60d96 +469b641da526204665f1818cac890e31cf88bd73 diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.FileListAbsolute.txt b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.FileListAbsolute.txt index 88aa88c0..bce6c6e3 100644 --- a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.FileListAbsolute.txt +++ b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.FileListAbsolute.txt @@ -27,3 +27,22 @@ D:\Ray_Work\AMES\其他專案資料\AMES_AP\AMES_AP\bin\Debug\Newtonsoft.Json.dl D:\Ray_Work\AMES\其他專案資料\AMES_AP\AMES_AP\bin\Debug\System.Net.Http.Formatting.dll D:\Ray_Work\AMES\其他專案資料\AMES_AP\AMES_AP\bin\Debug\Newtonsoft.Json.xml D:\Ray_Work\AMES\其他專案資料\AMES_AP\AMES_AP\bin\Debug\System.Net.Http.Formatting.xml +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\AMES_AP.exe.config +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\AMES_AP.exe +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\AMES_AP.pdb +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\MaterialSkin.dll +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\Newtonsoft.Json.dll +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\System.Net.Http.Formatting.dll +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\Newtonsoft.Json.xml +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\bin\Debug\System.Net.Http.Formatting.xml +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.Form1.resources +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.InHouse.resources +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.Login.resources +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.Properties.Resources.resources +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.StockControlForm.resources +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.csproj.GenerateResource.cache +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.csproj.CoreCompileInputs.cache +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.csproj.CopyComplete +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.exe +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.pdb +C:\Users\USER\Desktop\MES\AMES0916\其他專案資料\AMES_AP\AMES_AP\obj\Debug\AMES_AP.csproj.AssemblyReference.cache diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.GenerateResource.cache b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.GenerateResource.cache index 48c426f5..77c8b885 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.GenerateResource.cache and b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.csproj.GenerateResource.cache differ diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.exe b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.exe index f7883a68..3e39cbb3 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.exe and b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.exe differ diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.pdb b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.pdb index 27212827..523ecccd 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.pdb and b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/AMES_AP.pdb differ diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferences.cache index e33432ab..7514fc70 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index c4f2e83b..c2f48cf3 100644 Binary files a/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/其他專案資料/AMES_AP/AMES_AP/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/其他專案資料/AMES_AP/AMES_AP/packages.config b/其他專案資料/AMES_AP/AMES_AP/packages.config index e1942456..19f03ad8 100644 --- a/其他專案資料/AMES_AP/AMES_AP/packages.config +++ b/其他專案資料/AMES_AP/AMES_AP/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/.signature.p7s b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/.signature.p7s similarity index 59% rename from 其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/.signature.p7s rename to 其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/.signature.p7s index d56f6901..096ae9b1 100644 Binary files a/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/.signature.p7s and b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/.signature.p7s differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/MaterialSkin.2.2.3.1.nupkg b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/MaterialSkin.2.2.3.1.nupkg new file mode 100644 index 00000000..351777be Binary files /dev/null and b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/MaterialSkin.2.2.3.1.nupkg differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/README.md b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/README.md new file mode 100644 index 00000000..64f20d49 --- /dev/null +++ b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/README.md @@ -0,0 +1,210 @@ +# MaterialSkin 2 for .NET WinForms + +Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles. + +> This project state is: **somewhat active** +> +> This means I still read every issue and check every PR and occasionally release new versions when enough pull requests have pilled up, also [@orapps44](https://github.com/orapps44) has been doing excelent work and is keeping this project alive and updated, Thank you! ❤️ + +![home](https://user-images.githubusercontent.com/77468294/134770847-0f20f37f-e3e7-4e15-b838-cf53b0b32c4e.png) + +## Nuget Package + +A nuget package version is available [here](https://www.nuget.org/packages/MaterialSkin.2/) + +Or simply search for MaterialSkin.2 on the **Nuget Package Manager** inside Visual Studio + +## WIKI Available! + +But there's not much in there for now, please contribute if you can. :smile: + +You can access it [here](https://github.com/leocb/MaterialSkin/wiki) + +## Current state of the MaterialSkin components + +| Component | Supported | Disabled mode | Animated | +| ---------------------------- | :-------: | :-----------: | :------: | +| Backdrop | **No** | - | - | +| Banner | **No** | - | - | +| Buttons | Yes | Yes | Yes | +| Cards | Yes | N/A | N/A | +| Check Box | Yes | Yes | Yes | +| Check Box List | Yes | Yes | Yes | +| Chips | **No** | - | - | +| Combobox | Yes | Yes | Yes | +| Context Menu | Yes | Yes | Yes | +| Date Picker | **No** | - | - | +| Dialog | Yes | N/A | **No** | +| Divider | Yes | N/A | N/A | +| Drawer | Yes | N/A | Yes | +| Expansion Panel | Yes | Yes | **No** | +| Flexible Dialog (big) | Yes | Yes | N/A | +| FAB - Floating Action Button | Yes | Yes | Yes | +| Label | Yes | Yes | N/A | +| ListBox | Yes | Yes | N/A | +| ListView | Yes | **No** | N/A | +| Progress Bar | _Partial_ | **No** | **No** | +| Radio Button | Yes | Yes | Yes | +| Text field | Yes | Yes | Yes | +| Sliders | Yes | Yes | **No** | +| SnackBar | Yes | N/A | Yes | +| Switch | Yes | Yes | Yes | +| Tabs | Yes | N/A | Yes | +| Time Picker | **No** | - | - | +| Tooltips | **No** | - | - | + +All supported components have a dark theme + +## TODO List + +- Progress bar - Animation and variants, maybe round loading thingy +- Backdrop (maybe) +- Some Color code improvements and refactoring +- DatePicker +- Drawer - Header, Divider, subtitle & scroller + +--- + +## Contributing + +Thanks for taking the time to contribute! :+1: + +If you have any issues please open an issue; have an improvement? open a pull request. + +> - This project was heavily updated by [@leocb](https://github.com/leocb/MaterialSkin) +> - Currently it's kept alive by [@orapps44](https://github.com/orapps44/MaterialSkin) +> - forked from [@donaldsteele](https://github.com/donaldsteele/MaterialSkin) +> - and he forked it from the original [@IgnaceMaes](https://github.com/IgnaceMaes/MaterialSkin) + +## Contributors + +Thank you to all the people who have already contributed to MaterialSkin 2 ! + + + + + + +--- + +## Implementing MaterialSkin 2 in your application + +### 1. Add the library to your project + +There are a few methods to add this lib: + +#### The Easy way + +Search for MaterialSkin.2 on the Nuget Package manager inside VisualStudio and add it to your project. + +#### Manual way + +Download the precompiled DLL available on the releases section and add it as a external reference on your project. + +#### Compile from the latest master + +Clone the project from GitHub, then add the MaterialSkin.csproj to your own solution, then add it as a project reference on your project. + +### 2. Add the MaterialSkin components to your ToolBox + +Simply drag the MaterialSkin.dll file into your IDE's ToolBox and all the controls should be added there. + +### 3. Inherit from MaterialForm + +Open the code behind your Form you wish to skin. Make it inherit from MaterialForm rather than Form. Don't forget to put the library in your imports, so it can find the MaterialForm class! + +#### C# (Form1.cs) + +```cs +public partial class Form1 : MaterialForm +``` + +#### VB.NET (Form1.Designer.vb) + +```vb +Partial Class Form1 + Inherits MaterialSkin.Controls.MaterialForm +``` + +### 4. Initialize your colorscheme + +Set your preferred colors & theme. Also add the form to the manager so it keeps updated if the color scheme or theme changes later on. + +#### C# (Form1.cs) + +```cs +public Form1() +{ + InitializeComponent(); + + var materialSkinManager = MaterialSkinManager.Instance; + materialSkinManager.AddFormToManage(this); + materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT; + materialSkinManager.ColorScheme = new ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE); +} +``` + +#### VB.NET (Form1.vb) + +```vb +Imports MaterialSkin + +Public Class Form1 + + Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load + Dim SkinManager As MaterialSkinManager = MaterialSkinManager.Instance + SkinManager.AddFormToManage(Me) + SkinManager.Theme = MaterialSkinManager.Themes.LIGHT + SkinManager.ColorScheme = New ColorScheme(Primary.BlueGrey800, Primary.BlueGrey900, Primary.BlueGrey500, Accent.LightBlue200, TextShade.WHITE) + End Sub +End Class +``` + +--- + +## Material Design in WPF + +If you love .NET and Material Design, you should definitely check out [Material Design Xaml Toolkit](https://github.com/ButchersBoy/MaterialDesignInXamlToolkit) by ButchersBoy. It's a similar project but for WPF instead of WinForms. + +--- + +## Images + +*A simple demo interface with MaterialSkin components.* +![home](https://user-images.githubusercontent.com/77468294/134770847-0f20f37f-e3e7-4e15-b838-cf53b0b32c4e.png) + +*The MaterialSkin Drawer (menu).* +![drawer](https://user-images.githubusercontent.com/77468294/119880600-b4570480-bf2c-11eb-9a83-e2d59b88bf22.png) + +*Every MaterialSkin button variant - this is 1 control, 3 properties* +![buttons](https://user-images.githubusercontent.com/77468294/119880777-e1a3b280-bf2c-11eb-8042-45b767459b41.png) + +*The MaterialSkin checkboxes, radio and Switch.* +![selection](https://user-images.githubusercontent.com/77468294/134740844-795cd759-e4dc-4592-b2c1-86896e61f66f.png) + +*Material skin textfield* +![text](https://user-images.githubusercontent.com/77468294/134825517-23f517e7-0793-4c4c-bcb2-6c2c2fb36b4a.png) + +*Table control* +![table](https://user-images.githubusercontent.com/8310271/66237915-a1931a80-e6cc-11e9-8e68-bc919f533366.png) + +*Progress bar* +![progress bar](https://user-images.githubusercontent.com/77468294/119880969-131c7e00-bf2d-11eb-9ec6-b00e928e59ed.png) + +*Cards* +![cards](https://user-images.githubusercontent.com/77468294/119881312-6f7f9d80-bf2d-11eb-93b8-e4dc58dc3a4e.png) + +*List Box* +![listbox](https://user-images.githubusercontent.com/77468294/119881063-2891a800-bf2d-11eb-93d8-d0395dc1f19e.png) + +*Expansion Panel* +![expansion](https://user-images.githubusercontent.com/77468294/119881153-419a5900-bf2d-11eb-95a2-ab29089acdd3.png) + +*Label* +![label](https://user-images.githubusercontent.com/77468294/132769098-440841c8-07d2-4b9b-bff7-e525402525dd.png) + +*MaterialSkin using a custom color scheme.* +![custom](https://user-images.githubusercontent.com/77468294/119881411-8e7e2f80-bf2d-11eb-9fa3-883eceabfadc.png) + +*FlexibleMaterial Messagebox* +![messagebox](https://user-images.githubusercontent.com/8310271/66238105-25e59d80-e6cd-11e9-88c9-5a21ceae1a5a.png) diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net45/MaterialSkin.dll b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net45/MaterialSkin.dll new file mode 100644 index 00000000..c0ad710b Binary files /dev/null and b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net45/MaterialSkin.dll differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net461/MaterialSkin.dll b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net461/MaterialSkin.dll new file mode 100644 index 00000000..135aa359 Binary files /dev/null and b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net461/MaterialSkin.dll differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net48/MaterialSkin.dll b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net48/MaterialSkin.dll new file mode 100644 index 00000000..b4ea308d Binary files /dev/null and b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net48/MaterialSkin.dll differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net5.0-windows7.0/MaterialSkin.dll b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net5.0-windows7.0/MaterialSkin.dll new file mode 100644 index 00000000..8b04fecf Binary files /dev/null and b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/lib/net5.0-windows7.0/MaterialSkin.dll differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/nugetIcon.png b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/nugetIcon.png new file mode 100644 index 00000000..d14c285a Binary files /dev/null and b/其他專案資料/AMES_AP/packages/MaterialSkin.2.2.3.1/nugetIcon.png differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/MaterialSkin.Updated.0.2.2.nupkg b/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/MaterialSkin.Updated.0.2.2.nupkg deleted file mode 100644 index b51601b8..00000000 Binary files a/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/MaterialSkin.Updated.0.2.2.nupkg and /dev/null differ diff --git a/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/lib/MaterialSkin.dll b/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/lib/MaterialSkin.dll deleted file mode 100644 index cccaffef..00000000 Binary files a/其他專案資料/AMES_AP/packages/MaterialSkin.Updated.0.2.2/lib/MaterialSkin.dll and /dev/null differ