/// <summary>
        /// 获取安装设备
        /// </summary>
        /// <param name="pCustomerId"></param>
        /// <param name="pOrderNo"></param>
        /// <returns></returns>
        public List <InstallDeviceViewModel> GetInstallDevice(string pCustomerId, string pOrderNo)
        {
            var     gldiibll = new GLDeviceInstallItemBLL(_loggingSessionInfo);
            DataSet dsDevice = gldiibll.GetDeviceInstallItemByOrderNo(pCustomerId, pOrderNo);

            if (dsDevice.Tables[0] != null && dsDevice.Tables.Count > 0 && dsDevice.Tables[0].Rows.Count > 0)
            {
                return(DataTableToObject.ConvertToList <InstallDeviceViewModel>(dsDevice.Tables[0]));
            }
            return(new List <InstallDeviceViewModel>());
        }
        /// <summary>
        /// 保存服务单号对应的设备列表
        /// </summary>
        /// <param name="pServiceOrder"></param>
        /// <param name="pInstallDeviceList"></param>
        public void SaveInstallDeviceList(GLServiceOrderEntity pServiceOrder, List <InstallDeviceViewModel> pInstallDeviceList)
        {
            var gldiibll = new GLDeviceInstallItemBLL(_loggingSessionInfo);

            for (var i = 0; i < pInstallDeviceList.Count; i++)
            {
                var gldiie = new GLDeviceInstallItemEntity
                {
                    ServiceOrderID  = pServiceOrder.ServiceOrderID,
                    DeviceInstallID = GreeCommon.GetGuid(),
                    DeviceItemID    = pInstallDeviceList[i].DeviceID,
                    DeviceFullName  = pInstallDeviceList[i].DeviceName,
                    InstallPosition = pInstallDeviceList[i].InstallPosition,
                    CustomerID      = pServiceOrder.CustomerID,
                    IsDelete        = 0
                };
                //服务订单号

                //gldiie.DeviceCount = pInstallDeviceList[i].DeviceCount;
                gldiibll.Create(gldiie);
            }
        }
        /// <summary>
        /// 删除服务单号对应的设备列表
        /// </summary>
        /// <param name="pServiceOrder"></param>
        /// <param name="pInstallDeviceList"></param>
        public void DeleteInstallDeviceList(string pCustomerID, string pServiceOrderID)
        {
            var gldiibll = new GLDeviceInstallItemBLL(_loggingSessionInfo);

            gldiibll.DelDeviceInstallItemByServerOrderID(pCustomerID, pServiceOrderID);
        }