Exemplo n.º 1
0
        private void subExpirationReport(ArrayList darrExpiration, clsInfo.ProcessDataType pdType)
        {
            string dstrLogData = "";

            try
            {
                foreach (string str in darrExpiration)
                {
                    switch (pdType)
                    {
                    case clsInfo.ProcessDataType.APC:
                        InfoAct.clsAPC CurrentAPC = pInfo.APC(str);
                        CurrentAPC.SetTime = DateTime.Now;

                        pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ProcessDataDel, clsInfo.ProcessDataType.APC, "3", "3!" + CurrentAPC.GLSID, true);
                        //// APC Log 작성
                        //dstrLogData += "APC Data 만료!! => ";
                        //dstrLogData += "GLASSID : " + CurrentAPC.GLSID;
                        //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.APC, CurrentAPC.SetTime.ToString("yyyyMMddHHmmss"), dstrLogData);
                        //dstrLogData = "";
                        this.pInfo.All.APCDBUpdateCheck = true;
                        break;

                    case clsInfo.ProcessDataType.PPC:
                        InfoAct.clsPPC CurrentPPC = this.pInfo.PPC(str);
                        CurrentPPC.SetTime = DateTime.Now;

                        pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ProcessDataDel, clsInfo.ProcessDataType.PPC, "3", "3!" + CurrentPPC.HGLSID, true);
                        //// PPC Log 작성
                        //dstrLogData += "PPC Data 만료!! => ";
                        //dstrLogData += "GLASSID : " + CurrentPPC.HGLSID;
                        //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.PPC, CurrentPPC.SetTime.ToString("yyyyMMddHHmmss"), dstrLogData);
                        //dstrLogData = "";
                        this.pInfo.All.PPCDBUpdateCheck = true;
                        break;

                    case clsInfo.ProcessDataType.RPC:
                        InfoAct.clsRPC CurrentRPC = this.pInfo.RPC(str);
                        CurrentRPC.SetTime = DateTime.Now;

                        pInfo.subPLCCommand_Set(clsInfo.PLCCommand.ProcessDataDel, clsInfo.ProcessDataType.RPC, "3", "3!" + CurrentRPC.HGLSID, true);
                        //// RPC Log 작성
                        //dstrLogData += "RPC Data 만료!! => ";
                        //dstrLogData += "GLASSID : " + CurrentRPC.HGLSID;
                        //this.pInfo.subLog_Set(InfoAct.clsInfo.LogType.RPC, CurrentRPC.SetTime.ToString("yyyyMMddHHmmss"), dstrLogData);
                        this.pInfo.All.RPCDBUpdateCheck = true;
                        break;

                    default:
                        return;
                    }
                }

                darrExpiration.Clear();
            }
            catch (Exception ex)
            {
                this.pInfo.subLog_Set(clsInfo.LogType.CIM, ex.ToString());
            }
        }