internal void ChangeSPM(StandardProcessModel sPM, String Location) { if (Location.Equals("Up")) { for (int i = 0; i < this.pnl_View.Controls.Count; i++) { UCStandardProcess ucsp = (UCStandardProcess)pnl_View.Controls[i]; if (ucsp.SPM.Sort == sPM.Sort && ucsp.SPM.No != sPM.No) { ucsp.SPM.Sort += 1; ucsp.SetData(); } } } if (Location.Equals("Down")) { for (int i = 0; i < this.pnl_View.Controls.Count; i++) { UCStandardProcess ucsp = (UCStandardProcess)pnl_View.Controls[i]; if (ucsp.SPM.Sort == sPM.Sort && ucsp.SPM.No != sPM.No) { ucsp.SPM.Sort -= 1; ucsp.SetData(); } } } ControllerSorting(); }
private void button4_Click(object sender, EventArgs e) { StandardProcessModel NewSPM = new StandardProcessModel(); NewSPM.Name = "새로운 공정"; NewSPM.Color1 = "0"; NewSPM.Color2 = "0"; NewSPM.Sort = pnl_View.Controls.Count + 1; _StandardProcessController.AddStandardProcess(NewSPM); ResetData(); }
public StandardProcess(Member member, BasicForm form) { InitializeComponent(); _LoginInfo = member; _Mother = form; _DP = new DetailProcess(); _SPM = new StandardProcessModel(); _StandardProcessController = new StandardProcessController(); ResetData(); //처음에 생성될때 }
public void GetData(StandardProcessModel spm) { SPM = spm; }
public UCStandardProcess(StandardProcess form) { InitializeComponent(); _StandardProcess = form; _spm = new StandardProcessModel(); }
public StandardTextModal(UCStandardProcess uCStandardProcess, StandardProcessModel spm) { InitializeComponent(); _UCStandardProcess = uCStandardProcess; SPM = spm; }
internal void ChangeDelete(StandardProcessModel sPM) { _StandardProcessController.DeleteStandardProcess(sPM); ResetData(); }
public void DeleteStandardProcess(StandardProcessModel sPM) { dataBase.DeleteStandardProcess(sPM); dataBase.DeleteStandardProcessChild(sPM); dataBase.DeleteStandardProcessAfter(sPM); }
public void AddStandardProcess(StandardProcessModel newSPM) { dataBase.AddStandardProcess(newSPM); }