Example #1
0
 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();
 }
Example #2
0
        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();
        }
Example #3
0
        public StandardProcess(Member member, BasicForm form)
        {
            InitializeComponent();
            _LoginInfo = member;
            _Mother    = form;

            _DP  = new DetailProcess();
            _SPM = new StandardProcessModel();

            _StandardProcessController = new StandardProcessController();

            ResetData();
            //처음에 생성될때
        }
Example #4
0
 public void GetData(StandardProcessModel spm)
 {
     SPM = spm;
 }
Example #5
0
 public UCStandardProcess(StandardProcess form)
 {
     InitializeComponent();
     _StandardProcess = form;
     _spm             = new StandardProcessModel();
 }
Example #6
0
 public StandardTextModal(UCStandardProcess uCStandardProcess, StandardProcessModel spm)
 {
     InitializeComponent();
     _UCStandardProcess = uCStandardProcess;
     SPM = spm;
 }
Example #7
0
 internal void ChangeDelete(StandardProcessModel sPM)
 {
     _StandardProcessController.DeleteStandardProcess(sPM);
     ResetData();
 }
Example #8
0
 public void DeleteStandardProcess(StandardProcessModel sPM)
 {
     dataBase.DeleteStandardProcess(sPM);
     dataBase.DeleteStandardProcessChild(sPM);
     dataBase.DeleteStandardProcessAfter(sPM);
 }
Example #9
0
 public void AddStandardProcess(StandardProcessModel newSPM)
 {
     dataBase.AddStandardProcess(newSPM);
 }