示例#1
0
        //LOG
        public string logDevice(string pDbNm, string pDevCd, string pSiteCd, string pDeviceId, string pDevTypeScd, string pDevIOScd, string pDevNm, string pIp, string pUsingFalg, string pSortNo, string pMemo, string pInputId, out string reMsg, out string reData)
        {
            string reCode = "N";

            reData = "";

            BizDevice bizSys = null;

            try
            {
                bizSys = new BizDevice();

                int reCnt = bizSys.logDevice(pDbNm, pDevCd, pSiteCd, pDeviceId, pDevTypeScd, pDevIOScd, pDevNm, pIp, pUsingFalg, pSortNo, pMemo, pInputId);

                if (reCnt > 0)
                {
                    reMsg  = "[저장 성공]";
                    reCode = "Y";
                    reData = reCnt.ToString();
                }
                else
                {
                    reMsg  = "[저장 성공] - 정보 없음";
                    reCode = "Y";
                }
            }
            catch (Exception ex)
            {
                logs.SaveLog("[error]  (page)::WsDevice.svc  (Function)::logDevice  (Detail)::" + "\r\n" + ex.ToString(), "Error");
                reMsg  = "[저장 에러] :: " + ex.ToString();
                reCode = "N";
            }

            return(reCode);
        }