Example #1
0
        private void SetDefaultControl()
        {
            MRPBIZ     bizMRP     = new MRPBIZ();
            ProcessBIZ bizProcess = new ProcessBIZ();

            //set start date
            dtpStartDate.Format        = Common.CurrentUserInfomation.DateFormatString;
            dtpLastSimulateDate.Format = Common.CurrentUserInfomation.DateFormatString;

            dtpStartDate.Value = bizMRP.GetDefaultStartDate();
            //txtRecoverDay.Text = bizMRP.GetDefaultRecoverDuration().ToString();

            //Load last simulate time
            ProcessDTO dtoProcess = bizProcess.LoadLastProcess(CONST_STR_PROCESS_NAME);

            if (dtoProcess != null)
            {
                txtLastMRPNo.Text         = dtoProcess.PROCESS_NO.ToString();
                dtpLastSimulateDate.Value = (DateTime)dtoProcess.PROCESS_DATE.Value;
            }
        }
Example #2
0
        public ItemProcessDTO LoadDefaultProcessOfItem(NZString ItemCD, NZString ProcessCD)
        {
            ProcessBIZ biz = new ProcessBIZ();

            return(biz.LoadDefaultProcess(ItemCD, ProcessCD));
        }