WeldingParam 일부 수정
This commit is contained in:
parent
b900a276fe
commit
be8bba5739
@ -13,10 +13,8 @@ using System.Xml;
|
|||||||
using static CoreUnit.Common.UtilUnit;
|
using static CoreUnit.Common.UtilUnit;
|
||||||
|
|
||||||
|
|
||||||
namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
namespace CoreUnit.Scanner.UserControl.Canvas.Dialog {
|
||||||
{
|
public partial class WeldingParamDlg : FormBase {
|
||||||
public partial class WeldingParamDlg : FormBase
|
|
||||||
{
|
|
||||||
private eMachineName _MachineName;
|
private eMachineName _MachineName;
|
||||||
public WeldingParamDlg(eMachineName MachineName, int scannergParamNo, bool editMode = true)
|
public WeldingParamDlg(eMachineName MachineName, int scannergParamNo, bool editMode = true)
|
||||||
{
|
{
|
||||||
@ -87,15 +85,15 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
btnCancel.Enabled = true;
|
btnCancel.Enabled = true;
|
||||||
}
|
}
|
||||||
//if(_MachineName == eMachineName.H52A_CCW || _MachineName == eMachineName.H52A_ACW || _MachineName == eMachineName.CIT) {
|
//if(_MachineName == eMachineName.H52A_CCW || _MachineName == eMachineName.H52A_ACW || _MachineName == eMachineName.CIT) {
|
||||||
label58.Text = "(0~4000)";
|
label58.Text = _MachineName == eMachineName.H52A_CCW ? "(0~1500)" : "(0~4000)";
|
||||||
label31.Text = "(0~4000)";
|
label31.Text = _MachineName == eMachineName.H52A_CCW ? "(0~2500)" : "(0~4000)";
|
||||||
label32.Text = "(0~10000)";
|
label32.Text = "(0~10000)";
|
||||||
label17.Text = "(1~8000)";
|
label17.Text = "(1~8000)";
|
||||||
|
|
||||||
label22.Enabled = false;
|
label22.Enabled = _MachineName == eMachineName.H52A_CCW;
|
||||||
tbLaserPower2.Enabled = false;
|
tbLaserPower2.Enabled = _MachineName == eMachineName.H52A_CCW;
|
||||||
label29.Enabled = false;
|
label29.Enabled = _MachineName == eMachineName.H52A_CCW;
|
||||||
label31.Enabled = false;
|
label31.Enabled = _MachineName == eMachineName.H52A_CCW;
|
||||||
|
|
||||||
// Ramping Start, End 구분 후 사용한다. Power 2번은 여전히 막아둠
|
// Ramping Start, End 구분 후 사용한다. Power 2번은 여전히 막아둠
|
||||||
//label68.Enabled = false;
|
//label68.Enabled = false;
|
||||||
@ -106,7 +104,6 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
//label70.Enabled = false;
|
//label70.Enabled = false;
|
||||||
|
|
||||||
nudRampingStartPower2.Enabled = false;
|
nudRampingStartPower2.Enabled = false;
|
||||||
|
|
||||||
nudRampingEndPower2.Enabled = false;
|
nudRampingEndPower2.Enabled = false;
|
||||||
|
|
||||||
|
|
||||||
@ -129,11 +126,6 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
tbMarkDelay.Enabled = PermissionCheck;
|
tbMarkDelay.Enabled = PermissionCheck;
|
||||||
label62.Enabled = PermissionCheck;
|
label62.Enabled = PermissionCheck;
|
||||||
|
|
||||||
//label22.Enabled = PermissionCheck;
|
|
||||||
//tbLaserPower2.Enabled = PermissionCheck;
|
|
||||||
//label29.Enabled = PermissionCheck;
|
|
||||||
//label31.Enabled = PermissionCheck;
|
|
||||||
|
|
||||||
label16.Enabled = PermissionCheck;
|
label16.Enabled = PermissionCheck;
|
||||||
label17.Enabled = PermissionCheck;
|
label17.Enabled = PermissionCheck;
|
||||||
label18.Enabled = PermissionCheck;
|
label18.Enabled = PermissionCheck;
|
||||||
@ -420,7 +412,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
//selectedParam.PowerProfileID = Convert.ToInt32(textBoxPowerProfileID.Text);
|
//selectedParam.PowerProfileID = Convert.ToInt32(textBoxPowerProfileID.Text);
|
||||||
|
|
||||||
selectedParam.Color = labelColor.BackColor;
|
selectedParam.Color = labelColor.BackColor;
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, "Please Check Value");
|
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, "Please Check Value");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -489,7 +482,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
|
|
||||||
SaveParam(dlg.FileName, m_selectedIndex);
|
SaveParam(dlg.FileName, m_selectedIndex);
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, ex.Message);
|
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -509,7 +503,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
|
|
||||||
LoadAllParam(dlg.FileName);
|
LoadAllParam(dlg.FileName);
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, ex.Message);
|
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, ex.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -529,7 +524,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
|
|
||||||
SaveAllParam(dlg.FileName);
|
SaveAllParam(dlg.FileName);
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, ex.Message);
|
UtilUnit.logUnit.SetLog(LogUnit.eLogType.ALARM, MethodBase.GetCurrentMethod().Name, ex.Message);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -552,7 +548,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
wr.WriteEndElement();
|
wr.WriteEndElement();
|
||||||
|
|
||||||
wr.Close();
|
wr.Close();
|
||||||
} catch (Exception ex) {
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -574,7 +571,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
wr.WriteEndElement();
|
wr.WriteEndElement();
|
||||||
|
|
||||||
wr.Close();
|
wr.Close();
|
||||||
} catch (Exception ex) {
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -601,7 +599,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
}
|
||||||
|
catch (Exception ex) {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -642,7 +641,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
DialogToScannerParam(m_selectedIndex);
|
DialogToScannerParam(m_selectedIndex);
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -748,7 +748,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
DialogToScannerParam(m_selectedIndex);
|
DialogToScannerParam(m_selectedIndex);
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -757,7 +758,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
DialogToScannerParam(m_selectedIndex);
|
DialogToScannerParam(m_selectedIndex);
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -768,7 +770,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
DialogToScannerParam(m_selectedIndex);
|
DialogToScannerParam(m_selectedIndex);
|
||||||
|
|
||||||
|
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -780,7 +783,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -791,7 +795,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
DialogToScannerParam(m_selectedIndex);
|
DialogToScannerParam(m_selectedIndex);
|
||||||
|
|
||||||
|
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -875,7 +880,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
DialogToScannerParam(m_selectedIndex);
|
DialogToScannerParam(m_selectedIndex);
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -884,7 +890,8 @@ namespace CoreUnit.Scanner.UserControl.Canvas.Dialog
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
DialogToScannerParam(m_selectedIndex);
|
DialogToScannerParam(m_selectedIndex);
|
||||||
} catch {
|
}
|
||||||
|
catch {
|
||||||
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
MessageBox.Show("숫자 형식이 맞지 않습니다.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user