Initial commit
This commit is contained in:
71
Handler/Project/Setting/UserSetting.cs
Normal file
71
Handler/Project/Setting/UserSetting.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public class UserSetting : arUtil.Setting
|
||||
{
|
||||
public Boolean Option_QtyUpdate1 { get; set; }
|
||||
public Boolean Option_PartUpdate { get; set; }
|
||||
public Boolean Option_printforce1 { get; set; }
|
||||
public Boolean Option_Confirm1 { get; set; }
|
||||
public Boolean Option_AutoConfirm { get; set; }
|
||||
public Boolean Option_vname { get; set; }
|
||||
public Boolean Option_FixPrint1 { get; set; }
|
||||
public string Option_PrintPos1 { get; set; }
|
||||
public Boolean Option_SidConv { get; set; }
|
||||
|
||||
//public Boolean Option_QtyUpdate3 { get; set; }
|
||||
//public Boolean Option_printforce3 { get; set; }
|
||||
//public Boolean Option_Confirm3 { get; set; }
|
||||
//public Boolean Option_FixPrint3 { get; set; }
|
||||
//public string Option_PrintPos3 { get; set; }
|
||||
|
||||
public string LastJobUnP11 { get; set; }
|
||||
public string LastJobUnP12 { get; set; }
|
||||
public string LastJobUnP21 { get; set; }
|
||||
public string LastJobUnP22 { get; set; }
|
||||
public string LastJobUnP31 { get; set; }
|
||||
public string LastJobUnP32 { get; set; }
|
||||
public string LastJobUnP41 { get; set; }
|
||||
public string LastJobUnP42 { get; set; }
|
||||
|
||||
|
||||
public string LastLot { get; set; }
|
||||
public string LastAltag { get; set; }
|
||||
public string LastModelM { get; set; }
|
||||
public string LastModelV { get; set; }
|
||||
|
||||
public string LastMC { get; set; }
|
||||
|
||||
public int jobtype { get; set; }
|
||||
public int scantype { get; set; }
|
||||
public bool useConv { get; set; }
|
||||
public UserSetting()
|
||||
{
|
||||
this.filename = AppDomain.CurrentDomain.BaseDirectory + "UserSet.xml";
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
|
||||
if (PUB.uSetting.LastJobUnP11.isEmpty()) PUB.uSetting.LastJobUnP11 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP12.isEmpty()) PUB.uSetting.LastJobUnP12 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP21.isEmpty()) PUB.uSetting.LastJobUnP21 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP22.isEmpty()) PUB.uSetting.LastJobUnP22 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP31.isEmpty()) PUB.uSetting.LastJobUnP31 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP32.isEmpty()) PUB.uSetting.LastJobUnP32 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP41.isEmpty()) PUB.uSetting.LastJobUnP41 = "AUTO";
|
||||
if (PUB.uSetting.LastJobUnP42.isEmpty()) PUB.uSetting.LastJobUnP42 = "AUTO";
|
||||
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user