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

            reData = "0";

            BizDevice bizSys = null;

            try
            {
                bizSys = new BizDevice();

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

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

            return(reCode);
        }